Actualizar webix

This commit is contained in:
Mauricio Baeza 2017-10-12 12:40:05 -05:00
parent b6d30500c6
commit 209554e052
7 changed files with 129 additions and 115 deletions

View File

@ -17,6 +17,7 @@ class AppLogin(object):
def on_post(self, req, resp):
session = req.env['beaker.session']
values = req.params
values['rfc'] = values['rfc'].upper()
result = self._db.authenticate(values)
if result['login']:
session.save()

View File

@ -1,8 +1,8 @@
[uwsgi]
socket = 127.0.0.1:3032
socket = 127.0.0.1:3033
uid = nginx
gid = nginx
chdir = /srv/app/empresalibre/app
chdir = /srv/app/empresa-libre/app
wsgi-file = main.py
callable = app
master = true

View File

@ -14,7 +14,7 @@ if __name__ == '__main__':
from controllers import util
from settings import log, VERSION, PATH_CP
from settings import log, VERSION, PATH_CP, COMPANIES
FORMAT = '{0:.2f}'
@ -166,6 +166,7 @@ class Emisor(BaseModel):
@classmethod
def get_(cls, rfc):
print ('rfc', rfc)
regimenes = SATRegimenes.get_activos(rfc)
row = {'regimenes': regimenes}
@ -198,6 +199,8 @@ class Emisor(BaseModel):
else:
row['emisor'] = {'emisor_rfc': rfc}
print (row)
return {'ok': True, 'row': row}
@classmethod

View File

