educoreapp2 1.0.76 → 1.0.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/dist/App.css +0 -111
- package/dist/EduApp.js +0 -309
- package/dist/Tools.js +0 -235
- package/dist/Translate.js +0 -33
- package/dist/img/404.png +0 -0
- package/dist/img/lang_en.svg +0 -10
- package/dist/img/lang_pl.svg +0 -4
- package/dist/img/logo.png +0 -0
- package/dist/img/nointernet.png +0 -0
- package/dist/img/update.png +0 -0
- package/dist/index.js +0 -236
- package/dist/lib/API.js +0 -65
- package/dist/lib/APIFaker.js +0 -57
- package/dist/lib/APILocal.js +0 -76
- package/dist/lib/APIServer.js +0 -76
- package/dist/lib/ApiCode.js +0 -11
- package/dist/spxbasecode/EduLog.js +0 -16
- package/dist/spxbasecode/Request.js +0 -43
- package/dist/spxbasecode/Validators.js +0 -66
- package/dist/spxbasecode/WS.js +0 -71
- package/dist/spxbasecode/cmps/8.jpg +0 -0
- package/dist/spxbasecode/cmps/BaseAnimation.js +0 -76
- package/dist/spxbasecode/cmps/BaseAutocomplete.js +0 -81
- package/dist/spxbasecode/cmps/BaseButton.js +0 -41
- package/dist/spxbasecode/cmps/BaseButtonCountry.js +0 -48
- package/dist/spxbasecode/cmps/BaseButtonIcon.js +0 -78
- package/dist/spxbasecode/cmps/BaseButtonImage.js +0 -66
- package/dist/spxbasecode/cmps/BaseCard.js +0 -95
- package/dist/spxbasecode/cmps/BaseCenter.js +0 -33
- package/dist/spxbasecode/cmps/BaseError.js +0 -48
- package/dist/spxbasecode/cmps/BaseForm.js +0 -141
- package/dist/spxbasecode/cmps/BaseForm2.js +0 -78
- package/dist/spxbasecode/cmps/BaseImage.js +0 -45
- package/dist/spxbasecode/cmps/BaseImg.js +0 -62
- package/dist/spxbasecode/cmps/BaseInputString.js +0 -241
- package/dist/spxbasecode/cmps/BaseLabel.js +0 -48
- package/dist/spxbasecode/cmps/BaseLang.js +0 -51
- package/dist/spxbasecode/cmps/BaseList.js +0 -79
- package/dist/spxbasecode/cmps/BaseListFile.js +0 -79
- package/dist/spxbasecode/cmps/BasePage.js +0 -26
- package/dist/spxbasecode/cmps/BaseReadTextButton.js +0 -40
- package/dist/spxbasecode/cmps/BaseSSOLogin.js +0 -31
- package/dist/spxbasecode/cmps/BaseSlimPage.js +0 -82
- package/dist/spxbasecode/cmps/EduPage.js +0 -20
- package/dist/spxbasecode/cmps/LogoEdupanel.js +0 -41
- package/dist/spxbasecode/cmps/Menu.js +0 -169
- package/dist/spxbasecode/cmps/PageWithMenu.js +0 -55
- package/dist/spxbasecode/cmps/ProfileMenu.js +0 -25
- package/dist/spxbasecode/cmps/SpeechToText.js +0 -48
- package/dist/spxbasecode/cmps/TextToCommand.js +0 -98
- package/dist/spxbasecode/img/soundOff.svg +0 -1
- package/dist/spxbasecode/img/soundOn.png +0 -0
    
        package/dist/spxbasecode/WS.js
    DELETED
    
    | @@ -1,71 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireDefault(require("react"));
         | 
| 8 | 
            -
            function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
         | 
