2d91e4c739981ba2c012d33a6368c6c2.json 27.6 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.atomic=atomic;exports.classic=classic;exports.inline=inline;exports.stringifyValueWithProperty=stringifyValueWithProperty;var _createReactDOMStyle=_interopRequireDefault(require(\"./createReactDOMStyle\"));var _hash=_interopRequireDefault(require(\"../../vendor/hash\"));var _hyphenateStyleName=_interopRequireDefault(require(\"hyphenate-style-name\"));var _normalizeValueWithProperty=_interopRequireDefault(require(\"./normalizeValueWithProperty\"));var _prefixStyles=_interopRequireWildcard(require(\"../../modules/prefixStyles\"));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;}var cache={get:function get(property,value){if(cache[property]!=null&&cache[property].hasOwnProperty(value)&&cache[property][value]!=null){return cache[property][value];}},set:function set(property,value,object){if(cache[property]==null){cache[property]={};}return cache[property][value]=object;}};function atomic(style){return Object.keys(style).sort().reduce(function(acc,property){var value=style[property];if(value!=null){var valueString=stringifyValueWithProperty(value,property);var cachedResult=cache.get(property,valueString);if(cachedResult!=null){var identifier=cachedResult.identifier;acc[identifier]=cachedResult;}else{var _identifier=createIdentifier('r',property,value);var rules=createAtomicRules(_identifier,property,value);var _cachedResult=cache.set(property,valueString,{property:property,value:stringifyValueWithProperty(value,property),identifier:_identifier,rules:rules});acc[_identifier]=_cachedResult;}}return acc;},{});}function classic(style,name){var _ref;var identifier=createIdentifier('css',name,style);var animationKeyframes=style.animationKeyframes,rest=_objectWithoutPropertiesLoose(style,[\"animationKeyframes\"]);var rules=[];var selector=\".\"+identifier;var animationName;if(animationKeyframes!=null){var _processKeyframesValu=processKeyframesValue(animationKeyframes),animationNames=_processKeyframesValu.animationNames,keyframesRules=_processKeyframesValu.rules;animationName=animationNames.join(',');rules.push.apply(rules,keyframesRules);}var block=createDeclarationBlock(_objectSpread({},rest,{animationName:animationName}));rules.push(\"\"+selector+block);return _ref={},_ref[identifier]={identifier:identifier,rules:rules},_ref;}function inline(style){return(0,_prefixStyles.prefixInlineStyles)((0,_createReactDOMStyle.default)(style));}function stringifyValueWithProperty(value,property){var normalizedValue=(0,_normalizeValueWithProperty.default)(value,property);return typeof normalizedValue!=='string'?JSON.stringify(normalizedValue||''):normalizedValue;}function createAtomicRules(identifier,property,value){var rules=[];var selector=\".\"+identifier;switch(property){case'animationKeyframes':{var _processKeyframesValu2=processKeyframesValue(value),animationNames=_processKeyframesValu2.animationNames,keyframesRules=_processKeyframesValu2.rules;var block=createDeclarationBlock({animationName:animationNames.join(',')});rules.push.apply(rules,[\"\"+selector+block].concat(keyframesRules));break;}case'placeholderTextColor':{var _block=createDeclarationBlock({color:value,opacity:1});rules.push(selector+\"::-webkit-input-placeholder\"+_block,selector+\"::-moz-placeholder\"+_block,selector+\":-ms-input-placeholder\"+_block,selector+\"::placeholder\"+_block);break;}case'scrollbarWidth':{if(value==='none'){rules.push(selector+\"::-webkit-scrollbar{display:none}\",selector+\"{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;}\");}break;}case'pointerEvents':{var _createDeclarationBlo3;var finalValue=value;if(value==='auto'||value==='box-only'){finalValue='auto!important';if(value==='box-only'){var _createDeclarationBlo;var _block3=createDeclarationBlock((_createDeclarationBlo={},_createDeclarationBlo[property]='none',_createDeclarationBlo));rules.push(selector+\">*\"+_block3);}}else if(value==='none'||value==='box-none'){finalValue='none!important';if(value==='box-none'){var _createDeclarationBlo2;var _block4=createDeclarationBlock((_createDeclarationBlo2={},_createDeclarationBlo2[property]='auto',_createDeclarationBlo2));rules.push(selector+\">*\"+_block4);}}var _block2=createDeclarationBlock((_createDeclarationBlo3={},_createDeclarationBlo3[property]=finalValue,_createDeclarationBlo3));rules.push(\"\"+selector+_block2);break;}default:{var _createDeclarationBlo4;var _block5=createDeclarationBlock((_createDeclarationBlo4={},_createDeclarationBlo4[property]=value,_createDeclarationBlo4));rules.push(\"\"+selector+_block5);break;}}return rules;}function createDeclarationBlock(style){var domStyle=(0,_prefixStyles.default)((0,_createReactDOMStyle.default)(style));var declarationsString=Object.keys(domStyle).map(function(property){var value=domStyle[property];var prop=(0,_hyphenateStyleName.default)(property);if(Array.isArray(value)){return value.map(function(v){return prop+\":\"+v;}).join(';');}else{return prop+\":\"+value;}}).sort().join(';');return\"{\"+declarationsString+\";}\";}function createIdentifier(prefix,name,value){var hashedString=(0,_hash.default)(name+stringifyValueWithProperty(value,name));return process.env.NODE_ENV!=='production'?prefix+\"-\"+name+\"-\"+hashedString:prefix+\"-\"+hashedString;}function createKeyframes(keyframes){var prefixes=['-webkit-',''];var identifier=createIdentifier('r','animation',keyframes);var steps='{'+Object.keys(keyframes).map(function(stepName){var rule=keyframes[stepName];var block=createDeclarationBlock(rule);return\"\"+stepName+block;}).join('')+'}';var rules=prefixes.map(function(prefix){return\"@\"+prefix+\"keyframes \"+identifier+steps;});return{identifier:identifier,rules:rules};}function processKeyframesValue(keyframesValue){if(typeof keyframesValue==='number'){throw new Error('Invalid CSS keyframes type');}var animationNames=[];var rules=[];var value=Array.isArray(keyframesValue)?keyframesValue:[keyframesValue];value.forEach(function(keyframes){if(typeof keyframes==='string'){animationNames.push(keyframes);}else{var _createKeyframes=createKeyframes(keyframes),identifier=_createKeyframes.identifier,keyframesRules=_createKeyframes.rules;animationNames.push(identifier);rules.push.apply(rules,keyframesRules);}});return{animationNames:animationNames,rules:rules};}","map":{"version":3,"sources":["C:/Users/bluej/Desktop/2_2/searchGuide/searchGuide/node_modules/react-native-web/dist/exports/StyleSheet/compile.js"],"names":["_objectSpread","target","i","arguments","length","source","ownKeys","Object","keys","getOwnPropertySymbols","concat","filter","sym","getOwnPropertyDescriptor","enumerable","forEach","key","_defineProperty","obj","value","defineProperty","configurable","writable","_objectWithoutPropertiesLoose","excluded","sourceKeys","indexOf","cache","get","property","hasOwnProperty","set","object","atomic","style","sort","reduce","acc","valueString","stringifyValueWithProperty","cachedResult","identifier","_identifier","createIdentifier","rules","createAtomicRules","_cachedResult","classic","name","_ref","animationKeyframes","rest","selector","animationName","_processKeyframesValu","processKeyframesValue","animationNames","keyframesRules","join","push","apply","block","createDeclarationBlock","inline","normalizedValue","JSON","stringify","_processKeyframesValu2","_block","color","opacity","_createDeclarationBlo3","finalValue","_createDeclarationBlo","_block3","_createDeclarationBlo2","_block4","_block2","_createDeclarationBlo4","_block5","domStyle","declarationsString","map","prop","Array","isArray","v","prefix","hashedString","process","env","NODE_ENV","createKeyframes","keyframes","prefixes","steps","stepName","rule","keyframesValue","Error","_createKeyframes"],"mappings":"mWAcA,kFACA,+DACA,gFACA,gGACA,iFAlBA,QAASA,CAAAA,aAAT,CAAuBC,MAAvB,CAA+B,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,CAAT,EAAgB,IAAhB,CAAuBC,SAAS,CAACD,CAAD,CAAhC,CAAsC,EAAnD,CAAuD,GAAII,CAAAA,OAAO,CAAGC,MAAM,CAACC,IAAP,CAAYH,MAAZ,CAAd,CAAmC,GAAI,MAAO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CAAtC,CACIpD,UAAU,CAAG2D,gBAAgB,CAAC3D,UADlC,CAEIgB,cAAc,CAAG2C,gBAAgB,CAACxD,KAFtC,CAIAY,cAAc,CAACG,IAAf,CAAoBlB,UAApB,EACAG,KAAK,CAACe,IAAN,CAAWC,KAAX,CAAiBhB,KAAjB,CAAwBa,cAAxB,EACD,CACF,CAbD,EAcA,MAAO,CACLD,cAAc,CAAEA,cADX,CAELZ,KAAK,CAAEA,KAFF,CAAP,CAID","sourcesContent":["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; }\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\n/**\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 createReactDOMStyle from './createReactDOMStyle';\nimport hash from '../../vendor/hash';\nimport hyphenateStyleName from 'hyphenate-style-name';\nimport normalizeValueWithProperty from './normalizeValueWithProperty';\nimport prefixStyles, { prefixInlineStyles } from '../../modules/prefixStyles';\nvar cache = {\n  get: function get(property, value) {\n    if (cache[property] != null && cache[property].hasOwnProperty(value) && cache[property][value] != null) {\n      return cache[property][value];\n    }\n  },\n  set: function set(property, value, object) {\n    if (cache[property] == null) {\n      cache[property] = {};\n    }\n\n    return cache[property][value] = object;\n  }\n};\n/**\n * Compile style to atomic CSS rules.\n */\n\nexport function atomic(style) {\n  return Object.keys(style).sort().reduce(function (acc, property) {\n    var value = style[property];\n\n    if (value != null) {\n      var valueString = stringifyValueWithProperty(value, property);\n      var cachedResult = cache.get(property, valueString);\n\n      if (cachedResult != null) {\n        var identifier = cachedResult.identifier;\n        acc[identifier] = cachedResult;\n      } else {\n        var _identifier = createIdentifier('r', property, value);\n\n        var rules = createAtomicRules(_identifier, property, value);\n\n        var _cachedResult = cache.set(property, valueString, {\n          property: property,\n          value: stringifyValueWithProperty(value, property),\n          identifier: _identifier,\n          rules: rules\n        });\n\n        acc[_identifier] = _cachedResult;\n      }\n    }\n\n    return acc;\n  }, {});\n}\n/**\n * Compile simple style object to classic CSS rules.\n * No support for 'placeholderTextColor', 'scrollbarWidth', or 'pointerEvents'.\n */\n\nexport function classic(style, name) {\n  var _ref;\n\n  var identifier = createIdentifier('css', name, style);\n\n  var animationKeyframes = style.animationKeyframes,\n      rest = _objectWithoutPropertiesLoose(style, [\"animationKeyframes\"]);\n\n  var rules = [];\n  var selector = \".\" + identifier;\n  var animationName;\n\n  if (animationKeyframes != null) {\n    var _processKeyframesValu = processKeyframesValue(animationKeyframes),\n        animationNames = _processKeyframesValu.animationNames,\n        keyframesRules = _processKeyframesValu.rules;\n\n    animationName = animationNames.join(',');\n    rules.push.apply(rules, keyframesRules);\n  }\n\n  var block = createDeclarationBlock(_objectSpread({}, rest, {\n    animationName: animationName\n  }));\n  rules.push(\"\" + selector + block);\n  return _ref = {}, _ref[identifier] = {\n    identifier: identifier,\n    rules: rules\n  }, _ref;\n}\n/**\n * Compile simple style object to inline DOM styles.\n * No support for 'animationKeyframes', 'placeholderTextColor', 'scrollbarWidth', or 'pointerEvents'.\n */\n\nexport function inline(style) {\n  return prefixInlineStyles(createReactDOMStyle(style));\n}\n/**\n * Create a value string that normalizes different input values with a common\n * output.\n */\n\nexport function stringifyValueWithProperty(value, property) {\n  // e.g., 0 => '0px', 'black' => 'rgba(0,0,0,1)'\n  var normalizedValue = normalizeValueWithProperty(value, property);\n  return typeof normalizedValue !== 'string' ? JSON.stringify(normalizedValue || '') : normalizedValue;\n}\n/**\n * Create the Atomic CSS rules needed for a given StyleSheet rule.\n * Translates StyleSheet declarations to CSS.\n */\n\nfunction createAtomicRules(identifier, property, value) {\n  var rules = [];\n  var selector = \".\" + identifier; // Handle non-standard properties and object values that require multiple\n  // CSS rules to be created.\n\n  switch (property) {\n    case 'animationKeyframes':\n      {\n        var _processKeyframesValu2 = processKeyframesValue(value),\n            animationNames = _processKeyframesValu2.animationNames,\n            keyframesRules = _processKeyframesValu2.rules;\n\n        var block = createDeclarationBlock({\n          animationName: animationNames.join(',')\n        });\n        rules.push.apply(rules, [\"\" + selector + block].concat(keyframesRules));\n        break;\n      }\n\n    case 'placeholderTextColor':\n      {\n        var _block = createDeclarationBlock({\n          color: value,\n          opacity: 1\n        });\n\n        rules.push(selector + \"::-webkit-input-placeholder\" + _block, selector + \"::-moz-placeholder\" + _block, selector + \":-ms-input-placeholder\" + _block, selector + \"::placeholder\" + _block);\n        break;\n      }\n    // Polyfill for draft spec\n    // https://drafts.csswg.org/css-scrollbars-1/\n\n    case 'scrollbarWidth':\n      {\n        if (value === 'none') {\n          rules.push(selector + \"::-webkit-scrollbar{display:none}\", selector + \"{overflow:-moz-scrollbars-none;-ms-overflow-style:none;scrollbar-width:none;}\");\n        }\n\n        break;\n      }\n    // See #513\n\n    case 'pointerEvents':\n      {\n        var _createDeclarationBlo3;\n\n        var finalValue = value;\n\n        if (value === 'auto' || value === 'box-only') {\n          finalValue = 'auto!important';\n\n          if (value === 'box-only') {\n            var _createDeclarationBlo;\n\n            var _block3 = createDeclarationBlock((_createDeclarationBlo = {}, _createDeclarationBlo[property] = 'none', _createDeclarationBlo));\n\n            rules.push(selector + \">*\" + _block3);\n          }\n        } else if (value === 'none' || value === 'box-none') {\n          finalValue = 'none!important';\n\n          if (value === 'box-none') {\n            var _createDeclarationBlo2;\n\n            var _block4 = createDeclarationBlock((_createDeclarationBlo2 = {}, _createDeclarationBlo2[property] = 'auto', _createDeclarationBlo2));\n\n            rules.push(selector + \">*\" + _block4);\n          }\n        }\n\n        var _block2 = createDeclarationBlock((_createDeclarationBlo3 = {}, _createDeclarationBlo3[property] = finalValue, _createDeclarationBlo3));\n\n        rules.push(\"\" + selector + _block2);\n        break;\n      }\n\n    default:\n      {\n        var _createDeclarationBlo4;\n\n        var _block5 = createDeclarationBlock((_createDeclarationBlo4 = {}, _createDeclarationBlo4[property] = value, _createDeclarationBlo4));\n\n        rules.push(\"\" + selector + _block5);\n        break;\n      }\n  }\n\n  return rules;\n}\n/**\n * Creates a CSS declaration block from a StyleSheet object.\n */\n\n\nfunction createDeclarationBlock(style) {\n  var domStyle = prefixStyles(createReactDOMStyle(style));\n  var declarationsString = Object.keys(domStyle).map(function (property) {\n    var value = domStyle[property];\n    var prop = hyphenateStyleName(property); // The prefixer may return an array of values:\n    // { display: [ '-webkit-flex', 'flex' ] }\n    // to represent \"fallback\" declarations\n    // { display: -webkit-flex; display: flex; }\n\n    if (Array.isArray(value)) {\n      return value.map(function (v) {\n        return prop + \":\" + v;\n      }).join(';');\n    } else {\n      return prop + \":\" + value;\n    }\n  }) // Once properties are hyphenated, this will put the vendor\n  // prefixed and short-form properties first in the list.\n  .sort().join(';');\n  return \"{\" + declarationsString + \";}\";\n}\n/**\n * An identifier is associated with a unique set of styles.\n */\n\n\nfunction createIdentifier(prefix, name, value) {\n  var hashedString = hash(name + stringifyValueWithProperty(value, name));\n  return process.env.NODE_ENV !== 'production' ? prefix + \"-\" + name + \"-\" + hashedString : prefix + \"-\" + hashedString;\n}\n/**\n * Create individual CSS keyframes rules.\n */\n\n\nfunction createKeyframes(keyframes) {\n  var prefixes = ['-webkit-', ''];\n  var identifier = createIdentifier('r', 'animation', keyframes);\n  var steps = '{' + Object.keys(keyframes).map(function (stepName) {\n    var rule = keyframes[stepName];\n    var block = createDeclarationBlock(rule);\n    return \"\" + stepName + block;\n  }).join('') + '}';\n  var rules = prefixes.map(function (prefix) {\n    return \"@\" + prefix + \"keyframes \" + identifier + steps;\n  });\n  return {\n    identifier: identifier,\n    rules: rules\n  };\n}\n/**\n * Create CSS keyframes rules and names from a StyleSheet keyframes object.\n */\n\n\nfunction processKeyframesValue(keyframesValue) {\n  if (typeof keyframesValue === 'number') {\n    throw new Error('Invalid CSS keyframes type');\n  }\n\n  var animationNames = [];\n  var rules = [];\n  var value = Array.isArray(keyframesValue) ? keyframesValue : [keyframesValue];\n  value.forEach(function (keyframes) {\n    if (typeof keyframes === 'string') {\n      // Support external animation libraries (identifiers only)\n      animationNames.push(keyframes);\n    } else {\n      // Create rules for each of the keyframes\n      var _createKeyframes = createKeyframes(keyframes),\n          identifier = _createKeyframes.identifier,\n          keyframesRules = _createKeyframes.rules;\n\n      animationNames.push(identifier);\n      rules.push.apply(rules, keyframesRules);\n    }\n  });\n  return {\n    animationNames: animationNames,\n    rules: rules\n  };\n}"]},"metadata":{},"sourceType":"script"}