PageSourceSearch

https://gias.by/gias/js/vendors-app-4e46b219-6534b724.js

js gias.by collected 2026-10-03 21:26:11 UTC 12,038 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[277],{705:function(t,e,n){"use strict";var o=n(45),r=n.n(o),a=n(10),s=n.n(a),i=n(15),u=n.n(i),p=n(13),l=n.n(p),c=n(17),h=n.n(c),d=n(0),f=n.n(d),v=n(1),m=n.n(v),y=n(7),b=n.n(y),g=n(22),C=n(708),x=function(t){function e(){return u()(this,e),l()(this,t.apply(this,arguments))}return h()(e,t),e.prototype.render=function(){var t=this.props,e=t.prefixCls,n=t.disabled,o=r()(t,["prefixCls","disabled"]);return f.a.createElement(C.a,{disabled:n,activeClassName:e+"-handler-active"},f.a.createElement("span",o))},e}(d.Component);x.propTypes={prefixCls:m.a.string,disabled:m.a.bool,onTouchStart:m.a.func,onTouchEnd:m.a.func,onMouseDown:m.a.func,onMouseUp:m.a.func,onMouseLeave:m.a.func};var w=x;function S(){}function N(t){t.preventDefault()}var M=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,V=function(t){return null!=t},E=function(t){function e(n){u()(this,e);var o=l()(this,t.call(this,n));O.call(o);var r=void 0;return r="value"in n?n.value:n.defaultValue,o.state={},r=o.toNumber(r),r=o.getValidValue(r),o.state={inputValue:o.toPrecisionAsStep(r),value:r,focused:n.autoFocus},o}return h()(e,t),e.prototype.componentDidMount=function(){this.componentDidUpdate()},e.prototype.componentWillReceiveProps=function(t){if("value"in t&&t.value!==this.props.value){var e=this.state.focused?t.value:this.getValidValue(t.value,t.min,t.max),n=void 0;n=this.pressingUpOrDown?e:this.inputting?this.rawInput:this.toPrecisionAsStep(e),this.setState({value:e,inputValue:n})}var o="value"in t?t.value:this.state.value,r=this.props,a=r.onChange,s=r.max,i=r.min;"max"in t&&t.max!==s&&"number"==typeof o&&o>t.max&&a&&a(t.max),"min"in t&&t.min!==i&&"number"==typeof o&&o<t.min&&a&&a(t.min)},e.prototype.componentDidUpdate=function(){try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case g.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case g.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var t=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===g.a.BACKSPACE?t=this.cursorStart-1:this.lastKeyCode===g.a.DELETE&&(t=this.cursorStart):t=this.input.value.length,this.fixCaret(t,t)}}catch(t){}this.lastKeyCode=null,this.pressingUpOrDown&&(this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus(),this.pressingUpOrDown=!1)},e.prototype.componentWillUnmount=function(){this.stop()},e.prototype.getCurrentValidValue=function(t){var e=t;return e=""===e?"":this.isNotCompleteNumber(parseFloat(e,10))?this.state.value:this.getValidValue(e),this.toNumber(e)},e.prototype.getRatio=function(t){var e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e},e.prototype.getValueFromEvent=function(t){var e=t.target.value.trim().replace(/。/g,".");return V(this.props.decimalSeparator)&&(e=e.replace(this.props.decimalSeparator,".")),e},e.prototype.getValidValue=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,o=parseFloat(t,10);return isNaN(o)?t:(o<e&&(o=e),o>n&&(o=n),o)},e.prototype.setValue=function(t,e){var n=this.props.precision,o=this.isNotCompleteNumber(parseFloat(t,10))?null:parseFloat(t,10),r=this.state,a=r.value,s=void 0===a?null:a,i=r.inputValue,u=void 0===i?null:i,p="number"==typeof o?o.toFixed(n):""+o,l=o!==s||p!==""+u;"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},e):this.setState({value:o,inputValue:this.toPrecisionAsStep(t)},e),l&&this.props.onChange(o)},e.prototype.getPrecision=function(t){if(V(this.props.precision))return this.props.precision;var e=t.toString();if(e.indexOf("e-")>=0)return parseInt(e.slice(e.indexOf("e-")+2),10);var n=0;return e.indexOf(".")>=0&&(n=e.length-e.indexOf(".")-1),n},e.prototype.getMaxPrecision=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,o=n.precision,r=n.step;if(V(o))return o;
1var a=this.getPrecision(e),s=this.getPrecision(r),i=this.getPrecision(t);return t?Math.max(i,a+s):a+s},e.prototype.getPrecisionFactor=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(t,e);return Math.pow(10,n)},e.prototype.fixCaret=function(t,e){if(void 0!==t&&void 0!==e&&this.input&&this.input.value)try{var n=this.input.selectionStart,o=this.input.selectionEnd;t===n&&e===o||this.input.setSelectionRange(t,e)}catch(t){}},e.prototype.focus=function(){this.input.focus(),this.recordCursorPosition()},e.prototype.blur=function(){this.input.blur()},e.prototype.formatWrapper=function(t){return this.props.formatter?this.props.formatter(t):t},e.prototype.toPrecisionAsStep=function(t){if(this.isNotCompleteNumber(t)||""===t)return t;var e=Math.abs(this.getMaxPrecision(t));return isNaN(e)?t.toString():Number(t).toFixed(e)},e.prototype.isNotCompleteNumber=function(t){return isNaN(t)||""===t||null===t||t&&t.toString().indexOf(".")===t.toString().length-1},e.prototype.toNumber=function(t){var e=t&&t.length>16&&this.state.focused;return this.isNotCompleteNumber(t)||e?t:V(this.props.precision)?Number(Number(t).toFixed(this.props.precision)):Number(t)},e.prototype.upStep=function(t,e){var n=this.props.step,o=this.getPrecisionFactor(t,e),r=Math.abs(this.getMaxPrecision(t,e)),a=((o*t+o*n*e)/o).toFixed(r);return this.toNumber(a)},e.prototype.downStep=function(t,e){var n=this.props.step,o=this.getPrecisionFactor(t,e),r=Math.abs(this.getMaxPrecision(t,e)),a=((o*t-o*n*e)/o).toFixed(r);return this.toNumber(a)},e.prototype.step=function(t,e){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments[3];this.stop(),e&&(e.persist(),e.preventDefault());var a=this.props;if(!a.disabled){var s=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(s)){var i=this[t+"Step"](s,o),u=i>a.max||i<a.min;i>a.max?i=a.max:i<a.min&&(i=a.min),this.setValue(i),this.setState({focused:!0}),u||(this.autoStepTimer=setTimeout((function(){n[t](e,o,!0)}),r?200:600))}}},e.prototype.render=function(){var t,e=s()({},this.props),n=e.prefixCls,o=e.disabled,a=e.readOnly,i=e.useTouch,u=e.autoComplete,p=e.upHandler,l=e.downHandler,c=(r()(e,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler"]),b()(((t={})[n]=!0,t[e.className]=!!e.className,t[n+"-disabled"]=o,t[n+"-focused"]=this.state.focused,t))),h="",d="",v=this.state.value;if(v||0===v)if(isNaN(v))h=n+"-handler-up-disabled",d=n+"-handler-down-disabled";else{var m=Number(v);m>=e.max&&(h=n+"-handler-up-disabled"),m<=e.min&&(d=n+"-handler-down-disabled")}var y={};for(var g in e)!e.hasOwnProperty(g)||"data-"!==g.substr(0,5)&&"aria-"!==g.substr(0,5)&&"role"!==g||(y[g]=e[g]);var C=!e.readOnly&&!e.disabled,x=this.getInputDisplayValue(),M=void 0,E=void 0;i?(M={onTouchStart:C&&!h?this.up:S,onTouchEnd:this.stop},E={onTouchStart:C&&!d?this.down:S,onTouchEnd:this.stop}):(M={onMouseDown:C&&!h?this.up:S,onMouseUp:this.stop,onMouseLeave:this.stop},E={onMouseDown:C&&!d?this.down:S,onMouseUp:this.stop,onMouseLeave:this.stop});var O=this.formatWrapper(x);V(this.props.decimalSeparator)&&(O=O.toString().replace(".",this.props.decimalSeparator));var D=!!h||o||a,P=!!d||o||a;return f.a.createElement("div",{className:c,style:e.style,title:e.title,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseOver:e.onMouseOver,onMouseOut:e.onMouseOut},f.a.createElement("div",{className:n+"-handler-wrap"},f.a.createElement(w,s()({ref:this.saveUp,disabled:D,prefixCls:n,unselectable:"unselectable"},M,{role:"button","aria-label":"Increase Value","aria-disabled":!!D,className:n+"-handler "+n+"-handler-up "+h}),p||f.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:N})),f.a.createElement(w,s()({ref:this.saveDown,disabled:P,prefixCls:n,unselectable:"unselectable"},E,{role:"button","aria-label":"Decrease Value","aria-disabled":!!P,className:n+"-handler "+n+"-handler-down "+d}),l||f.a.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:N}))),f.a.createElement("div",{className:n+"-input-wrap",role:"spinbutton","aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":v},f.a.createElement("input",s()({required:e.required,type:e.type,placeholder:e.placeholder,onClick:e.onClick,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:e.tabIndex,autoComplete:u,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:C?this.onKeyDown:S,onKeyUp:C?this.onKeyUp:S,autoFocus:e.autoFocus,maxLength:e.maxLength,readOnly:e.readOnly,disabled:e.disabled,max:e.max,min:e.min,step:e.step,name:e.name,id:e.id,onChange:this.onChange,ref:this.saveInput,value:O,pattern:e.pattern},y))))},e}(f.a.Component);E.propTypes={value:m.a.oneOfType([m.a.number,m.a.string]),defaultValue:m.a.oneOfType([m.a.number,m.a.string]),focusOnUpDown:m.a.bool,autoFocus:m.a.bool,onCh
1ange:m.a.func,onKeyDown:m.a.func,onKeyUp:m.a.func,prefixCls:m.a.string,tabIndex:m.a.oneOfType([m.a.string,m.a.number]),disabled:m.a.bool,onFocus:m.a.func,onBlur:m.a.func,readOnly:m.a.bool,max:m.a.number,min:m.a.number,step:m.a.oneOfType([m.a.number,m.a.string]),upHandler:m.a.node,downHandler:m.a.node,useTouch:m.a.bool,formatter:m.a.func,parser:m.a.func,onMouseEnter:m.a.func,onMouseLeave:m.a.func,onMouseOver:m.a.func,onMouseOut:m.a.func,onMouseUp:m.a.func,precision:m.a.number,required:m.a.bool,pattern:m.a.string,decimalSeparator:m.a.string},E.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-M,step:1,style:{},onChange:S,onKeyDown:S,onFocus:S,onBlur:S,parser:function(t){return t.replace(/[^\w\.-]+/g,"")},required:!1,autoComplete:"off"};var O=function(){var t=this;this.onKeyDown=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var a=t.props.onKeyDown;if(e.keyCode===g.a.UP){var s=t.getRatio(e);t.up(e,s),t.stop()}else if(e.keyCode===g.a.DOWN){var i=t.getRatio(e);t.down(e,i),t.stop()}t.recordCursorPosition(),t.lastKeyCode=e.keyCode,a&&a.apply(void 0,[e].concat(o))},this.onKeyUp=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var a=t.props.onKeyUp;t.stop(),t.recordCursorPosition(),a&&a.apply(void 0,[e].concat(o))},this.onChange=function(e){var n=t.props.onChange;t.state.focused&&(t.inputting=!0),t.rawInput=t.props.parser(t.getValueFromEvent(e)),t.setState({inputValue:t.rawInput}),n(t.toNumber(t.rawInput))},this.onMouseUp=function(){var e=t.props.onMouseUp;t.recordCursorPosition(),e&&e.apply(void 0,arguments)},this.onFocus=function(){var e;t.setState({focused:!0}),(e=t.props).onFocus.apply(e,arguments)},this.onBlur=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];t.inputting=!1,t.setState({focused:!1});var a=t.getCurrentValidValue(t.state.inputValue);e.persist(),t.setValue(a,(function(){var n;(n=t.props).onBlur.apply(n,[e].concat(o))}))},this.getInputDisplayValue=function(){var e=t.state,n=e.focused,o=e.inputValue,r=e.value,a=void 0;return null==(a=n?o:t.toPrecisionAsStep(r))&&(a=""),a},this.recordCursorPosition=function(){try{t.cursorStart=t.input.selectionStart,t.cursorEnd=t.input.selectionEnd,t.currentValue=t.input.value,t.cursorBefore=t.input.value.substring(0,t.cursorStart),t.cursorAfter=t.input.value.substring(t.cursorEnd)}catch(t){}},this.restoreByAfter=function(e){if(void 0===e)return!1;var n=t.input.value,o=n.lastIndexOf(e);return-1!==o&&(o+e.length===n.length&&(t.fixCaret(o,o),!0))},this.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,(function(n,o){var r=e.substring(o);return t.restoreByAfter(r)}))},this.stop=function(){t.autoStepTimer&&clearTimeout(t.autoStepTimer)},this.down=function(e,n,o){t.pressingUpOrDown=!0,t.step("down",e,n,o)},this.up=function(e,n,o){t.pressingUpOrDown=!0,t.step("up",e,n,o)},this.saveUp=function(e){t.upHandler=e},this.saveDown=function(e){t.downHandler=e},this.saveInput=function(e){t.input=e}};e.a=E}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.