diff --git a/frontend/.metro-cache/cache/1d/bfede4ad58bebf501be15937adae2bcd4e1f37a8aa81c970876fca941c9a768891b9f6 b/frontend/.metro-cache/cache/1d/bfede4ad58bebf501be15937adae2bcd4e1f37a8aa81c970876fca941c9a768891b9f6 new file mode 100644 index 00000000..669c8851 --- /dev/null +++ b/frontend/.metro-cache/cache/1d/bfede4ad58bebf501be15937adae2bcd4e1f37a8aa81c970876fca941c9a768891b9f6 @@ -0,0 +1 @@ +{"dependencies":[{"name":"@babel/runtime/helpers/asyncToGenerator","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"YisBBiy2Xm9DEVdFebZ2nbgAHBo=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/classCallCheck","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"yg7e6laZwmpbIvId5jovq9ugXp8=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/createClass","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"Z6pzkVZ2fvxBLkFTgVVOy4UDj30=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/callSuper","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"378KbBHdmndC3iMXZ2Ix8oB3LeE=","exportNames":["*"],"imports":1}},{"name":"@babel/runtime/helpers/inherits","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"y0uNg4LxF1CLscQChxzgo5dfjvA=","exportNames":["*"],"imports":1}},{"name":"expo-modules-core","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":66,"index":66}}],"key":"fU8WLIPqoAGygnPbZ/QJiQQfXEY=","exportNames":["*"],"imports":1}},{"name":"react","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":2,"column":0,"index":67},"end":{"line":2,"column":45,"index":112}}],"key":"RtGiGa+/H7VrI7GDQDLhO1UbpU8=","exportNames":["*"],"imports":1}},{"name":"./ExpoCamera","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":113},"end":{"line":3,"column":38,"index":151}}],"key":"7VL16dFFp4b+wyYwZ4leyXXwJPs=","exportNames":["*"],"imports":1}},{"name":"./ExpoCameraManager","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":4,"column":0,"index":152},"end":{"line":4,"column":48,"index":200}}],"key":"ncVp/2U6oYCljIxCrL01g7ykEIk=","exportNames":["*"],"imports":1}},{"name":"./utils/props","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":5,"column":0,"index":201},"end":{"line":5,"column":68,"index":269}}],"key":"3YYapxwMFrnsJM/mAdwZWAGGiEw=","exportNames":["*"],"imports":1}},{"name":"react/jsx-dev-runtime","data":{"asyncType":null,"isESMImport":false,"locs":[],"key":"L9D70Z4hi4aGuui1ysja/oQ5ytI=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n var _jsxFileName = \"/app/frontend/node_modules/expo-camera/build/CameraView.js\";\n Object.defineProperty(exports, '__esModule', {\n value: true\n });\n function _interopDefault(e) {\n return e && e.__esModule ? e : {\n default: e\n };\n }\n Object.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function () {\n return CameraView;\n }\n });\n var _babelRuntimeHelpersAsyncToGenerator = require(_dependencyMap[0], \"@babel/runtime/helpers/asyncToGenerator\");\n var _asyncToGenerator = _interopDefault(_babelRuntimeHelpersAsyncToGenerator);\n var _babelRuntimeHelpersClassCallCheck = require(_dependencyMap[1], \"@babel/runtime/helpers/classCallCheck\");\n var _classCallCheck = _interopDefault(_babelRuntimeHelpersClassCallCheck);\n var _babelRuntimeHelpersCreateClass = require(_dependencyMap[2], \"@babel/runtime/helpers/createClass\");\n var _createClass = _interopDefault(_babelRuntimeHelpersCreateClass);\n var _babelRuntimeHelpersCallSuper = require(_dependencyMap[3], \"@babel/runtime/helpers/callSuper\");\n var _callSuper = _interopDefault(_babelRuntimeHelpersCallSuper);\n var _babelRuntimeHelpersInherits = require(_dependencyMap[4], \"@babel/runtime/helpers/inherits\");\n var _inherits = _interopDefault(_babelRuntimeHelpersInherits);\n var _expoModulesCore = require(_dependencyMap[5], \"expo-modules-core\");\n var _react = require(_dependencyMap[6], \"react\");\n var _ExpoCamera = require(_dependencyMap[7], \"./ExpoCamera\");\n var ExpoCamera = _interopDefault(_ExpoCamera);\n var _ExpoCameraManager = require(_dependencyMap[8], \"./ExpoCameraManager\");\n var CameraManager = _interopDefault(_ExpoCameraManager);\n var _utilsProps = require(_dependencyMap[9], \"./utils/props\");\n var _reactJsxDevRuntime = require(_dependencyMap[10], \"react/jsx-dev-runtime\");\n var EventThrottleMs = 500;\n var _PICTURE_SAVED_CALLBACKS = {};\n var loggedRenderingChildrenWarning = false;\n var _GLOBAL_PICTURE_ID = 1;\n function ensurePictureOptions(options) {\n if (!options || typeof options !== 'object') {\n return {};\n }\n if (options.quality === undefined) {\n options.quality = 1;\n }\n if (options.mirror) {\n console.warn('The `mirror` option is deprecated. Please use the `mirror` prop on the `CameraView` instead.');\n }\n if (options.onPictureSaved) {\n var id = _GLOBAL_PICTURE_ID++;\n _PICTURE_SAVED_CALLBACKS[id] = options.onPictureSaved;\n options.id = id;\n options.fastMode = true;\n }\n return options;\n }\n function ensureRecordingOptions() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n if (!options || typeof options !== 'object') {\n return {};\n }\n if (options.mirror) {\n console.warn('The `mirror` option is deprecated. Please use the `mirror` prop on the `CameraView` instead.');\n }\n return options;\n }\n function _onPictureSaved(_ref) {\n var nativeEvent = _ref.nativeEvent;\n var id = nativeEvent.id,\n data = nativeEvent.data;\n var callback = _PICTURE_SAVED_CALLBACKS[id];\n if (callback) {\n callback(data);\n delete _PICTURE_SAVED_CALLBACKS[id];\n }\n }\n var CameraView = /*#__PURE__*/function (_Component) {\n function CameraView() {\n var _this;\n (0, _classCallCheck.default)(this, CameraView);\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n _this = (0, _callSuper.default)(this, CameraView, [...args]);\n _this._cameraRef = /*#__PURE__*/(0, _react.createRef)();\n _this._lastEvents = {};\n _this._lastEventsTimes = {};\n _this._onCameraReady = () => {\n if (_this.props.onCameraReady) {\n _this.props.onCameraReady();\n }\n };\n _this._onAvailableLensesChanged = _ref2 => {\n var nativeEvent = _ref2.nativeEvent;\n if (_this.props.onAvailableLensesChanged) {\n _this.props.onAvailableLensesChanged(nativeEvent);\n }\n };\n _this._onMountError = _ref3 => {\n var nativeEvent = _ref3.nativeEvent;\n if (_this.props.onMountError) {\n _this.props.onMountError(nativeEvent);\n }\n };\n _this._onResponsiveOrientationChanged = _ref4 => {\n var nativeEvent = _ref4.nativeEvent;\n if (_this.props.onResponsiveOrientationChanged) {\n _this.props.onResponsiveOrientationChanged(nativeEvent);\n }\n };\n _this._onObjectDetected = callback => _ref5 => {\n var nativeEvent = _ref5.nativeEvent;\n var type = nativeEvent.type;\n if (_this._lastEvents[type] && _this._lastEventsTimes[type] && JSON.stringify(nativeEvent) === _this._lastEvents[type] && new Date().getTime() - _this._lastEventsTimes[type].getTime() < EventThrottleMs) {\n return;\n }\n if (callback) {\n callback(nativeEvent);\n _this._lastEventsTimes[type] = new Date();\n _this._lastEvents[type] = JSON.stringify(nativeEvent);\n }\n };\n _this._setReference = ref => {\n if (ref) {\n // TODO(Bacon): Unify these - perhaps with hooks?\n if (_expoModulesCore.Platform.OS === 'web') {\n _this._cameraHandle = ref;\n }\n }\n };\n return _this;\n }\n (0, _inherits.default)(CameraView, _Component);\n return (0, _createClass.default)(CameraView, [{\n key: \"getAvailablePictureSizesAsync\",\n value: (\n /**\n * Get picture sizes that are supported by the device.\n * @return Returns a Promise that resolves to an array of strings representing picture sizes that can be passed to `pictureSize` prop.\n * The list varies across Android devices but is the same for every iOS.\n */\n function () {\n var _getAvailablePictureSizesAsync = (0, _asyncToGenerator.default)(function* () {\n return (yield this._cameraRef.current?.getAvailablePictureSizes()) ?? [];\n });\n function getAvailablePictureSizesAsync() {\n return _getAvailablePictureSizesAsync.apply(this, arguments);\n }\n return getAvailablePictureSizesAsync;\n }()\n /**\n * Returns the available lenses for the currently selected camera.\n *\n * @return Returns a Promise that resolves to an array of strings representing the lens type that can be passed to `selectedLens` prop.\n * @platform ios\n */\n )\n }, {\n key: \"getAvailableLensesAsync\",\n value: (function () {\n var _getAvailableLensesAsync = (0, _asyncToGenerator.default)(function* () {\n return (yield this._cameraRef.current?.getAvailableLenses()) ?? [];\n });\n function getAvailableLensesAsync() {\n return _getAvailableLensesAsync.apply(this, arguments);\n }\n return getAvailableLensesAsync;\n }()\n /**\n * Returns an object with the supported features of the camera on the current device.\n */\n )\n }, {\n key: \"getSupportedFeatures\",\n value: function getSupportedFeatures() {\n return {\n isModernBarcodeScannerAvailable: CameraManager.default.isModernBarcodeScannerAvailable,\n toggleRecordingAsyncAvailable: CameraManager.default.toggleRecordingAsyncAvailable\n };\n }\n /**\n * Resumes the camera preview.\n */\n }, {\n key: \"resumePreview\",\n value: (function () {\n var _resumePreview = (0, _asyncToGenerator.default)(function* () {\n return this._cameraRef.current?.resumePreview();\n });\n function resumePreview() {\n return _resumePreview.apply(this, arguments);\n }\n return resumePreview;\n }()\n /**\n * Pauses the camera preview. It is not recommended to use `takePictureAsync` when preview is paused.\n */\n )\n }, {\n key: \"pausePreview\",\n value: (function () {\n var _pausePreview = (0, _asyncToGenerator.default)(function* () {\n return this._cameraRef.current?.pausePreview();\n });\n function pausePreview() {\n return _pausePreview.apply(this, arguments);\n }\n return pausePreview;\n }() // Values under keys from this object will be transformed to native options\n )\n }, {\n key: \"takePictureAsync\",\n value: function () {\n var _takePictureAsync = (0, _asyncToGenerator.default)(function* (options) {\n var pictureOptions = ensurePictureOptions(options);\n if (_expoModulesCore.Platform.OS === 'ios' && options?.pictureRef) {\n return this._cameraRef.current?.takePictureRef?.(options);\n }\n return this._cameraRef.current?.takePicture(pictureOptions);\n });\n function takePictureAsync(_x) {\n return _takePictureAsync.apply(this, arguments);\n }\n return takePictureAsync;\n }()\n /**\n * On Android, we will use the [Google code scanner](https://developers.google.com/ml-kit/vision/barcode-scanning/code-scanner).\n * On iOS, presents a modal view controller that uses the [`DataScannerViewController`](https://developer.apple.com/documentation/visionkit/scanning_data_with_the_camera) available on iOS 16+.\n * @platform android\n * @platform ios\n */\n }, {\n key: \"recordAsync\",\n value: (\n /**\n * Starts recording a video that will be saved to cache directory. Videos are rotated to match device's orientation.\n * Flipping camera during a recording results in stopping it.\n * @param options A map of `CameraRecordingOptions` type.\n * @return Returns a Promise that resolves to an object containing video file `uri` property and a `codec` property on iOS.\n * The Promise is returned if `stopRecording` was invoked, one of `maxDuration` and `maxFileSize` is reached or camera preview is stopped.\n * @platform android\n * @platform ios\n */\n function () {\n var _recordAsync = (0, _asyncToGenerator.default)(function* (options) {\n var recordingOptions = ensureRecordingOptions(options);\n return this._cameraRef.current?.record(recordingOptions);\n });\n function recordAsync(_x2) {\n return _recordAsync.apply(this, arguments);\n }\n return recordAsync;\n }()\n /**\n * Pauses or resumes the video recording. Only has an effect if there is an active recording. On `iOS`, this method only supported on `iOS` 18.\n *\n * @example\n * ```ts\n * const { toggleRecordingAsyncAvailable } = getSupportedFeatures()\n *\n * return (\n * {toggleRecordingAsyncAvailable && (\n *