07be052aed07324ffa06364a388536f2.json 5.37 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.default=void 0;var _ReactNativePropRegistry=_interopRequireDefault(require(\"../../modules/ReactNativePropRegistry\"));var _flattenStyle=_interopRequireDefault(require(\"./flattenStyle\"));var absoluteFillObject={position:'absolute',left:0,right:0,top:0,bottom:0};var absoluteFill=_ReactNativePropRegistry.default.register(absoluteFillObject);var StyleSheet={absoluteFill:absoluteFill,absoluteFillObject:absoluteFillObject,compose:function compose(style1,style2){if(process.env.NODE_ENV!=='production'){var len=arguments.length;if(len>2){var readableStyles=Array.prototype.slice.call(arguments).map(function(a){return(0,_flattenStyle.default)(a);});throw new Error(\"StyleSheet.compose() only accepts 2 arguments, received \"+len+\": \"+JSON.stringify(readableStyles));}}if(style1&&style2){return[style1,style2];}else{return style1||style2;}},create:function create(styles){var result={};Object.keys(styles).forEach(function(key){if(process.env.NODE_ENV!=='production'){var validate=require(\"./validate\");var interopValidate=validate.default?validate.default:validate;interopValidate(key,styles);}var id=styles[key]&&_ReactNativePropRegistry.default.register(styles[key]);result[key]=id;});return result;},flatten:_flattenStyle.default,hairlineWidth:1};var _default=StyleSheet;exports.default=_default;","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/exports/StyleSheet/StyleSheet.js"],"names":["absoluteFillObject","position","left","right","top","bottom","absoluteFill","ReactNativePropRegistry","register","StyleSheet","compose","style1","style2","process","env","NODE_ENV","len","arguments","length","readableStyles","Array","prototype","slice","call","map","a","Error","JSON","stringify","create","styles","result","Object","keys","forEach","key","validate","require","interopValidate","default","id","flatten","flattenStyle","hairlineWidth"],"mappings":"mKAQA,sGACA,oEACA,GAAIA,CAAAA,kBAAkB,CAAG,CACvBC,QAAQ,CAAE,UADa,CAEvBC,IAAI,CAAE,CAFiB,CAGvBC,KAAK,CAAE,CAHgB,CAIvB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,GAAIC,CAAAA,eAAe,CAAGF,QAAQ,CAACG,OAAT,CAAmBH,QAAQ,CAACG,OAA5B,CAAsCH,QAA5D,CACAE,eAAe,CAACH,GAAD,CAAML,MAAN,CAAf,CACD,CAED,GAAIU,CAAAA,EAAE,CAAGV,MAAM,CAACK,GAAD,CAAN,EAAe5B,iCAAwBC,QAAxB,CAAiCsB,MAAM,CAACK,GAAD,CAAvC,CAAxB,CACAJ,MAAM,CAACI,GAAD,CAAN,CAAcK,EAAd,CACD,CAVD,EAWA,MAAOT,CAAAA,MAAP,CACD,CAtCc,CAuCfU,OAAO,CAAEC,qBAvCM,CAwCfC,aAAa,CAAE,CAxCA,CAAjB,C,aA0CelC,U","sourcesContent":["/**\n * Copyright (c) Nicolas Gallagher.\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 ReactNativePropRegistry from '../../modules/ReactNativePropRegistry';\nimport flattenStyle from './flattenStyle';\nvar absoluteFillObject = {\n  position: 'absolute',\n  left: 0,\n  right: 0,\n  top: 0,\n  bottom: 0\n};\nvar absoluteFill = ReactNativePropRegistry.register(absoluteFillObject);\nvar StyleSheet = {\n  absoluteFill: absoluteFill,\n  absoluteFillObject: absoluteFillObject,\n  compose: function compose(style1, style2) {\n    if (process.env.NODE_ENV !== 'production') {\n      /* eslint-disable prefer-rest-params */\n      var len = arguments.length;\n\n      if (len > 2) {\n        var readableStyles = Array.prototype.slice.call(arguments).map(function (a) {\n          return flattenStyle(a);\n        });\n        throw new Error(\"StyleSheet.compose() only accepts 2 arguments, received \" + len + \": \" + JSON.stringify(readableStyles));\n      }\n      /* eslint-enable prefer-rest-params */\n\n    }\n\n    if (style1 && style2) {\n      return [style1, style2];\n    } else {\n      return style1 || style2;\n    }\n  },\n  create: function create(styles) {\n    var result = {};\n    Object.keys(styles).forEach(function (key) {\n      if (process.env.NODE_ENV !== 'production') {\n        var validate = require('./validate');\n\n        var interopValidate = validate.default ? validate.default : validate;\n        interopValidate(key, styles);\n      }\n\n      var id = styles[key] && ReactNativePropRegistry.register(styles[key]);\n      result[key] = id;\n    });\n    return result;\n  },\n  flatten: flattenStyle,\n  hairlineWidth: 1\n};\nexport default StyleSheet;"]},"metadata":{},"sourceType":"script"}