PageSourceSearch

https://www.hrlab.rs/_next/static/chunks/8815-8262ae3267e9034c.js

js hrlab.rs collected 2026-10-08 01:40:43 UTC 15,052 bytes, 5 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8815],{94184:function(t,e){var n;/*!
2	Copyright (c) 2018 Jed Watson.
3	Licensed under the MIT License (MIT), see
4	http://jedwatson.github.io/classnames
5*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var t=[],e=0;e<arguments.length;e++){var n=arguments[e];if(n){var i=typeof n;if("string"===i||"number"===i)t.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&t.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){t.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&t.push(s)}}}return t.join(" ")}t.exports?(o.default=o,t.exports=o):void 0!==(n=(function(){return o}).apply(e,[]))&&(t.exports=n)}()},27561:function(t,e,n){var r=n(67990),o=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(o,""):t}},67990:function(t){var e=/\s/;t.exports=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}},23279:function(t,e,n){var r=n(13218),o=n(7771),i=n(14841),a=Math.max,s=Math.min;t.exports=function(t,e,n){var u,l,p,c,f,h,v=0,d=!1,m=!1,y=!0;if("function"!=typeof t)throw TypeError("Expected a function");function b(e){var n=u,r=l;return u=l=void 0,v=e,c=t.apply(r,n)}function g(t){var n=t-h,r=t-v;return void 0===h||n>=e||n<0||m&&r>=p}function x(){var t,n,r,i=o();if(g(i))return C(i);f=setTimeout(x,(t=i-h,n=i-v,r=e-t,m?s(r,p-n):r))}function C(t){return(f=void 0,y&&u)?b(t):(u=l=void 0,c)}function N(){var t,n=o(),r=g(n);if(u=arguments,l=this,h=n,r){if(void 0===f)return v=t=h,f=setTimeout(x,e),d?b(t):c;if(m)return clearTimeout(f),f=setTimeout(x,e),b(h)}return void 0===f&&(f=setTimeout(x,e)),c}return e=i(e)||0,r(n)&&(d=!!n.leading,p=(m="maxWait"in n)?a(i(n.maxWait)||0,e):p,y="trailing"in n?!!n.trailing:y),N.cancel=function(){void 0!==f&&clearTimeout(f),v=0,u=h=l=f=void 0},N.flush=function(){return void 0===f?c:C(o())},N}},33448:function(t,e,n){var r=n(44239),o=n(37005);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},7771:function(t,e,n){var r=n(55639);t.exports=function(){return r.Date.now()}},14841:function(t,e,n){var r=n(27561),o=n(13218),i=n(33448),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,l=/^0o[0-7]+$/i,p=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=r(t);var n=u.test(t);return n||l.test(t)?p(t.slice(2),n?2:8):s.test(t)?a:+t}},95466:function(t,e,n){"use strict";n.d(e,{Z:function(){return y}});var r=n(67294),o=n(94184),i=n.n(o),a={BACKSPACE:8,ENTER:13,UP:38,DOWN:40,DELETE:46},s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function p(){}function c(t){t.preventDefault()}var f=Number.MAX_SAFE_INTEGER||9007199254740991,h=function(t){return null!=t},v=function(t,e){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)},d=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")}(this,e);var n=function(t,e){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&("object"==typeof e||"function"==typeof e)?e:t}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));m.call(n);var r=void 0;r="value"in t?t.value:t.defaultValue,n.state={focused:t.autoFocus};var o=n.getValidValue(n.toNumber(r));return n.state=s({},n.state,{inputValue:n.toPrecisionAsStep(o),value:o}),n}return!function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}
5(e,t),u(e,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(t){var e=this.props,n=e.value,r=e.onChange,o=e.max,i=e.min,s=this.state.focused;if(t){if(!v(t.value,n)||!v(t.max,o)||!v(t.min,i)){var u=s?n:this.getValidValue(n),l=void 0;l=this.pressingUpOrDown?u:this.inputting?this.rawInput:this.toPrecisionAsStep(u),this.setState({value:u,inputValue:l})}var p="value"in this.props?n:this.state.value;"max"in this.props&&t.max!==o&&"number"==typeof p&&p>o&&r&&r(o),"min"in this.props&&t.min!==i&&"number"==typeof p&&p<i&&r&&r(i)}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 a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var c=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===a.BACKSPACE?c=this.cursorStart-1:this.lastKeyCode===a.DELETE&&(c=this.cursorStart):c=this.input.value.length,this.fixCaret(c,c)}}}catch(t){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(t){var e=t;return e=""===e?"":this.isNotCompleteNumber(parseFloat(e,10))?this.state.value:this.getValidValue(e),this.toNumber(e)}},{key:"getRatio",value:function(t){var e=1;return t.metaKey||t.ctrlKey?e=.1:t.shiftKey&&(e=10),e}},{key:"getValueFromEvent",value:function(t){var e=t.target.value.trim().replace(/。/g,".");return h(this.props.decimalSeparator)&&(e=e.replace(this.props.decimalSeparator,".")),e}},{key:"getValidValue",value: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,r=parseFloat(t,10);return isNaN(r)?t:(r<e&&(r=e),r>n&&(r=n),r)}},{key:"setValue",value:function(t,e){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(t,10))?null:parseFloat(t,10),o=this.state,i=o.value,a=o.inputValue,s="number"==typeof r?r.toFixed(n):""+r,u=r!==(void 0===i?null:i)||s!==""+(void 0===a?null:a);return"value"in this.props?this.setState({inputValue:this.toPrecisionAsStep(this.state.value)},e):this.setState({value:r,inputValue:this.toPrecisionAsStep(t)},e),u&&this.props.onChange(r),r}},{key:"getFullNum",value:function(t){return isNaN(t)||!/e/i.test(String(t))?t:t.toFixed(18).replace(/\.?0+$/,"")}},{key:"getPrecision",value:function(t){if(h(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}},{key:"getMaxPrecision",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,o=n.step;if(h(r))return r;var i=this.getPrecision(e),a=this.getPrecision(o),s=this.getPrecision(t);return t?Math.max(s,i+a):i+a}},{key:"getPrecisionFactor",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Math.pow(10,this.getMaxPrecision(t,e))}},{key:"fixCaret",value:function(t,e){if(void 0!==t&&void 0!==e&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;(t!==n||e!==r)&&this.input.setSelectionRange(t,e)}catch(t){}}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(t){return this.props.formatter?this.props.formatter(t):t}},{key:"toPrecisionAsStep",value: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)}},{key:"isNotCompleteNumber",value:function(t){return isNaN(t)||""===t||null===t||t&&t.toString().indexOf(".")===t.toString().length-1}},{key:"toNumber",value:function(t){var e=this.props.precision,n=this.state.focused,r=t&&t.length>16&&n;return this.isNotCompleteNumber(t)||r?t:h(e)?Math.round(t*Math.pow(10,e))/Math.pow(10,e):Number(t)}},{key:"upStep",value:function(t,e){var n=this.props.step,r=this.getPre
5cisionFactor(t,e),o=Math.abs(this.getMaxPrecision(t,e)),i=((r*t+r*n*e)/r).toFixed(o);return this.toNumber(i)}},{key:"downStep",value:function(t,e){var n=this.props.step,r=this.getPrecisionFactor(t,e),o=Math.abs(this.getMaxPrecision(t,e)),i=((r*t-r*n*e)/r).toFixed(o);return this.toNumber(i)}},{key:"step",value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,o=arguments[3];this.stop(),e&&(e.persist(),e.preventDefault());var i=this.props;if(!i.disabled){var a=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(a)){var s=this[t+"Step"](a,r),u=s>i.max||s<i.min;s>i.max?s=i.max:s<i.min&&(s=i.min),this.setValue(s),this.setState({focused:!0},function(){n.pressingUpOrDown=!1}),u||(this.autoStepTimer=setTimeout(function(){n[t](e,r,!0)},o?200:600))}}}},{key:"render",value:function(){var t,e=this.props,n=e.prefixCls,o=e.disabled,a=e.readOnly,u=e.useTouch,f=e.autoComplete,h=e.upHandler,v=e.downHandler,d=e.className,m=e.max,y=e.min,b=e.style,g=e.title,x=e.onMouseEnter,C=e.onMouseLeave,N=e.onMouseOver,S=e.onMouseOut,E=e.required,w=e.onClick,O=e.tabIndex,M=e.type,k=e.placeholder,P=e.id,V=e.inputMode,D=e.pattern,A=e.step,T=e.maxLength,F=e.autoFocus,U=e.name,K=function(t,e){var n={};for(var r in t)!(e.indexOf(r)>=0)&&Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}(e,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name"]),I=this.state,B=I.value,j=I.focused,_=i()(n,(l(t={},d,!!d),l(t,n+"-disabled",o),l(t,n+"-focused",j),t)),L={};Object.keys(K).forEach(function(t){("data-"===t.substr(0,5)||"aria-"===t.substr(0,5)||"role"===t)&&(L[t]=K[t])});var R=!a&&!o,W=this.getInputDisplayValue(),q=(B||0===B)&&(isNaN(B)||Number(B)>=m),H=(B||0===B)&&(isNaN(B)||Number(B)<=y),$=q||o||a,G=H||o||a,X=i()(n+"-handler",n+"-handler-up",l({},n+"-handler-up-disabled",$)),Z=i()(n+"-handler",n+"-handler-down",l({},n+"-handler-down-disabled",G)),z=u?{onTouchStart:$?p:this.up,onTouchEnd:this.stop}:{onMouseDown:$?p:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},J=u?{onTouchStart:G?p:this.down,onTouchEnd:this.stop}:{onMouseDown:G?p:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return r.createElement("div",{className:_,style:b,title:g,onMouseEnter:x,onMouseLeave:C,onMouseOver:N,onMouseOut:S,onFocus:function(){return null},onBlur:function(){return null}},r.createElement("div",{className:n+"-handler-wrap"},r.createElement("span",s({unselectable:"unselectable"},z,{role:"button","aria-label":"Increase Value","aria-disabled":$,className:X}),h||r.createElement("span",{unselectable:"unselectable",className:n+"-handler-up-inner",onClick:c})),r.createElement("span",s({unselectable:"unselectable"},J,{role:"button","aria-label":"Decrease Value","aria-disabled":G,className:Z}),v||r.createElement("span",{unselectable:"unselectable",className:n+"-handler-down-inner",onClick:c}))),r.createElement("div",{className:n+"-input-wrap"},r.createElement("input",s({role:"spinbutton","aria-valuemin":y,"aria-valuemax":m,"aria-valuenow":B,required:E,type:M,placeholder:k,onClick:w,onMouseUp:this.onMouseUp,className:n+"-input",tabIndex:O,autoComplete:f,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:R?this.onKeyDown:p,onKeyUp:R?this.onKeyUp:p,autoFocus:F,maxLength:T,readOnly:a,disabled:o,max:m,min:y,step:A,name:U,title:g,id:P,onChange:this.onChange,ref:this.saveInput,value:W,pattern:D,inputMode:V},L))))}}]),e}(r.Component);d.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",min:-f,step:1,style:{},onChange:p,onKeyDown:p,onPressEnter:p,onFocus:p,onBlur:p,parser:function(t){return t.replace(/[^\w.-]+/g,"")},required:!1,autoComplete:"off"};var m=function(){var t=this;this.onKeyDown=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props,s=i.onKeyDown,u=i.onPressEnter;if(e.keyCode===a.UP){var l=t.getRatio(e);t.up(e,l),t.stop()}else if(e.keyCode===a.DOWN){var p=t.getRatio(e);t.down(e,p),t.stop()}else e.keyCode===a.ENTER&&u&&u(e);t.recordCursorPosition(),t.lastKeyCode=e.keyCode,s&&s.apply(void 0,[e].concat(r))},this.onKeyUp=function(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=t.props.onKeyUp;t.stop(),t.recordCursorPosition(),i&&i.apply(void 0,[e].concat(r))},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(){var e=t.props.onBlur;t.inputting=!1,t.setState({focused:!1});var n=t.getCurrentValidValue(t.state.inputValue),r=t.setValue(n);
5if(e){var o=t.input.value,i=Number(t.getInputDisplayValue({focus:!1,value:r}));t.input.value=i,e.apply(void 0,arguments),t.input.value=o}},this.getInputDisplayValue=function(e){var n=e||t.state,r=n.focused,o=n.inputValue,i=n.value,a=void 0;null==(a=r?o:t.toPrecisionAsStep(i))&&(a="");var s=t.formatWrapper(a);return h(t.props.decimalSeparator)&&(s=s.toString().replace(".",t.props.decimalSeparator)),t.getFullNum(s)},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,r=n.lastIndexOf(e);if(-1===r)return!1;var o=t.cursorBefore.length;return t.lastKeyCode===a.DELETE&&t.cursorBefore.charAt(o-1)===e[0]?(t.fixCaret(o,o),!0):r+e.length===n.length&&(t.fixCaret(r,r),!0)},this.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,function(n,r){var o=e.substring(r);return t.restoreByAfter(o)})},this.stop=function(){t.autoStepTimer&&clearTimeout(t.autoStepTimer)},this.down=function(e,n,r){t.pressingUpOrDown=!0,t.step("down",e,n,r)},this.up=function(e,n,r){t.pressingUpOrDown=!0,t.step("up",e,n,r)},this.saveInput=function(e){t.input=e}},y=d}}]);

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.