Files
doneit-web/.angular/cache/14.2.12/babel-webpack/e210354464e30e5483fc698254f776ef.json
T

1 line
16 KiB
JSON
Raw Normal View History

2023-06-30 09:54:21 +01:00
{"ast":null,"code":"import { __extends } from \"tslib\";\nimport { Injectable } from '@angular/core';\nimport { IonicNativePlugin, cordova } from '@ionic-native/core';\nimport * as ɵngcc0 from '@angular/core';\nexport var DestinationType;\n(function (DestinationType) {\n DestinationType[DestinationType[\"DATA_URL\"] = 0] = \"DATA_URL\";\n DestinationType[DestinationType[\"FILE_URL\"] = 1] = \"FILE_URL\";\n DestinationType[DestinationType[\"NATIVE_URI\"] = 2] = \"NATIVE_URI\";\n})(DestinationType || (DestinationType = {}));\nexport var EncodingType;\n(function (EncodingType) {\n EncodingType[EncodingType[\"JPEG\"] = 0] = \"JPEG\";\n EncodingType[EncodingType[\"PNG\"] = 1] = \"PNG\";\n})(EncodingType || (EncodingType = {}));\nexport var MediaType;\n(function (MediaType) {\n MediaType[MediaType[\"PICTURE\"] = 0] = \"PICTURE\";\n MediaType[MediaType[\"VIDEO\"] = 1] = \"VIDEO\";\n MediaType[MediaType[\"ALLMEDIA\"] = 2] = \"ALLMEDIA\";\n})(MediaType || (MediaType = {}));\nexport var PictureSourceType;\n(function (PictureSourceType) {\n PictureSourceType[PictureSourceType[\"PHOTOLIBRARY\"] = 0] = \"PHOTOLIBRARY\";\n PictureSourceType[PictureSourceType[\"CAMERA\"] = 1] = \"CAMERA\";\n PictureSourceType[PictureSourceType[\"SAVEDPHOTOALBUM\"] = 2] = \"SAVEDPHOTOALBUM\";\n})(PictureSourceType || (PictureSourceType = {}));\nexport var PopoverArrowDirection;\n(function (PopoverArrowDirection) {\n PopoverArrowDirection[PopoverArrowDirection[\"ARROW_UP\"] = 1] = \"ARROW_UP\";\n PopoverArrowDirection[PopoverArrowDirection[\"ARROW_DOWN\"] = 2] = \"ARROW_DOWN\";\n PopoverArrowDirection[PopoverArrowDirection[\"ARROW_LEFT\"] = 3] = \"ARROW_LEFT\";\n PopoverArrowDirection[PopoverArrowDirection[\"ARROW_RIGHT\"] = 4] = \"ARROW_RIGHT\";\n PopoverArrowDirection[PopoverArrowDirection[\"ARROW_ANY\"] = 5] = \"ARROW_ANY\";\n})(PopoverArrowDirection || (PopoverArrowDirection = {}));\nexport var Direction;\n(function (Direction) {\n Direction[Direction[\"BACK\"] = 0] = \"BACK\";\n Direction[Direction[\"FRONT\"] = 1] = \"FRONT\";\n})(Direction || (Direction = {}));\nvar Camera = /** @class */function (_super) {\n __extends(Camera, _super);\n function Camera() {\n var _this = _super !== null && _super.apply(this, arguments) || this;\n /**\n * Constant for possible destination types\n */\n _this.DestinationType = {\n /** Return base64 encoded string. DATA_URL can be very memory intensive and cause app crashes or out of memory errors. Use FILE_URI or NATIVE_URI if possible */\n DATA_URL: 0,\n /** Return file uri (content://media/external/images/media/2 for Android) */\n FILE_URI: 1,\n /** Return native uri (eg. asset-library://... for iOS) */\n NATIVE_URI: 2\n };\n /**\n * Convenience constant\n */\n _this.EncodingType = {\n /** Return JPEG encoded image */\n JPEG: 0,\n /** Return PNG encoded image */\n PNG: 1\n };\n /**\n * Convenience constant\n */\n _this.MediaType = {\n /** Allow selection of still pictures only. DEFAULT. Will return format specified via DestinationType */\n PICTURE: 0,\n /** Allow selection of video only, ONLY RETURNS URL */\n VIDEO: 1,\n /** Allow selection from all media types */\n ALLMEDIA: 2\n };\n /**\n * Convenience constant\n */\n _this.PictureSourceType = {\n /** Choose image from picture library (same as PHOTOLIBRARY for Android) */\n PHOTOLIBRARY: 0,\n /** Take picture from camera */\n CAMERA: 1,\n /** Choose image from picture library (same as SAVEDPHOTOALBUM for Android) */\n SAVEDPHOTOALBUM: 2\n };\n /**\n * Convenience constant\n */\n _this.PopoverArrowDirection = {\n ARROW_UP: 1,\n ARROW_DOWN: 2,\n ARROW_LEFT: 4,\n ARROW_RIGHT: 8,\n ARROW_ANY: 15\n };\n /**\n * Convenience constant\n */\n _this.Direction = {\n /** Use the back-facing camera */\n BACK: 0,\n /** Use the front-facing camera */\n FRONT: 1\n };\n return _this;\n }\n Camera.pr