| 9 | 
            -
            class WS extends _react.default.Component {
         | 
| 10 | 
            -
              constructor(props) {
         | 
| 11 | 
            -
                super(props);
         | 
| 12 | 
            -
                this.props = props;
         | 
| 13 | 
            -
                this.props.parent.ws = this;
         | 
| 14 | 
            -
                this.state = {
         | 
| 15 | 
            -
                  messages: [],
         | 
| 16 | 
            -
                  ws: null
         | 
| 17 | 
            -
                };
         | 
| 18 | 
            -
                this.config = {
         | 
| 19 | 
            -
                  //WS_HOST_PROD:"wss://edupanel.pl:8080",
         | 
| 20 | 
            -
                  //WS_HOST_PROD:"wss://127.0.0.1:8080",
         | 
| 21 | 
            -
                  // WS_HOST_DEV:"ws://127.0.0.1:8080"
         | 
| 22 | 
            -
                };
         | 
| 23 | 
            -
                this.sendMessage = this.sendMessage.bind(this);
         | 
| 24 | 
            -
              }
         | 
| 25 | 
            -
              static IsProd() {
         | 
| 26 | 
            -
                console.log(window.location.host);
         | 
| 27 | 
            -
                return ["edupanel.pl"].indexOf(window.location.host) >= 0;
         | 
| 28 | 
            -
              }
         | 
| 29 | 
            -
              static IsDev() {
         | 
| 30 | 
            -
                return true;
         | 
| 31 | 
            -
              }
         | 
| 32 | 
            -
              getHost() {
         | 
| 33 | 
            -
                if (WS.IsProd()) {
         | 
| 34 | 
            -
                  return this.config.WS_HOST_PROD;
         | 
| 35 | 
            -
                } else {
         | 
| 36 | 
            -
                  return this.config.WS_HOST_DEV;
         | 
| 37 | 
            -
                }
         | 
| 38 | 
            -
              }
         | 
| 39 | 
            -
              componentDidMount() {
         | 
| 40 | 
            -
                let newWs = null;
         | 
| 41 | 
            -
                //    let newWs = new WebSocket(this.getHost()); 
         | 
| 42 | 
            -
             | 
| 43 | 
            -
                newWs.onopen = () => {
         | 
| 44 | 
            -
                  console.log('Połączono z serwerem WebSocket');
         | 
| 45 | 
            -
                };
         | 
| 46 | 
            -
                newWs.onmessage = event => {
         | 
| 47 | 
            -
                  console.log("AAAeee", event, event.data);
         | 
| 48 | 
            -
                };
         | 
| 49 | 
            -
                newWs.onclose = () => {
         | 
| 50 | 
            -
                  console.log('Rozłączono z serwerem WebSocket');
         | 
| 51 | 
            -
                };
         | 
| 52 | 
            -
                this.setState({
         | 
| 53 | 
            -
                  ws: newWs
         | 
| 54 | 
            -
                });
         | 
| 55 | 
            -
              }
         | 
| 56 | 
            -
              componentWillUnmount() {
         | 
| 57 | 
            -
                if (this.state.ws) {
         | 
| 58 | 
            -
                  this.state.ws.close();
         | 
| 59 | 
            -
                }
         | 
| 60 | 
            -
              }
         | 
| 61 | 
            -
              sendMessage(message) {
         | 
| 62 | 
            -
                if (this.state.ws) {
         | 
| 63 | 
            -
                  let msg = JSON.stringify(message);
         | 
| 64 | 
            -
                  this.state.ws.send(msg);
         | 
| 65 | 
            -
                }
         | 
| 66 | 
            -
              }
         | 
| 67 | 
            -
              render() {
         | 
| 68 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", null);
         | 
| 69 | 
            -
              }
         | 
| 70 | 
            -
            }
         | 
| 71 | 
            -
            var _default = exports.default = WS;
         | 
| Binary file | 
| @@ -1,76 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactTransitionGroup = require("react-transition-group");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 11 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 12 | 
            -
            class BaseAnimation extends _react.Component {
         | 
| 13 | 
            -
              constructor(props) {
         | 
| 14 | 
            -
                super(props);
         | 
| 15 | 
            -
                this.props = props;
         | 
| 16 | 
            -
                this.stopAnim = false;
         | 
| 17 | 
            -
                this.state = {
         | 
| 18 | 
            -
                  currentComponentIndex: 0
         | 
| 19 | 
            -
                };
         | 
| 20 | 
            -
              }
         | 
| 21 | 
            -
              componentDidMount() {
         | 
| 22 | 
            -
                const {
         | 
| 23 | 
            -
                  components
         | 
| 24 | 
            -
                } = this.props;
         | 
| 25 | 
            -
                let time = components[0].time;
         | 
| 26 | 
            -
                this.interval = setInterval(this.changeComponent, time);
         | 
| 27 | 
            -
              }
         | 
| 28 | 
            -
              componentWillUnmount() {
         | 
| 29 | 
            -
                clearInterval(this.interval);
         | 
| 30 | 
            -
              }
         | 
| 31 | 
            -
              changeComponent = () => {
         | 
| 32 | 
            -
                const {
         | 
| 33 | 
            -
                  currentComponentIndex
         | 
| 34 | 
            -
                } = this.state;
         | 
| 35 | 
            -
                const {
         | 
| 36 | 
            -
                  components
         | 
| 37 | 
            -
                } = this.props;
         | 
| 38 | 
            -
                const newIndex = (currentComponentIndex + 1) % components.length;
         | 
| 39 | 
            -
                if (newIndex == 0 & _educoreapp.Tools.IsFunction(this.props.onEnd)) {
         | 
| 40 | 
            -
                  clearInterval(this.interval);
         | 
| 41 | 
            -
                  this.props.onEnd();
         | 
| 42 | 
            -
                  return;
         | 
| 43 | 
            -
                }
         | 
| 44 | 
            -
                this.setState({
         | 
| 45 | 
            -
                  currentComponentIndex: newIndex
         | 
| 46 | 
            -
                });
         | 
| 47 | 
            -
              };
         | 
| 48 | 
            -
              render() {
         | 
| 49 | 
            -
                const {
         | 
| 50 | 
            -
                  currentComponentIndex
         | 
| 51 | 
            -
                } = this.state;
         | 
| 52 | 
            -
                const {
         | 
| 53 | 
            -
                  components,
         | 
| 54 | 
            -
                  className
         | 
| 55 | 
            -
                } = this.props;
         | 
| 56 | 
            -
                const {
         | 
| 57 | 
            -
                  component: CurrentComponent,
         | 
| 58 | 
            -
                  time,
         | 
| 59 | 
            -
                  data
         | 
| 60 | 
            -
                } = components[currentComponentIndex];
         | 
| 61 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", {
         | 
| 62 | 
            -
                  style: {
         | 
| 63 | 
            -
                    textAlign: "center"
         | 
| 64 | 
            -
                  },
         | 
| 65 | 
            -
                  className: className
         | 
| 66 | 
            -
                }, /*#__PURE__*/_react.default.createElement(_reactTransitionGroup.CSSTransition, {
         | 
| 67 | 
            -
                  in: true,
         | 
| 68 | 
            -
                  appear: true,
         | 
| 69 | 
            -
                  timeout: time,
         | 
| 70 | 
            -
                  classNames: "fade"
         | 
| 71 | 
            -
                }, /*#__PURE__*/_react.default.createElement(CurrentComponent, {
         | 
| 72 | 
            -
                  data: data
         | 
| 73 | 
            -
                })));
         | 
