"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkYHXSJVBNcjs = require('./chunk-YHXSJVBN.cjs');


var _chunkOM4IBALUcjs = require('./chunk-OM4IBALU.cjs');



var _chunkZ6EUSUADcjs = require('./chunk-Z6EUSUAD.cjs');

// src/components/QRReader/QRReader.tsx
var _jsxruntime = require('@emotion/react/jsx-runtime');
function QRReader({
  videoContainerStyle = {},
  containerStyle = {},
  videoStyle = {},
  constraints,
  scanDelay,
  className,
  onResult,
  videoId
}) {
  _chunkYHXSJVBNcjs.useQRReader.call(void 0, {
    constraints,
    scanDelay,
    onResult,
    videoId
  });
  return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "section", { className, style: containerStyle, children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
    "div",
    {
      style: _chunkZ6EUSUADcjs.__spreadValues.call(void 0, _chunkZ6EUSUADcjs.__spreadValues.call(void 0, {}, _chunkOM4IBALUcjs.styles.container), videoContainerStyle),
      children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
        "video",
        {
          muted: true,
          id: videoId,
          style: _chunkZ6EUSUADcjs.__spreadProps.call(void 0, _chunkZ6EUSUADcjs.__spreadValues.call(void 0, _chunkZ6EUSUADcjs.__spreadValues.call(void 0, {}, _chunkOM4IBALUcjs.styles.video), videoStyle), {
            transform: (constraints == null ? void 0 : constraints.facingMode) === "user" ? "scaleX(-1)" : void 0
          })
        }
      )
    }
  ) });
}
QRReader.displayName = "QRReader";
QRReader.defaultProps = {
  constraints: {
    facingMode: "user"
  },
  videoId: "video",
  scanDelay: 500
};



exports.QRReader = QRReader;
