{"ast":null,"code":"function _extends() {\n  _extends = Object.assign || function (target) {\n    for (var i = 1; i < arguments.length; i++) {\n      var source = arguments[i];\n\n      for (var key in source) {\n        if (Object.prototype.hasOwnProperty.call(source, key)) {\n          target[key] = source[key];\n        }\n      }\n    }\n\n    return target;\n  };\n\n  return _extends.apply(this, arguments);\n}\n\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n  if (source == null) return {};\n  var target = {};\n  var sourceKeys = Object.keys(source);\n  var key, i;\n\n  for (i = 0; i < sourceKeys.length; i++) {\n    key = sourceKeys[i];\n    if (excluded.indexOf(key) >= 0) continue;\n    target[key] = source[key];\n  }\n\n  return target;\n}\n\nimport * as React from 'react';\nimport { forwardRef } from 'react';\nimport Image from \"../Image\";\nimport StyleSheet from \"../StyleSheet\";\nimport View from \"../View\";\nvar emptyObject = {};\nvar ImageBackground = forwardRef(function (props, forwardedRef) {\n  var children = props.children,\n      _props$style = props.style,\n      style = _props$style === void 0 ? emptyObject : _props$style,\n      imageStyle = props.imageStyle,\n      imageRef = props.imageRef,\n      rest = _objectWithoutPropertiesLoose(props, [\"children\", \"style\", \"imageStyle\", \"imageRef\"]);\n\n  var _StyleSheet$flatten = StyleSheet.flatten(style),\n      height = _StyleSheet$flatten.height,\n      width = _StyleSheet$flatten.width;\n\n  return React.createElement(View, {\n    ref: forwardedRef,\n    style: style\n  }, React.createElement(Image, _extends({}, rest, {\n    ref: imageRef,\n    style: [StyleSheet.absoluteFill, {\n      width: width,\n      height: height,\n      zIndex: -1\n    }, imageStyle]\n  })), children);\n});\nImageBackground.displayName = 'ImageBackground';\nexport default ImageBackground;","map":{"version":3,"sources":["/Users/rohitsingh/Documents/projects/new-nativebase-setup/NativeBase/example/node_modules/react-native-web/dist/exports/ImageBackground/index.js"],"names":["_extends","Object","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","apply","_objectWithoutPropertiesLoose","excluded","sourceKeys","keys","indexOf","React","forwardRef","Image","StyleSheet","View","emptyObject","ImageBackground","props","forwardedRef","children","_props$style","style","imageStyle","imageRef","rest","_StyleSheet$flatten","flatten","height","width","createElement","ref","absoluteFill","zIndex","displayName"],"mappings":"AAAA,SAASA,QAAT,GAAoB;AAAEA,EAAAA,QAAQ,GAAGC,MAAM,CAACC,MAAP,IAAiB,UAAUC,MAAV,EAAkB;AAAE,SAAK,IAAIC,CAAC,GAAG,CAAb,EAAgBA,CAAC,GAAGC,SAAS,CAACC,MAA9B,EAAsCF,CAAC,EAAvC,EAA2C;AAAE,UAAIG,MAAM,GAAGF,SAAS,CAACD,CAAD,CAAtB;;AAA2B,WAAK,IAAII,GAAT,IAAgBD,MAAhB,EAAwB;AAAE,YAAIN,MAAM,CAACQ,SAAP,CAAiBC,cAAjB,CAAgCC,IAAhC,CAAqCJ,MAArC,EAA6CC,GAA7C,CAAJ,EAAuD;AAAEL,UAAAA,MAAM,CAACK,GAAD,CAAN,GAAcD,MAAM,CAACC,GAAD,CAApB;AAA4B;AAAE;AAAE;;AAAC,WAAOL,MAAP;AAAgB,GAA5P;;AAA8P,SAAOH,QAAQ,CAACY,KAAT,CAAe,IAAf,EAAqBP,SAArB,CAAP;AAAyC;;AAE7T,SAASQ,6BAAT,CAAuCN,MAAvC,EAA+CO,QAA/C,EAAyD;AAAE,MAAIP,MAAM,IAAI,IAAd,EAAoB,OAAO,EAAP;AAAW,MAAIJ,MAAM,GAAG,EAAb;AAAiB,MAAIY,UAAU,GAAGd,MAAM,CAACe,IAAP,CAAYT,MAAZ,CAAjB;AAAsC,MAAIC,GAAJ,EAASJ,CAAT;;AAAY,OAAKA,CAAC,GAAG,CAAT,EAAYA,CAAC,GAAGW,UAAU,CAACT,MAA3B,EAAmCF,CAAC,EAApC,EAAwC;AAAEI,IAAAA,GAAG,GAAGO,UAAU,CAACX,CAAD,CAAhB;AAAqB,QAAIU,QAAQ,CAACG,OAAT,CAAiBT,GAAjB,KAAyB,CAA7B,EAAgC;AAAUL,IAAAA,MAAM,CAACK,GAAD,CAAN,GAAcD,MA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EA,MATuB;AAU/BK,MAAAA,MAAM,EAAE,CAAC;AAVsB,KAA1B,EAWJV,UAXI;AAFqD,GAAX,CAAnC,CAHI,EAiBfH,QAjBe,CAApB;AAkBD,CA9B4C,CAA7C;AA+BAH,eAAe,CAACiB,WAAhB,GAA8B,iBAA9B;AACA,eAAejB,eAAf","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 _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\n/**\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 * as React from 'react';\nimport { forwardRef } from 'react';\nimport Image from '../Image';\nimport StyleSheet from '../StyleSheet';\nimport View from '../View';\nvar emptyObject = {};\n/**\n * Very simple drop-in replacement for <Image> which supports nesting views.\n */\n\nvar ImageBackground = /*#__PURE__*/forwardRef(function (props, forwardedRef) {\n  var children = props.children,\n      _props$style = props.style,\n      style = _props$style === void 0 ? emptyObject : _props$style,\n      imageStyle = props.imageStyle,\n      imageRef = props.imageRef,\n      rest = _objectWithoutPropertiesLoose(props, [\"children\", \"style\", \"imageStyle\", \"imageRef\"]);\n\n  var _StyleSheet$flatten = StyleSheet.flatten(style),\n      height = _StyleSheet$flatten.height,\n      width = _StyleSheet$flatten.width;\n\n  return /*#__PURE__*/React.createElement(View, {\n    ref: forwardedRef,\n    style: style\n  }, /*#__PURE__*/React.createElement(Image, _extends({}, rest, {\n    ref: imageRef,\n    style: [StyleSheet.absoluteFill, {\n      // Temporary Workaround:\n      // Current (imperfect yet) implementation of <Image> overwrites width and height styles\n      // (which is not quite correct), and these styles conflict with explicitly set styles\n      // of <ImageBackground> and with our internal layout model here.\n      // So, we have to proxy/reapply these styles explicitly for actual <Image> component.\n      // This workaround should be removed after implementing proper support of\n      // intrinsic content size of the <Image>.\n      width: width,\n      height: height,\n      zIndex: -1\n    }, imageStyle]\n  })), children);\n});\nImageBackground.displayName = 'ImageBackground';\nexport default ImageBackground;"]},"metadata":{},"sourceType":"module"}