1 |
- {"ast":null,"code":"var __extends = this && this.__extends || function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf || {\n __proto__: []\n } instanceof Array && function (d, b) {\n d.__proto__ = b;\n } || function (d, b) {\n for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];\n };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null) throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() {\n this.constructor = d;\n }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n}();\nimport { AwesomeCordovaNativePlugin, cordova, cordovaPropertyGet, cordovaPropertySet } from '@awesome-cordova-plugins/core';\nimport { Observable } from 'rxjs';\nvar MediaCaptureOriginal = /** @class */function (_super) {\n __extends(MediaCaptureOriginal, _super);\n function MediaCaptureOriginal() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MediaCaptureOriginal.prototype.captureAudio = function (options) {\n return cordova(this, \"captureAudio\", {\n \"callbackOrder\": \"reverse\"\n }, arguments);\n };\n MediaCaptureOriginal.prototype.captureImage = function (options) {\n return cordova(this, \"captureImage\", {\n \"callbackOrder\": \"reverse\"\n }, arguments);\n };\n MediaCaptureOriginal.prototype.captureVideo = function (options) {\n return cordova(this, \"captureVideo\", {\n \"callbackOrder\": \"reverse\"\n }, arguments);\n };\n MediaCaptureOriginal.prototype.onPendingCaptureResult = function () {\n return cordova(this, \"onPendingCaptureResult\", {\n \"eventObservable\": true,\n \"event\": \"pendingcaptureresult\"\n }, arguments);\n };\n MediaCaptureOriginal.prototype.onPendingCaptureError = function () {\n return cordova(this, \"onPendingCaptureError\", {\n \"eventObservable\": true,\n \"event\": \"pendingcaptureerror\"\n }, arguments);\n };\n Object.defineProperty(MediaCaptureOriginal.prototype, \"supportedImageModes\", {\n get: function () {\n return cordovaPropertyGet(this, \"supportedImageModes\");\n },\n set: function (value) {\n cordovaPropertySet(this, \"supportedImageModes\", value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MediaCaptureOriginal.prototype, \"supportedAudioModes\", {\n get: function () {\n return cordovaPropertyGet(this, \"supportedAudioModes\");\n },\n set: function (value) {\n cordovaPropertySet(this, \"supportedAudioModes\", value);\n },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MediaCaptureOriginal.prototype, \"supportedVideoModes\", {\n get: function () {\n return cordovaPropertyGet(this, \"supportedVideoModes\");\n },\n set: function (value) {\n cordovaPropertySet(this, \"supportedVideoModes\", value);\n },\n enumerable: false,\n configurable: true\n });\n MediaCaptureOriginal.pluginName = \"MediaCapture\";\n MediaCaptureOriginal.plugin = \"cordova-plugin-media-capture\";\n MediaCaptureOriginal.pluginRef = \"navigator.device.capture\";\n MediaCaptureOriginal.repo = \"https://github.com/apache/cordova-plugin-media-capture\";\n MediaCaptureOriginal.platforms = [\"Android\", \"Browser\", \"iOS\", \"Windows\"];\n return MediaCaptureOriginal;\n}(AwesomeCordovaNativePlugin);\nvar MediaCapture = new MediaCaptureOriginal();\nexport { MediaCapture };","map":{"version":3,"names":["__extends","extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","TypeError","String","__","constructor","create","AwesomeCordovaNativePlugin","cordova","cordovaPropertyGet","cordovaPropertySet","Observable","MediaCaptureOriginal","_super","apply","arguments","captureAudio","options","captureImage","captureVideo","onPendingCaptureResult","onPendingCaptureError","defineProperty","get","set","value","enumerable","configurable","pluginName","plugin","pluginRef","repo","platforms","MediaCapture"],"sources":["F:/workspace/202226701027/huinongbao-app/node_modules/@awesome-cordova-plugins/media-capture/index.js"],"sourcesContent":["var __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nimport { AwesomeCordovaNativePlugin, cordova, cordovaPropertyGet, cordovaPropertySet } from '@awesome-cordova-plugins/core';\nimport { Observable } from 'rxjs';\nvar MediaCaptureOriginal = /** @class */ (function (_super) {\n __extends(MediaCaptureOriginal, _super);\n function MediaCaptureOriginal() {\n return _super !== null && _super.apply(this, arguments) || this;\n }\n MediaCaptureOriginal.prototype.captureAudio = function (options) { return cordova(this, \"captureAudio\", { \"callbackOrder\": \"reverse\" }, arguments); };\n MediaCaptureOriginal.prototype.captureImage = function (options) { return cordova(this, \"captureImage\", { \"callbackOrder\": \"reverse\" }, arguments); };\n MediaCaptureOriginal.prototype.captureVideo = function (options) { return cordova(this, \"captureVideo\", { \"callbackOrder\": \"reverse\" }, arguments); };\n MediaCaptureOriginal.prototype.onPendingCaptureResult = function () { return cordova(this, \"onPendingCaptureResult\", { \"eventObservable\": true, \"event\": \"pendingcaptureresult\" }, arguments); };\n MediaCaptureOriginal.prototype.onPendingCaptureError = function () { return cordova(this, \"onPendingCaptureError\", { \"eventObservable\": true, \"event\": \"pendingcaptureerror\" }, arguments); };\n Object.defineProperty(MediaCaptureOriginal.prototype, \"supportedImageModes\", {\n get: function () { return cordovaPropertyGet(this, \"supportedImageModes\"); },\n set: function (value) { cordovaPropertySet(this, \"supportedImageModes\", value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MediaCaptureOriginal.prototype, \"supportedAudioModes\", {\n get: function () { return cordovaPropertyGet(this, \"supportedAudioModes\"); },\n set: function (value) { cordovaPropertySet(this, \"supportedAudioModes\", value); },\n enumerable: false,\n configurable: true\n });\n Object.defineProperty(MediaCaptureOriginal.prototype, \"supportedVideoModes\", {\n get: function () { return cordovaPropertyGet(this, \"supportedVideoModes\"); },\n set: function (value) { cordovaPropertySet(this, \"supportedVideoModes\", value); },\n enumerable: false,\n configurable: true\n });\n MediaCaptureOriginal.pluginName = \"MediaCapture\";\n MediaCaptureOriginal.plugin = \"cordova-plugin-media-capture\";\n MediaCaptureOriginal.pluginRef = \"navigator.device.capture\";\n MediaCaptureOriginal.repo = \"https://github.com/apache/cordova-plugin-media-capture\";\n MediaCaptureOriginal.platforms = [\"Android\", \"Browser\", \"iOS\", \"Windows\"];\n return MediaCaptureOriginal;\n}(AwesomeCordovaNativePlugin));\nvar MediaCapture = new MediaCaptureOriginal();\nexport { MediaCapture };\n"],"mappings":"AAAA,IAAIA,SAAS,GAAI,IAAI,IAAI,IAAI,CAACA,SAAS,IAAM,YAAY;EACrD,IAAIC,aAAa,GAAG,SAAAA,CAAUC,CAAC,EAAEC,CAAC,EAAE;IAChCF,aAAa,GAAGG,MAAM,CAACC,cAAc,IAChC;MAAEC,SAAS,EAAE;IAAG,CAAC,YAAYC,KAAK,IAAI,UAAUL,CAAC,EAAEC,CAAC,EAAE;MAAED,CAAC,CAACI,SAAS,GAAGH,CAAC;IAAE,CAAE,IAC5E,UAAUD,CAAC,EAAEC,CAAC,EAAE;MAAE,KAAK,IAAIK,CAAC,IAAIL,CAAC,EAAE,IAAIC,MAAM,CAACK,SAAS,CAACC,cAAc,CAACC,IAAI,CAACR,CAAC,EAAEK,CAAC,CAAC,EAAEN,CAAC,CAACM,CAAC,CAAC,GAAGL,CAAC,CAACK,CAAC,CAAC;IAAE,CAAC;IACrG,OAAOP,aAAa,CAACC,CAAC,EAAEC,CAAC,CAAC;EAC9B,CAAC;EACD,OAAO,UAAUD,CAAC,EAAEC,CAAC,EAAE;IACnB,IAAI,OAAOA,CAAC,KAAK,UAAU,IAAIA,CAAC,KAAK,IAAI,EACrC,MAAM,IAAIS,SAAS,CAAC,sBAAsB,GAAGC,MAAM,CAACV,CAAC,CAAC,GAAG,+BAA+B,CAAC;IAC7FF,aAAa,CAACC,CAAC,EAA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