ae8c1931e1bec26605dc4388d3b78c7a.json
1.91 KB
{"ast":null,"code":"var _interopRequireDefault=require(\"@babel/runtime/helpers/interopRequireDefault\");Object.defineProperty(exports,\"__esModule\",{value:true});exports.resolve=resolve;var _extends2=_interopRequireDefault(require(\"@babel/runtime/helpers/extends\"));var _toConsumableArray2=_interopRequireDefault(require(\"@babel/runtime/helpers/toConsumableArray\"));var _StyleSheet=_interopRequireDefault(require(\"react-native-web/dist/exports/StyleSheet\"));function resolve(styleProp,cleanedProps){if(styleProp){return _StyleSheet.default?[styleProp,cleanedProps]:styleProp[typeof Symbol===\"function\"?typeof Symbol===\"function\"?Symbol.iterator:\"@@iterator\":\"@@iterator\"]?Object.assign.apply(Object,[{}].concat((0,_toConsumableArray2.default)(styleProp),[cleanedProps])):(0,_extends2.default)({},styleProp,cleanedProps);}else{return cleanedProps;}}","map":{"version":3,"sources":["resolve.ts"],"names":["StyleSheet","styleProp","Symbol","Object"],"mappings":"oPAAA,oG,4FAGO,QAAA,CAAA,OAAA,CAAA,SAAA,CAAA,YAAA,CAA0C,CAC/C,GAAA,SAAA,CAAe,CACb,MAAOA,qBACH,CAAA,SAAA,CADa,YACb,CADGA,CAGLC,SAAS,CAAA,MAAA,CAAA,MAAA,GAAA,UAAA,4BAACC,MAAM,CAAP,QAAA,cAATD,YAAS,CAATA,CACEE,MAAM,CAANA,MAAAA,CAAAA,KAAAA,CAAAA,MAAAA,CAAM,CAAA,EAAA,EAAA,MAAA,CAAA,gCAAA,SAAA,CAAA,CAAA,CADRF,YACQ,CAAA,CAANE,CADFF,CAEE,sBAAA,EAAA,CAAA,SAAA,CALJ,YAKI,CALJ,CADF,CAAA,IAOO,CACL,MAAA,CAAA,YAAA,CAEH,CAAA","sourcesContent":["import { StyleSheet } from 'react-native-web';\n\n// Kept in separate file, to avoid name collision with Symbol element\nexport function resolve(styleProp, cleanedProps) {\n if (styleProp) {\n return StyleSheet\n ? [styleProp, cleanedProps]\n : // Compatibility for arrays of styles in plain react web\n styleProp[Symbol.iterator]\n ? Object.assign({}, ...styleProp, cleanedProps)\n : Object.assign({}, styleProp, cleanedProps);\n } else {\n return cleanedProps;\n }\n}\n"]},"metadata":{},"sourceType":"script"}