{"version":3,"sources":["node_modules\\react-dom\\lib\\LinkedValueUtils.js"],"names":["_prodInvariant","require","ReactPropTypesSecret","propTypesFactory","React","PropTypes","isValidElement","invariant","warning","hasReadOnlyValue","button","checkbox","image","hidden","radio","reset","submit","_assertSingleLink","inputProps","checkedLink","valueLink","process","env","NODE_ENV","_assertValueLink","value","onChange","_assertCheckedLink","checked","propTypes","props","propName","componentName","type","readOnly","disabled","Error","func","loggedTypeFailures","getDeclarationErrorAddendum","owner","name","getName","LinkedValueUtils","checkPropTypes","tagName","hasOwnProperty","error","message","addendum","getValue","getChecked","executeOnChange","event","requestChange","target","call","undefined","module","exports"],"mappings":";;;;;;;;;;AAUA;;AAEA,GAAIA,gBAAiBC,QAAQ,sBAAR,CAArB;;AAEA,GAAIC,sBAAuBD,QAAQ,wBAAR,CAA3B;AACA,GAAIE,kBAAmBF,QAAQ,oBAAR,CAAvB;;AAEA,GAAIG,OAAQH,QAAQ,iBAAR,CAAZ;AACA,GAAII,WAAYF,iBAAiBC,MAAME,cAAvB,CAAhB;;AAEA,GAAIC,WAAYN,QAAQ,oBAAR,CAAhB;AACA,GAAIO,SAAUP,QAAQ,kBAAR,CAAd;;AAEA,GAAIQ,kBAAmB;AACrBC,OAAQ,IADa;AAErBC,SAAU,IAFW;AAGrBC,MAAO,IAHc;AAIrBC,OAAQ,IAJa;AAKrBC,MAAO,IALc;AAMrBC,MAAO,IANc;AAOrBC,OAAQ,IAPa,CAAvB;;;AAUA,QAASC,kBAAT,CAA2BC,UAA3B,CAAuC;AACrC,EAAEA,WAAWC,WAAX,EAA0B,IAA1B,EAAkCD,WAAWE,SAAX,EAAwB,IAA5D,EAAoEC,QAAQC,GAAR,CAAYC,QAAZ,GAAyB,YAAzB,CAAwChB,UAAU,KAAV,CAAiB,yIAAjB,CAAxC,CAAsMP,eAAe,IAAf,CAA1Q,CAAiS,IAAK,EAAtS;AACD;AACD,QAASwB,iBAAT,CAA0BN,UAA1B,CAAsC;AACpCD,kBAAkBC,UA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WAAX,CAAuBM,KAA9B;AACD;AACD,MAAOP,YAAWU,OAAlB;AACD,CAxCoB;;;;;;AA8CrBwB,gBAAiB,yBAAUlC,UAAV,CAAsBmC,KAAtB,CAA6B;AAC5C,GAAInC,WAAWE,SAAf,CAA0B;AACxBI,iBAAiBN,UAAjB;AACA,MAAOA,YAAWE,SAAX,CAAqBkC,aAArB,CAAmCD,MAAME,MAAN,CAAa9B,KAAhD,CAAP;AACD,CAHD,IAGO,IAAIP,WAAWC,WAAf,CAA4B;AACjCQ,mBAAmBT,UAAnB;AACA,MAAOA,YAAWC,WAAX,CAAuBmC,aAAvB,CAAqCD,MAAME,MAAN,CAAa3B,OAAlD,CAAP;AACD,CAHM,IAGA,IAAIV,WAAWQ,QAAf,CAAyB;AAC9B,MAAOR,YAAWQ,QAAX,CAAoB8B,IAApB,CAAyBC,SAAzB,CAAoCJ,KAApC,CAAP;AACD;AACF,CAxDoB,CAAvB;;;AA2DAK,OAAOC,OAAP,CAAiBhB,gBAAjB","file":"LinkedValueUtils.js","sourceRoot":"D:/Work/Office/react-native-on-web/cli/tmpl/project","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n *\n */\n\n'use strict';\n\nvar _prodInvariant = require('./reactProdInvariant');\n\nvar ReactPropTypesSecret = require('./ReactPropTypesSecret');\nvar propTypesFactory = require('prop-types/factory');\n\nvar React = require('react/lib/React');\nvar PropTypes = propTypesFactory(React.isValidElement);\n\nvar invariant = require('fbjs/lib/invariant');\nvar warning = require('fbjs/lib/warning');\n\nvar hasReadOnlyValue = {\n  button: true,\n  checkbox: true,\n  image: true,\n  hidden: true,\n  radio: true,\n  reset: true,\n  submit: true\n};\n\nfunction _assertSingleLink(inputProps) {\n  !(inputProps.checkedLink == null || inputProps.valueLink == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a valueLink. If you want to use checkedLink, you probably don\\'t want to use valueLink and vice versa.') : _prodInvariant('87') : void 0;\n}\nfunction _assertValueLink(inputProps) {\n  _assertSingleLink(inputProps);\n  !(inputProps.value == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a valueLink and a value or onChange event. If you want to use value or onChange, you probably don\\'t want to use valueLink.') : _prodInvariant('88') : void 0;\n}\n\nfunction _assertCheckedLink(inputProps) {\n  _assertSingleLink(inputProps);\n  !(inputProps.checked == null && inputProps.onChange == null) ? process.env.NODE_ENV !== 'production' ? invariant(false, 'Cannot provide a checkedLink and a checked property or onChange event. If you want to use checked or onChange, you probably don\\'t want to use checkedLink') : _prodInvariant('89') : void 0;\n}\n\nvar propTypes = {\n  value: function (props, propName, componentName) {\n    if (!props[propName] || hasReadOnlyValue[props.type] || props.onChange || props.readOnly || props.disabled) {\n      return null;\n    }\n    return new Error('You provided a `value` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultValue`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n  },\n  checked: function (props, propName, componentName) {\n    if (!props[propName] || props.onChange || props.readOnly || props.disabled) {\n      return null;\n    }\n    return new Error('You provided a `checked` prop to a form field without an ' + '`onChange` handler. This will render a read-only field. If ' + 'the field should be mutable use `defaultChecked`. Otherwise, ' + 'set either `onChange` or `readOnly`.');\n  },\n  onChange: PropTypes.func\n};\n\nvar loggedTypeFailures = {};\nfunction getDeclarationErrorAddendum(owner) {\n  if (owner) {\n    var name = owner.getName();\n    if (name) {\n      return ' Check the render method of `' + name + '`.';\n    }\n  }\n  return '';\n}\n\n/**\n * Provide a linked `value` attribute for controlled forms. You should not use\n * this outside of the ReactDOM controlled form components.\n */\nvar LinkedValueUtils = {\n  checkPropTypes: function (tagName, props, owner) {\n    for (var propName in propTypes) {\n      if (propTypes.hasOwnProperty(propName)) {\n        var error = propTypes[propName](props, propName, tagName, 'prop', null, ReactPropTypesSecret);\n      }\n      if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n        // Only monitor this failure once because there tends to be a lot of the\n        // same error.\n        loggedTypeFailures[error.message] = true;\n\n        var addendum = getDeclarationErrorAddendum(owner);\n        process.env.NODE_ENV !== 'production' ? warning(false, 'Failed form propType: %s%s', error.message, addendum) : void 0;\n      }\n    }\n  },\n\n  /**\n   * @param {object} inputProps Props for form component\n   * @return {*} current value of the input either from value prop or link.\n   */\n  getValue: function (inputProps) {\n    if (inputProps.valueLink) {\n      _assertValueLink(inputProps);\n      return inputProps.valueLink.value;\n    }\n    return inputProps.value;\n  },\n\n  /**\n   * @param {object} inputProps Props for form component\n   * @return {*} current checked status of the input either from checked prop\n   *             or link.\n   */\n  getChecked: function (inputProps) {\n    if (inputProps.checkedLink) {\n      _assertCheckedLink(inputProps);\n      return inputProps.checkedLink.value;\n    }\n    return inputProps.checked;\n  },\n\n  /**\n   * @param {object} inputProps Props for form component\n   * @param {SyntheticEvent} event change event to handle\n   */\n  executeOnChange: function (inputProps, event) {\n    if (inputProps.valueLink) {\n      _assertValueLink(inputProps);\n      return inputProps.valueLink.requestChange(event.target.value);\n    } else if (inputProps.checkedLink) {\n      _assertCheckedLink(inputProps);\n      return inputProps.checkedLink.requestChange(event.target.checked);\n    } else if (inputProps.onChange) {\n      return inputProps.onChange.call(undefined, event);\n    }\n  }\n};\n\nmodule.exports = LinkedValueUtils;"]}