| 74 | 
            -
              }
         | 
| 75 | 
            -
            }
         | 
| 76 | 
            -
            var _default = exports.default = BaseAnimation;
         | 
| @@ -1,81 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            require("bootstrap/dist/css/bootstrap.min.css");
         | 
| 10 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 11 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 12 | 
            -
            class BaseAutocomplete extends _react.Component {
         | 
| 13 | 
            -
              constructor(props) {
         | 
| 14 | 
            -
                super(props);
         | 
| 15 | 
            -
                this.state = {
         | 
| 16 | 
            -
                  inputValue: '',
         | 
| 17 | 
            -
                  suggestions: [],
         | 
| 18 | 
            -
                  loading: false
         | 
| 19 | 
            -
                };
         | 
| 20 | 
            -
              }
         | 
| 21 | 
            -
              componentDidMount() {
         | 
| 22 | 
            -
                this.fetchSuggestions(this.state.inputValue);
         | 
| 23 | 
            -
              }
         | 
| 24 | 
            -
              componentDidUpdate(prevProps, prevState) {
         | 
| 25 | 
            -
                if (prevProps.list !== this.props.list || prevState.inputValue !== this.state.inputValue) {
         | 
| 26 | 
            -
                  this.fetchSuggestions(this.state.inputValue);
         | 
| 27 | 
            -
                }
         | 
| 28 | 
            -
              }
         | 
| 29 | 
            -
              fetchSuggestions = inputValue => {
         | 
| 30 | 
            -
                if (inputValue.length > 2) {
         | 
| 31 | 
            -
                  this.setState({
         | 
| 32 | 
            -
                    loading: true
         | 
| 33 | 
            -
                  });
         | 
| 34 | 
            -
                  const list = this.props.list;
         | 
| 35 | 
            -
                  const filteredList = list.filter(item => item.name.toLowerCase().includes(inputValue.toLowerCase()));
         | 
| 36 | 
            -
                  this.setState({
         | 
| 37 | 
            -
                    suggestions: filteredList,
         | 
| 38 | 
            -
                    loading: false
         | 
| 39 | 
            -
                  });
         | 
| 40 | 
            -
                }
         | 
| 41 | 
            -
              };
         | 
| 42 | 
            -
              handleInputChange = event => {
         | 
| 43 | 
            -
                this.setState({
         | 
| 44 | 
            -
                  inputValue: event.target.value
         | 
| 45 | 
            -
                });
         | 
| 46 | 
            -
              };
         | 
| 47 | 
            -
              handleSuggestionClick = id => {
         | 
| 48 | 
            -
                const selectedSuggestion = this.state.suggestions.find(s => s.id === id);
         | 
| 49 | 
            -
                this.setState({
         | 
| 50 | 
            -
                  inputValue: selectedSuggestion.name,
         | 
| 51 | 
            -
                  suggestions: []
         | 
| 52 | 
            -
                });
         | 
| 53 | 
            -
              };
         | 
| 54 | 
            -
              render() {
         | 
| 55 | 
            -
                const {
         | 
| 56 | 
            -
                  inputValue,
         | 
| 57 | 
            -
                  suggestions,
         | 
| 58 | 
            -
                  loading
         | 
| 59 | 
            -
                } = this.state;
         | 
| 60 | 
            -
                return /*#__PURE__*/_react.default.createElement(_reactBootstrap.Form.Group, null, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Form.Control, {
         | 
| 61 | 
            -
                  type: "text",
         | 
| 62 | 
            -
                  className: "form-control",
         | 
| 63 | 
            -
                  placeholder: "Search...",
         | 
| 64 | 
            -
                  value: inputValue,
         | 
| 65 | 
            -
                  onChange: this.handleInputChange,
         | 
| 66 | 
            -
                  disabled: loading
         | 
| 67 | 
            -
                }), loading ? /*#__PURE__*/_react.default.createElement("div", {
         | 
| 68 | 
            -
                  className: "spinner-border spinner-border-sm mr-2",
         | 
| 69 | 
            -
                  role: "status"
         | 
| 70 | 
            -
                }, /*#__PURE__*/_react.default.createElement("span", {
         | 
| 71 | 
            -
                  className: "sr-only"
         | 
| 72 | 
            -
                }, "Loading...")) : /*#__PURE__*/_react.default.createElement("div", {
         | 
| 73 | 
            -
                  className: "autocomplete-suggestions"
         | 
| 74 | 
            -
                }, suggestions.map(suggestion => /*#__PURE__*/_react.default.createElement("div", {
         | 
| 75 | 
            -
                  key: suggestion.id,
         | 
| 76 | 
            -
                  onClick: () => this.handleSuggestionClick(suggestion.id),
         | 
| 77 | 
            -
                  className: "suggestion"
         | 
| 78 | 
            -
                }, suggestion.name))));
         | 
| 79 | 
            -
              }
         | 
