(window.webpackJsonp=window.webpackJsonp||[]).push([[49],{"+8gn":function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n("mrSG"),o=n("q1tI"),a=n("Eyy1"),u=n("txPx"),i=Object(u.getLogger)("Platform.GUI.StudyInputPropertyContainer"),s=o.createContext(null),c=function(e){function t(t){var n=e.call(this,t)||this;n._setValue=function(e,t,r){var o=n.props,u=o.property,s=o.model,c=Object(a.ensureDefined)(u.child(e));i.logNormal('Changing property "'+e+'" value from "'+u.value()+'" to "'+t+'"'),s.setProperty(c,t,"Change "+r)};var r=t.property,o={};return r.childNames().forEach((function(e){var t=Object(a.ensureDefined)(r.child(e));o.hasOwnProperty(e)||(o[e]=t.value())})),n.state=o,n}return Object(r.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.property;t.childNames().forEach((function(n){Object(a.ensureDefined)(t.child(n)).subscribe(e,(function(t){var r,o=t.value();i.logNormal('Property "'+n+'" updated to value "'+o+'"'),e.setState(((r={})[n]=o,r))}))}))},t.prototype.componentWillUnmount=function(){var e=this,t=this.props.property;t.childNames().forEach((function(n){Object(a.ensureDefined)(t.child(n)).unsubscribeAll(e)}))},t.prototype.render=function(){var e=this.props,t=e.study,n=e.model,r=e.children,a={study:t,model:n,values:this.state,setValue:this._setValue};return o.createElement(s.Provider,{value:a},r)},t}(o.PureComponent)},"1Tw0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n("mrSG").__exportStar(n("SMoP"),t)},"5Ssy":function(e,t,n){"use strict";var r=n("mrSG"),o=n("YFKU"),a=n("q1tI"),u=n.n(a),i=n("+8gn"),s=n("rJEJ"),c=n("h5Dg"),l=n("Q+1u"),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.input;return a.createElement(l.a.Row,null,a.createElement(l.a.Cell,{placement:"first",colSpan:2},a.createElement(c.a,{label:t,input:n})))},t}(a.PureComponent),d=n("0W35"),f=n("1Tw0"),h=n("Eyy1"),m=n("fV01"),v=n("HfwS"),b=n("tDS2");function y(e){var t=e.children,n=e.input,s=e.disabled,c=e.onChange,p=e.grouped,m=Object(a.useContext)(i.b),y=Object(h.ensureNotNull)(m),_=y.values,C=y.setValue,O=_[n.id],j=Object(a.useState)(O?"another-symbol":"main-symbol"),S=j[0],E=j[1],w=Object(a.useRef)(null);return u.a.createElement(d.SwitchGroup,{name:"symbol-source-"+n.id,values:[S],onChange:function(e){E(e),"main-symbol"===e?Object(v.b)(C)("",n.id,n.name):Object(h.ensureNotNull)(w.current).updateSymbol()}},u.a.createElement(l.a.Row,null,u.a.createElement(l.a.Cell,{colSpan:2,placement:"first",grouped:p},u.a.createElement(f.RadioButton,{value:"main-symbol",className:b.checkbox,disabled:s,label:u.a.createElement("span",{className:b.label},Object(o.t)("Main chart symbol",{context:"input"}))}))),u.a.createElement(l.a.Row,null,u.a.createElement(l.a.Cell,{placement:"first",grouped:p},u.a.createElement(f.RadioButton,{value:"another-symbol",className:b.checkbox,disabled:s,label:u.a.createElement("span",{className:b.label },Object(o.t)("Another symbol",{context:"input"}))})),u.a.createElement(l.a.Cell,{placement:"last",grouped:p},t||u.a.createElement(g,Object(r.__assign)({},{reference:w},{input:Object(h.ensureDefined)(n),onChange:c,disabled:s||"main-symbol"===S,autofocus:"another-symbol"===S})))))}var g=Object(v.a)((function(e){var t=Object(a.useContext)(i.b),n=Object(h.ensureNotNull)(t).study,o=e.value,s=void 0===o?"":o,c=e.reference;return u.a.createElement(m.b,Object(r.__assign)({},e,{allowEmpty:!0,value:Object(m.c)(s,n),study:n,ref:c}))}));n.d(t,"a",(function(){return C}));var _={offset:window.t("Offset")},C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.reference,r=t.inputs,o=t.property,u=t.study,i=t.model,s=o.offset,c=o.offsets;return a.createElement(l.a,{reference:n},a.createElement(O,{study:u,model:i,property:o.inputs,inputs:r}),s&&this._createOffsetSection(s),c&&c.childNames().map((function(t){var n=c.childs()[t];return e._createOffsetSection(n)})))},t.prototype._createOffsetSection=function(e){var t=e.childs();return a.createElement(O,{key:"offset_"+t.title.value(),study:this.props.study,model:this.props.model,inputs:[j(t)],property:e})},t}(a.PureComponent);function O(e){var t=e.study,n=e.model,r=e.inputs,o=e.property;return a.createElement(i.a,{property:o,study:t,model:n},r.map((function(e){return"symbol"===e.type&&e.optional?a.createElement(y,{key:e.id,input:e}):"bool"===e.type?a.createElement(p,{key:e.id,label:window.t(e.name,{context:"input"}),input:e}):a.createElement(s.a,{labelAlign:"session"===e.type?"adaptive":void 0,key:e.id,input:e})})))}function j(e){return{id:"val",name:e.title.value()||_.offset,defval:e.val.value(),type:"integer",min:e.min.value(),max:e.max.value()}}},"5YG5":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));n("CW80");var r=n("3ClC");function o(e){if(Object(r.isStudy)(e))return e;if("isInputsStudy"in e)return e;throw new TypeError("Unsupported source type.")}},"9XXR":function(e,t,n){"use strict";n.r(t),n.d(t,"splitThousands",(function(){return o}));var r=n("ivNn");function o(e,t){void 0===t&&(t=" ");var n=e+"";-1!==n.indexOf("e")&&(n=function(e){return Object(r.fixComputationError)(e).toFixed(10).replace(/\.?0+$/,"")}(Number(e)));var o=n.split(".");return o[0].replace(/\B(?=(\d{3})+(?!\d))/g,t)+(o[1]?"."+o[1]:"")}},GZ2k:function(e,t,n){},HGyE:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return c}));var r=n("mrSG"),o=n("q1tI"),a=n("H172"),u=n("HfwS"),i=n("tDS2"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e,o,a)},t}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.options,u=t.optionsTitles,s=e.value,c=e.disabled,l=r.map((function(e){var t=u&&u[e]?u[e]:e;return{value:e,content:window.t(t,{context:"input"})}})),p=void 0!==s&&r.includes(s)?s:n ;return o.createElement(a.a,{className:i.input,menuClassName:i.dropdownMenu,value:p,items:l,onChange:this._onChange,disabled:c})},t}(o.PureComponent),c=Object(u.a)(s)},HfwS:function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return i}));var r=n("mrSG"),o=n("q1tI"),a=n("+8gn");function u(e){var t;return(t=function(t){function n(){var e=null!==t&&t.apply(this,arguments)||this;return e._onChange=function(t,n,r){i(e.context.setValue,e.props.onChange)(t,n,r)},e}return Object(r.__extends)(n,t),n.prototype.render=function(){var t=this.props.input,n=this.context.values;return o.createElement(e,Object(r.__assign)({},this.props,{value:n[t.id],onChange:this._onChange}))},n}(o.PureComponent)).contextType=a.b,t}function i(e,t){return function(n,r,o){e(r,n,o),t&&t(n,r,o)}}},KJt4:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n("mrSG"),o=n("q1tI"),a=o.createContext(null);function u(e,t){return o.createElement(a.Consumer,null,(function(n){return n?o.createElement(e,Object(r.__assign)({},Object.assign({model:n},t))):null}))}},OL6p:function(e,t,n){e.exports={icon:"icon-1NLCncqj"}},PjdP:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI"),a=n.n(o),u=n("HfwS"),i=n("Yi2Q"),s=n("UYhW"),c=n("tDS2"),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){return o.createElement(s.a,Object(r.__assign)({},this.props,{mode:"integer",className:c.input}))},t}(o.PureComponent),p=Object(i.a)(l,{change:1/0,commit:0,blur:0}),d=Object(u.a)(p),f=n("YS4w"),h=n("h5Dg"),m=n("3G1X"),v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e.currentTarget.value,o,a)},t}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.input.defval,n=e.value,r=e.disabled,a=e.onBlur,u=e.onKeyDown;return o.createElement(m.b,{className:c.input,value:void 0===n?t:n,onChange:this._onChange,onBlur:a,onKeyDown:u,disabled:r})},t}(o.PureComponent),b=Object(i.a)(v),y=Object(u.a)(b),g=n("fV01"),_=n("TSYQ"),C=n.n(_),O=n("Eyy1"),j=n("XDrA"),S=n("qFKp"),E=n("Iivm"),w=n("OL6p"),x=n("yd0C");function N(e){return o.createElement(E.Icon,{className:w.icon,icon:x})}var P=n("Oi2w"),k=n("wnq4");var I,T=n("8Rai"),V=n("Hr11"),D=((I={})[0]={pattern:/\d/},I[9]={pattern:/\d/,optional:!0},I["#"]={pattern:/\d/,recursive:!0},I.A={pattern:/[a-zA-Z0-9]/},I.S={pattern:/[a-zA-Z]/},I);function B(e,t,n){for(var r,o=[],a=n,u=0,i=0,s=e.length,c=a.length,l=-1,p=0,d=[],f=s-1,h=[];u=0&&o[d];d--)s++;for(d=r-1;d>=0;d--)o[d]&&l++;for(d=n-1;d>=0;d--)a[d]&&p++;if(r>i)r=10*u;else if(n>=r&&n!==i){if(a[r]){var f=r;r-=p-l,o[r-=s]&&(r=f)}}else r>n&&(r+=l-p,r+=c)}return r}(c,a,d,M(t),u,i);f(s),v(!0)},onSelect:function(){var e=Object(O.ensureNotNull)(n.current);f(M(e))},maxLength:r}];function g(e){var t=b.current;return b.current=e,t}}function M(e){return e.selectionStart||0}function F(e){var t=e.value,n=e.mask,u=e.onChange,i=Object(r.__rest)(e,["value","mask","onChange"]),s=Object(o.useRef)(null),c=R(n,t,s),l=c[0],p=c[1],d=c[2];return Object(o.useLayoutEffect)((function(){void 0!==e.reference&&(e.reference.current=s.current)}),[e.reference]),a.a.createElement(m.b,Object(r.__assign)({},i,{iconPosition:"right",maxLength:d.maxLength,value:l,autoComplete:"off",reference:function(e){s.current=e},onChange:function(){d.onChange(),u(p.current)},onSelect:d.onSelect}))}var G=n("/3z9"),H=n("9dlw"),A=n("N5tr"),K=n("Y7w9"),q=function(){for(var e=[],t=0;t<24;++t)for(var n=0;n<60;n+=15){var r=[X(t.toString()),X(n.toString())],o=r[0]+":"+r[1],a=L(o)?o:W(o);e.push(a)}return e}();function U(e){var t=!1,n=Object(o.useRef)(null),u=Object(o.useRef)(null),i=Object(o.useRef)(null),s=Object(o.useRef)(null),c=Object(P.a)(),l=c[0],p=c[1],d=Object(o.useState)(e.value),f=d[0],h=d[1],v=Y(f),b=L(v)?v:W(v),y=Object(o.useState)(b),g=y[0],_=y[1],j=l||M().some((function(e){return null!==e&&e.contains(document.activeElement)}));Object(o.useLayoutEffect)((function(){return h(e.value)}),[e.value]),Object(o.useLayoutEffect)((function(){return _(b)}),[f,j]),Object(o.useEffect)((function(){return U(g===b?"auto":"smooth")}),[g]);var E=Object(K.lowerbound)(q,b,(function(e,t){return er&&o>t){var u=Object(V.clamp)(o,0,r),i=Object(V.clamp)(o,0,t);o=Math.max(u,i),a=u>i?e.top-u:e.bottom}else o>t&&(a=e.top-o);return{x:e.left,y:a,overrideWidth:e.width,overrideHeight:o}},closeOnClickOutside:!1,isOpened:j,tabIndex:-1,reference:i},w.map((function(e){return a.a.createElement(A.b,{key:e,label:e,isActive:e===b,isHovered:e===g,reference:e===g?I:void 0,onClick:D,onClickArg:e})}))));function k(n){var r=Y(n),o=L(r)?r:W(r);h(o),t||(t=!0,e.onChange(o))}function I(e){s.current=e}function D(e){if(k(Object(O.ensureDefined)(e)),S.isIE){var t=window.document.activeElement;t instanceof Node&&HTMLElement.prototype.blur.call(t)}else Object(O.ensureNotNull)(i.current).blur()}function B(e){return l&&(null!==R(document.activeElement)||null!==R(e.relatedTarget))}function R(e){return e instanceof Node&&M().find((function(t){return null!==t&&t.contains(e)}))||null}function M(){return[i.current,u.current]}function U(e){if(void 0===e&&(e="auto"),null!==s.current){var t=Object(O.ensureNotNull)(i.current).getBoundingClientRect(),n=s.current.getBoundingClientRect();(t.top>n.top||t.bottom1){var s=i.reduce((function(e,o,u){var i,s;if(!re.a.canPlotBeSourceOfChildStudy(o.type))return e;try{s=Object(O.ensureDefined)(Object(O.ensureDefined)(a)[o.id]).title}catch(c){s=o.id}return Object(r.__assign)(Object(r.__assign)({},e),((i={})[n+"$"+u]=t+": "+s,i))}),{});u=Object(r.__assign)(Object(r.__assign)({},u),s)}}))}var d=Object(r.__assign)(Object(r.__assign)({},e),{type:"text", options:Object.keys(u),optionsTitles:u});return o.createElement(ae.a,Object(r.__assign)({},this.props,{input:d}))},t.prototype._isStudy=function(e){return!e.hasOwnProperty("isInputsStudy")},t.contextType=oe.b,t}(o.PureComponent),ce=n("LxhU"),le=n("pPtI"),pe=n("H172"),de=["","1","3","5","15","30","45","60","120","180","240","1D","1W","1M"],fe=de.map((function(e){return{value:e,content:""===e?Object(ee.t)("Same as symbol"):Object(le.getTranslatedResolutionModel)(e).hint}})),he=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e,o,a)},t}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=e.value,r=e.disabled,a=ce.Interval.parse(void 0===n?t.defval:n),u=a.multiplier(),i=a.value();return u&&de.includes(i)||(i=de[0]),o.createElement(pe.a,{className:C()(c.input,c.resolution),menuClassName:C()(c.dropdownMenu,c.resolution),items:fe,value:i,onChange:this._onChange,disabled:r})},t}(o.PureComponent),me=Object(u.a)(he),ve=n("xx2B"),be=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var n=t.props,r=n.input,o=r.id,a=r.name;(0,n.onChange)(e,o,a)},t}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.input,n=t.defval,r=t.min,a=t.max,u=e.value,i=e.disabled;return o.createElement(ve.a,{className:c.input,value:Number(void 0===u?n:u),min:r,max:a,onValueChange:this._onChange,disabled:i})},t}(o.PureComponent),ye=Object(u.a)(be),ge=n("lkVX"),_e=n("Z1Tk"),Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this;return o.createElement(oe.b.Consumer,null,(function(t){return t?e._getColorInputWithContext(t):null}))},t.prototype._getColorInputWithContext=function(e){var t,n=this.props,r=n.input.id,a=n.disabled,u=e.model,i=e.study;if("properties"in i||"tempProperties"in i){var s="properties"in i?i.properties().inputs[r]:null===(t=i.tempProperties)||void 0===t?void 0:t.inputs.child(r);return o.createElement(_e.a,{model:u,property:s},o.createElement(ge.a,{color:s,disabled:a}))}return null},t}(o.PureComponent);n.d(t,"a",(function(){return Oe}));var Oe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.input,r=t.disabled,a=t.onChange;if(["text","integer","float","session","resolution"].includes((e=n).type)&&e.hasOwnProperty("options"))return o.createElement(ae.a,{input:n,disabled:r,onChange:a});switch(n.type){case"integer":return o.createElement(d,{input:n,disabled:r,onChange:a});case"float":return o.createElement(f.a,{input:n,disabled:r,onChange:a});case"bool":return o.createElement(h.a,{input:n,disabled:r,onChange:a});case"text":return o.createElement(y,{input:n,disabled:r,onChange:a});case"symbol":return o.createElement(g.a,{input:n,disabled:r,onChange:a});case"session":return o.createElement($,{input:n,disabled:r,onChange:a}) ;case"source":return o.createElement(se,{input:n,disabled:r,onChange:a});case"resolution":return o.createElement(me,{input:n,disabled:r,onChange:a});case"time":return o.createElement(ye,{input:n,disabled:r,onChange:a});case"color":return o.createElement(Ce,{input:n,disabled:r,onChange:a});default:return null}},t}(o.PureComponent)},S0KV:function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e[0].value():e.value()}function o(e,t){if(Array.isArray(e))for(var n=0,r=e;n "+(o?"Palette":"Single")},t._onOpacityChange=function(e){var n=t.props.color,r=Object(l.a)(n);t._setProperty(n,Object(i.generateColor)(r,Object(i.alphaToTransparency)(e),!0),h)},t._onPopupClose=function(){t._trackEventLabel&&(Object(p.trackEvent)("GUI","Study settings",t._trackEventLabel),t._trackEventLabel=null)},t}return Object(r.__extends)(t,e),t.prototype.componentWillUnmount=function(){this._onPopupClose()},t.prototype.render=function(){var e=this.props,t=e.selectOpacity,n=void 0===t||t,r=e.disabled;return a.a.createElement(c.a,{disabled:r,color:this._getColorValueInHex(),selectOpacity:n,opacity:this._getOpacityValue(),thickness:this._getThicknessValue(),thicknessItems:m,onColorChange:this._onColorChange,onOpacityChange:this._onOpacityChange,onThicknessChange:this._onThicknessChange,onPopupClose:this._onPopupClose})},t.prototype._getThicknessValue=function(){var e=this.props.thickness;return e?Object(l.a)(e):void 0},t.prototype._setProperty=function(e,t,n){var r=this.context.setValue;Object(l.b)(e,(function(e){return r(e,t,n)}))},t.contextType=s.b,t}(a.a.PureComponent)},rJEJ:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("mrSG"),o=(n("YFKU"),n("q1tI")),a=n("Eyy1"),u=n("PjdP"),i=n("Q+1u"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.label,n=e.children,r=e.input,s=e.disabled,c=e.onChange,l=e.labelAlign,p=e.grouped;return o.createElement(i.a.Row,null,o.createElement(i.a.Cell,{ placement:"first",verticalAlign:l,grouped:p},void 0!==t?t:window.t(Object(a.ensureDefined)(r).name,{context:"input"})),o.createElement(i.a.Cell,{placement:"last",grouped:p},n||o.createElement(u.a,{input:Object(a.ensureDefined)(r),onChange:c,disabled:s})))},t}(o.PureComponent)},tDS2:function(e,t,n){e.exports={input:"input-2M6pUl-Q",resolution:"resolution-2qfO1lUf",symbol:"symbol-1be49jiU",checkbox:"checkbox-15VqCFje",label:"label-3rCCk0Td",symbolInput:"symbolInput-1r0O05gG",isFocused:"isFocused-3ps_uNFG",readonly:"readonly-3HE9PFCu",disabled:"disabled-3omO9UCm",error:"error-3HEkUG-H",dropdownMenu:"dropdownMenu-sPl98nIf",sessionStart:"sessionStart-20Y_zZKF",sessionEnd:"sessionEnd-Biyt0SRM",sessionInputContainer:"sessionInputContainer-3fr-ovpl",sessionDash:"sessionDash-3i8ftDqe",inputGroup:"inputGroup-13um8mnj"}},wnq4:function(e,t,n){e.exports={wrap:"wrap-3UffnxXt",input:"input-1Xqn_2Yr"}},xx2B:function(e,t,n){"use strict";var r=n("mrSG"),o=n("q1tI"),a=n.n(o),u=(n("YFKU"),n("WboT")),i=n("9XXR"),s=n("Ialn"),c=n("qFKp"),l=function(){function e(e){void 0===e&&(e=" "),this._divider=e}return e.prototype.format=function(e){var t=Object(i.splitThousands)(e,this._divider);return Object(s.isRtl)()&&c.isChrome?Object(s.startWithLTR)(t):t},e.prototype.parse=function(e){var t=Object(s.stripLTRMarks)(e).split(this._divider).join(""),n=Number(t);return isNaN(n)||/e/i.test(t)?{res:!1}:{res:!0,value:n,suggest:this.format(n)}},e}(),p=n("zXvd"),d=n("nc0P"),f=n("Hr11");n.d(t,"a",(function(){return g}));var h=window.t("Number format is invalid."),m=window.t("Specified value is less that the instrument minimum."),v=window.t("Specified value is more than the instrument maximum."),b=new l,y=/^-?[0-9]*$/,g=function(e){function t(t){var n=e.call(this,t)||this;n._onFocus=function(e){n.setState({focused:!0}),n.props.onFocus&&n.props.onFocus(e)},n._onBlur=function(e){n.setState({displayValue:_(n.props,n.props.value),focused:!1}),n.props.errorHandler&&n.props.errorHandler(!1),n.props.onBlur&&n.props.onBlur(e)},n._onValueChange=function(e){var t=e.target.value;if(void 0!==n.props.onEmptyString&&""===t&&n.props.onEmptyString(),"integer"!==n.props.mode||y.test(t)){var r=C(t,n.props.formatter),o=r.res?n._checkValueBoundaries(r.value):{value:!1},a=r.res&&!o.value,u=r.res&&r.suggest&&!n.state.focused?r.suggest:t,i=a&&o.msg?o.msg:h;n.setState({displayValue:u,errorMsg:i}),r.res&&o.value&&n.props.onValueChange(r.value,"input"),n.props.errorHandler&&n.props.errorHandler(!r.res||a)}},n._onValueByStepChange=function(e){var t=n.props,r=t.roundByStep,o=void 0===r||r,a=t.step,u=void 0===a?1:a,i=t.formatter,s=C(n.state.displayValue,i),c=u;if(s.res){var l=new d.Big(s.value),p=new d.Big(u),f=l.mod(p),h=l.plus(e*u);!f.eq(0)&&o&&(h=h.plus((e>0?0:1)*u).minus(f)),c=Number(h)}n._checkValueBoundaries(c).value&&(n.setState({displayValue:_(n.props,c)}),n.props.onValueChange(c,"step")),n.props.errorHandler&&n.props.errorHandler(!1)};var r=t.value;return n.state={value:r,displayValue:_(t,r),focused:!1,errorMsg:h},n}return Object(r.__extends)(t,e), t.prototype.render=function(){return a.a.createElement(u.a,{inputMode:this.props.inputMode,borderStyle:this.props.borderStyle,fontSizeStyle:this.props.fontSizeStyle,value:this.state.displayValue,forceShowControls:this.props.forceShowControls,className:this.props.className,button:this.props.button,placeholder:this.props.placeholder,innerLabel:this.props.innerLabel,disabled:this.props.disabled,error:this.props.error,errorMessage:this.props.errorMessage||this.state.errorMsg,onValueChange:this._onValueChange,onValueByStepChange:this._onValueByStepChange,containerReference:this.props.containerReference,inputReference:this.props.inputReference,onClick:this.props.onClick,onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this.props.onKeyDown,controlDecKeyCodes:this.props.controlDecKeyCodes,controlIncKeyCodes:this.props.controlIncKeyCodes})},t.prototype.getClampedValue=function(){var e=this.props,t=e.min,n=void 0===t?-1/0:t,r=e.max,o=void 0===r?9e15:r,a=C(this.state.displayValue,this.props.formatter);return a.res?Object(f.clamp)(a.value,n,o):null},t.getDerivedStateFromProps=function(e,t){var n=e.alwaysUpdateValueFromProps,r=e.value;return t.focused&&!n||t.value===r?null:{value:r,displayValue:_(e,r)}},t.prototype._checkValueBoundaries=function(e){var t=this.props,n=t.min,r=void 0===n?-1/0:n,o=t.max,a=function(e,t,n){var r=e>=t,o=e<=n;return{passMin:r,passMax:o,pass:r&&o,clamped:Object(f.clamp)(e,t,n)}}(e,r,void 0===o?9e15:o),u=a.passMax?a.passMin?void 0:m:v;return{value:a.pass,msg:u}},t}(a.a.PureComponent);function _(e,t){var n=e.useFormatter,r=void 0===n||n,o=e.formatter,a=e.mode;return r&&"integer"!==a?function(e,t){void 0===t&&(t=b);return null!==e?t.format(e):""}(t,o):function(e){if(null===e)return"";return p.NumericFormatter.formatNoE(e)}(t)}function C(e,t){return void 0===t&&(t=b),t.parse?t.parse(e):{res:!1,error:"Formatter does not support parse"}}},yd0C:function(e,t){e.exports=''}}]);