'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var skip = require('@jet-pie/theme/variations/skip');
var styled = require('styled-components');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }

var React__default = /*#__PURE__*/_interopDefaultLegacy(React);

const GlobalStyle = styled.createGlobalStyle `
    @font-face {
      font-family: 'JETSansDigital';
      font-weight: 400;
      font-style: normal;
      src: url('https://d30v2pzvrfyzpo.cloudfront.net/fonts/JETSansDigital-Regular-optimised.woff') format('woff'),
      url('https://d30v2pzvrfyzpo.cloudfront.net/fonts/JETSansDigital-Regular-optimised.woff2') format('woff2');
    }
    @font-face {
      font-family: 'JETSansDigital';
      font-weight: 700;
      font-style: normal;
      src: url('https://d30v2pzvrfyzpo.cloudfront.net/fonts/JETSansDigital-Bold-optimised.woff') format('woff'),
      url('https://d30v2pzvrfyzpo.cloudfront.net/fonts/JETSansDigital-Bold-optimised.woff2') format('woff2');
    }
    @font-face {
      font-family: 'JETSansDigital';
      font-weight: 800;
      font-style: normal;
      src: url('https://d30v2pzvrfyzpo.cloudfront.net/fonts/JETSansDigital-ExtraBold-optimised.woff') format('woff'),
      url('https://d30v2pzvrfyzpo.cloudfront.net/fonts/JETSansDigital-ExtraBold-optimised.woff2') format('woff2');
    }
  `;
const PIEThemeProvider = (props) => {
    const theme = Object.assign(Object.assign(Object.assign({}, skip.skipTokensCssVariables), props.customTheme), { custom: Object.assign({}, props.additionalProps), mode: props.mode });
    return (React__default['default'].createElement(React.Fragment, null,
        React__default['default'].createElement(GlobalStyle, null),
        React__default['default'].createElement(styled.ThemeProvider, { theme: theme }, props.children)));
};

exports.PIEThemeProvider = PIEThemeProvider;