| 80 | 
            -
            }
         | 
| 81 | 
            -
            var _default = exports.default = BaseAutocomplete;
         | 
| @@ -1,41 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 11 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 12 | 
            -
            class BaseButton extends _react.Component {
         | 
| 13 | 
            -
              constructor(props) {
         | 
| 14 | 
            -
                super();
         | 
| 15 | 
            -
                this.state = {};
         | 
| 16 | 
            -
                this.initFromProps(props);
         | 
| 17 | 
            -
              }
         | 
| 18 | 
            -
              initFromProps(props) {
         | 
| 19 | 
            -
                if (_educoreapp.Tools.empty(props)) {
         | 
| 20 | 
            -
                  return;
         | 
| 21 | 
            -
                }
         | 
| 22 | 
            -
                //this.setState("onClick",props.onClick);
         | 
| 23 | 
            -
                this.state.onClick = props.onClick;
         | 
| 24 | 
            -
                this.state.backgroundColor = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.backgroundColor) ? props.backgroundColor : "blue";
         | 
| 25 | 
            -
                this.state.label = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.label) ? props.label : "";
         | 
| 26 | 
            -
              }
         | 
| 27 | 
            -
              render() {
         | 
| 28 | 
            -
                this.initFromProps(this.props);
         | 
| 29 | 
            -
                let props = this.state;
         | 
| 30 | 
            -
                return /*#__PURE__*/_react.default.createElement(_reactBootstrap.Button, {
         | 
| 31 | 
            -
                  style: {
         | 
| 32 | 
            -
                    width: "100%",
         | 
| 33 | 
            -
                    height: "100%",
         | 
| 34 | 
            -
                    backgroundColor: props.backgroundColor
         | 
| 35 | 
            -
                  },
         | 
| 36 | 
            -
                  onClick: event => props.onClick(),
         | 
| 37 | 
            -
                  className: "font-weight-bold"
         | 
| 38 | 
            -
                }, props.label);
         | 
| 39 | 
            -
              }
         | 
| 40 | 
            -
            }
         | 
| 41 | 
            -
            var _default = exports.default = BaseButton;
         | 
| @@ -1,48 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 11 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 12 | 
            -
            class BaseButtonCountry extends _react.Component {
         | 
| 13 | 
            -
              constructor(props) {
         | 
| 14 | 
            -
                super();
         | 
| 15 | 
            -
                this.states = {};
         | 
| 16 | 
            -
                this.initFromProps(props);
         | 
| 17 | 
            -
              }
         | 
| 18 | 
            -
              initFromProps(props) {
         | 
| 19 | 
            -
                if (_educoreapp.Tools.empty(props)) {
         | 
| 20 | 
            -
                  return;
         | 
| 21 | 
            -
                }
         | 
| 22 | 
            -
                //this.setState("onClick",props.onClick);
         | 
| 23 | 
            -
                this.states.onClick = props.onClick;
         | 
| 24 | 
            -
                this.states.backgroundColor = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.backgroundColor) ? props.backgroundColor : "inherit";
         | 
| 25 | 
            -
                this.states.label = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.label) ? props.label : "";
         | 
| 26 | 
            -
                this.states.width = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.width) ? props.width : "250px";
         | 
| 27 | 
            -
                this.states.height = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.height) ? props.height : "50px";
         | 
| 28 | 
            -
                this.states.photo = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.photo) ? props.photo : null;
         | 
| 29 | 
            -
              }
         | 
