307eccc0f31b13a6dd9946b2cece1dcc.json 1.79 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _regenerator=_interopRequireDefault(require(\"@babel/runtime/regenerator\"));var _default={get name(){return'ExpoWebBrowser';},openBrowserAsync:function openBrowserAsync(url){var browserParams,_browserParams$window,windowName,windowFeatures,_args=arguments;return _regenerator.default.async(function openBrowserAsync$(_context){while(1){switch(_context.prev=_context.next){case 0:browserParams=_args.length>1&&_args[1]!==undefined?_args[1]:{};_browserParams$window=browserParams.windowName,windowName=_browserParams$window===void 0?'_blank':_browserParams$window,windowFeatures=browserParams.windowFeatures;window.open(url,windowName,windowFeatures);return _context.abrupt(\"return\",{type:'dismiss'});case 4:case\"end\":return _context.stop();}}});}};exports.default=_default;","map":{"version":3,"sources":["../src/ExpoWebBrowser.web.ts"],"names":[],"mappings":"+PAEe,CACb,GAAI,CAAA,IAAJ,EAAQ,CACN,MAAO,gBAAP,CACD,CAHY,CAIP,gBAJO,2BAKX,GALW,+MAMX,aANW,+CAMyB,EANzB,uBAQuC,aARvC,CAQH,UARG,CAQH,UARG,gCAQU,QARV,uBAQoB,cARpB,CAQuC,aARvC,CAQoB,cARpB,CASX,MAAM,CAAC,IAAP,CAAY,GAAZ,CAAiB,UAAjB,CAA6B,cAA7B,EATW,gCAUJ,CAAE,IAAI,CAAE,SAAR,CAVI,iD","sourcesContent":["import { BrowserResult, OpenBrowserOptions } from './WebBrowser.types';\n\nexport default {\n  get name() {\n    return 'ExpoWebBrowser';\n  },\n  async openBrowserAsync(\n    url: string,\n    browserParams: OpenBrowserOptions = {}\n  ): Promise<BrowserResult> {\n    const { windowName = '_blank', windowFeatures } = browserParams;\n    window.open(url, windowName, windowFeatures);\n    return { type: 'dismiss' };\n  },\n};\n"],"sourceRoot":""},"metadata":{},"sourceType":"script"}