import { s as styleInject, u as useViewHandler } from './index-bbdfb97a.js';
import { useTranslation } from '@crystaldesign/diva-core';
import { observer } from 'mobx-react-lite';
import 'react';
import { jsxs, jsx } from 'react/jsx-runtime';
import '@babel/runtime/helpers/defineProperty';
import 'react-dynamic-multi-render';
import '@babel/runtime/helpers/asyncToGenerator';
import '@babel/runtime/helpers/slicedToArray';
import '@babel/runtime/helpers/objectWithoutProperties';
import '@babel/runtime/regenerator';
import '@babel/runtime/helpers/classCallCheck';
import '@babel/runtime/helpers/createClass';
import '@babel/runtime/helpers/toConsumableArray';
import '@crystaldesign/diva-utils';
import 'mobx';
import '@crystaldesign/web-planner-logic';
import 'classnames';
import 'qrcode.react';
import '@babel/runtime/helpers/typeof';
import 'flat';
import 'react-switch';
import 'react-countup';

var wrapper = "wrapper-XGE9U";
var css_248z = ".wrapper-XGE9U {\n  position: absolute;\n  bottom: 0;\n  right: 20px;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  font-size: 12px;\n  cursor: pointer;\n}\n";
styleInject(css_248z);

var DontReopenAutomatically = function DontReopenAutomatically(props) {
  var _useTranslation = useTranslation(),
    t = _useTranslation.t;
  var viewHandler = useViewHandler();
  return /*#__PURE__*/jsxs("div", {
    className: wrapper,
    onClick: function onClick() {
      return viewHandler.settingsState.setDontReopenAutomatically(!viewHandler.settingsState.dontReopenAutomatically);
    },
    children: [/*#__PURE__*/jsx("div", {
      children: t('configurator.dontReopenAutomatically')
    }), /*#__PURE__*/jsx("input", {
      type: "checkbox",
      checked: viewHandler.settingsState.dontReopenAutomatically
    })]
  });
};
var index = observer(DontReopenAutomatically);

export { index as default };