| 30 | 
            -
              render() {
         | 
| 31 | 
            -
                this.initFromProps(this.props);
         | 
| 32 | 
            -
                let props = this.states;
         | 
| 33 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", {
         | 
| 34 | 
            -
                  style: {
         | 
| 35 | 
            -
                    width: props.width,
         | 
| 36 | 
            -
                    height: props.height,
         | 
| 37 | 
            -
                    backgroundColor: props.backgroundColor
         | 
| 38 | 
            -
                  },
         | 
| 39 | 
            -
                  onClick: event => props.onClick(),
         | 
| 40 | 
            -
                  className: "font-weight-bold"
         | 
| 41 | 
            -
                }, /*#__PURE__*/_react.default.createElement(BaseImg, {
         | 
| 42 | 
            -
                  photo: props.photo,
         | 
| 43 | 
            -
                  width: props.width,
         | 
| 44 | 
            -
                  height: props.height
         | 
| 45 | 
            -
                }));
         | 
| 46 | 
            -
              }
         | 
| 47 | 
            -
            }
         | 
| 48 | 
            -
            var _default = exports.default = BaseButtonCountry;
         | 
| @@ -1,78 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            var _BaseImg = _interopRequireDefault(require("./BaseImg"));
         | 
| 11 | 
            -
            function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
         | 
| 12 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 13 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 14 | 
            -
            class BaseButtonIcon extends _react.Component {
         | 
| 15 | 
            -
              constructor(props) {
         | 
| 16 | 
            -
                super();
         | 
| 17 | 
            -
                this.states = {};
         | 
| 18 | 
            -
                this.initFromProps(props);
         | 
| 19 | 
            -
              }
         | 
| 20 | 
            -
              initFromProps(props) {
         | 
| 21 | 
            -
                if (_educoreapp.Tools.empty(props)) {
         | 
| 22 | 
            -
                  return;
         | 
| 23 | 
            -
                }
         | 
| 24 | 
            -
                //this.setState("onClick",props.onClick);
         | 
| 25 | 
            -
                this.states.onClick = props.onClick;
         | 
| 26 | 
            -
                this.states.backgroundColor = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.backgroundColor) ? props.backgroundColor : "inherit";
         | 
| 27 | 
            -
                this.states.label = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.label) ? props.label : "";
         | 
| 28 | 
            -
                this.states.width = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.width) ? props.width : "250px";
         | 
| 29 | 
            -
                this.states.height = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.height) ? props.height : "50px";
         | 
| 30 | 
            -
                this.states.photo = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.photo) ? props.photo : null;
         | 
| 31 | 
            -
              }
         | 
| 32 | 
            -
              render() {
         | 
| 33 | 
            -
                this.initFromProps(this.props);
         | 
| 34 | 
            -
                let props = this.states;
         | 
| 35 | 
            -
                let h100 = _educoreapp.Tools.copy(props.height, true);
         | 
| 36 | 
            -
                //console.log(props.height);
         | 
| 37 | 
            -
                let h2 = _educoreapp.Tools.DivSize(props.height, 75);
         | 
| 38 | 
            -
                let h25 = _educoreapp.Tools.DivSize(props.height, 25);
         | 
| 39 | 
            -
                let w2 = _educoreapp.Tools.DivSize(props.width, 50);
         | 
| 40 | 
            -
                let w4 = _educoreapp.Tools.DivSize(props.width, 25);
         | 
| 41 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", {
         | 
| 42 | 
            -
                  style: {
         | 
| 43 | 
            -
                    margin: "5px",
         | 
| 44 | 
            -
                    borderStyle: "solid",
         | 
| 45 | 
            -
                    borderColor: "black",
         | 
| 46 | 
            -
                    width: props.width,
         | 
| 47 | 
            -
                    height: props.height,
         | 
| 48 | 
            -
                    backgroundColor: props.backgroundColor
         | 
| 49 | 
            -
                  },
         | 
| 50 | 
            -
                  onClick: event => props.onClick(),
         | 
| 51 | 
            -
                  className: "font-weight-bold"
         | 
| 52 | 
            -
                }, /*#__PURE__*/_react.default.createElement("div", {
         | 
| 53 | 
            -
                  className: "row",
         | 
| 54 | 
            -
                  style: {
         | 
| 55 | 
            -
                    height: h2
         | 
| 56 | 
            -
                  }
         | 
| 57 | 
            -
                }, /*#__PURE__*/_react.default.createElement("div", {
         | 
| 58 | 
            -
                  style: {
         | 
| 59 | 
            -
                    width: w4
         | 
| 60 | 
            -
                  }
         | 
| 61 | 
            -
                }, " "), /*#__PURE__*/_react.default.createElement(_BaseImg.default, {
         | 
| 62 | 
            -
                  photo: props.photo,
         | 
| 63 | 
            -
                  width: w2,
         | 
| 64 | 
            -
                  height: "100%"
         | 
| 65 | 
            -
                }), /*#__PURE__*/_react.default.createElement("div", {
         | 
| 66 | 
            -
                  style: {
         | 
| 67 | 
            -
                    width: w4
         | 
| 68 | 
            -
                  }
         | 
| 69 | 
            -
                }, " ")), /*#__PURE__*/_react.default.createElement("div", {
         | 
| 70 | 
            -
                  className: "row",
         | 
| 71 | 
            -
                  style: {
         | 
| 72 | 
            -
                    height: h25,
         | 
| 73 | 
            -
                    color: "white"
         | 
| 74 | 
            -
                  }
         | 
| 75 | 
            -
                }, props.label));
         | 
