GoScrobble/web/node_modules/react-input-autosize/examples/dist/app.js

30 lines
137 KiB
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
webpackJsonp([0],[function(e,t,n){"use strict";e.exports=n(3)},function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
var l=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,i=r(e),s=1;s<arguments.length;s++){n=Object(arguments[s]);for(var c in n)a.call(n,c)&&(i[c]=n[c]);if(l){u=l(n);for(var f=0;f<u.length;f++)o.call(n,u[f])&&(i[u[f]]=n[u[f]])}}return i}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(0),s=r(i),c=n(4),f=r(c),d=n(8),p=r(d);n(12);var h=function(e){function t(e){l(this,t);var n=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.updateInputValue=function(e,t){var r={};r[e]=t.target.value,n.setState(r)},n.state={value1:"",value2:"example",value3:3,value4:"",value5:""},n}return o(t,e),u(t,[{key:"render",value:function(){return s.default.createElement("div",null,s.default.createElement("h3",null,"Simple example:"),s.default.createElement(p.default,{autoFocus:!0,value:this.state.value1,onChange:this.updateInputValue.bind(this,"value1")}),s.default.createElement("h3",null,"Styled example with default value:"),s.default.createElement(p.default,{value:this.state.value2,onChange:this.updateInputValue.bind(this,"value2"),style:{background:"#eee",borderRadius:5,padding:5},inputStyle:{border:"1px solid #999",borderRadius:3,padding:3,fontSize:14}}),s.default.createElement("h3",null,"Typed example with default value:"),s.default.createElement(p.default,{value:this.state.value3,type:"number",onChange:this.updateInputValue.bind(this,"value3")}),s.default.createElement("h3",null,"Input with placeholder:"),s.default.createElement(p.default,{placeholder:"Placeholder",value:this.state.value4,onChange:this.updateInputValue.bind(this,"value4"),style:{background:"#eee",borderRadius:5,padding:5},inputStyle:{border:"1px solid #999",borderRadius:3,padding:3,fontSize:14}}),s.default.createElement("h3",null,"Input with placeholder as minimum width:"),s.default.createElement(p.default,{placeholder:"Placeholder",placeholderIsMinWidth:!0,value:this.state.value5,onChange:this.updateInputValue.bind(this,"value5"),style:{background:"#eee",borderRadius:5,padding:5},inputStyle:{border:"1px solid #999",borderRadius:3,padding:3,fontSize:14}}))}}]),t}(i.Component);f.default.render(s.default.createElement(h,null),document.getElementById("app"))},function(e,t,n){"use strict";function r(e){return null===e||"object"!=typeof e?null:(e=C&&e[C]||e["@@iterator"],"function"==typeof e?e:null)}function l(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(e,t,n){this.props=e,this.context=t,this.refs=N,this.update
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var v=n(1),g=60103,b=60106;t.Fragment=60107,t.StrictMode=60108,t.Profiler=60114;var w=60109,k=60110,S=60112;t.Suspense=60113;var E=60115,x=60116;if("function"==typeof Symbol&&Symbol.for){var _=Symbol.for;g=_("react.element"),b=_("react.portal"),t.Fragment=_("react.fragment"),t.StrictMode=_("react.strict_mode"),t.Profiler=_("react.profiler"),w=_("react.provider"),k=_("react.context"),S=_("react.forward_ref"),t.Suspense=_("react.suspense"),E=_("react.memo"),x=_("react.lazy")}var C="function"==typeof Symbol&&Symbol.iterator,P={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},N={};a.prototype.isReactComponent={},a.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error(l(85));this.updater.enqueueSetState(this,e,t,"setState")},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=a.prototype;var T=u.prototype=new o;T.constructor=u,v(T,a.prototype),T.isPureReactComponent=!0;var z={current:null},O=Object.prototype.hasOwnProperty,L={key:!0,ref:!0,__self:!0,__source:!0},R=/\/+/g,M={current:null},I={ReactCurrentDispatcher:M,ReactCurrentBatchConfig:{transition:0},ReactCurrentOwner:z,IsSomeRendererActing:{current:!1},assign:v};t.Children={map:h,forEach:function(e,t,n){h(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return h(e,function(){t++}),t},toArray:function(e){return h(e,function(e){return e})||[]},only:function(e){if(!c(e))throw Error(l(143));return e}},t.Component=a,t.PureComponent=u,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error(l(267,e));var r=v({},e.props),a=e.key,o=e.ref,u=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,u=z.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(s in t)O.call(t,s)&&!L.hasOwnProperty(s)&&(r[s]=void 0===t[s]&&void 0!==i?i[s]:t[s])}var s=arguments.length-2;if(1===s)r.children=n;else if(1<s){i=Array(s);for(var c=0;c<s;c++)i[c]=arguments[c+2];r.children=i}return{$$typeof:g,type:e.type,key:a,ref:o,props:r,_owner:u}},t.createContext=function(e,t){return void 0===t&&(t=null),e={$$typeof:k,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider={$$typeof:w,_context:e},e.Consumer=e},t.createElement=i,t.createFactory=function(e){var t=i.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:S,render:e}},t.isValidElement=c,t.lazy=function(e){return{$$typeof:x,_payload:{_status:-1,_result:e},_init:m}},t.memo=function(e,t){return{$$typeof:E,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return y().useCallback(e,t)},t.useContext=function(e,t){return y().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return y().useEffect(e,t)},t.useImperativeHandle=function(e,t,n){return y().useImperativeHandle(e,t,n)},t.useLayoutEffect=function(e,t){return y().useLayoutEffect(e,t)},t.useMemo=function(e,t){return y().useMemo(e,t)},t.useReducer=function(e,t,n){return y().useReducer(e,t,n)},t.useRef=function(e){return y().useRef(e)},t.useState=function(e){return y().useState(e)},t.version="17.0.1"},function(e,t,n){"use strict";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}r(),e.exports=n(5)},function(e,t,n){"use strict";function r(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(e,t){a(e,t),a(e+"Capture",t)}function a(e,t){for(Kl[e]=t,e=0;e<t.length;e++)ql.add(t[e])}function o(e){return!!Gl.call(Jl,e)||!Gl.call(Zl,e)&&(Xl.test(e)?Jl[e]=!0:(Zl[e]=!0,!1
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var Hl=n(0),$l=n(1),Ql=n(6);if(!Hl)throw Error(r(227));var ql=new Set,Kl={},Yl=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),Xl=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Gl=Object.prototype.hasOwnProperty,Zl={},Jl={},ea={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ea[e]=new s(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ea[t]=new s(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){ea[e]=new s(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ea[e]=new s(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ea[e]=new s(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){ea[e]=new s(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){ea[e]=new s(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){ea[e]=new s(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){ea[e]=new s(e,5,!1,e.toLowerCase(),null,!1,!1)});var ta=/[\-:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(ta,c);ea[t]=new s(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(ta,c);ea[t]=new s(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ta,c);ea[t]=new s(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){ea[e]=new s(e,1,!1,e.toLowerCase(),null,!1,!1)}),ea.xlinkHref=new s("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){ea[e]=new s(e,1,!1,e.toLowerCase(),null,!0,!0)});var na=Hl.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ra=60103,la=60106,aa=60107,oa=60108,ua=60114,ia=60109,sa=60110,ca=60112,fa=60113,da=60120,pa=60115,ha=60116,ma=60121,ya=60128,va=60129,ga=60130,ba=60131;if("function"==typeof Symbol&&Symbol.for){var wa=Symbol.for;ra=wa("react.element"),la=wa("react.portal"),aa=wa("react.fragment"),oa=wa("react.strict_mode"),ua=wa("react.profiler"),ia=wa("react
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
var c,f,d,p;if("object"==typeof performance&&"function"==typeof performance.now){var h=performance;t.unstable_now=function(){return h.now()}}else{var m=Date,y=m.now();t.unstable_now=function(){return m.now()-y}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var v=null,g=null,b=function(){if(null!==v)try{var e=t.unstable_now();v(!0,e),v=null}catch(e){throw setTimeout(b,0),e}};c=function(e){null!==v?setTimeout(c,0,e):(v=e,setTimeout(b,0))},f=function(e,t){g=setTimeout(e,t)},d=function(){clearTimeout(g)},t.unstable_shouldYield=function(){return!1},p=t.unstable_forceFrameRate=function(){}}else{var w=window.setTimeout,k=window.clearTimeout;if("undefined"!=typeof console){var S=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof S&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var E=!1,x=null,_=-1,C=5,P=0;t.unstable_shouldYield=function(){return t.unstable_now()>=P},p=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<e?Math.floor(1e3/e):5};var N=new MessageChannel,T=N.port2;N.port1.onmessage=function(){if(null!==x){var e=t.unstable_now();P=e+C;try{x(!0,e)?T.postMessage(null):(E=!1,x=null)}catch(e){throw T.postMessage(null),e}}else E=!1},c=function(e){x=e,E||(E=!0,T.postMessage(null))},f=function(e,n){_=w(function(){e(t.unstable_now())},n)},d=function(){k(_),_=-1}}var z=[],O=[],L=1,R=null,M=3,I=!1,D=!1,F=!1,U=p;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||I||(D=!0,c(s))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return l(z)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=U,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,n,a){var o=t.unstable_now();switch("object"==typeof a&&null!==a?(a=a.delay,a="number"==typeof a&&0<a?o+a:o):a=o,e){case 1:var u=-1;break;case 2:u=250;break;case 5:u=1073741823;break;case 4:u=1e4;break;default:u=5e3}return u=a+u,e={id:L++,callback:n,priorityLevel:e,startTime:a,expirationTime:u,sortIndex:-1},a>o?(e.sortIndex=a,r(O,e),null===l(z)&&e===l(O)&&(F?d():F=!0,f(i,a-o))):(e.sortIndex=u,r(z,e),D||I||(D=!0,c(s))),e},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function l(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.cal