uawdijnntqw1x1x1
IP : 18.117.8.11
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
.
/
kirov.axolotls.ru
/
bitrix
/
js
/
ui
/
entity-editor
/
js
/
validator.min.js
/
/
BX.namespace("BX.UI");if(typeof BX.UI.EntityValidator==="undefined"){BX.UI.EntityValidator=function(){this._settings={};this._editor=null;this._data=null};BX.UI.EntityValidator.prototype={initialize:function(t){this._settings=t?t:{};this._editor=BX.prop.get(this._settings,"editor",null);this._data=BX.prop.getObject(this._settings,"data",{});this.doInitialize()},doInitialize:function(){},release:function(){},getData:function(){return this._data},getDataStringParam:function(t,i){return BX.prop.getString(this._data,t,i)},getErrorMessage:function(){return BX.prop.getString(this._settings,"message","")},validate:function(t){return true},processControlChange:function(t){}}}if(typeof BX.UI.EntityPersonValidator==="undefined"){BX.UI.EntityPersonValidator=function(){BX.UI.EntityPersonValidator.superclass.constructor.apply(this)};BX.extend(BX.UI.EntityPersonValidator,BX.UI.EntityValidator);BX.UI.EntityPersonValidator.prototype.doInitialize=function(){this._nameField=this._editor.getControlById(this.getDataStringParam("nameField",""));if(this._nameField){this._nameField.addValidator(this)}this._lastNameField=this._editor.getControlById(this.getDataStringParam("lastNameField",""));if(this._lastNameField){this._lastNameField.addValidator(this)}};BX.UI.EntityPersonValidator.prototype.release=function(){if(this._nameField){this._nameField.removeValidator(this)}if(this._lastNameField){this._lastNameField.removeValidator(this)}};BX.UI.EntityPersonValidator.prototype.validate=function(t){var i=this._nameField.isActive();var e=this._lastNameField.isActive();if(!i&&!e){return true}var r=i?this._nameField.getRuntimeValue():this._nameField.getValue();var n=e?this._lastNameField.getRuntimeValue():this._lastNameField.getValue();if(r!==""||n!==""){return true}if(r===""&&i){t.addError(BX.UI.EntityValidationError.create({field:this._nameField}));this._nameField.showError(this.getErrorMessage())}if(n===""&&e){t.addError(BX.UI.EntityValidationError.create({field:this._lastNameField}));this._lastNameField.showError(this.getErrorMessage())}return false};BX.UI.EntityPersonValidator.prototype.processFieldChange=function(t){if(t!==this._nameField&&t!==this._lastNameField){return}if(this._nameField){this._nameField.clearError()}if(this._lastNameField){this._lastNameField.clearError()}};BX.UI.EntityPersonValidator.create=function(t){var i=new BX.UI.EntityPersonValidator;i.initialize(t);return i}}if(typeof BX.UI.EntityValidationError==="undefined"){BX.UI.EntityValidationError=function(){this._settings={};this._field=null;this._message=""};BX.UI.EntityValidationError.prototype={initialize:function(t){this._settings=t?t:{};this._field=BX.prop.get(this._settings,"field",null);this._message=BX.prop.getString(this._settings,"message","")},getField:function(){return this._field},getMessage:function(){return this._message}};BX.UI.EntityValidationError.create=function(t){var i=new BX.UI.EntityValidationError;i.initialize(t);return i}}if(typeof BX.UI.EntityValidationResult==="undefined"){BX.UI.EntityValidationResult=function(){this._settings={};this._errors=[]};BX.UI.EntityValidationResult.prototype={initialize:function(t){this._settings=t?t:{}},getStatus:function(){return this._errors.length===0},addError:function(t){this._errors.push(t)},getErrors:function(){return this._errors},addResult:function(t){var i=t.getErrors();for(var e=0,r=i.length;e<r;e++){this._errors.push(i[e])}},getTopmostField:function(){var t=null;var i=null;for(var e=0,r=this._errors.length;e<r;e++){var n=this._errors[e].getField();if(!t){t=n;i=n.getPosition()["top"];continue}var a=n.getPosition();if(!a){continue}var s=n.getPosition()["top"];if(s<i){t=n;i=s}}return t}};BX.UI.EntityValidationResult.create=function(t){var i=new BX.UI.EntityValidationResult;i.initialize(t);return i}} //# sourceMappingURL=validator.map.js
/var/www/axolotl/data/www/./kirov.axolotls.ru/bitrix/js/ui/entity-editor/js/validator.min.js