| 76 | 
            -
              }
         | 
| 77 | 
            -
            }
         | 
| 78 | 
            -
            var _default = exports.default = BaseButtonIcon;
         | 
| @@ -1,66 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            var _BaseImg = _interopRequireDefault(require("./BaseImg"));
         | 
| 11 | 
            -
            function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
         | 
| 12 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 13 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 14 | 
            -
            class BaseButtonImage extends _react.Component {
         | 
| 15 | 
            -
              constructor(props) {
         | 
| 16 | 
            -
                super();
         | 
| 17 | 
            -
                this.states = {};
         | 
| 18 | 
            -
                this.initFromProps(props);
         | 
| 19 | 
            -
              }
         | 
| 20 | 
            -
              initFromProps(props) {
         | 
| 21 | 
            -
                if (_educoreapp.Tools.empty(props)) {
         | 
| 22 | 
            -
                  return;
         | 
| 23 | 
            -
                }
         | 
| 24 | 
            -
                //this.setState("onClick",props.onClick);
         | 
| 25 | 
            -
                this.states.onClick = props.onClick;
         | 
| 26 | 
            -
                this.states.backgroundColor = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.backgroundColor) ? props.backgroundColor : "inherit";
         | 
| 27 | 
            -
                this.states.label = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.label) ? props.label : "";
         | 
| 28 | 
            -
                this.states.width = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.width) ? props.width : "250px";
         | 
| 29 | 
            -
                this.states.height = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.height) ? props.height : "50px";
         | 
| 30 | 
            -
                this.states.photo = !_educoreapp.Tools.empty(props) && !_educoreapp.Tools.empty(props.photo) ? props.photo : null;
         | 
| 31 | 
            -
              }
         | 
| 32 | 
            -
              render() {
         | 
| 33 | 
            -
                this.initFromProps(this.props);
         | 
| 34 | 
            -
                let props = this.states;
         | 
| 35 | 
            -
             | 
| 36 | 
            -
                /*
         | 
| 37 | 
            -
                <Button style={{ width: "100%", height: "100%", 
         | 
| 38 | 
            -
                        backgroundColor: props.backgroundColor }} 
         | 
| 39 | 
            -
                        onClick={(event) => props.onClick()} className="font-weight-bold">
         | 
| 40 | 
            -
                        {props.label}
         | 
| 41 | 
            -
                    </Button>
         | 
| 42 | 
            -
                */
         | 
| 43 | 
            -
             | 
| 44 | 
            -
                /*
         | 
| 45 | 
            -
                <div style={{ width:props.width, height: props.height, 
         | 
| 46 | 
            -
                backgroundColor: props.backgroundColor }} 
         | 
| 47 | 
            -
                onClick={(event) => props.onClick()} className="font-weight-bold"
         | 
| 48 | 
            -
                ></div>
         | 
| 49 | 
            -
                 */
         | 
| 50 | 
            -
                //    ,backgroundImage:props.photo
         | 
| 51 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", {
         | 
| 52 | 
            -
                  style: {
         | 
| 53 | 
            -
                    width: props.width,
         | 
| 54 | 
            -
                    height: props.height,
         | 
| 55 | 
            -
                    backgroundColor: props.backgroundColor
         | 
| 56 | 
            -
                  },
         | 
| 57 | 
            -
                  onClick: event => props.onClick(),
         | 
| 58 | 
            -
                  className: "font-weight-bold"
         | 
| 59 | 
            -
                }, /*#__PURE__*/_react.default.createElement(_BaseImg.default, {
         | 
| 60 | 
            -
                  photo: props.photo,
         | 
| 61 | 
            -
                  width: props.width,
         | 
| 62 | 
            -
                  height: props.height
         | 
| 63 | 
            -
                }));
         | 
| 64 | 
            -
              }
         | 
| 65 | 
            -
            }
         | 
| 66 | 
            -
            var _default = exports.default = BaseButtonImage;
         | 
| @@ -1,95 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            var _BaseImg = _interopRequireDefault(require("./BaseImg"));
         | 
| 11 | 
            -
            function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
         | 