@ -1,6 +1,6 @@
/*
@license
webix UI v.5.0.0
webix UI v.5.0.1
This software is covered by Webix Commercial License.
Usage without proper license is prohibited.
(c) XB Software Ltd.

View File

@ -1,11 +1,11 @@
/*
@license
webix UI v.5.0.0
webix UI v.5.0.1
This software is covered by Webix Commercial License.
Usage without proper license is prohibited.
(c) XB Software Ltd.
*/
window.webix||(webix={}),webix.version="5.0.0",webix.codebase="./",webix.name="core",webix.cdn="//cdn.webix.com",webix.clone=function(t){var e=webix.clone.a;return e.prototype=t,new e},webix.clone.a=function(){},webix.extend=function(t,e,i){if(t.$protoWait)return webix.PowerArray.insertAt.call(t.$protoWait,e,1),
window.webix||(webix={}),webix.version="5.0.1",webix.codebase="./",webix.name="core",webix.cdn="//cdn.webix.com",webix.clone=function(t){var e=webix.clone.a;return e.prototype=t,new e},webix.clone.a=function(){},webix.extend=function(t,e,i){if(t.$protoWait)return webix.PowerArray.insertAt.call(t.$protoWait,e,1),
t;for(var s in e)s in t&&!i||(t[s]=e[s]);return e.defaults&&webix.extend(t.defaults,e.defaults),e.$init&&e.$init.call(t),t},webix.copy=function(t){var e;arguments.length>1?(e=arguments[0],t=arguments[1]):e=webix.isArray(t)?[]:{};for(var i in t){var s=t[i];!s||"object"!=typeof s||s instanceof RegExp?e[i]=s:webix.isDate(s)?e[i]=new Date(s):(e[i]=webix.isArray(s)?[]:{},
webix.copy(e[i],s))}return e},webix.single=function(t){var e=null,i=function(i){return e||(e=new t({})),e.c&&e.c.apply(e,arguments),e};return i},webix.protoUI=function(){var t=arguments,e=t[0].name,i=function(t){if(!i)return webix.ui[e].prototype;var s=i.$protoWait;if(s){for(var n=[s[0]],a=1;a<s.length;a++)n[a]=s[a],
n[a].$protoWait&&(n[a]=n[a].call(webix,n[a].name)),n[a].prototype&&n[a].prototype.name&&(webix.ui[n[a].prototype.name]=n[a]);if(webix.ui[e]=webix.proto.apply(webix,n),i.d)for(var a=0;a<i.d.length;a++)webix.type(webix.ui[e],i.d[a]);i=s=null}return this!=webix?new webix.ui[e](t):webix.ui[e]};return i.$protoWait=Array.prototype.slice.call(arguments,0),
@ -49,89 +49,89 @@ e.indexOf||(e=""),e},setSelectionRange:function(t,e,i){if(e=e||0,i=i||e,t.focus(
end:t.selectionEnd||0};t.focus();var e=document.selection.createRange(),i=e.getBookmark(),s=t.createTextRange();s.moveToBookmark(i);var n=s.text.length;s.collapse(!0),s.moveStart("character",-t.value.length);var a=s.text.length;return{start:a,end:a+n}}},webix.ready=function(t){this.o?t.call():this.p.push(t);
},webix.p=[],function(){var t=document.getElementsByTagName("SCRIPT");t.length&&(t=(t[t.length-1].getAttribute("src")||"").split("/"),t.splice(t.length-1,1),webix.codebase=t.slice(0,t.length).join("/")+"/");var e=function(){webix.env.isIE&&(document.body.className+=" webix_ie"),webix.callEvent("onReady",[]);
},i=function(){webix.o=!0,window.webix_ready&&webix.isArray(webix_ready)&&(webix.p=webix_ready.concat(webix.p));for(var t=0;t<webix.p.length;t++)webix.p[t].call();webix.p=[]};webix.attachEvent("onReady",function(t){t?i():webix.delay(i)}),"complete"==document.readyState?e():webix.event(window,"load",e);
}(),webix.locale=webix.locale||{},webix.ready(function(){webix.event(document.body,"click",function(t){webix.callEvent("onClick",[t||event])})}),webix.editStop=function(){webix.callEvent("onEditEnd",[])},function(t){function e(t){global.setImmediate?setImmediate(t):global.importScripts?setTimeout(t):(s++,
n[s]=t,global.postMessage(s,"*"))}function i(t){"use strict";function s(t,e,i,s){if(2==o)return s();if("object"!=typeof l&&"function"!=typeof l||"function"!=typeof t)s();else try{var n=0;t.call(l,function(t){n++||(l=t,e())},function(t){n++||(l=t,i())})}catch(a){l=a,i()}}function n(){var t;try{t=l&&l.then;
}catch(e){return l=e,o=2,n()}s(t,function(){o=1,n()},function(){o=2,n()},function(){try{1==o&&"function"==typeof a?l=a(l):2==o&&"function"==typeof r&&(l=r(l),o=1)}catch(e){return l=e,u()}l==h?(l=TypeError(),u()):s(t,function(){u(3)},u,function(){u(1==o&&3)})})}if("function"!=typeof t&&void 0!=t)throw TypeError();
}(),webix.locale=webix.locale||{},webix.ready(function(){webix.event(document.body,"click",function(t){webix.callEvent("onClick",[t||event])})}),webix.editStop=function(){webix.callEvent("onEditEnd",[])},function(t){function e(t){s.setImmediate?setImmediate(t):s.importScripts||!s.addEventListener?setTimeout(t):(n++,
a[n]=t,s.postMessage(n,"*"))}function i(t){"use strict";function s(t,e,i,s){if(2==o)return s();if("object"!=typeof l&&"function"!=typeof l||"function"!=typeof t)s();else try{var n=0;t.call(l,function(t){n++||(l=t,e())},function(t){n++||(l=t,i())})}catch(a){l=a,i()}}function n(){var t;try{t=l&&l.then}catch(e){
return l=e,o=2,n()}s(t,function(){o=1,n()},function(){o=2,n()},function(){try{1==o&&"function"==typeof a?l=a(l):2==o&&"function"==typeof r&&(l=r(l),o=1)}catch(e){return l=e,u()}l==h?(l=TypeError(),u()):s(t,function(){u(3)},u,function(){u(1==o&&3)})})}if("function"!=typeof t&&void 0!=t)throw TypeError();
if("object"!=typeof this||this&&this.then)throw TypeError();var a,r,h=this,o=0,l=0,c=[];h.promise=h,h.resolve=function(t){return a=h.fn,r=h.er,o||(l=t,o=1,e(n)),h},h.reject=function(t){return a=h.fn,r=h.er,o||(l=t,o=2,e(n)),h},h.fG=1,h.then=function(t,e){if(1!=this.fG)throw TypeError();var s=new i;return s.fn=t,
s.er=e,3==o?s.resolve(l):4==o?s.reject(l):c.push(s),s},h["catch"]=function(t){return h.then(null,t)},h.fail=function(t){return h.then(null,t)};var u=function(t){o=t||4,c.map(function(t){3==o&&t.resolve(l)||t.reject(l)})};try{"function"==typeof t&&t(h.resolve,h.reject)}catch(d){h.reject(d)}return h}global=this;
var s=1,n={},a=!1;global.setImmediate||global.addEventListener("message",function(t){if(t.source==global)if(a)e(n[t.data]);else{a=!0;try{n[t.data]()}catch(t){}delete n[t.data],a=!1}}),i.resolve=function(t){if(1!=this.fG)throw TypeError();return t instanceof i?t:new i(function(e){e(t)})},i.reject=function(t){
if(1!=this.fG)throw TypeError();return new i(function(e,i){i(t)})},i.all=function(t){function e(i,n){if(n)return s.resolve(n);if(i)return s.reject(i);var a=t.reduce(function(t,e){return e&&e.then?t+1:t},0);0==a&&s.resolve(t),t.map(function(i,s){i&&i.then&&i.then(function(i){return t[s]=i,e(),i},e)})}
if(1!=this.fG)throw TypeError();if(!(t instanceof Array))return i.reject(TypeError());var s=new i;return e(),s},i.race=function(t){function e(i,n){if(n)return s.resolve(n);if(i)return s.reject(i);var a=t.reduce(function(t,e){return e&&e.then?t+1:t},0);0==a&&s.resolve(t),t.map(function(t,i){t&&t.then&&t.then(function(t){
e(null,t)},e)})}if(1!=this.fG)throw TypeError();if(!(t instanceof Array))return i.reject(TypeError());if(0==t.length)return new i;var s=new i;return e(),s},i.fG=1,i.defer=function(){return new i(null)},t.promise=i}(webix),function(){function t(t,e){this.kD={},this.lD=[],this.mD=t,this.U="",e?this.nD(e):this.o=webix.ajax(t).then(function(t){
return t.text()}).then(webix.bind(function(t){return t=t.split("/*api*/")[1],this.nD(JSON.parse(t)),this.kD},this))}function e(e,i){var s=new t(e,i);return s.oD()}var i="__webix_remote_error";t.prototype={nD:function(t){if(t.$key&&(this.U=t.$key),t.$vars)for(var e in t.$vars)this.kD[e]=t.$vars[e];this.df(t,this.kD,"");
},df:function(t,e,i){for(var s in t)if("$key"!==s&&"$vars"!==s){var n=t[s];if("object"==typeof n){var a=e[s]={};this.df(n,a,i+s+".")}else e[s]=this.pD(this,i+s)}},qD:function(t,e){var i=this.rD(this,t,e);return this.lD.push(i),this.sD(),i},sD:function(){this.tD||(this.tD=setTimeout(webix.bind(this.uD,this),1));
},uD:function(){for(var t=[],e=this.lD,s=0;s<this.lD.length;s++){var n=this.lD[s];n.$sync?(e.splice(s,1),s--):t.push({name:n.$name,args:n.$args})}if(e.length){var a=webix.ajax(),r=this.vD(t);webix.callEvent("onBeforeRemoteCall",[a,r,{}]);var h=a.post(this.mD,r).then(function(t){for(var s=t.json(),n=s.data,a=0;a<n.length;a++){
var t=n[a],r=n[a]&&n[a][i];r?(webix.callEvent("onRemoteError",[r]),e[a].reject(r)):e[a].resolve(t)}},function(t){for(var i=0;i<e.length;i++)e[i].reject(t);throw t});webix.callEvent("onAfterRemoteCall",[h])}this.lD=[],this.tD=null},H:function(){var t=null;this.$sync=!0;var e=[{name:this.$name,args:this.$args
}];try{var s=webix.ajax(),n=this.$context.vD(e);webix.callEvent("onBeforeRemoteCall",[s,n,{sync:!0}]);var a=s.sync().post(this.$context.mD,n);webix.callEvent("onAfterRemoteCall",[null]);var t=JSON.parse(a.responseText).data[0];t[i]&&(t=null)}catch(r){}return t},rD:function(t,e,i){var s=webix.promise.defer();
return s.sync=t.H,s.$name=e,s.$args=i,s.$context=this,s},pD:function(t,e){return function(){return t.qD(e,[].slice.call(arguments))}},oD:function(){return this.o||this.kD},vD:function(t){return{key:this.U,payload:t}}},webix.remote=function(t,i){if("object"!=typeof t)return e(t,i);var s=document.getElementsByTagName("script");
i=t,t=s[s.length-1].src,webix.remote=e(t,i)}}(),webix.skin={},webix.skin.air={topLayout:"wide",barHeight:34,tabbarHeight:36,rowHeight:34,toolbarHeight:22,listItemHeight:28,inputHeight:34,inputPadding:2,menuHeight:34,menuMargin:0,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,
sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:0,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},webix.skin.aircompact={topLayout:"wide",
barHeight:24,tabbarHeight:26,rowHeight:26,toolbarHeight:22,listItemHeight:28,inputHeight:29,inputPadding:2,menuHeight:25,menuMargin:0,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:12.5,vSliderHeight:100,layoutMargin:{space:10,wide:4,
clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:0,popupPadding:8,calendarHeight:70,padding:0,optionHeight:23},webix.skin.web={name:"web",topLayout:"space",barHeight:28,tabbarHeight:30,rowHeight:30,toolbarHeight:22,listItemHeight:28,
inputHeight:28,inputPadding:2,menuMargin:0,menuHeight:27,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:11,sliderPadding:10,sliderBorder:1,vSliderPadding:10,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:9},layoutPadding:{space:10,wide:0,
clean:0,head:0,line:0,toolbar:4,form:8,accordion:0},tabMargin:3,tabTopOffset:3,popupPadding:8,calendarHeight:70,padding:0,optionHeight:22},webix.skin.clouds={topLayout:"wide",barHeight:36,tabbarHeight:46,rowHeight:34,toolbarHeight:22,listItemHeight:32,inputHeight:30,inputPadding:2,menuHeight:34,labelTopHeight:16,
inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:11,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:2,tabOffset:0,tabBottomOffset:10,
popupPadding:8,calendarHeight:70,padding:0},webix.skin.terrace={topLayout:"space",barHeight:37,tabbarHeight:39,rowHeight:38,toolbarHeight:22,listItemHeight:28,inputHeight:30,inputPadding:2,menuMargin:0,menuHeight:32,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,
sliderBorder:1,vSliderPadding:14,vSliderHeight:100,layoutMargin:{space:20,wide:20,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:20,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:2,tabOffset:0,popupPadding:8,calendarHeight:70,padding:17,optionHeight:24},webix.skin.metro={topLayout:"space",
barHeight:36,tabbarHeight:46,rowHeight:34,toolbarHeight:36,listItemHeight:32,inputHeight:30,buttonHeight:45,inputPadding:2,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:10,wide:4,
clean:0,head:4,line:-1,toolbar:4,form:8,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:0,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0,optionHeight:23},webix.skin.light={topLayout:"space",barHeight:36,tabbarHeight:46,
rowHeight:32,toolbarHeight:36,listItemHeight:32,inputHeight:34,buttonHeight:45,inputPadding:3,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:15,wide:15,clean:0,head:4,line:-1,toolbar:4,
form:8,accordion:10},layoutPadding:{space:15,wide:0,clean:0,head:0,line:0,toolbar:0,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},webix.skin.glamour={topLayout:"space",barHeight:39,tabbarHeight:39,rowHeight:32,toolbarHeight:39,
listItemHeight:32,inputHeight:34,buttonHeight:34,inputPadding:3,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:13,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:15,wide:15,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{
space:15,wide:0,clean:0,head:0,line:0,toolbar:3,form:8,accordion:0},tabMargin:1,tabOffset:0,tabBottomOffset:1,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},webix.skin.touch={topLayout:"space",barHeight:42,tabbarHeight:50,rowHeight:42,toolbarHeight:42,listItemHeight:42,inputHeight:42,inputPadding:4,
menuHeight:42,labelTopHeight:24,unitHeaderHeight:34,inputSpacing:4,borderWidth:1,sliderHandleWidth:18,sliderPadding:10,sliderBorder:1,vSliderPadding:17,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:0,form:0,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,
toolbar:4,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,calendar:{headerHeight:70,timepickerHeight:35,height:310,width:300},padding:0,customCheckbox:!0,customRadio:!0,popupPadding:8,optionHeight:32},webix.skin.flat={topLayout:"space",barHeight:46,tabbarHeight:46,rowHeight:34,toolbarHeight:46,
listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:3,menuHeight:34,labelTopHeight:22,propertyItemHeight:28,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:15,vSliderHeight:100,layoutMargin:{space:10,wide:10,clean:0,head:4,line:-1,toolbar:4,form:8,
accordion:10},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:17,accordion:0},tabMargin:4,tabOffset:0,tabBottomOffset:6,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:32},webix.skin.compact={topLayout:"space",
barHeight:34,tabbarHeight:34,rowHeight:24,toolbarHeight:34,listItemHeight:28,inputHeight:30,buttonHeight:30,inputPadding:3,menuHeight:28,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:5,wide:5,
clean:0,head:4,line:-1,toolbar:4,form:4,accordion:5},layoutPadding:{space:5,wide:0,clean:0,head:0,line:0,toolbar:2,form:12,accordion:0},tabMargin:3,tabOffset:0,tabBottomOffset:3,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:23
},webix.skin.material={topLayout:"space",barHeight:45,tabbarHeight:47,rowHeight:38,toolbarHeight:22,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:2,menuMargin:0,menuHeight:34,labelTopHeight:16,propertyItemHeight:34,inputSpacing:4,borderWidth:1,sliderHandleWidth:16,sliderPadding:10,sliderBorder:1,
layoutMargin:{material:10,space:10,wide:10,clean:0,head:4,line:-1,toolbar:4,form:16,accordion:0},layoutPadding:{material:10,space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:16,accordion:0},tabMargin:0,tabOffset:0,tabBottomOffset:0,tabTopOffset:0,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,
padding:0,accordionType:"accordion"},webix.skin.contrast={topLayout:"space",barHeight:46,tabbarHeight:46,rowHeight:34,toolbarHeight:46,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:3,menuHeight:34,labelTopHeight:22,propertyItemHeight:28,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,
sliderPadding:10,sliderBorder:1,vSliderPadding:15,vSliderHeight:100,layoutMargin:{space:10,wide:10,clean:0,head:4,line:-1,toolbar:8,form:8,accordion:10},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:17,accordion:0},tabMargin:4,tabOffset:0,tabBottomOffset:6,tabTopOffset:1,customCheckbox:!0,
customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:32},webix.skin.set=function(t){if(webix.skin.$active=webix.skin[t],webix.skin.$name=t,webix.ui)for(var e in webix.ui){var i=webix.ui[e];i&&i.prototype&&i.prototype.$skin&&i.prototype.$skin(i.prototype)}},
webix.skin.set(window.webix_skin||"flat"),webix.Destruction={$init:function(){var t=this.VE={obj:this};webix.destructors.push(t)},destructor:function(){var t=this.s;if(this.di&&this.editCancel(),this.callEvent&&this.callEvent("onDestruct",[]),this.destructor=function(){},this.VE.obj=null,this.getChildViews){
var e=this.getChildViews();if(e)for(var i=0;i<e.length;i++)e[i].destructor();if(this.Ns)for(var i=0;i<this.Ns.length;i++)this.Ns[i].destructor()}if(delete webix.ui.views[t.id],t.$id){var s=this.getTopParentView();s&&s.oC&&s.oC(t.$id)}this.t=null,this.u=null,this.v=null,this.w&&(this.w.innerHTML="",this.w.t=null),
this.x&&this.x.parentNode&&this.x.parentNode.removeChild(this.x),this.data&&this.data.destructor&&this.data.destructor(),this.unbind&&this.unbind(),this.data=null,this.x=this.$view=this.w=this.y=null,this.i=this.j={},webix.UIManager.A==this&&(webix.UIManager.A=null);var n=t.url;n&&n.$proxy&&n.release&&n.release(),
this.$scope=null,this.$destructed=!0}},webix.destructors=[],webix.event(window,"unload",function(){webix.callEvent("unload",[]),webix.B=!0;for(var t=0;t<webix.destructors.length;t++){var e=webix.destructors[t].obj;e&&e.destructor()}webix.destructors=[],webix.ui.et=webix.toArray();for(var i in webix.h)webix.eventRemove(i);
}),function(){var t={},e={},i=new RegExp("(\\r\\n|\\n)","g"),s=new RegExp('(\\")',"g"),n=new RegExp("(\\\\)","g"),a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r=/[&<>"'`]/g,h=function(t){return a[t]||"&amp;"};webix.template=function(a){if("function"==typeof a)return a;if(t[a])return t[a];
if(a=(a||"").toString(),-1!=a.indexOf("->")){var r=a.split("->");switch(r[0]){case"html":a=webix.html.getValue(r[1]);break;case"http":a=(new webix.ajax).sync().get(r[1],{uid:webix.uid()}).responseText}}if(a=(a||"").toString(),webix.env.strict){if(!e[a]){e[a]=[];var h=[];if(a.replace(/\{obj\.([^}?]+)\?([^:]*):([^}]*)\}/g,function(t,e,i,s,n){
h.push({pos:n,str:t,fn:function(t,n){return t[e]?i:s}})}),a.replace(/\{common\.([^}\(]*)\}/g,function(t,e,i){h.push({pos:i,str:t,fn:function(t,i){return i[e]||""}})}),a.replace(/\{common\.([^\}\(]*)\(\)\}/g,function(t,e,i){h.push({pos:i,str:t,fn:function(t,i){return i[e]?i[e].apply(this,arguments):"";
}})}),a.replace(/\{obj\.([^:}]*)\}/g,function(t,e,i){h.push({pos:i,str:t,fn:function(t,i){return t[e]}})}),a.replace("{obj}",function(t,e,i){h.push({pos:i,str:t,fn:function(t,e){return t}})}),a.replace(/#([^#'";, ]+)#/gi,function(t,e,i){"!"==e.charAt(0)?(e=e.substr(1),h.push({pos:i,str:t,fn:function(t,i){
return-1!=e.indexOf(".")&&(t=webix.CodeParser.collapseNames(t)),webix.template.escape(t[e])}})):h.push({pos:i,str:t,fn:function(t,i){return-1!=e.indexOf(".")&&(t=webix.CodeParser.collapseNames(t)),t[e]}})}),h.sort(function(t,e){return t.pos>e.pos?1:-1}),h.length){for(var o=0,l=function(t,i,s){e[t].push(function(){
return t.slice(i,s)})},c=0;c<h.length;c++){var u=h[c].pos;l(a,o,u),e[a].push(h[c].fn),o=u+h[c].str.length}l(a,o,a.length)}else e[a].push(function(){return a})}return function(){for(var t="",i=0;i<e[a].length;i++)t+=e[a][i].apply(this,arguments);return t}}a=a.replace(n,"\\\\"),a=a.replace(i,"\\n"),a=a.replace(s,'\\"'),
a=a.replace(/\{obj\.([^}?]+)\?([^:]*):([^}]*)\}/g,'"+(obj.$1?"$2":"$3")+"'),a=a.replace(/\{common\.([^}\(]*)\}/g,"\"+(common.$1||'')+\""),a=a.replace(/\{common\.([^\}\(]*)\(\)\}/g,'"+(common.$1?common.$1.apply(this, arguments):"")+"'),a=a.replace(/\{obj\.([^}]*)\}/g,'"+(obj.$1)+"'),a=a.replace("{obj}",'"+obj+"'),
a=a.replace(/#([^#'";, ]+)#/gi,function(t,e){return"!"==e.charAt(0)?'"+webix.template.escape(obj.'+e.substr(1)+')+"':'"+(obj.'+e+')+"'});try{t[a]=Function("obj","common",'return "'+a+'";')}catch(d){}return t[a]},webix.template.escape=function(t){return t===webix.undefined||null===t?"":(t.toString()||"").replace(r,h);
},webix.template.empty=function(){return""},webix.template.bind=function(t){return webix.bind(webix.template(t),this)},webix.type=function(t,e){if(t.$protoWait)return t.d||(t.d=[]),void t.d.push(e);"function"==typeof t&&(t=t.prototype),t.types||(t.types={"default":t.type},t.type.name="default");var i=e.name,s=t.type;
i&&(s=t.types[i]=webix.clone(e.baseType?t.types[e.baseType]:t.type));for(var n in e)0===n.indexOf("template")?s[n]=webix.template(e[n]):s[n]=e[n];return i}}(),webix.Settings={$init:function(){this.s=this.config={}},define:function(t,e){return"object"==typeof t?this.C(t):this.D(t,e)},D:function(t,e){var i=this[t+"_setter"];
return this.s[t]=i?i.call(this,e,t):e},C:function(t){if(t)for(var e in t)this.D(e,t[e])},e:function(t,e){var i={};e&&(i=webix.extend(i,e)),"object"!=typeof t||t.tagName||webix.extend(i,t,!0),this.C(i)},E:function(t,e){for(var i in e)switch(typeof t[i]){case"object":t[i]=this.E(t[i]||{},e[i]);break;case"undefined":
t[i]=e[i]}return t}},webix.proxy=function(t,e,i){var s=webix.copy(webix.proxy[t]);return s.source=e,i&&webix.extend(s,i,!0),s.init&&s.init(),s},webix.proxy.$parse=function(t){if("string"==typeof t&&-1!=t.indexOf("->")){var e=t.split("->");return webix.proxy(e[0],e[1])}return t},webix.proxy.post={$proxy:!0,
load:function(t,e,i){i=webix.extend(i||{},this.params||{},!0),webix.ajax().bind(t).post(this.source,i,e)}},webix.proxy.sync={$proxy:!0,load:function(t,e){webix.ajax().sync().bind(t).get(this.source,null,e)}},webix.proxy.connector={$proxy:!0,connectorName:"!nativeeditor_status",load:function(t,e){webix.ajax(this.source,e,t);
},saveAll:function(t,e,i,s){for(var n=this.source,a={},r=[],h=0;h<e.length;h++){var o=e[h];r.push(o.id);for(var l in o.data)0!==l.indexOf("$")&&(a[o.id+"_"+l]=o.data[l]);a[o.id+"_"+this.connectorName]=o.operation}a.ids=r.join(","),a.webix_security=webix.securityKey,n+=-1==n.indexOf("?")?"?":"&",n+="editing=true",
webix.ajax().post(n,a,s)},result:function(t,e,i,s,n,a){if(n=n.xml(),!n)return i.yr(null,s,n,a);var r=n.data.action;r.length||(r=[r]);for(var h=[],o=0;o<r.length;o++){var l=r[o];h.push(l),l.status=l.type,l.id=l.sid,l.newid=l.tid,i.processResult(l,l,{text:s,data:n,loader:a})}return h}},webix.proxy.rest={
$proxy:!0,load:function(t,e){webix.ajax(this.source,e,t)},save:function(t,e,i,s){return webix.proxy.rest.dC.call(this,t,e,i,s,webix.ajax())},dC:function(t,e,i,s,n){var a=this.source,r="",h=a.indexOf("?");-1!==h&&(r=a.substr(h),a=a.substr(0,h)),a+="/"==a.charAt(a.length-1)?"":"/";var o=e.operation,l=e.data;
"insert"==o&&delete l.id,"update"==o?n.put(a+l.id+r,l,s):"delete"==o?n.del(a+l.id+r,l,s):n.post(a+r,l,s)}},webix.proxy.json={$proxy:!0,load:function(t,e){webix.ajax(this.source,e,t)},save:function(t,e,i,s){var n=webix.ajax().headers({"Content-Type":"application/json"});return webix.proxy.rest.dC.call(this,t,e,i,s,n);
}},webix.proxy.faye={$proxy:!0,init:function(){this.clientId=this.clientId||webix.uid()},load:function(t){var e=this.clientId;this.client.subscribe(this.source,function(i){i.clientId!=e&&webix.dp(t).ignore(function(){if("delete"==i.operation)t.remove(i.data.id);else if("insert"==i.operation)t.add(i.data);else if("update"==i.operation){
var e=t.getItem(i.data.id);e&&(webix.extend(e,i.data,!0),t.refresh(e.id))}})})},save:function(t,e,i,s){e.clientId=this.clientId,this.client.publish(this.source,e)}},webix.proxy.indexdb={$proxy:!0,create:function(t,e,i,s){this.source=t+"/",this.F(s,i,function(t){var i=t.target.result;for(var s in e)for(var n=e[s],a=i.createObjectStore(s,{
keyPath:"id",autoIncrement:!0}),r=0;r<n.length;r++)a.put(n[r])})},F:function(t,e,i){if(-1!=this.source.indexOf("/")){var s=this.source.split("/");this.source=s[1],e=e||s[2];var n,a=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB;n=e?a.open(s[0],e):a.open(s[0]),i&&(n.onupgradeneeded=i),n.onerror=function(){},
n.onblocked=function(){},n.onsuccess=webix.bind(function(e){this.db=e.target.result,t&&t.call(this)},this)}else this.db?t.call(this):webix.delay(this.F,this,[t],50)},load:function(t,e){this.F(function(){var i=this.db.transaction(this.source).objectStore(this.source),s=[];i.openCursor().onsuccess=function(i){
var n=i.target.result;n?(s.push(n.value),n["continue"]()):(t.parse(s),webix.ajax.$callback(t,e,"[]",s))}})},save:function(t,e,i,s){this.F(function(){var t,s=e.operation,n=e.data,a=e.id,r=this.db.transaction([this.source],"readwrite").objectStore(this.source);"delete"==s?t=r["delete"](a):"update"==s?t=r.put(n):"insert"==s&&(delete n.id,
t=r.add(n)),t.onsuccess=function(t){var n={status:s,id:e.id};"insert"==s&&(n.newid=t.target.result),i.processResult(n,n)}})}},webix.proxy.binary={$proxy:!0,load:function(t,e){var i=this.source.split("@"),s=i[0].split(".").pop();return webix.ajax().response("arraybuffer").get(i[0]).then(function(n){var a={
ext:s,dataurl:i[1]};webix.ajax.$callback(t,e,"",{data:n,options:a},-1)})}},webix.ajax=function(t,e,i){return 0!==arguments.length?(new webix.ajax).get(t,e,i):this.getXHR?this:new webix.ajax},webix.ajax.count=0,webix.ajax.prototype={master:null,getXHR:function(){return new XMLHttpRequest},stringify:function(t){
return webix.stringify(t)},G:function(t,e,i,s){var n;e&&(webix.isArray(e)||"function"==typeof(e.success||e.error||e))&&(n=i,i=e,e=null);var a=webix.promise.defer(),r=this.getXHR();webix.isArray(i)||(i=[i]),i.push({success:function(t,e){a.resolve(e)},error:function(t,e){a.reject(r)}});var h=this.I||{};
if(webix.callEvent("onBeforeAjax",[s,t,e,r,h,null,a])){var o=!1;if("GET"!==s){var l=!1;for(var c in h)"content-type"==c.toString().toLowerCase()&&(l=!0,"application/json"==h[c]&&(o=!0));l||(h["Content-Type"]="application/x-www-form-urlencoded")}if("object"==typeof e&&!(window.FormData&&e instanceof window.FormData))if(o)e=this.stringify(e);else{
var u=[];for(var d in e){var f=e[d];(null===f||f===webix.undefined)&&(f=""),"object"==typeof f&&(f=this.stringify(f)),u.push(d+"="+encodeURIComponent(f))}e=u.join("&")}e&&"GET"===s&&(t=t+(-1!=t.indexOf("?")?"&":"?")+e,e=null),r.open(s,t,!this.H);var b=this.Tw;b&&(r.responseType=b);for(var c in h)r.setRequestHeader(c,h[c]);
var p=this;return this.master=this.master||n,r.onreadystatechange=function(){if(!r.readyState||4==r.readyState){if(webix.ajax.count++,i&&p&&!r.aborted){if(-1!=webix.ly.find(r))return webix.ly.remove(r);var t,e,s=p.master||p,a=r.status>=400||0===r.status;"blob"==r.responseType||"arraybuffer"==r.responseType?(t="",
e=r.response):(t=r.responseText||"",e=p.J(r)),webix.ajax.$callback(s,i,t,e,r,a)}p&&(p.master=null),i=p=n=null}},this.qh&&(r.timeout=this.qh),this.H?r.send(e||null):setTimeout(function(){r.aborted||(-1!=webix.ly.find(r)?webix.ly.remove(r):r.send(e||null))},1),this.master&&this.master.Ve&&this.master.Ve.push(r),
this.H?r:a}},J:function(t){return{xml:function(){try{return webix.DataDriver.xml.tagToObject(webix.DataDriver.xml.toObject(t.responseText,this))}catch(e){}},rawxml:function(){return window.XPathResult?t.responseXML:webix.DataDriver.xml.fromString(t.responseText)},text:function(){return t.responseText;
},json:function(){return webix.DataDriver.json.toObject(t.responseText,!1)}}},get:function(t,e,i){return this.G(t,e,i,"GET")},post:function(t,e,i){return this.G(t,e,i,"POST")},put:function(t,e,i){return this.G(t,e,i,"PUT")},del:function(t,e,i){return this.G(t,e,i,"DELETE")},patch:function(t,e,i){return this.G(t,e,i,"PATCH");
},sync:function(){return this.H=!0,this},timeout:function(t){return this.qh=t,this},response:function(t){return this.Tw=t,this},header:function(t){return this.I=t,this},headers:function(t){return this.I=webix.extend(this.I||{},t),this},bind:function(t){return this.master=t,this}},webix.ajax.$callback=function(t,e,i,s,n,a){
if(!t.$destructed){if(-1===n&&s&&"function"==typeof s.json&&(s=s.json()),a&&webix.callEvent("onAjaxError",[n]),webix.isArray(e)||(e=[e]),!a)for(var r=0;r<e.length;r++)if(e[r]){var h=e[r].before;h&&h.call(t,i,s,n)}for(var r=0;r<e.length;r++)if(e[r]){var o=e[r].success||e[r];a&&(o=e[r].error),o&&o.call&&o.call(t,i,s,n);
}}},webix.send=function(t,e,i,s){var n=webix.html.create("FORM",{target:s||"_self",action:t,method:i||"POST"},"");for(var a in e){var r=webix.html.create("INPUT",{type:"hidden",name:a,value:e[a]},"");n.appendChild(r)}n.style.display="none",document.body.appendChild(n),n.submit(),document.body.removeChild(n);
},webix.AtomDataLoader={$init:function(t){this.data={},this.waitData=webix.promise.defer(),t&&(this.s.datatype=t.datatype||"json"),this.$ready.push(this.K)},K:function(){this.L=!0,this.s.url&&this.url_setter(this.s.url),this.s.data&&this.data_setter(this.s.data)},url_setter:function(t){return t=webix.proxy.$parse(t),
this.L?(this.load(t,this.s.datatype),t):t},data_setter:function(t){return this.L?(this.parse(t,this.s.datatype),!0):t},load:function(t,e){var i=arguments[2]||null;if(!this.callEvent("onBeforeLoad",[]))return webix.promise.reject();"string"==typeof e?(this.data.driver=webix.DataDriver[e],e=arguments[2]):this.data.driver||(this.data.driver=webix.DataDriver.json);
var s=[{success:this.M,error:this.N}];return e&&(webix.isArray(e)?s.push.apply(s,e):s.push(e)),t=webix.proxy.$parse(t),t.$proxy&&t.load?t.load(this,s,i):"function"==typeof t?t(i).then(webix.bind(function(t){webix.ajax.$callback(this,s,"",t,-1)},this),webix.bind(function(t){webix.ajax.$callback(this,s,"",null,t,!0);
},this)):webix.ajax(t,s,this)},parse:function(t,e){return t&&t.then&&"function"==typeof t.then?t.then(webix.bind(function(t){t&&"function"==typeof t.json&&(t=t.json()),this.parse(t,e)},this)):t&&t.sync&&this.sync?this.UC(t):this.callEvent("onBeforeLoad",[])?(this.data.driver=webix.DataDriver[e||"json"],
s.er=e,3==o?s.resolve(l):4==o?s.reject(l):c.push(s),s},h["catch"]=function(t){return h.then(null,t)},h.fail=function(t){return h.then(null,t)};var u=function(t){o=t||4;for(var e=0;e<c.length;e++){var i=c[e];3==o&&i.resolve(l)||i.reject(l)}};try{"function"==typeof t&&t(h.resolve,h.reject)}catch(d){h.reject(d);
}return h}var s=this,n=1,a={},r=!1;!s.setImmediate&&s.addEventListener&&s.addEventListener("message",function(t){if(t.source==s)if(r)e(a[t.data]);else{r=!0;try{a[t.data]()}catch(t){}delete a[t.data],r=!1}}),i.resolve=function(t){if(1!=this.fG)throw TypeError();return t instanceof i?t:new i(function(e){
e(t)})},i.reject=function(t){if(1!=this.fG)throw TypeError();return new i(function(e,i){i(t)})},i.all=function(t){function e(i,n){if(n)return s.resolve(n);if(i)return s.reject(i);var a=t.reduce(function(t,e){return e&&e.then?t+1:t},0);0==a&&s.resolve(t),t.map(function(i,s){i&&i.then&&i.then(function(i){
return t[s]=i,e(),i},e)})}if(1!=this.fG)throw TypeError();if(!(t instanceof Array))return i.reject(TypeError());var s=new i;return e(),s},i.race=function(t){function e(i,n){if(n)return s.resolve(n);if(i)return s.reject(i);var a=t.reduce(function(t,e){return e&&e.then?t+1:t},0);0==a&&s.resolve(t),t.map(function(t,i){
t&&t.then&&t.then(function(t){e(null,t)},e)})}if(1!=this.fG)throw TypeError();if(!(t instanceof Array))return i.reject(TypeError());if(0==t.length)return new i;var s=new i;return e(),s},i.fG=1,i.defer=function(){return new i(null)},t.promise=i}(webix),function(){function t(t,e){this.kD={},this.lD=[],
this.mD=t,this.U="",e?this.nD(e):this.o=webix.ajax(t).then(function(t){return t.text()}).then(webix.bind(function(t){return t=t.split("/*api*/")[1],this.nD(JSON.parse(t)),this.kD},this))}function e(e,i){var s=new t(e,i);return s.oD()}var i="__webix_remote_error";t.prototype={nD:function(t){if(t.$key&&(this.U=t.$key),
t.$vars)for(var e in t.$vars)this.kD[e]=t.$vars[e];this.df(t,this.kD,"")},df:function(t,e,i){for(var s in t)if("$key"!==s&&"$vars"!==s){var n=t[s];if("object"==typeof n){var a=e[s]={};this.df(n,a,i+s+".")}else e[s]=this.pD(this,i+s)}},qD:function(t,e){var i=this.rD(this,t,e);return this.lD.push(i),this.sD(),
i},sD:function(){this.tD||(this.tD=setTimeout(webix.bind(this.uD,this),1))},uD:function(){for(var t=[],e=this.lD,s=0;s<this.lD.length;s++){var n=this.lD[s];n.$sync?(e.splice(s,1),s--):t.push({name:n.$name,args:n.$args})}if(e.length){var a=webix.ajax(),r=this.vD(t);webix.callEvent("onBeforeRemoteCall",[a,r,{}]);
var h=a.post(this.mD,r).then(function(t){for(var s=t.json(),n=s.data,a=0;a<n.length;a++){var t=n[a],r=n[a]&&n[a][i];r?(webix.callEvent("onRemoteError",[r]),e[a].reject(r)):e[a].resolve(t)}},function(t){for(var i=0;i<e.length;i++)e[i].reject(t);throw t});webix.callEvent("onAfterRemoteCall",[h])}this.lD=[],
this.tD=null},H:function(){var t=null;this.$sync=!0;var e=[{name:this.$name,args:this.$args}];try{var s=webix.ajax(),n=this.$context.vD(e);webix.callEvent("onBeforeRemoteCall",[s,n,{sync:!0}]);var a=s.sync().post(this.$context.mD,n);webix.callEvent("onAfterRemoteCall",[null]);var t=JSON.parse(a.responseText).data[0];
t[i]&&(t=null)}catch(r){}return t},rD:function(t,e,i){var s=webix.promise.defer();return s.sync=t.H,s.$name=e,s.$args=i,s.$context=this,s},pD:function(t,e){return function(){return t.qD(e,[].slice.call(arguments))}},oD:function(){return this.o||this.kD},vD:function(t){return{key:this.U,payload:t}}},webix.remote=function(t,i){
if("object"!=typeof t)return e(t,i);var s=document.getElementsByTagName("script");i=t,t=s[s.length-1].src,webix.remote=e(t,i)}}(),webix.skin={},webix.skin.air={topLayout:"wide",barHeight:34,tabbarHeight:36,rowHeight:34,toolbarHeight:22,listItemHeight:28,inputHeight:34,inputPadding:2,menuHeight:34,menuMargin:0,
labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:0,popupPadding:8,
calendarHeight:70,padding:0,optionHeight:27},webix.skin.aircompact={topLayout:"wide",barHeight:24,tabbarHeight:26,rowHeight:26,toolbarHeight:22,listItemHeight:28,inputHeight:29,inputPadding:2,menuHeight:25,menuMargin:0,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,
sliderBorder:1,vSliderPadding:12.5,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:0,popupPadding:8,calendarHeight:70,padding:0,optionHeight:23},webix.skin.web={name:"web",topLayout:"space",
barHeight:28,tabbarHeight:30,rowHeight:30,toolbarHeight:22,listItemHeight:28,inputHeight:28,inputPadding:2,menuMargin:0,menuHeight:27,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:11,sliderPadding:10,sliderBorder:1,vSliderPadding:10,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,
head:4,line:-1,toolbar:4,form:8,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8,accordion:0},tabMargin:3,tabTopOffset:3,popupPadding:8,calendarHeight:70,padding:0,optionHeight:22},webix.skin.clouds={topLayout:"wide",barHeight:36,tabbarHeight:46,rowHeight:34,toolbarHeight:22,
listItemHeight:32,inputHeight:30,inputPadding:2,menuHeight:34,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,sliderBorder:1,vSliderPadding:11,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:10,wide:0,clean:0,
head:0,line:0,toolbar:4,form:8},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0},webix.skin.terrace={topLayout:"space",barHeight:37,tabbarHeight:39,rowHeight:38,toolbarHeight:22,listItemHeight:28,inputHeight:30,inputPadding:2,menuMargin:0,menuHeight:32,labelTopHeight:16,
inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:14,vSliderHeight:100,layoutMargin:{space:20,wide:20,clean:0,head:4,line:-1,toolbar:4,form:8},layoutPadding:{space:20,wide:0,clean:0,head:0,line:0,toolbar:4,form:8},tabMargin:2,tabOffset:0,popupPadding:8,calendarHeight:70,
padding:17,optionHeight:24},webix.skin.metro={topLayout:"space",barHeight:36,tabbarHeight:46,rowHeight:34,toolbarHeight:36,listItemHeight:32,inputHeight:30,buttonHeight:45,inputPadding:2,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,
vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:0,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0,optionHeight:23
},webix.skin.light={topLayout:"space",barHeight:36,tabbarHeight:46,rowHeight:32,toolbarHeight:36,listItemHeight:32,inputHeight:34,buttonHeight:45,inputPadding:3,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,
layoutMargin:{space:15,wide:15,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{space:15,wide:0,clean:0,head:0,line:0,toolbar:0,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},webix.skin.glamour={topLayout:"space",
barHeight:39,tabbarHeight:39,rowHeight:32,toolbarHeight:39,listItemHeight:32,inputHeight:34,buttonHeight:34,inputPadding:3,menuHeight:36,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:13,sliderPadding:10,sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:15,wide:15,
clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{space:15,wide:0,clean:0,head:0,line:0,toolbar:3,form:8,accordion:0},tabMargin:1,tabOffset:0,tabBottomOffset:1,popupPadding:8,calendarHeight:70,padding:0,optionHeight:27},webix.skin.touch={topLayout:"space",barHeight:42,tabbarHeight:50,
rowHeight:42,toolbarHeight:42,listItemHeight:42,inputHeight:42,inputPadding:4,menuHeight:42,labelTopHeight:24,unitHeaderHeight:34,inputSpacing:4,borderWidth:1,sliderHandleWidth:18,sliderPadding:10,sliderBorder:1,vSliderPadding:17,vSliderHeight:100,layoutMargin:{space:10,wide:4,clean:0,head:4,line:-1,
toolbar:0,form:0,accordion:9},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:8,accordion:0},tabMargin:2,tabOffset:0,tabBottomOffset:10,calendar:{headerHeight:70,timepickerHeight:35,height:310,width:300},padding:0,customCheckbox:!0,customRadio:!0,popupPadding:8,optionHeight:32},webix.skin.flat={
topLayout:"space",barHeight:46,tabbarHeight:46,rowHeight:34,toolbarHeight:46,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:3,menuHeight:34,labelTopHeight:22,propertyItemHeight:28,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:15,vSliderHeight:100,
layoutMargin:{space:10,wide:10,clean:0,head:4,line:-1,toolbar:4,form:8,accordion:10},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:17,accordion:0},tabMargin:4,tabOffset:0,tabBottomOffset:6,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,
accordionType:"accordion",optionHeight:32},webix.skin.compact={topLayout:"space",barHeight:34,tabbarHeight:34,rowHeight:24,toolbarHeight:34,listItemHeight:28,inputHeight:30,buttonHeight:30,inputPadding:3,menuHeight:28,labelTopHeight:16,inputSpacing:4,borderWidth:1,sliderHandleWidth:12,sliderPadding:10,
sliderBorder:1,vSliderPadding:13,vSliderHeight:100,layoutMargin:{space:5,wide:5,clean:0,head:4,line:-1,toolbar:4,form:4,accordion:5},layoutPadding:{space:5,wide:0,clean:0,head:0,line:0,toolbar:2,form:12,accordion:0},tabMargin:3,tabOffset:0,tabBottomOffset:3,tabTopOffset:1,customCheckbox:!0,customRadio:!0,
popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:23},webix.skin.material={topLayout:"space",barHeight:45,tabbarHeight:47,rowHeight:38,toolbarHeight:22,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:2,menuMargin:0,menuHeight:34,labelTopHeight:16,propertyItemHeight:34,
inputSpacing:4,borderWidth:1,sliderHandleWidth:16,sliderPadding:10,sliderBorder:1,layoutMargin:{material:10,space:10,wide:10,clean:0,head:4,line:-1,toolbar:4,form:16,accordion:0},layoutPadding:{material:10,space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:16,accordion:0},tabMargin:0,tabOffset:0,tabBottomOffset:0,
tabTopOffset:0,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion"},webix.skin.contrast={topLayout:"space",barHeight:46,tabbarHeight:46,rowHeight:34,toolbarHeight:46,listItemHeight:34,inputHeight:38,buttonHeight:38,inputPadding:3,menuHeight:34,labelTopHeight:22,
propertyItemHeight:28,inputSpacing:4,borderWidth:1,sliderHandleWidth:14,sliderPadding:10,sliderBorder:1,vSliderPadding:15,vSliderHeight:100,layoutMargin:{space:10,wide:10,clean:0,head:4,line:-1,toolbar:8,form:8,accordion:10},layoutPadding:{space:10,wide:0,clean:0,head:0,line:0,toolbar:4,form:17,accordion:0
},tabMargin:4,tabOffset:0,tabBottomOffset:6,tabTopOffset:1,customCheckbox:!0,customRadio:!0,popupPadding:8,calendarHeight:70,padding:0,accordionType:"accordion",optionHeight:32},webix.skin.set=function(t){if(webix.skin.$active=webix.skin[t],webix.skin.$name=t,webix.ui)for(var e in webix.ui){var i=webix.ui[e];
i&&i.prototype&&i.prototype.$skin&&i.prototype.$skin(i.prototype)}},webix.skin.set(window.webix_skin||"flat"),webix.Destruction={$init:function(){var t=this.VE={obj:this};webix.destructors.push(t)},destructor:function(){var t=this.s;if(this.di&&this.editCancel(),this.callEvent&&this.callEvent("onDestruct",[]),
this.destructor=function(){},this.VE.obj=null,this.getChildViews){var e=this.getChildViews();if(e)for(var i=0;i<e.length;i++)e[i].destructor();if(this.Ns)for(var i=0;i<this.Ns.length;i++)this.Ns[i].destructor()}if(delete webix.ui.views[t.id],t.$id){var s=this.getTopParentView();s&&s.oC&&s.oC(t.$id)}this.t=null,
this.u=null,this.v=null,this.w&&(this.w.innerHTML="",this.w.t=null),this.x&&this.x.parentNode&&this.x.parentNode.removeChild(this.x),this.data&&this.data.destructor&&this.data.destructor(),this.unbind&&this.unbind(),this.data=null,this.x=this.$view=this.w=this.y=null,this.i=this.j={},webix.UIManager.A==this&&(webix.UIManager.A=null);
var n=t.url;n&&n.$proxy&&n.release&&n.release(),this.$scope=null,this.$destructed=!0}},webix.destructors=[],webix.event(window,"unload",function(){webix.callEvent("unload",[]),webix.B=!0;for(var t=0;t<webix.destructors.length;t++){var e=webix.destructors[t].obj;e&&e.destructor()}webix.destructors=[],
webix.ui.et=webix.toArray();for(var i in webix.h)webix.eventRemove(i)}),function(){var t={},e={},i=new RegExp("(\\r\\n|\\n)","g"),s=new RegExp('(\\")',"g"),n=new RegExp("(\\\\)","g"),a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r=/[&<>"'`]/g,h=function(t){return a[t]||"&amp;";
};webix.template=function(a){if("function"==typeof a)return a;if(t[a])return t[a];if(a=(a||"").toString(),-1!=a.indexOf("->")){var r=a.split("->");switch(r[0]){case"html":a=webix.html.getValue(r[1]);break;case"http":a=(new webix.ajax).sync().get(r[1],{uid:webix.uid()}).responseText}}if(a=(a||"").toString(),
webix.env.strict){if(!e[a]){e[a]=[];var h=[];if(a.replace(/\{obj\.([^}?]+)\?([^:]*):([^}]*)\}/g,function(t,e,i,s,n){h.push({pos:n,str:t,fn:function(t,n){return t[e]?i:s}})}),a.replace(/\{common\.([^}\(]*)\}/g,function(t,e,i){h.push({pos:i,str:t,fn:function(t,i){return i[e]||""}})}),a.replace(/\{common\.([^\}\(]*)\(\)\}/g,function(t,e,i){
h.push({pos:i,str:t,fn:function(t,i){return i[e]?i[e].apply(this,arguments):""}})}),a.replace(/\{obj\.([^:}]*)\}/g,function(t,e,i){h.push({pos:i,str:t,fn:function(t,i){return t[e]}})}),a.replace("{obj}",function(t,e,i){h.push({pos:i,str:t,fn:function(t,e){return t}})}),a.replace(/#([^#'";, ]+)#/gi,function(t,e,i){
"!"==e.charAt(0)?(e=e.substr(1),h.push({pos:i,str:t,fn:function(t,i){return-1!=e.indexOf(".")&&(t=webix.CodeParser.collapseNames(t)),webix.template.escape(t[e])}})):h.push({pos:i,str:t,fn:function(t,i){return-1!=e.indexOf(".")&&(t=webix.CodeParser.collapseNames(t)),t[e]}})}),h.sort(function(t,e){return t.pos>e.pos?1:-1;
}),h.length){for(var o=0,l=function(t,i,s){e[t].push(function(){return t.slice(i,s)})},c=0;c<h.length;c++){var u=h[c].pos;l(a,o,u),e[a].push(h[c].fn),o=u+h[c].str.length}l(a,o,a.length)}else e[a].push(function(){return a})}return function(){for(var t="",i=0;i<e[a].length;i++)t+=e[a][i].apply(this,arguments);
return t}}a=a.replace(n,"\\\\"),a=a.replace(i,"\\n"),a=a.replace(s,'\\"'),a=a.replace(/\{obj\.([^}?]+)\?([^:]*):([^}]*)\}/g,'"+(obj.$1?"$2":"$3")+"'),a=a.replace(/\{common\.([^}\(]*)\}/g,"\"+(common.$1||'')+\""),a=a.replace(/\{common\.([^\}\(]*)\(\)\}/g,'"+(common.$1?common.$1.apply(this, arguments):"")+"'),
a=a.replace(/\{obj\.([^}]*)\}/g,'"+(obj.$1)+"'),a=a.replace("{obj}",'"+obj+"'),a=a.replace(/#([^#'";, ]+)#/gi,function(t,e){return"!"==e.charAt(0)?'"+webix.template.escape(obj.'+e.substr(1)+')+"':'"+(obj.'+e+')+"'});try{t[a]=Function("obj","common",'return "'+a+'";')}catch(d){}return t[a]},webix.template.escape=function(t){
return t===webix.undefined||null===t?"":(t.toString()||"").replace(r,h)},webix.template.empty=function(){return""},webix.template.bind=function(t){return webix.bind(webix.template(t),this)},webix.type=function(t,e){if(t.$protoWait)return t.d||(t.d=[]),void t.d.push(e);"function"==typeof t&&(t=t.prototype),
t.types||(t.types={"default":t.type},t.type.name="default");var i=e.name,s=t.type;i&&(s=t.types[i]=webix.clone(e.baseType?t.types[e.baseType]:t.type));for(var n in e)0===n.indexOf("template")?s[n]=webix.template(e[n]):s[n]=e[n];return i}}(),webix.Settings={$init:function(){this.s=this.config={}},define:function(t,e){
return"object"==typeof t?this.C(t):this.D(t,e)},D:function(t,e){var i=this[t+"_setter"];return this.s[t]=i?i.call(this,e,t):e},C:function(t){if(t)for(var e in t)this.D(e,t[e])},e:function(t,e){var i={};e&&(i=webix.extend(i,e)),"object"!=typeof t||t.tagName||webix.extend(i,t,!0),this.C(i)},E:function(t,e){
for(var i in e)switch(typeof t[i]){case"object":t[i]=this.E(t[i]||{},e[i]);break;case"undefined":t[i]=e[i]}return t}},webix.proxy=function(t,e,i){var s=webix.copy(webix.proxy[t]);return s.source=e,i&&webix.extend(s,i,!0),s.init&&s.init(),s},webix.proxy.$parse=function(t){if("string"==typeof t&&-1!=t.indexOf("->")){
var e=t.split("->");return webix.proxy(e[0],e[1])}return t},webix.proxy.post={$proxy:!0,load:function(t,e,i){i=webix.extend(i||{},this.params||{},!0),webix.ajax().bind(t).post(this.source,i,e)}},webix.proxy.sync={$proxy:!0,load:function(t,e){webix.ajax().sync().bind(t).get(this.source,null,e)}},webix.proxy.connector={
$proxy:!0,connectorName:"!nativeeditor_status",load:function(t,e){webix.ajax(this.source,e,t)},saveAll:function(t,e,i,s){for(var n=this.source,a={},r=[],h=0;h<e.length;h++){var o=e[h];r.push(o.id);for(var l in o.data)0!==l.indexOf("$")&&(a[o.id+"_"+l]=o.data[l]);a[o.id+"_"+this.connectorName]=o.operation;
}a.ids=r.join(","),a.webix_security=webix.securityKey,n+=-1==n.indexOf("?")?"?":"&",n+="editing=true",webix.ajax().post(n,a,s)},result:function(t,e,i,s,n,a){if(n=n.xml(),!n)return i.yr(null,s,n,a);var r=n.data.action;r.length||(r=[r]);for(var h=[],o=0;o<r.length;o++){var l=r[o];h.push(l),l.status=l.type,
l.id=l.sid,l.newid=l.tid,i.processResult(l,l,{text:s,data:n,loader:a})}return h}},webix.proxy.rest={$proxy:!0,load:function(t,e){webix.ajax(this.source,e,t)},save:function(t,e,i,s){return webix.proxy.rest.dC.call(this,t,e,i,s,webix.ajax())},dC:function(t,e,i,s,n){var a=this.source,r="",h=a.indexOf("?");
-1!==h&&(r=a.substr(h),a=a.substr(0,h)),a+="/"==a.charAt(a.length-1)?"":"/";var o=e.operation,l=e.data;"insert"==o&&delete l.id,"update"==o?n.put(a+l.id+r,l,s):"delete"==o?n.del(a+l.id+r,l,s):n.post(a+r,l,s)}},webix.proxy.json={$proxy:!0,load:function(t,e){webix.ajax(this.source,e,t)},save:function(t,e,i,s){
var n=webix.ajax().headers({"Content-Type":"application/json"});return webix.proxy.rest.dC.call(this,t,e,i,s,n)}},webix.proxy.faye={$proxy:!0,init:function(){this.clientId=this.clientId||webix.uid()},load:function(t){var e=this.clientId;this.client.subscribe(this.source,function(i){i.clientId!=e&&webix.dp(t).ignore(function(){
if("delete"==i.operation)t.remove(i.data.id);else if("insert"==i.operation)t.add(i.data);else if("update"==i.operation){var e=t.getItem(i.data.id);e&&(webix.extend(e,i.data,!0),t.refresh(e.id))}})})},save:function(t,e,i,s){e.clientId=this.clientId,this.client.publish(this.source,e)}},webix.proxy.indexdb={
$proxy:!0,create:function(t,e,i,s){this.source=t+"/",this.F(s,i,function(t){var i=t.target.result;for(var s in e)for(var n=e[s],a=i.createObjectStore(s,{keyPath:"id",autoIncrement:!0}),r=0;r<n.length;r++)a.put(n[r])})},F:function(t,e,i){if(-1!=this.source.indexOf("/")){var s=this.source.split("/");this.source=s[1],
e=e||s[2];var n,a=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB;n=e?a.open(s[0],e):a.open(s[0]),i&&(n.onupgradeneeded=i),n.onerror=function(){},n.onblocked=function(){},n.onsuccess=webix.bind(function(e){this.db=e.target.result,t&&t.call(this)},this)}else this.db?t.call(this):webix.delay(this.F,this,[t],50);
},load:function(t,e){this.F(function(){var i=this.db.transaction(this.source).objectStore(this.source),s=[];i.openCursor().onsuccess=function(i){var n=i.target.result;n?(s.push(n.value),n["continue"]()):(t.parse(s),webix.ajax.$callback(t,e,"[]",s))}})},save:function(t,e,i,s){this.F(function(){var t,s=e.operation,n=e.data,a=e.id,r=this.db.transaction([this.source],"readwrite").objectStore(this.source);
"delete"==s?t=r["delete"](a):"update"==s?t=r.put(n):"insert"==s&&(delete n.id,t=r.add(n)),t.onsuccess=function(t){var n={status:s,id:e.id};"insert"==s&&(n.newid=t.target.result),i.processResult(n,n)}})}},webix.proxy.binary={$proxy:!0,load:function(t,e){var i=this.source.split("@"),s=i[0].split(".").pop();
return webix.ajax().response("arraybuffer").get(i[0]).then(function(n){var a={ext:s,dataurl:i[1]};webix.ajax.$callback(t,e,"",{data:n,options:a},-1)})}},webix.ajax=function(t,e,i){return 0!==arguments.length?(new webix.ajax).get(t,e,i):this.getXHR?this:new webix.ajax},webix.ajax.count=0,webix.ajax.prototype={
master:null,getXHR:function(){return new XMLHttpRequest},stringify:function(t){return webix.stringify(t)},G:function(t,e,i,s){var n;e&&(webix.isArray(e)||"function"==typeof(e.success||e.error||e))&&(n=i,i=e,e=null);var a=webix.promise.defer(),r=this.getXHR();webix.isArray(i)||(i=[i]),i.push({success:function(t,e){
a.resolve(e)},error:function(t,e){a.reject(r)}});var h=this.I||{};if(webix.callEvent("onBeforeAjax",[s,t,e,r,h,null,a])){var o=!1;if("GET"!==s){var l=!1;for(var c in h)"content-type"==c.toString().toLowerCase()&&(l=!0,"application/json"==h[c]&&(o=!0));l||(h["Content-Type"]="application/x-www-form-urlencoded");
}if("object"==typeof e&&!(window.FormData&&e instanceof window.FormData))if(o)e=this.stringify(e);else{var u=[];for(var d in e){var f=e[d];(null===f||f===webix.undefined)&&(f=""),"object"==typeof f&&(f=this.stringify(f)),u.push(d+"="+encodeURIComponent(f))}e=u.join("&")}e&&"GET"===s&&(t=t+(-1!=t.indexOf("?")?"&":"?")+e,
e=null),r.open(s,t,!this.H);var b=this.Tw;b&&(r.responseType=b);for(var c in h)r.setRequestHeader(c,h[c]);var p=this;return this.master=this.master||n,r.onreadystatechange=function(){if(!r.readyState||4==r.readyState){if(webix.ajax.count++,i&&p&&!r.aborted){if(-1!=webix.ly.find(r))return webix.ly.remove(r);
var t,e,s=p.master||p,a=r.status>=400||0===r.status;"blob"==r.responseType||"arraybuffer"==r.responseType?(t="",e=r.response):(t=r.responseText||"",e=p.J(r)),webix.ajax.$callback(s,i,t,e,r,a)}p&&(p.master=null),i=p=n=null}},this.qh&&(r.timeout=this.qh),this.H?r.send(e||null):setTimeout(function(){r.aborted||(-1!=webix.ly.find(r)?webix.ly.remove(r):r.send(e||null));
},1),this.master&&this.master.Ve&&this.master.Ve.push(r),this.H?r:a}},J:function(t){return{xml:function(){try{return webix.DataDriver.xml.tagToObject(webix.DataDriver.xml.toObject(t.responseText,this))}catch(e){}},rawxml:function(){return window.XPathResult?t.responseXML:webix.DataDriver.xml.fromString(t.responseText);
},text:function(){return t.responseText},json:function(){return webix.DataDriver.json.toObject(t.responseText,!1)}}},get:function(t,e,i){return this.G(t,e,i,"GET")},post:function(t,e,i){return this.G(t,e,i,"POST")},put:function(t,e,i){return this.G(t,e,i,"PUT")},del:function(t,e,i){return this.G(t,e,i,"DELETE");
},patch:function(t,e,i){return this.G(t,e,i,"PATCH")},sync:function(){return this.H=!0,this},timeout:function(t){return this.qh=t,this},response:function(t){return this.Tw=t,this},header:function(t){return this.I=t,this},headers:function(t){return this.I=webix.extend(this.I||{},t),this},bind:function(t){
return this.master=t,this}},webix.ajax.$callback=function(t,e,i,s,n,a){if(!t.$destructed){if(-1===n&&s&&"function"==typeof s.json&&(s=s.json()),a&&webix.callEvent("onAjaxError",[n]),webix.isArray(e)||(e=[e]),!a)for(var r=0;r<e.length;r++)if(e[r]){var h=e[r].before;h&&h.call(t,i,s,n)}for(var r=0;r<e.length;r++)if(e[r]){
var o=e[r].success||e[r];a&&(o=e[r].error),o&&o.call&&o.call(t,i,s,n)}}},webix.send=function(t,e,i,s){var n=webix.html.create("FORM",{target:s||"_self",action:t,method:i||"POST"},"");for(var a in e){var r=webix.html.create("INPUT",{type:"hidden",name:a,value:e[a]},"");n.appendChild(r)}n.style.display="none",
document.body.appendChild(n),n.submit(),document.body.removeChild(n)},webix.AtomDataLoader={$init:function(t){this.data={},this.waitData=webix.promise.defer(),t&&(this.s.datatype=t.datatype||"json"),this.$ready.push(this.K)},K:function(){this.L=!0,this.s.url&&this.url_setter(this.s.url),this.s.data&&this.data_setter(this.s.data);
},url_setter:function(t){return t=webix.proxy.$parse(t),this.L?(this.load(t,this.s.datatype),t):t},data_setter:function(t){return this.L?(this.parse(t,this.s.datatype),!0):t},load:function(t,e){var i=arguments[2]||null;if(!this.callEvent("onBeforeLoad",[]))return webix.promise.reject();"string"==typeof e?(this.data.driver=webix.DataDriver[e],
e=arguments[2]):this.data.driver||(this.data.driver=webix.DataDriver.json);var s=[{success:this.M,error:this.N}];return e&&(webix.isArray(e)?s.push.apply(s,e):s.push(e)),t=webix.proxy.$parse(t),t.$proxy&&t.load?t.load(this,s,i):"function"==typeof t?t(i).then(webix.bind(function(t){webix.ajax.$callback(this,s,"",t,-1);
},this),webix.bind(function(t){webix.ajax.$callback(this,s,"",null,t,!0)},this)):webix.ajax(t,s,this)},parse:function(t,e){return t&&t.then&&"function"==typeof t.then?t.then(webix.bind(function(t){t&&"function"==typeof t.json&&(t=t.json()),this.parse(t,e)},this)):t&&t.sync&&this.sync?this.UC(t):this.callEvent("onBeforeLoad",[])?(this.data.driver=webix.DataDriver[e||"json"],
void this.M(t,null)):webix.promise.reject()},UC:function(t){this.data&&this.data.attachEvent("onSyncApply",webix.bind(function(){this.ef&&this.ef()},this)),this.sync(t)},df:function(t){var e,i,s=this.data.driver;i=s.getRecords(t)[0],e=i?s.getDetails(i):{},this.setValues?this.setValues(e):this.data=e},
tB:function(t,e,i,s){t?this.$onLoad&&this.$onLoad(t,this.data.driver)||(this.data&&this.data.df?this.data.df(t):this.df(t)):this.N(e,i,s),this.ef&&this.ef(),this.callEvent("onAfterLoad",[]),this.waitData.resolve()},M:function(t,e,i){var s,n=this.data.driver;-1===i?s=n.toObject(e):(this.Ve&&this.Ve.remove(i),
s=n.toObject(t,e)),s&&s.then?s.then&&"function"==typeof s.then&&s.then(webix.bind(this.tB,this)):this.tB(s)},N:function(t,e,i){this.callEvent("onAfterLoad",[]),this.callEvent("onLoadError",arguments),webix.callEvent("onLoadError",[t,e,i,this])},O:function(t){if(!this.s.dataFeed||this.P||!t)return!0;var e=this.s.dataFeed;
@ -255,9 +255,9 @@ this.uc.push(r),i=Math.max(i,r[0]),s=Math.max(s,r[2])}i+=2*(this.Dc||0),s+=2*(th
i.paddingLeft=i.paddingRight=this.Dc-s+"px";for(var n=0;n<this.q.length;n++)if(!this.q[n].s.hidden){var a=this.q[n].$view,r=this.uc[n],h=this.q[n].s;a&&(a.style.minWidth=r[0]+"px",r[1]<1e5&&r[1]!=r[0]&&(a.style.maxWidth=r[1]+"px"),a.style.flexBasis=h.flexBasis||r[0]+"px",a.style.flexGrow=h.flexGrow||(r[1]!=r[0]?r[4]:0),
a.style.height=r[3]!=r[2]?"auto":r[2]+"px",a.style.minHeight=r[2]+"px",r[3]<1e5&&r[3]!=r[2]&&(a.style.maxHeight=r[3]+"px"),a.style.margin=s+"px")}for(var o=[],n=0;n<this.q.length;n++)if(!this.q[n].s.hidden){var a=this.q[n].$view;o[n]=[a.offsetWidth,a.offsetHeight]}for(var n=0;n<this.q.length;n++)if(!this.q[n].s.hidden){
var l=this.q[n],a=l.$view;if(a){l.s.flex=!0;var r=this.uc[n],c=r[2]==r[3]?r[2]:o[n][1];l.$setSize(o[n][0],c),l.s.flex=!1}}this.$height=this.dc=this.$view.scrollHeight,this.$view.style.height=this.dc+"px"}},webix.protoUI({$init:function(){webix.extend(this,webix.FlexLayout,!0)},name:"flexlayout"},webix.ui.layout),
webix.protoUI({name:"align",defaults:{borderless:!0,left:0,top:0,right:0,bottom:0},$init:function(){this.x.className+=" webix_view_align"},body_setter:function(t){return t.Ob={top:!1,left:!1,right:!1,bottom:!1},this.gd=webix.ui.A(t),this.gd.Xb=this,this.x.appendChild(this.gd.x),t},align_setter:function(t){
"string"==typeof t&&(t=t.split(",")),this.FD=this.GD=this.HD="";for(var e=0;e<t.length;e++){var i=t[e];("center"===i||"left"===i||"right"===i)&&(this.FD=i),("top"===i||"bottom"===i||"middle"===i)&&(this.GD=i),"absolute"===i&&(this.FD=this.GD=this.HD="precise")}return t},getBody:function(){return this.gd;
},$setSize:function(t,e){webix.ui.view.prototype.$setSize.call(this,t,e);var i,s;this.HD?(i=t-this.s.left-this.s.right,s=e-this.s.top-this.s.bottom):(i=this.ng[0]||t,s=this.ng[2]||e),this.gd.$setSize(i,s);var n=this.gd.x;"center"==this.FD?n.style.marginLeft=Math.ceil((t-i)/2)+"px":"right"==this.FD?n.style.marginLeft=t-i+"px":n.style.marginLeft=(this.HD?this.s.left:0)+"px",
webix.protoUI({name:"align",defaults:{borderless:!0,left:0,top:0,right:0,bottom:0},$init:function(){this.x.className+=" webix_view_align"},getChildViews:function(){return[this.gd]},body_setter:function(t){return t.Ob={top:!1,left:!1,right:!1,bottom:!1},this.gd=webix.ui.A(t),this.gd.Xb=this,this.x.appendChild(this.gd.x),
t},align_setter:function(t){"string"==typeof t&&(t=t.split(",")),this.FD=this.GD=this.HD="";for(var e=0;e<t.length;e++){var i=t[e];("center"===i||"left"===i||"right"===i)&&(this.FD=i),("top"===i||"bottom"===i||"middle"===i)&&(this.GD=i),"absolute"===i&&(this.FD=this.GD=this.HD="precise")}return t},getBody:function(){
return this.gd},$setSize:function(t,e){webix.ui.view.prototype.$setSize.call(this,t,e);var i,s;this.HD?(i=t-this.s.left-this.s.right,s=e-this.s.top-this.s.bottom):(i=this.ng[0]||t,s=this.ng[2]||e),this.gd.$setSize(i,s);var n=this.gd.x;"center"==this.FD?n.style.marginLeft=Math.ceil((t-i)/2)+"px":"right"==this.FD?n.style.marginLeft=t-i+"px":n.style.marginLeft=(this.HD?this.s.left:0)+"px",
"middle"==this.GD?n.style.marginTop=Math.ceil((e-s)/2)+"px":"bottom"==this.GD?n.style.marginTop=e-s+"px":n.style.marginTop=(this.HD?this.s.top:0)+"px"},$getSize:function(t,e){var i=this.ng=this.gd.$getSize(0,0),s=webix.ui.baseview.prototype.$getSize.call(this,0,0);return this.HD&&(t+=this.s.left+this.s.right,
e+=this.s.top+this.s.bottom),!this.FD||this.HD?(s[0]=i[0]+t,s[1]=i[1]+t):(s[0]=(s[0]||i[0])+e,s[1]+=t),!this.GD||this.HD?(s[2]=i[2]+e,s[3]=i[3]+e):(s[2]=(s[2]||i[2])+e,s[3]+=e),s}},webix.ui.view),webix.animate=function(t,e){var i=e;if(webix.isArray(t))for(var s=0;s<t.length;s++){if(webix.isArray(e)&&(i=e[s]),
"slide"==i.type){if("out"==i.subtype&&0===s)continue;if("in"==i.subtype&&1==s)continue}if("flip"!=i.type)webix.animate(t[s],i);else{var n=webix.clone(i);0===s&&(n.type="flipback"),1==s&&(n.callback=null),webix.animate(t[s],n)}}else{var a=webix.toNode(t);a.Mc?webix.animate.end(a,i):webix.animate.start(a,i);
@ -1639,7 +1639,7 @@ this.gd=webix.clone(this.hr),this.gd.A=this,this.attachEvent("onMouseOut",functi
this.getTopMenu().KA&&this.sizeToContent&&!this.isVisible()&&this.sizeToContent()}),this.y.setAttribute("role","menu")},$skin:function(){webix.ui.menu.prototype.$skin.call(this),webix.ui.popup.prototype.$skin.call(this),this.type.height=webix.skin.$active.menuHeight},hr:{$getSize:function(t,e){var i=1*this.A.s.height,s=1*this.A.s.width,n=webix.ui.menu.prototype.$getSize.call(this.A,t,e);
return this.A.s.height=i,this.A.s.width=s,n},$setSize:function(t,e){this.A.s.scroll&&(this.A.ed.style.height=e+"px")},destructor:function(){this.A=null}},body_setter:function(){},getChildViews:function(){return[]},defaults:{width:150,subMenuPos:"right",layout:"y",autoheight:!0},type:{height:webix.skin.menuHeight,
subsign:!0}},webix.ui.menu,webix.ui.popup),webix.ContextHelper={defaults:{padding:"4",hidden:!0},body_setter:function(t){return t=webix.ui.window.prototype.body_setter.call(this,t),this.gd.x.style.borderWidth="0px",t},attachTo:function(t){var e;e=t.on_context?t.attachEvent("onAfterContextMenu",webix.bind(this.ir,this)):webix.event(t,"contextmenu",this.jr,{
bind:this}),this.attachEvent("onDestruct",function(){t.detachEvent?t.detachEvent(e):webix.eventRemove(e),t=null})},getContext:function(){return this.nh},setContext:function(t){this.nh=t},jr:function(t){return this.nh=webix.toNode(t||event),this.kr(t)},ir:function(t,e,i){return this.nh={obj:webix.$$(e),
bind:this}),this.attachEvent("onDestruct",function(){t.callEvent?t.detachEvent(e):webix.eventRemove(e),t=null})},getContext:function(){return this.nh},setContext:function(t){this.nh=t},jr:function(t){return this.nh=webix.toNode(t||event),this.kr(t)},ir:function(t,e,i){return this.nh={obj:webix.$$(e),
id:t},this.kr(e)},kr:function(t){var e=this.show(t,null,!0);return e===!1?e:(webix.callEvent("onClick",[]),webix.html.preventEvent(t))},gr:!0,master_setter:function(t){return this.attachTo(t),null}},webix.protoUI({name:"context"},webix.ContextHelper,webix.ui.popup),webix.protoUI({name:"contextmenu",$q:!0,
$init:function(t){t.submenuConfig&&webix.extend(t,t.submenuConfig)}},webix.ContextHelper,webix.ui.submenu),webix.protoUI({name:"tabbar",$init:function(){this.attachEvent("onKeyPress",this.DD)},$skin:function(){var t=webix.skin.$active,e=this.defaults;e.topOffset=t.tabTopOffset||0,e.tabOffset="undefined"!=typeof t.tabOffset?t.tabOffset:10,
e.bottomOffset=t.tabBottomOffset||0,e.height=t.tabbarHeight,e.tabMargin=t.tabMargin,e.inputPadding=t.inputPadding,e.tabMinWidth=t.tabMinWidth||100,e.tabMoreWidth=t.tabMoreWidth||40},ut:function(){var t,e,i=this.s,s=this.OC||i.options,n=this.we-2*i.tabOffset,a=i.optionWidth||i.tabMinWidth;if(e=s.length,
@ -1953,8 +1953,8 @@ if(i.docFooter!==!1){var y=h.footer();y.text({color:6710886,textAlign:"center"})
webix.extend(i.docHeader,{color:6710886,textAlign:"right",order:0}),$.text=i.docHeader.order),i.docHeaderImage&&("string"==typeof i.docHeaderImage&&(i.docHeaderImage={url:i.docHeaderImage}),webix.extend(i.docHeaderImage,{align:"right",order:1}),$.image=i.docHeaderImage.order),i.docHeader&&$.image>$.text&&h.header({
paddingBottom:10}).text(i.docHeader.text,i.docHeader),i.docHeaderImage)pdfjs.load(i.docHeaderImage.url,function(t,e){if(!t){var n=new pdfjs.Image(e);h.header({paddingBottom:10}).image(n,i.docHeaderImage),i.docHeader&&$.image<$.text&&h.header({paddingBottom:10}).text(i.docHeader.text,i.docHeader)}var a=h.render();
s(a,i)});else{var _=h.render();s(_,i)}}var f="non-existing view for export";webix.toPNG=function(t,e){var i=webix.promise.defer();return webix.require(webix.cdn+"/extras/html2canvas.min.js",function(){"string"==typeof e&&(e={filename:e}),e=e||{};var s=webix.$$(t);if(s&&s.$exportView&&(s=s.$exportView(e)),
!s)return i.reject(f);var n=s?s.$view:webix.toNode(t),a=(e.filename||"Data")+".png";window.html2canvas(n).then(function(t){var s=t.msToBlob?t.msToBlob():t.toDataURL("image/png");e.download!==!1&&webix.html.download(s,a),t.remove(),i.resolve(s)})}),i},webix.toExcel=function(t,e){e=e||{},e.export_mode="excel",
t=webix.isArray(t)?t:[t];for(var n=[],a=0;a<t.length;a++){var h=webix.$$(t[a]);if(h&&h.$exportView&&(h=h.$exportView(e)),h&&(n=n.concat(h)),e.dataOnly){var o=i(h,e);n[a]={scheme:o,exportData:s(h,e,o),spans:e.spans?r(h,e):[]}}}if(e.dataOnly)return n;var l=webix.promise.defer();return webix.require(webix.cdn+"/extras/xlsx.core.styles.min.js",function(){
!s)return i.reject(f);var n=s?s.$view:webix.toNode(t),a=(e.filename||"Data")+".png";window.html2canvas(n).then(function(t){var s=function(s){e.download!==!1&&webix.html.download(s,a),t.remove(),i.resolve(s)};t.msToBlob?s(t.msToBlob()):t.toBlob(s,"image/png")})}),i},webix.toExcel=function(t,e){e=e||{},
e.export_mode="excel",t=webix.isArray(t)?t:[t];for(var n=[],a=0;a<t.length;a++){var h=webix.$$(t[a]);if(h&&h.$exportView&&(h=h.$exportView(e)),h&&(n=n.concat(h)),e.dataOnly){var o=i(h,e);n[a]={scheme:o,exportData:s(h,e,o),spans:e.spans?r(h,e):[]}}}if(e.dataOnly)return n;var l=webix.promise.defer();return webix.require(webix.cdn+"/extras/xlsx.core.styles.min.js",function(){
if(!n.length)return l.reject(f);for(var t={SheetNames:[],Sheets:{},Workbook:{WBProps:{},Names:[]}},a=webix.isArray(e.sheets)?e.sheets:[e.name||"Data"],h=0;h<n.length;h++){var o=n[h].scheme||i(n[h],e),d=n[h].exportData||s(n[h],e,o),b=n[h].spans?n[h].spans:e.spans?r(n[h],e):[],p=n[h].ranges||[],x=n[h].styles||[],g=c(d,o,b,x),w=(a[h]||"Data"+h).replace(/[\*\?\:\[\]\\\/]/g,"").substring(0,31);
t.SheetNames.push(w),t.Sheets[w]=g,t.Workbook.Names=t.Workbook.Names.concat(p)}var v=XLSX.write(t,{bookType:"xlsx",bookSST:!1,type:"binary"}),m=(e.filename||a.join(","))+".xlsx",y=new Blob([u(v)],{type:"application/xlsx"});e.download!==!1&&webix.html.download(y,m),l.resolve(y)}),l},webix.toCSV=function(e,n){
n=n||{};var a=webix.$$(e);if(a&&a.$exportView&&(a=a.$exportView(n)),!a)return webix.promise.reject(f);n.export_mode="csv",n.filterHTML=!0;var r=i(a,n),h=s(a,n,r),o=t(h,r),l=(n.filename||"Data")+".csv",c=new Blob(["\ufeff"+o],{type:"text/csv"});return n.download!==!1&&webix.html.download(c,l),webix.promise.resolve(c);

File diff suppressed because one or more lines are too long

View File

@ -1,6 +1,6 @@
/*
@license
webix UI v.5.0.0
webix UI v.5.0.1
This software is covered by Webix Commercial License.
Usage without proper license is prohibited.
(c) XB Software Ltd.
@ -52,7 +52,7 @@ webix.assert_level_out = function(){
/*
Common helpers
*/
webix.version="5.0.0";
webix.version="5.0.1";
webix.codebase="./";
webix.name = "core";
webix.cdn = "//cdn.webix.com";
@ -1133,13 +1133,13 @@ Copyright (c) 2014 Zolmeister
/* jshint ignore:start */
(function (self) {
global = this
var global = this
var queueId = 1
var queue = {}
var isRunningTask = false
if (!global.setImmediate)
if (!global.setImmediate && global.addEventListener)
global.addEventListener('message', function (e) {
if (e.source == global){
if (isRunningTask)
@ -1159,7 +1159,7 @@ Copyright (c) 2014 Zolmeister
function nextTick(fn) {
if (global.setImmediate) setImmediate(fn)
// if inside of web worker
else if (global.importScripts) setTimeout(fn)
else if (global.importScripts || !global.addEventListener) setTimeout(fn)
else {
queueId++
queue[queueId] = fn
@ -1213,6 +1213,7 @@ Copyright (c) 2014 Zolmeister
if(unresolved == 0)
d.resolve(arr)
arr.map(function (v, i) {
if (v && v.then)
v.then(function (r) {
@ -1356,9 +1357,10 @@ Copyright (c) 2014 Zolmeister
var finish = function (type) {
state = type || 4
next.map(function (p) {
state == 3 && p.resolve(val) || p.reject(val)
})
for (var i=0; i<next.length; i++){
var p = next[i];
state == 3 && p.resolve(val) || p.reject(val);
}
}
try {
@ -6185,6 +6187,9 @@ webix.protoUI({
$init:function(){
this._viewobj.className += " webix_view_align";
},
getChildViews:function(){
return [this._body_cell];
},
body_setter:function(value){
value._inner = { top:false, left:false, right:false, bottom:false};
this._body_cell = webix.ui._view(value);
@ -25987,12 +25992,12 @@ webix.extend(webix.ui.datatable, {
if(!node){
node = webix.html.create("div", {
class:cellCss, style:"visibility:hidden"
"class":cellCss, style:"visibility:hidden"
});
var cnode = columns[i].node;
if(!columns[i].attached){
cnode = webix.html.create("div", {
class:columnCss, style:"visibility:hidden"
"class":columnCss, style:"visibility:hidden"
});
this._body.appendChild(cnode);
}
@ -35295,7 +35300,7 @@ webix.ContextHelper = {
id = webix.event(obj, "contextmenu", this._show_at_node, {bind:this});
this.attachEvent("onDestruct", function(){
if (obj.detachEvent)
if (obj.callEvent)
obj.detachEvent(id);
else
webix.eventRemove(id);
@ -35797,7 +35802,7 @@ webix.protoUI({
}
if(message) {
this.$view.style.position = "relative";
this._invalidMessage = webix.html.create("div", { class:"webix_inp_bottom_label", role:config.invalid?'alert':"", "aria-relevant":'all', style:"position:absolute; bottom:0px; padding:2px; background: white; left:"+this._settings.labelWidth+"px; " }, message);
this._invalidMessage = webix.html.create("div", { "class":"webix_inp_bottom_label", role:config.invalid?'alert':"", "aria-relevant":'all', style:"position:absolute; bottom:0px; padding:2px; background: white; left:"+this._settings.labelWidth+"px; " }, message);
this._viewobj.appendChild(this._invalidMessage);
}
}
@ -41530,14 +41535,19 @@ webix.toPNG = function(id, options){
var node = view ? view.$view : webix.toNode(id);
var filename = (options.filename||"Data")+".png";
window.html2canvas(node).then(function(canvas) {
var data = canvas.msToBlob?canvas.msToBlob():canvas.toDataURL("image/png");
if(options.download !== false)
webix.html.download(data, filename);
canvas.remove();
defer.resolve(data);
});
});
window.html2canvas(node).then(function(canvas) {
var callback = function(data){
if(options.download !== false)
webix.html.download(data, filename);
canvas.remove();
defer.resolve(data);
};
if(canvas.msToBlob)
callback(canvas.msToBlob());
else
canvas.toBlob(callback, "image/png");
});
});
return defer;
};