fdf19a1e3108ca2d64a4d4377a00cb31.json
50 KB
{"ast":null,"code":"var _interopRequireWildcard=require(\"@babel/runtime/helpers/interopRequireWildcard\");var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _applyNativeMethods=_interopRequireDefault(require(\"../../modules/applyNativeMethods\"));var _createElement=_interopRequireDefault(require(\"../createElement\"));var _css=_interopRequireDefault(require(\"../StyleSheet/css\"));var _AssetRegistry=require(\"../../modules/AssetRegistry\");var _resolveShadowValue=_interopRequireDefault(require(\"../StyleSheet/resolveShadowValue\"));var _ImageLoader=_interopRequireDefault(require(\"../../modules/ImageLoader\"));var _ImageResizeMode=_interopRequireDefault(require(\"./ImageResizeMode\"));var _ImageSourcePropType=_interopRequireDefault(require(\"./ImageSourcePropType\"));var _ImageStylePropTypes=_interopRequireDefault(require(\"./ImageStylePropTypes\"));var _ImageUriCache=_interopRequireDefault(require(\"./ImageUriCache\"));var _StyleSheet=_interopRequireDefault(require(\"../StyleSheet\"));var _StyleSheetPropType=_interopRequireDefault(require(\"../../modules/StyleSheetPropType\"));var _View=_interopRequireDefault(require(\"../View\"));var _ViewPropTypes=_interopRequireDefault(require(\"../ViewPropTypes\"));var _propTypes=require(\"prop-types\");var _react=_interopRequireWildcard(require(\"react\"));function _extends(){_extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};return _extends.apply(this,arguments);}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};var ownKeys=Object.keys(source);if(typeof Object.getOwnPropertySymbols==='function'){ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable;}));}ownKeys.forEach(function(key){_defineProperty(target,key,source[key]);});}return target;}function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i<sourceKeys.length;i++){key=sourceKeys[i];if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}return target;}function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}var emptyObject={};var STATUS_ERRORED='ERRORED';var STATUS_LOADED='LOADED';var STATUS_LOADING='LOADING';var STATUS_PENDING='PENDING';var STATUS_IDLE='IDLE';var getImageState=function getImageState(uri,shouldDisplaySource){return shouldDisplaySource?STATUS_LOADED:uri?STATUS_PENDING:STATUS_IDLE;};var resolveAssetDimensions=function resolveAssetDimensions(source){if(typeof source==='number'){var _getAssetByID=(0,_AssetRegistry.getAssetByID)(source),height=_getAssetByID.height,width=_getAssetByID.width;return{height:height,width:width};}else if(typeof source==='object'){var _height=source.height,_width=source.width;return{height:_height,width:_width};}};var svgDataUriPattern=/^(data:image\\/svg\\+xml;utf8,)(.*)/;var resolveAssetUri=function resolveAssetUri(source){var uri='';if(typeof source==='number'){var asset=(0,_AssetRegistry.getAssetByID)(source);var scale=asset.scales[0];var scaleSuffix=scale!==1?\"@\"+scale+\"x\":'';uri=asset?asset.httpServerLocation+\"/\"+asset.name+scaleSuffix+\".\"+asset.type:'';}else if(typeof source==='string'){uri=source;}else if(source&&typeof source.uri==='string'){uri=source.uri;}if(uri){var match=uri.match(svgDataUriPattern);if(match){var prefix=match[1],svg=match[2];var encodedSvg=encodeURIComponent(svg);return\"\"+prefix+encodedSvg;}}return uri;};var filterId=0;var createTintColorSVG=function createTintColorSVG(tintColor,id){return tintColor&&id!=null?_react.default.createElement(\"svg\",{style:{position:'absolute',height:0,visibility:'hidden',width:0}},_react.default.createElement(\"defs\",null,_react.default.createElement(\"filter\",{id:\"tint-\"+id},_react.default.createElement(\"feFlood\",{floodColor:\"\"+tintColor}),_react.default.createElement(\"feComposite\",{in2:\"SourceAlpha\",operator:\"atop\"})))):null;};var Image=function(_Component){_inheritsLoose(Image,_Component);Image.getSize=function getSize(uri,success,failure){_ImageLoader.default.getSize(uri,success,failure);};Image.prefetch=function prefetch(uri){return _ImageLoader.default.prefetch(uri).then(function(){_ImageUriCache.default.add(uri);_ImageUriCache.default.remove(uri);});};Image.queryCache=function queryCache(uris){var result={};uris.forEach(function(u){if(_ImageUriCache.default.has(u)){result[u]='disk/memory';}});return Promise.resolve(result);};function Image(props,context){var _this;_this=_Component.call(this,props,context)||this;_this._filterId=0;_this._imageRef=null;_this._imageRequestId=null;_this._imageState=null;_this._isMounted=false;_this._createLayoutHandler=function(resizeMode){var onLayout=_this.props.onLayout;if(resizeMode==='center'||resizeMode==='repeat'||onLayout){return function(e){var layout=e.nativeEvent.layout;onLayout&&onLayout(e);_this.setState(function(){return{layout:layout};});};}};_this._getBackgroundSize=function(resizeMode){if(_this._imageRef&&(resizeMode==='center'||resizeMode==='repeat')){var _this$_imageRef=_this._imageRef,naturalHeight=_this$_imageRef.naturalHeight,naturalWidth=_this$_imageRef.naturalWidth;var _this$state$layout=_this.state.layout,height=_this$state$layout.height,width=_this$state$layout.width;if(naturalHeight&&naturalWidth&&height&&width){var scaleFactor=Math.min(1,width/naturalWidth,height/naturalHeight);var x=Math.ceil(scaleFactor*naturalWidth);var y=Math.ceil(scaleFactor*naturalHeight);return{backgroundSize:x+\"px \"+y+\"px\"};}}};_this._onError=function(){var _this$props=_this.props,onError=_this$props.onError,source=_this$props.source;_this._updateImageState(STATUS_ERRORED);if(onError){onError({nativeEvent:{error:\"Failed to load resource \"+resolveAssetUri(source)+\" (404)\"}});}_this._onLoadEnd();};_this._onLoad=function(e){var _this$props2=_this.props,onLoad=_this$props2.onLoad,source=_this$props2.source;var event={nativeEvent:e};_ImageUriCache.default.add(resolveAssetUri(source));_this._updateImageState(STATUS_LOADED);if(onLoad){onLoad(event);}_this._onLoadEnd();};_this._setImageRef=function(ref){_this._imageRef=ref;};var uri=resolveAssetUri(props.source);var shouldDisplaySource=_ImageUriCache.default.has(uri);_this.state={layout:{},shouldDisplaySource:shouldDisplaySource};_this._imageState=getImageState(uri,shouldDisplaySource);_this._filterId=filterId;filterId++;return _this;}var _proto=Image.prototype;_proto.componentDidMount=function componentDidMount(){this._isMounted=true;if(this._imageState===STATUS_PENDING){this._createImageLoader();}else if(this._imageState===STATUS_LOADED){this._onLoad({target:this._imageRef});}};_proto.componentDidUpdate=function componentDidUpdate(prevProps){var prevUri=resolveAssetUri(prevProps.source);var uri=resolveAssetUri(this.props.source);var hasDefaultSource=this.props.defaultSource!=null;if(prevUri!==uri){_ImageUriCache.default.remove(prevUri);var isPreviouslyLoaded=_ImageUriCache.default.has(uri);isPreviouslyLoaded&&_ImageUriCache.default.add(uri);this._updateImageState(getImageState(uri,isPreviouslyLoaded),hasDefaultSource);}else if(hasDefaultSource&&prevProps.defaultSource!==this.props.defaultSource){this._updateImageState(this._imageState,hasDefaultSource);}if(this._imageState===STATUS_PENDING){this._createImageLoader();}};_proto.componentWillUnmount=function componentWillUnmount(){var uri=resolveAssetUri(this.props.source);_ImageUriCache.default.remove(uri);this._destroyImageLoader();this._isMounted=false;};_proto.render=function render(){var shouldDisplaySource=this.state.shouldDisplaySource;var _this$props3=this.props,accessibilityLabel=_this$props3.accessibilityLabel,accessible=_this$props3.accessible,blurRadius=_this$props3.blurRadius,defaultSource=_this$props3.defaultSource,draggable=_this$props3.draggable,source=_this$props3.source,testID=_this$props3.testID,capInsets=_this$props3.capInsets,onError=_this$props3.onError,onLayout=_this$props3.onLayout,onLoad=_this$props3.onLoad,onLoadEnd=_this$props3.onLoadEnd,onLoadStart=_this$props3.onLoadStart,resizeMethod=_this$props3.resizeMethod,resizeMode=_this$props3.resizeMode,other=_objectWithoutPropertiesLoose(_this$props3,[\"accessibilityLabel\",\"accessible\",\"blurRadius\",\"defaultSource\",\"draggable\",\"source\",\"testID\",\"capInsets\",\"onError\",\"onLayout\",\"onLoad\",\"onLoadEnd\",\"onLoadStart\",\"resizeMethod\",\"resizeMode\"]);if(process.env.NODE_ENV!=='production'){if(this.props.src){console.warn('The <Image> component requires a `source` property rather than `src`.');}if(this.props.children){throw new Error('The <Image> component cannot contain children. If you want to render content on top of the image, consider using the <ImageBackground> component or absolute positioning.');}}var selectedSource=shouldDisplaySource?source:defaultSource;var displayImageUri=resolveAssetUri(selectedSource);var imageSizeStyle=resolveAssetDimensions(selectedSource);var backgroundImage=displayImageUri?\"url(\\\"\"+displayImageUri+\"\\\")\":null;var flatStyle=_objectSpread({},_StyleSheet.default.flatten(this.props.style));var finalResizeMode=resizeMode||flatStyle.resizeMode||_ImageResizeMode.default.cover;var filters=[];var tintColor=flatStyle.tintColor;if(flatStyle.filter){filters.push(flatStyle.filter);}if(blurRadius){filters.push(\"blur(\"+blurRadius+\"px)\");}if(flatStyle.shadowOffset){var shadowString=(0,_resolveShadowValue.default)(flatStyle);if(shadowString){filters.push(\"drop-shadow(\"+shadowString+\")\");}}if(flatStyle.tintColor){filters.push(\"url(#tint-\"+this._filterId+\")\");}delete flatStyle.shadowColor;delete flatStyle.shadowOpacity;delete flatStyle.shadowOffset;delete flatStyle.shadowRadius;delete flatStyle.tintColor;delete flatStyle.overlayColor;delete flatStyle.resizeMode;var hiddenImage=displayImageUri?(0,_createElement.default)('img',{alt:accessibilityLabel||'',classList:[classes.accessibilityImage],draggable:draggable||false,ref:this._setImageRef,src:displayImageUri}):null;return _react.default.createElement(_View.default,_extends({},other,{accessibilityLabel:accessibilityLabel,accessible:accessible,onLayout:this._createLayoutHandler(finalResizeMode),style:[styles.root,this.context.isInAParentText&&styles.inline,imageSizeStyle,flatStyle],testID:testID}),_react.default.createElement(_View.default,{style:[styles.image,resizeModeStyles[finalResizeMode],this._getBackgroundSize(finalResizeMode),backgroundImage&&{backgroundImage:backgroundImage},filters.length>0&&{filter:filters.join(' ')}]}),hiddenImage,createTintColorSVG(tintColor,this._filterId));};_proto._createImageLoader=function _createImageLoader(){var source=this.props.source;this._destroyImageLoader();var uri=resolveAssetUri(source);this._imageRequestId=_ImageLoader.default.load(uri,this._onLoad,this._onError);this._onLoadStart();};_proto._destroyImageLoader=function _destroyImageLoader(){if(this._imageRequestId){_ImageLoader.default.abort(this._imageRequestId);this._imageRequestId=null;}};_proto._onLoadEnd=function _onLoadEnd(){var onLoadEnd=this.props.onLoadEnd;if(onLoadEnd){onLoadEnd();}};_proto._onLoadStart=function _onLoadStart(){var _this$props4=this.props,defaultSource=_this$props4.defaultSource,onLoadStart=_this$props4.onLoadStart;this._updateImageState(STATUS_LOADING,defaultSource!=null);if(onLoadStart){onLoadStart();}};_proto._updateImageState=function _updateImageState(status,hasDefaultSource){if(hasDefaultSource===void 0){hasDefaultSource=false;}this._imageState=status;var shouldDisplaySource=this._imageState===STATUS_LOADED||this._imageState===STATUS_LOADING&&!hasDefaultSource;if(shouldDisplaySource!==this.state.shouldDisplaySource){if(this._isMounted){this.setState(function(){return{shouldDisplaySource:shouldDisplaySource};});}}};return Image;}(_react.Component);Image.displayName='Image';Image.contextTypes={isInAParentText:_propTypes.bool};Image.defaultProps={style:emptyObject};Image.propTypes=process.env.NODE_ENV!==\"production\"?_objectSpread({},_ViewPropTypes.default,{blurRadius:_propTypes.number,defaultSource:_ImageSourcePropType.default,draggable:_propTypes.bool,onError:_propTypes.func,onLayout:_propTypes.func,onLoad:_propTypes.func,onLoadEnd:_propTypes.func,onLoadStart:_propTypes.func,resizeMode:(0,_propTypes.oneOf)(Object.keys(_ImageResizeMode.default)),source:_ImageSourcePropType.default,style:(0,_StyleSheetPropType.default)(_ImageStylePropTypes.default),capInsets:(0,_propTypes.shape)({top:_propTypes.number,left:_propTypes.number,bottom:_propTypes.number,right:_propTypes.number}),resizeMethod:(0,_propTypes.oneOf)(['auto','resize','scale'])}):{};var classes=_css.default.create({accessibilityImage:_objectSpread({},_StyleSheet.default.absoluteFillObject,{height:'100%',opacity:0,width:'100%',zIndex:-1})});var styles=_StyleSheet.default.create({root:{flexBasis:'auto',overflow:'hidden',zIndex:0},inline:{display:'inline-flex'},image:_objectSpread({},_StyleSheet.default.absoluteFillObject,{backgroundColor:'transparent',backgroundPosition:'center',backgroundRepeat:'no-repeat',backgroundSize:'cover',height:'100%',width:'100%',zIndex:-1})});var resizeModeStyles=_StyleSheet.default.create({center:{backgroundSize:'auto'},contain:{backgroundSize:'contain'},cover:{backgroundSize:'cover'},none:{backgroundPosition:'0 0',backgroundSize:'auto'},repeat:{backgroundPosition:'0 0',backgroundRepeat:'repeat',backgroundSize:'auto'},stretch:{backgroundSize:'100% 100%'}});var _default=(0,_applyNativeMethods.default)(Image);exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/exports/Image/index.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectSpread","ownKeys","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","forEach","_defineProperty","obj","value","defineProperty","configurable","writable","_objectWithoutPropertiesLoose","excluded","sourceKeys","indexOf","_inheritsLoose","subClass","superClass","create","constructor","__proto__","emptyObject","STATUS_ERRORED","STATUS_LOADED","STATUS_LOADING","STATUS_PENDING","STATUS_IDLE","getImageState","uri","shouldDisplaySource","resolveAssetDimensions","_getAssetByID","height","width","_height","_width","svgDataUriPattern","resolveAssetUri","asset","scale","scales","scaleSuffix","httpServerLocation","name","type","match","prefix","svg","encodedSvg","encodeURIComponent","filterId","createTintColorSVG","tintColor","id","React","createElement","style","position","visibility","floodColor","in2","operator","Image","_Component","getSize","success","failure","ImageLoader","prefetch","then","ImageUriCache","add","remove","queryCache","uris","result","u","has","Promise","resolve","props","context","_this","_filterId","_imageRef","_imageRequestId","_imageState","_isMounted","_createLayoutHandler","resizeMode","onLayout","e","layout","nativeEvent","setState","_getBackgroundSize","_this$_imageRef","naturalHeight","naturalWidth","_this$state$layout","state","scaleFactor","Math","min","x","ceil","y","backgroundSize","_onError","_this$props","onError","_updateImageState","error","_onLoadEnd","_onLoad","_this$props2","onLoad","event","_setImageRef","ref","_proto","componentDidMount","_createImageLoader","componentDidUpdate","prevProps","prevUri","hasDefaultSource","defaultSource","isPreviouslyLoaded","componentWillUnmount","_destroyImageLoader","render","_this$props3","accessibilityLabel","accessible","blurRadius","draggable","testID","capInsets","onLoadEnd","onLoadStart","resizeMethod","other","process","env","NODE_ENV","src","console","warn","children","Error","selectedSource","displayImageUri","imageSizeStyle","backgroundImage","flatStyle","StyleSheet","flatten","finalResizeMode","ImageResizeMode","cover","filters","push","shadowOffset","shadowString","shadowColor","shadowOpacity","shadowRadius","overlayColor","hiddenImage","alt","classList","classes","accessibilityImage","View","styles","root","isInAParentText","inline","image","resizeModeStyles","join","load","_onLoadStart","abort","_this$props4","status","Component","displayName","contextTypes","bool","defaultProps","propTypes","ViewPropTypes","number","ImageSourcePropType","func","ImageStylePropTypes","top","left","bottom","right","css","absoluteFillObject","opacity","zIndex","flexBasis","overflow","display","backgroundColor","backgroundPosition","backgroundRepeat","center","contain","none","repeat","stretch"],"mappings":"wPAmBA,4FACA,uEACA,8DACA,0DACA,4FACA,8EACA,0EACA,kFACA,kFACA,sEACA,iEACA,4FACA,qDACA,uEACA,qCACA,qDAlCA,QAASA,CAAAA,QAAT,EAAoB,CAAEA,QAAQ,CAAGC,MAAM,CAACC,MAAP,EAAiB,SAAUC,MAAV,CAAkB,CAAE,IAAK,GAAIC,CAAAA,CAAC,CAAG,CAAb,CAAgBA,CAAC,CAAGC,SAAS,CAACC,MAA9B,CAAsCF,CAAC,EAAvC,CAA2C,CAAE,GAAIG,CAAAA,MAAM,CAAGF,SAAS,CAACD,CAAD,CAAtB,CAA2B,IAAK,GAAII,CAAAA,GAAT,GAAgBD,CAAAA,MAAhB,CAAwB,CAAE,GAAIN,MAAM,CAACQ,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCJ,MAArC,CAA6CC,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APgC,CAUvC2G,IAAI,CAAE,CACJJ,kBAAkB,CAAE,KADhB,CAEJvG,cAAc,CAAE,MAFZ,CAViC,CAcvC4G,MAAM,CAAE,CACNL,kBAAkB,CAAE,KADd,CAENC,gBAAgB,CAAE,QAFZ,CAGNxG,cAAc,CAAE,MAHV,CAd+B,CAmBvC6G,OAAO,CAAE,CACP7G,cAAc,CAAE,WADT,CAnB8B,CAAlB,CAAvB,C,aAuBe,gCAAmB7C,KAAnB,C","sourcesContent":["function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\n/**\n * Copyright (c) Nicolas Gallagher.\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n *\n * \n */\nimport applyNativeMethods from '../../modules/applyNativeMethods';\nimport createElement from '../createElement';\nimport css from '../StyleSheet/css';\nimport { getAssetByID } from '../../modules/AssetRegistry';\nimport resolveShadowValue from '../StyleSheet/resolveShadowValue';\nimport ImageLoader from '../../modules/ImageLoader';\nimport ImageResizeMode from './ImageResizeMode';\nimport ImageSourcePropType from './ImageSourcePropType';\nimport ImageStylePropTypes from './ImageStylePropTypes';\nimport ImageUriCache from './ImageUriCache';\nimport StyleSheet from '../StyleSheet';\nimport StyleSheetPropType from '../../modules/StyleSheetPropType';\nimport View from '../View';\nimport ViewPropTypes from '../ViewPropTypes';\nimport { bool, func, number, oneOf, shape } from 'prop-types';\nimport React, { Component } from 'react';\nvar emptyObject = {};\nvar STATUS_ERRORED = 'ERRORED';\nvar STATUS_LOADED = 'LOADED';\nvar STATUS_LOADING = 'LOADING';\nvar STATUS_PENDING = 'PENDING';\nvar STATUS_IDLE = 'IDLE';\n\nvar getImageState = function getImageState(uri, shouldDisplaySource) {\n return shouldDisplaySource ? STATUS_LOADED : uri ? STATUS_PENDING : STATUS_IDLE;\n};\n\nvar resolveAssetDimensions = function resolveAssetDimensions(source) {\n if (typeof source === 'number') {\n var _getAssetByID = getAssetByID(source),\n height = _getAssetByID.height,\n width = _getAssetByID.width;\n\n return {\n height: height,\n width: width\n };\n } else if (typeof source === 'object') {\n var _height = source.height,\n _width = source.width;\n return {\n height: _height,\n width: _width\n };\n }\n};\n\nvar svgDataUriPattern = /^(data:image\\/svg\\+xml;utf8,)(.*)/;\n\nvar resolveAssetUri = function resolveAssetUri(source) {\n var uri = '';\n\n if (typeof source === 'number') {\n // get the URI from the packager\n var asset = getAssetByID(source);\n var scale = asset.scales[0];\n var scaleSuffix = scale !== 1 ? \"@\" + scale + \"x\" : '';\n uri = asset ? asset.httpServerLocation + \"/\" + asset.name + scaleSuffix + \".\" + asset.type : '';\n } else if (typeof source === 'string') {\n uri = source;\n } else if (source && typeof source.uri === 'string') {\n uri = source.uri;\n }\n\n if (uri) {\n var match = uri.match(svgDataUriPattern); // inline SVG markup may contain characters (e.g., #, \") that need to be escaped\n\n if (match) {\n var prefix = match[1],\n svg = match[2];\n var encodedSvg = encodeURIComponent(svg);\n return \"\" + prefix + encodedSvg;\n }\n }\n\n return uri;\n};\n\nvar filterId = 0;\n\nvar createTintColorSVG = function createTintColorSVG(tintColor, id) {\n return tintColor && id != null ? React.createElement(\"svg\", {\n style: {\n position: 'absolute',\n height: 0,\n visibility: 'hidden',\n width: 0\n }\n }, React.createElement(\"defs\", null, React.createElement(\"filter\", {\n id: \"tint-\" + id\n }, React.createElement(\"feFlood\", {\n floodColor: \"\" + tintColor\n }), React.createElement(\"feComposite\", {\n in2: \"SourceAlpha\",\n operator: \"atop\"\n })))) : null;\n};\n\nvar Image =\n/*#__PURE__*/\nfunction (_Component) {\n _inheritsLoose(Image, _Component);\n\n Image.getSize = function getSize(uri, success, failure) {\n ImageLoader.getSize(uri, success, failure);\n };\n\n Image.prefetch = function prefetch(uri) {\n return ImageLoader.prefetch(uri).then(function () {\n // Add the uri to the cache so it can be immediately displayed when used\n // but also immediately remove it to correctly reflect that it has no active references\n ImageUriCache.add(uri);\n ImageUriCache.remove(uri);\n });\n };\n\n Image.queryCache = function queryCache(uris) {\n var result = {};\n uris.forEach(function (u) {\n if (ImageUriCache.has(u)) {\n result[u] = 'disk/memory';\n }\n });\n return Promise.resolve(result);\n };\n\n function Image(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this; // If an image has been loaded before, render it immediately\n\n _this._filterId = 0;\n _this._imageRef = null;\n _this._imageRequestId = null;\n _this._imageState = null;\n _this._isMounted = false;\n\n _this._createLayoutHandler = function (resizeMode) {\n var onLayout = _this.props.onLayout;\n\n if (resizeMode === 'center' || resizeMode === 'repeat' || onLayout) {\n return function (e) {\n var layout = e.nativeEvent.layout;\n onLayout && onLayout(e);\n\n _this.setState(function () {\n return {\n layout: layout\n };\n });\n };\n }\n };\n\n _this._getBackgroundSize = function (resizeMode) {\n if (_this._imageRef && (resizeMode === 'center' || resizeMode === 'repeat')) {\n var _this$_imageRef = _this._imageRef,\n naturalHeight = _this$_imageRef.naturalHeight,\n naturalWidth = _this$_imageRef.naturalWidth;\n var _this$state$layout = _this.state.layout,\n height = _this$state$layout.height,\n width = _this$state$layout.width;\n\n if (naturalHeight && naturalWidth && height && width) {\n var scaleFactor = Math.min(1, width / naturalWidth, height / naturalHeight);\n var x = Math.ceil(scaleFactor * naturalWidth);\n var y = Math.ceil(scaleFactor * naturalHeight);\n return {\n backgroundSize: x + \"px \" + y + \"px\"\n };\n }\n }\n };\n\n _this._onError = function () {\n var _this$props = _this.props,\n onError = _this$props.onError,\n source = _this$props.source;\n\n _this._updateImageState(STATUS_ERRORED);\n\n if (onError) {\n onError({\n nativeEvent: {\n error: \"Failed to load resource \" + resolveAssetUri(source) + \" (404)\"\n }\n });\n }\n\n _this._onLoadEnd();\n };\n\n _this._onLoad = function (e) {\n var _this$props2 = _this.props,\n onLoad = _this$props2.onLoad,\n source = _this$props2.source;\n var event = {\n nativeEvent: e\n };\n ImageUriCache.add(resolveAssetUri(source));\n\n _this._updateImageState(STATUS_LOADED);\n\n if (onLoad) {\n onLoad(event);\n }\n\n _this._onLoadEnd();\n };\n\n _this._setImageRef = function (ref) {\n _this._imageRef = ref;\n };\n\n var uri = resolveAssetUri(props.source);\n var shouldDisplaySource = ImageUriCache.has(uri);\n _this.state = {\n layout: {},\n shouldDisplaySource: shouldDisplaySource\n };\n _this._imageState = getImageState(uri, shouldDisplaySource);\n _this._filterId = filterId;\n filterId++;\n return _this;\n }\n\n var _proto = Image.prototype;\n\n _proto.componentDidMount = function componentDidMount() {\n this._isMounted = true;\n\n if (this._imageState === STATUS_PENDING) {\n this._createImageLoader();\n } else if (this._imageState === STATUS_LOADED) {\n this._onLoad({\n target: this._imageRef\n });\n }\n };\n\n _proto.componentDidUpdate = function componentDidUpdate(prevProps) {\n var prevUri = resolveAssetUri(prevProps.source);\n var uri = resolveAssetUri(this.props.source);\n var hasDefaultSource = this.props.defaultSource != null;\n\n if (prevUri !== uri) {\n ImageUriCache.remove(prevUri);\n var isPreviouslyLoaded = ImageUriCache.has(uri);\n isPreviouslyLoaded && ImageUriCache.add(uri);\n\n this._updateImageState(getImageState(uri, isPreviouslyLoaded), hasDefaultSource);\n } else if (hasDefaultSource && prevProps.defaultSource !== this.props.defaultSource) {\n this._updateImageState(this._imageState, hasDefaultSource);\n }\n\n if (this._imageState === STATUS_PENDING) {\n this._createImageLoader();\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n var uri = resolveAssetUri(this.props.source);\n ImageUriCache.remove(uri);\n\n this._destroyImageLoader();\n\n this._isMounted = false;\n };\n\n _proto.render = function render() {\n var shouldDisplaySource = this.state.shouldDisplaySource;\n\n var _this$props3 = this.props,\n accessibilityLabel = _this$props3.accessibilityLabel,\n accessible = _this$props3.accessible,\n blurRadius = _this$props3.blurRadius,\n defaultSource = _this$props3.defaultSource,\n draggable = _this$props3.draggable,\n source = _this$props3.source,\n testID = _this$props3.testID,\n capInsets = _this$props3.capInsets,\n onError = _this$props3.onError,\n onLayout = _this$props3.onLayout,\n onLoad = _this$props3.onLoad,\n onLoadEnd = _this$props3.onLoadEnd,\n onLoadStart = _this$props3.onLoadStart,\n resizeMethod = _this$props3.resizeMethod,\n resizeMode = _this$props3.resizeMode,\n other = _objectWithoutPropertiesLoose(_this$props3, [\"accessibilityLabel\", \"accessible\", \"blurRadius\", \"defaultSource\", \"draggable\", \"source\", \"testID\", \"capInsets\", \"onError\", \"onLayout\", \"onLoad\", \"onLoadEnd\", \"onLoadStart\", \"resizeMethod\", \"resizeMode\"]);\n\n if (process.env.NODE_ENV !== 'production') {\n if (this.props.src) {\n console.warn('The <Image> component requires a `source` property rather than `src`.');\n }\n\n if (this.props.children) {\n throw new Error('The <Image> component cannot contain children. If you want to render content on top of the image, consider using the <ImageBackground> component or absolute positioning.');\n }\n }\n\n var selectedSource = shouldDisplaySource ? source : defaultSource;\n var displayImageUri = resolveAssetUri(selectedSource);\n var imageSizeStyle = resolveAssetDimensions(selectedSource);\n var backgroundImage = displayImageUri ? \"url(\\\"\" + displayImageUri + \"\\\")\" : null;\n\n var flatStyle = _objectSpread({}, StyleSheet.flatten(this.props.style));\n\n var finalResizeMode = resizeMode || flatStyle.resizeMode || ImageResizeMode.cover; // CSS filters\n\n var filters = [];\n var tintColor = flatStyle.tintColor;\n\n if (flatStyle.filter) {\n filters.push(flatStyle.filter);\n }\n\n if (blurRadius) {\n filters.push(\"blur(\" + blurRadius + \"px)\");\n }\n\n if (flatStyle.shadowOffset) {\n var shadowString = resolveShadowValue(flatStyle);\n\n if (shadowString) {\n filters.push(\"drop-shadow(\" + shadowString + \")\");\n }\n }\n\n if (flatStyle.tintColor) {\n filters.push(\"url(#tint-\" + this._filterId + \")\");\n } // these styles were converted to filters\n\n\n delete flatStyle.shadowColor;\n delete flatStyle.shadowOpacity;\n delete flatStyle.shadowOffset;\n delete flatStyle.shadowRadius;\n delete flatStyle.tintColor; // these styles are not supported on View\n\n delete flatStyle.overlayColor;\n delete flatStyle.resizeMode; // Accessibility image allows users to trigger the browser's image context menu\n\n var hiddenImage = displayImageUri ? createElement('img', {\n alt: accessibilityLabel || '',\n classList: [classes.accessibilityImage],\n draggable: draggable || false,\n ref: this._setImageRef,\n src: displayImageUri\n }) : null;\n return React.createElement(View, _extends({}, other, {\n accessibilityLabel: accessibilityLabel,\n accessible: accessible,\n onLayout: this._createLayoutHandler(finalResizeMode),\n style: [styles.root, this.context.isInAParentText && styles.inline, imageSizeStyle, flatStyle],\n testID: testID\n }), React.createElement(View, {\n style: [styles.image, resizeModeStyles[finalResizeMode], this._getBackgroundSize(finalResizeMode), backgroundImage && {\n backgroundImage: backgroundImage\n }, filters.length > 0 && {\n filter: filters.join(' ')\n }]\n }), hiddenImage, createTintColorSVG(tintColor, this._filterId));\n };\n\n _proto._createImageLoader = function _createImageLoader() {\n var source = this.props.source;\n\n this._destroyImageLoader();\n\n var uri = resolveAssetUri(source);\n this._imageRequestId = ImageLoader.load(uri, this._onLoad, this._onError);\n\n this._onLoadStart();\n };\n\n _proto._destroyImageLoader = function _destroyImageLoader() {\n if (this._imageRequestId) {\n ImageLoader.abort(this._imageRequestId);\n this._imageRequestId = null;\n }\n };\n\n _proto._onLoadEnd = function _onLoadEnd() {\n var onLoadEnd = this.props.onLoadEnd;\n\n if (onLoadEnd) {\n onLoadEnd();\n }\n };\n\n _proto._onLoadStart = function _onLoadStart() {\n var _this$props4 = this.props,\n defaultSource = _this$props4.defaultSource,\n onLoadStart = _this$props4.onLoadStart;\n\n this._updateImageState(STATUS_LOADING, defaultSource != null);\n\n if (onLoadStart) {\n onLoadStart();\n }\n };\n\n _proto._updateImageState = function _updateImageState(status, hasDefaultSource) {\n if (hasDefaultSource === void 0) {\n hasDefaultSource = false;\n }\n\n this._imageState = status;\n var shouldDisplaySource = this._imageState === STATUS_LOADED || this._imageState === STATUS_LOADING && !hasDefaultSource; // only triggers a re-render when the image is loading and has no default image (to support PJPEG), loaded, or failed\n\n if (shouldDisplaySource !== this.state.shouldDisplaySource) {\n if (this._isMounted) {\n this.setState(function () {\n return {\n shouldDisplaySource: shouldDisplaySource\n };\n });\n }\n }\n };\n\n return Image;\n}(Component);\n\nImage.displayName = 'Image';\nImage.contextTypes = {\n isInAParentText: bool\n};\nImage.defaultProps = {\n style: emptyObject\n};\nImage.propTypes = process.env.NODE_ENV !== \"production\" ? _objectSpread({}, ViewPropTypes, {\n blurRadius: number,\n defaultSource: ImageSourcePropType,\n draggable: bool,\n onError: func,\n onLayout: func,\n onLoad: func,\n onLoadEnd: func,\n onLoadStart: func,\n resizeMode: oneOf(Object.keys(ImageResizeMode)),\n source: ImageSourcePropType,\n style: StyleSheetPropType(ImageStylePropTypes),\n // compatibility with React Native\n\n /* eslint-disable react/sort-prop-types */\n capInsets: shape({\n top: number,\n left: number,\n bottom: number,\n right: number\n }),\n resizeMethod: oneOf(['auto', 'resize', 'scale'])\n /* eslint-enable react/sort-prop-types */\n\n}) : {};\nvar classes = css.create({\n accessibilityImage: _objectSpread({}, StyleSheet.absoluteFillObject, {\n height: '100%',\n opacity: 0,\n width: '100%',\n zIndex: -1\n })\n});\nvar styles = StyleSheet.create({\n root: {\n flexBasis: 'auto',\n overflow: 'hidden',\n zIndex: 0\n },\n inline: {\n display: 'inline-flex'\n },\n image: _objectSpread({}, StyleSheet.absoluteFillObject, {\n backgroundColor: 'transparent',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat',\n backgroundSize: 'cover',\n height: '100%',\n width: '100%',\n zIndex: -1\n })\n});\nvar resizeModeStyles = StyleSheet.create({\n center: {\n backgroundSize: 'auto'\n },\n contain: {\n backgroundSize: 'contain'\n },\n cover: {\n backgroundSize: 'cover'\n },\n none: {\n backgroundPosition: '0 0',\n backgroundSize: 'auto'\n },\n repeat: {\n backgroundPosition: '0 0',\n backgroundRepeat: 'repeat',\n backgroundSize: 'auto'\n },\n stretch: {\n backgroundSize: '100% 100%'\n }\n});\nexport default applyNativeMethods(Image);"]},"metadata":{},"sourceType":"script"}