| 12 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 13 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 14 | 
            -
            class BaseCard extends _react.Component {
         | 
| 15 | 
            -
              constructor(props) {
         | 
| 16 | 
            -
                super();
         | 
| 17 | 
            -
                this.props = props;
         | 
| 18 | 
            -
              }
         | 
| 19 | 
            -
              render() {
         | 
| 20 | 
            -
                let backgroundColor = !_educoreapp.Tools.empty(this.props.backgroundColor) ? this.props.backgroundColor : "white";
         | 
| 21 | 
            -
                let color = !_educoreapp.Tools.empty(this.props.color) ? this.props.color : "black";
         | 
| 22 | 
            -
                let click = _educoreapp.Tools.IsFunction(this.props.click) ? this.props.click : function (ee) {};
         | 
| 23 | 
            -
             | 
| 24 | 
            -
                //style={{height:"25vh",width:"20vh"}} 
         | 
| 25 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", {
         | 
| 26 | 
            -
                  style: {
         | 
| 27 | 
            -
                    backgroundColor: backgroundColor,
         | 
| 28 | 
            -
                    color: color
         | 
| 29 | 
            -
                  },
         | 
| 30 | 
            -
                  onClick: event => click(event)
         | 
| 31 | 
            -
                }, /*#__PURE__*/_react.default.createElement("div", {
         | 
| 32 | 
            -
                  className: "row",
         | 
| 33 | 
            -
                  style: {
         | 
| 34 | 
            -
                    height: "25vh"
         | 
| 35 | 
            -
                  }
         | 
| 36 | 
            -
                }, /*#__PURE__*/_react.default.createElement("div", {
         | 
| 37 | 
            -
                  style: {
         | 
| 38 | 
            -
                    width: "40%"
         | 
| 39 | 
            -
                  }
         | 
| 40 | 
            -
                }), /*#__PURE__*/_react.default.createElement(_BaseImg.default, {
         | 
| 41 | 
            -
                  label: "Logo Edupanel.pl",
         | 
| 42 | 
            -
                  photo: this.props.src,
         | 
| 43 | 
            -
                  height: "100%",
         | 
| 44 | 
            -
                  width: "20%"
         | 
| 45 | 
            -
                })), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Body, {
         | 
| 46 | 
            -
                  style: {
         | 
| 47 | 
            -
                    backgroundColor: backgroundColor,
         | 
| 48 | 
            -
                    color: color
         | 
| 49 | 
            -
                  }
         | 
| 50 | 
            -
                }, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Title, {
         | 
| 51 | 
            -
                  style: {
         | 
| 52 | 
            -
                    textAlign: "center"
         | 
| 53 | 
            -
                  }
         | 
| 54 | 
            -
                }, /*#__PURE__*/_react.default.createElement("h1", null, this.props.title)), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Text, {
         | 
| 55 | 
            -
                  dangerouslySetInnerHTML: {
         | 
| 56 | 
            -
                    __html: this.props.text
         | 
| 57 | 
            -
                  }
         | 
| 58 | 
            -
                })));
         | 
| 59 | 
            -
              }
         | 
| 60 | 
            -
              render2() {
         | 
| 61 | 
            -
                let backgroundColor = !_educoreapp.Tools.empty(this.props.backgroundColor) ? this.props.backgroundColor : "white";
         | 
| 62 | 
            -
                let color = !_educoreapp.Tools.empty(this.props.color) ? this.props.color : "black";
         | 
| 63 | 
            -
                let click = _educoreapp.Tools.IsFunction(this.props.click) ? this.props.click : function (ee) {};
         | 
| 64 | 
            -
                return /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card, {
         | 
| 65 | 
            -
                  style: {
         | 
| 66 | 
            -
                    backgroundColor: backgroundColor,
         | 
| 67 | 
            -
                    color: color
         | 
| 68 | 
            -
                  },
         | 
| 69 | 
            -
                  onClick: event => click(event)
         | 
| 70 | 
            -
                }, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Img, {
         | 
| 71 | 
            -
                  style: {
         | 
| 72 | 
            -
                    position: 'relative',
         | 
| 73 | 
            -
                    left: "25vw",
         | 
| 74 | 
            -
                    height: "25vh",
         | 
| 75 | 
            -
                    width: "25vw"
         | 
| 76 | 
            -
                  },
         | 
| 77 | 
            -
                  variant: "top",
         | 
| 78 | 
            -
                  src: this.props.src
         | 
| 79 | 
            -
                }), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Body, {
         | 
| 80 | 
            -
                  style: {
         | 
| 81 | 
            -
                    backgroundColor: backgroundColor,
         | 
| 82 | 
            -
                    color: color
         | 
| 83 | 
            -
                  }
         | 
| 84 | 
            -
                }, /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Title, {
         | 
| 85 | 
            -
                  style: {
         | 
| 86 | 
            -
                    textAlign: "center"
         | 
| 87 | 
            -
                  }
         | 
| 88 | 
            -
                }, this.props.title), /*#__PURE__*/_react.default.createElement(_reactBootstrap.Card.Text, {
         | 
| 89 | 
            -
                  dangerouslySetInnerHTML: {
         | 
| 90 | 
            -
                    __html: this.props.text
         | 
| 91 | 
            -
                  }
         | 
| 92 | 
            -
                })));
         | 
| 93 | 
            -
              }
         | 
| 94 | 
            -
            }
         | 
| 95 | 
            -
            var _default = exports.default = BaseCard;
         | 
| @@ -1,33 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireWildcard(require("react"));
         | 
| 8 | 
            -
            var _reactBootstrap = require("react-bootstrap");
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            var _BaseImg = _interopRequireDefault(require("./BaseImg"));
         | 
| 11 | 
            -
            function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
         | 
| 12 | 
            -
            function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
         | 
| 13 | 
            -
            function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
         | 
| 14 | 
            -
            class BaseCenter extends _react.Component {
         | 
| 15 | 
            -
              constructor(props) {
         | 
| 16 | 
            -
                super();
         | 
| 17 | 
            -
                this.props = props;
         | 
| 18 | 
            -
              }
         | 
| 19 | 
            -
              render() {
         | 
| 20 | 
            -
                let backgroundColor = !_educoreapp.Tools.empty(this.props.backgroundColor) ? this.props.backgroundColor : "white";
         | 
| 21 | 
            -
                let color = !_educoreapp.Tools.empty(this.props.color) ? this.props.color : "black";
         | 
| 22 | 
            -
                let click = _educoreapp.Tools.IsFunction(this.props.click) ? this.props.click : function (ee) {};
         | 
| 23 | 
            -
                //style={{height:"25vh",width:"20vh"}} 
         | 
| 24 | 
            -
                return /*#__PURE__*/_react.default.createElement("div", {
         | 
| 25 | 
            -
                  className: "row h-100"
         | 
| 26 | 
            -
                }, /*#__PURE__*/_react.default.createElement("div", {
         | 
| 27 | 
            -
                  className: "d-hide col-sm-1 col-md-1 col-lg-2 "
         | 
| 28 | 
            -
                }), /*#__PURE__*/_react.default.createElement("div", {
         | 
| 29 | 
            -
                  className: "col-xs-12 col-sm-10 col-md-10  col-lg-8 h-100"
         | 
| 30 | 
            -
                }, this.props.children));
         | 
| 31 | 
            -
              }
         | 
| 32 | 
            -
            }
         | 
| 33 | 
            -
            var _default = exports.default = BaseCenter;
         | 
| @@ -1,48 +0,0 @@ | |
| 1 | 
            -
            "use strict";
         | 
| 2 | 
            -
             | 
| 3 | 
            -
            Object.defineProperty(exports, "__esModule", {
         | 
| 4 | 
            -
              value: true
         | 
| 5 | 
            -
            });
         | 
| 6 | 
            -
            exports.default = void 0;
         | 
| 7 | 
            -
            var _react = _interopRequireDefault(require("react"));
         | 
| 8 | 
            -
            var _propTypes = _interopRequireDefault(require("prop-types"));
         | 
| 9 | 
            -
            var _educoreapp = require("educoreapp2");
         | 
| 10 | 
            -
            function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
         | 
| 11 | 
            -
            class BaseError extends _react.default.Component {
         | 
| 12 | 
            -
              render() {
         | 
| 13 | 
            -
                let {
         | 
| 14 | 
            -
                  text,
         | 
| 15 | 
            -
                  color,
         | 
| 16 | 
            -
                  font,
         | 
| 17 | 
            -
                  size,
         | 
| 18 | 
            -
                  data
         | 
| 19 | 
            -
                } = this.props;
         | 
| 20 | 
            -
                if (!_educoreapp.Tools.empty(data)) {
         | 
| 21 | 
            -
                  color = data.color;
         | 
| 22 | 
            -
                  font = data.font;
         | 
| 23 | 
            -
                  size = data.font_size;
         | 
| 24 | 
            -
                  text = data.text;
         | 
| 25 | 
            -
                }
         | 
| 26 | 
            -
                const labelStyle = {
         | 
| 27 | 
            -
                  color: color,
         | 
| 28 | 
            -
                  fontFamily: font,
         | 
| 29 | 
            -
                  fontSize: size
         | 
| 30 | 
            -
                  //textAlign:"center"
         | 
| 31 | 
            -
                };
         | 
| 32 | 
            -
                return /*#__PURE__*/_react.default.createElement("label", {
         | 
| 33 | 
            -
                  style: labelStyle
         | 
| 34 | 
            -
                }, text);
         | 
| 35 | 
            -
              }
         | 
| 36 | 
            -
            }
         | 
| 37 | 
            -
            BaseError.propTypes = {
         | 
| 38 | 
            -
              content: _propTypes.default.string,
         | 
| 39 | 
            -
              color: _propTypes.default.string,
         | 
| 40 | 
            -
              font: _propTypes.default.string,
         | 
| 41 | 
            -
              size: _propTypes.default.string
         | 
| 42 | 
            -
            };
         | 
| 43 | 
            -
            BaseError.defaultProps = {
         | 
| 44 | 
            -
              color: 'red',
         | 
| 45 | 
            -
              font: 'Arial',
         | 
| 46 | 
            -
              size: '14px'
         | 
| 47 | 
            -
            };
         | 
| 48 | 
            -
            var _default = exports.default = BaseError;
         |