var hexcase=0,b64pad="";function hex_md5(a){return rstr2hex(rstr_md5(str2rstr_utf8(a)))}function b64_md5(a){return rstr2b64(rstr_md5(str2rstr_utf8(a)))}function any_md5(a,b){return rstr2any(rstr_md5(str2rstr_utf8(a)),b)}function hex_hmac_md5(a,b){return rstr2hex(rstr_hmac_md5(str2rstr_utf8(a),str2rstr_utf8(b)))}function b64_hmac_md5(a,b){return rstr2b64(rstr_hmac_md5(str2rstr_utf8(a),str2rstr_utf8(b)))}
function any_hmac_md5(a,b,c){return rstr2any(rstr_hmac_md5(str2rstr_utf8(a),str2rstr_utf8(b)),c)}function md5_vm_test(){return hex_md5("abc").toLowerCase()=="900150983cd24fb0d6963f7d28e17f72"}function rstr_md5(a){return binl2rstr(binl_md5(rstr2binl(a),a.length*8))}
function rstr_hmac_md5(a,b){var c=rstr2binl(a);c.length>16&&(c=binl_md5(c,a.length*8));for(var d=Array(16),e=Array(16),f=0;f<16;f++)d[f]=c[f]^909522486,e[f]=c[f]^1549556828;c=binl_md5(d.concat(rstr2binl(b)),512+b.length*8);return binl2rstr(binl_md5(e.concat(c),640))}function rstr2hex(a){for(var b=hexcase?"0123456789ABCDEF":"0123456789abcdef",c="",d,e=0;e<a.length;e++)d=a.charCodeAt(e),c+=b.charAt(d>>>4&15)+b.charAt(d&15);return c}
function rstr2b64(a){for(var b="",c=a.length,d=0;d<c;d+=3)for(var e=a.charCodeAt(d)<<16|(d+1<c?a.charCodeAt(d+1)<<8:0)|(d+2<c?a.charCodeAt(d+2):0),f=0;f<4;f++)b+=d*8+f*6>a.length*8?b64pad:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e>>>6*(3-f)&63);return b}
function rstr2any(a,b){var c=b.length,d,e,f,g,i,h=Array(Math.ceil(a.length/2));for(d=0;d<h.length;d++)h[d]=a.charCodeAt(d*2)<<8|a.charCodeAt(d*2+1);var j=Math.ceil(a.length*8/(Math.log(b.length)/Math.log(2))),k=Array(j);for(e=0;e<j;e++){i=[];for(d=g=0;d<h.length;d++)if(g=(g<<16)+h[d],f=Math.floor(g/c),g-=f*c,i.length>0||f>0)i[i.length]=f;k[e]=g;h=i}c="";for(d=k.length-1;d>=0;d--)c+=b.charAt(k[d]);return c}
function str2rstr_utf8(a){for(var b="",c=-1,d,e;++c<a.length;)d=a.charCodeAt(c),e=c+1<a.length?a.charCodeAt(c+1):0,55296<=d&&d<=56319&&56320<=e&&e<=57343&&(d=65536+((d&1023)<<10)+(e&1023),c++),d<=127?b+=String.fromCharCode(d):d<=2047?b+=String.fromCharCode(192|d>>>6&31,128|d&63):d<=65535?b+=String.fromCharCode(224|d>>>12&15,128|d>>>6&63,128|d&63):d<=2097151&&(b+=String.fromCharCode(240|d>>>18&7,128|d>>>12&63,128|d>>>6&63,128|d&63));return b}
function str2rstr_utf16le(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(a.charCodeAt(c)&255,a.charCodeAt(c)>>>8&255);return b}function str2rstr_utf16be(a){for(var b="",c=0;c<a.length;c++)b+=String.fromCharCode(a.charCodeAt(c)>>>8&255,a.charCodeAt(c)&255);return b}function rstr2binl(a){for(var b=Array(a.length>>2),c=0;c<b.length;c++)b[c]=0;for(c=0;c<a.length*8;c+=8)b[c>>5]|=(a.charCodeAt(c/8)&255)<<c%32;return b}
function binl2rstr(a){for(var b="",c=0;c<a.length*32;c+=8)b+=String.fromCharCode(a[c>>5]>>>c%32&255);return b}
function binl_md5(a,b){a[b>>5]|=128<<b%32;a[(b+64>>>9<<4)+14]=b;for(var c=1732584193,d=-271733879,e=-1732584194,f=271733878,g=0;g<a.length;g+=16)var i=c,h=d,j=e,k=f,c=md5_ff(c,d,e,f,a[g+0],7,-680876936),f=md5_ff(f,c,d,e,a[g+1],12,-389564586),e=md5_ff(e,f,c,d,a[g+2],17,606105819),d=md5_ff(d,e,f,c,a[g+3],22,-1044525330),c=md5_ff(c,d,e,f,a[g+4],7,-176418897),f=md5_ff(f,c,d,e,a[g+5],12,1200080426),e=md5_ff(e,f,c,d,a[g+6],17,-1473231341),d=md5_ff(d,e,f,c,a[g+7],22,-45705983),c=md5_ff(c,d,e,f,a[g+8],7,
1770035416),f=md5_ff(f,c,d,e,a[g+9],12,-1958414417),e=md5_ff(e,f,c,d,a[g+10],17,-42063),d=md5_ff(d,e,f,c,a[g+11],22,-1990404162),c=md5_ff(c,d,e,f,a[g+12],7,1804603682),f=md5_ff(f,c,d,e,a[g+13],12,-40341101),e=md5_ff(e,f,c,d,a[g+14],17,-1502002290),d=md5_ff(d,e,f,c,a[g+15],22,1236535329),c=md5_gg(c,d,e,f,a[g+1],5,-165796510),f=md5_gg(f,c,d,e,a[g+6],9,-1069501632),e=md5_gg(e,f,c,d,a[g+11],14,643717713),d=md5_gg(d,e,f,c,a[g+0],20,-373897302),c=md5_gg(c,d,e,f,a[g+5],5,-701558691),f=md5_gg(f,c,d,e,a[g+
10],9,38016083),e=md5_gg(e,f,c,d,a[g+15],14,-660478335),d=md5_gg(d,e,f,c,a[g+4],20,-405537848),c=md5_gg(c,d,e,f,a[g+9],5,568446438),f=md5_gg(f,c,d,e,a[g+14],9,-1019803690),e=md5_gg(e,f,c,d,a[g+3],14,-187363961),d=md5_gg(d,e,f,c,a[g+8],20,1163531501),c=md5_gg(c,d,e,f,a[g+13],5,-1444681467),f=md5_gg(f,c,d,e,a[g+2],9,-51403784),e=md5_gg(e,f,c,d,a[g+7],14,1735328473),d=md5_gg(d,e,f,c,a[g+12],20,-1926607734),c=md5_hh(c,d,e,f,a[g+5],4,-378558),f=md5_hh(f,c,d,e,a[g+8],11,-2022574463),e=md5_hh(e,f,c,d,a[g+
11],16,1839030562),d=md5_hh(d,e,f,c,a[g+14],23,-35309556),c=md5_hh(c,d,e,f,a[g+1],4,-1530992060),f=md5_hh(f,c,d,e,a[g+4],11,1272893353),e=md5_hh(e,f,c,d,a[g+7],16,-155497632),d=md5_hh(d,e,f,c,a[g+10],23,-1094730640),c=md5_hh(c,d,e,f,a[g+13],4,681279174),f=md5_hh(f,c,d,e,a[g+0],11,-358537222),e=md5_hh(e,f,c,d,a[g+3],16,-722521979),d=md5_hh(d,e,f,c,a[g+6],23,76029189),c=md5_hh(c,d,e,f,a[g+9],4,-640364487),f=md5_hh(f,c,d,e,a[g+12],11,-421815835),e=md5_hh(e,f,c,d,a[g+15],16,530742520),d=md5_hh(d,e,f,
c,a[g+2],23,-995338651),c=md5_ii(c,d,e,f,a[g+0],6,-198630844),f=md5_ii(f,c,d,e,a[g+7],10,1126891415),e=md5_ii(e,f,c,d,a[g+14],15,-1416354905),d=md5_ii(d,e,f,c,a[g+5],21,-57434055),c=md5_ii(c,d,e,f,a[g+12],6,1700485571),f=md5_ii(f,c,d,e,a[g+3],10,-1894986606),e=md5_ii(e,f,c,d,a[g+10],15,-1051523),d=md5_ii(d,e,f,c,a[g+1],21,-2054922799),c=md5_ii(c,d,e,f,a[g+8],6,1873313359),f=md5_ii(f,c,d,e,a[g+15],10,-30611744),e=md5_ii(e,f,c,d,a[g+6],15,-1560198380),d=md5_ii(d,e,f,c,a[g+13],21,1309151649),c=md5_ii(c,
d,e,f,a[g+4],6,-145523070),f=md5_ii(f,c,d,e,a[g+11],10,-1120210379),e=md5_ii(e,f,c,d,a[g+2],15,718787259),d=md5_ii(d,e,f,c,a[g+9],21,-343485551),c=safe_add(c,i),d=safe_add(d,h),e=safe_add(e,j),f=safe_add(f,k);return[c,d,e,f]}function md5_cmn(a,b,c,d,e,f){return safe_add(bit_rol(safe_add(safe_add(b,a),safe_add(d,f)),e),c)}function md5_ff(a,b,c,d,e,f,g){return md5_cmn(b&c|~b&d,a,b,e,f,g)}function md5_gg(a,b,c,d,e,f,g){return md5_cmn(b&d|c&~d,a,b,e,f,g)}
function md5_hh(a,b,c,d,e,f,g){return md5_cmn(b^c^d,a,b,e,f,g)}function md5_ii(a,b,c,d,e,f,g){return md5_cmn(c^(b|~d),a,b,e,f,g)}function safe_add(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}function bit_rol(a,b){return a<<b|a>>>32-b}
var dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,b=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,c=/[^-+\dA-Z]/g,d=function(a,f){a=String(a);for(f=f||2;a.length<f;)a="0"+a;return a};return function(e,f,g){var i=dateFormat;arguments.length==1&&Object.prototype.toString.call(e)=="[object String]"&&!/\d/.test(e)&&(f=e,e=void 0);e=e?new Date(e):new Date;if(isNaN(e))throw SyntaxError("invalid date");
f=String(i.masks[f]||f||i.masks["default"]);f.slice(0,4)=="UTC:"&&(f=f.slice(4),g=!0);var h=g?"getUTC":"get",j=e[h+"Date"](),k=e[h+"Day"](),l=e[h+"Month"](),n=e[h+"FullYear"](),m=e[h+"Hours"](),o=e[h+"Minutes"](),p=e[h+"Seconds"](),h=e[h+"Milliseconds"](),q=g?0:e.getTimezoneOffset(),r={d:j,dd:d(j),ddd:i.i18n.dayNames[k],dddd:i.i18n.dayNames[k+7],m:l+1,mm:d(l+1),mmm:i.i18n.monthNames[l],mmmm:i.i18n.monthNames[l+12],yy:String(n).slice(2),yyyy:n,h:m%12||12,hh:d(m%12||12),H:m,HH:d(m),M:o,MM:d(o),s:p,
ss:d(p),l:d(h,3),L:d(h>99?Math.round(h/10):h),t:m<12?"a":"p",tt:m<12?"am":"pm",T:m<12?"A":"P",TT:m<12?"AM":"PM",Z:g?"UTC":(String(e).match(b)||[""]).pop().replace(c,""),o:(q>0?"-":"+")+d(Math.floor(Math.abs(q)/60)*100+Math.abs(q)%60,4),S:["th","st","nd","rd"][j%10>3?0:(j%100-j%10!=10)*j%10]};return f.replace(a,function(a){return a in r?r[a]:a.slice(1,a.length-1)})}}();
dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"};dateFormat.i18n={dayNames:"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),monthNames:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec,January,February,March,April,May,June,July,August,September,October,November,December".split(",")};
Date.prototype.format=function(a,b){return dateFormat(this,a,b)};
var ZeroClipboard={version:"1.0.7",clients:{},moviePath:"ZeroClipboard.swf",nextId:1,$:function(a){typeof a=="string"&&(a=document.getElementById(a));if(!a.addClass)a.hide=function(){this.style.display="none"},a.show=function(){this.style.display=""},a.addClass=function(a){this.removeClass(a);this.className+=" "+a},a.removeClass=function(a){for(var c=this.className.split(/\s+/),d=-1,e=0;e<c.length;e++)if(c[e]==a)d=e,e=c.length;if(d>-1)c.splice(d,1),this.className=c.join(" ");return this},a.hasClass=
function(a){return!!this.className.match(RegExp("\\s*"+a+"\\s*"))};return a},setMoviePath:function(a){this.moviePath=a},dispatch:function(a,b,c){(a=this.clients[a])&&a.receiveEvent(b,c)},register:function(a,b){this.clients[a]=b},getDOMObjectPosition:function(a,b){for(var c={left:0,top:0,width:a.width?a.width:a.offsetWidth,height:a.height?a.height:a.offsetHeight};a&&a!=b;)c.left+=a.offsetLeft,c.top+=a.offsetTop,a=a.offsetParent;return c},Client:function(a){this.handlers={};this.id=ZeroClipboard.nextId++;
this.movieId="ZeroClipboardMovie_"+this.id;ZeroClipboard.register(this.id,this);a&&this.glue(a)}};
ZeroClipboard.Client.prototype={id:0,ready:!1,movie:null,clipText:"",handCursorEnabled:!0,cssEffects:!0,handlers:null,glue:function(a,b,c){this.domElement=ZeroClipboard.$(a);a=99;this.domElement.style.zIndex&&(a=parseInt(this.domElement.style.zIndex,10)+1);typeof b=="string"?b=ZeroClipboard.$(b):typeof b=="undefined"&&(b=document.getElementsByTagName("body")[0]);var d=ZeroClipboard.getDOMObjectPosition(this.domElement,b);this.div=document.createElement("div");var e=this.div.style;e.position="absolute";
e.left=""+d.left+"px";e.top=""+d.top+"px";e.width=""+d.width+"px";e.height=""+d.height+"px";e.zIndex=a;if(typeof c=="object")for(addedStyle in c)e[addedStyle]=c[addedStyle];b.appendChild(this.div);this.div.innerHTML=this.getHTML(d.width,d.height)},getHTML:function(a,b){var c="",d="id="+this.id+"&width="+a+"&height="+b;if(navigator.userAgent.match(/MSIE/)){var e=location.href.match(/^https/i)?"https://":"http://";c+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+e+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+
a+'" height="'+b+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+d+'"/><param name="wmode" value="transparent"/></object>'}else c+='<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+
'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+a+'" height="'+b+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+d+'" wmode="transparent" />';return c},hide:function(){if(this.div)this.div.style.left="-2000px"},show:function(){this.reposition()},destroy:function(){if(this.domElement&&this.div){this.hide();this.div.innerHTML=
"";var a=document.getElementsByTagName("body")[0];try{a.removeChild(this.div)}catch(b){}this.div=this.domElement=null}},reposition:function(a){if(a)(this.domElement=ZeroClipboard.$(a))||this.hide();if(this.domElement&&this.div){var a=ZeroClipboard.getDOMObjectPosition(this.domElement),b=this.div.style;b.left=""+a.left+"px";b.top=""+a.top+"px"}},setText:function(a){this.clipText=a;this.ready&&this.movie.setText(a)},addEventListener:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");this.handlers[a]||
(this.handlers[a]=[]);this.handlers[a].push(b)},setHandCursor:function(a){this.handCursorEnabled=a;this.ready&&this.movie.setHandCursor(a)},setCSSEffects:function(a){this.cssEffects=!!a},receiveEvent:function(a,b){a=a.toString().toLowerCase().replace(/^on/,"");switch(a){case "load":this.movie=document.getElementById(this.movieId);if(!this.movie){var c=this;setTimeout(function(){c.receiveEvent("load",null)},1);return}if(!this.ready&&navigator.userAgent.match(/Firefox/)&&navigator.userAgent.match(/Windows/)){c=
this;setTimeout(function(){c.receiveEvent("load",null)},100);this.ready=!0;return}this.ready=!0;this.movie.setText(this.clipText);this.movie.setHandCursor(this.handCursorEnabled);break;case "mouseover":this.domElement&&this.cssEffects&&(this.domElement.addClass("hover"),this.recoverActive&&this.domElement.addClass("active"));break;case "mouseout":if(this.domElement&&this.cssEffects){this.recoverActive=!1;if(this.domElement.hasClass("active"))this.domElement.removeClass("active"),this.recoverActive=
!0;this.domElement.removeClass("hover")}break;case "mousedown":this.domElement&&this.cssEffects&&this.domElement.addClass("active");break;case "mouseup":if(this.domElement&&this.cssEffects)this.domElement.removeClass("active"),this.recoverActive=!1}if(this.handlers[a])for(var d=0,e=this.handlers[a].length;d<e;d++){var f=this.handlers[a][d];if(typeof f=="function")f(this,b);else if(typeof f=="object"&&f.length==2)f[0][f[1]](this,b);else if(typeof f=="string")window[f](this,b)}}};
AC.Property={group_names:{general:"widget_pcat_general",advanced:"widget_pcat_advanced",layout:"widget_pcat_layout",behavior:"widget_pcat_behavior",data:"widget_pcat_data",mandatory:"widget_pcat_mandatory",style:"widget_pcat_style",custom:"widget_pcat_custom",grid:"widget_pcat_grid",chart:"widget_pcat_chart",values:"widget_pcat_values",canvas:"widget_pcat_canvas",title:"widget_pcat_title",effects:"widget_pcat_effects",format:"widget_pcat_format",xaxis:"widget_pcat_xaxis",yaxis:"widget_pcat_yaxis",
imagemap:"widget_pcat_image_map",appearance:"widget_pcat_appearance",axis:"widget_pcat_axis",ticks:"widget_pcat_ticks",angular:"widget_pcat_angular",bulb:"widget_pcat_bulb",cylinder:"widget_pcat_cylinder",led:"widget_pcat_led",lineargauge:"widget_pcat_lineargauge",pointer:"widget_pcat_pointer",database:"widget_pcat_database",phonegap:"widget_pcat_phonegap",internationalization:"widget_pcat_internationalization",oauth:"widget_pcat_oauth"},general:{actions:{name:"actions",get:"actions",set:"actions",
alias:"widget_class",visible:!1},widgetClass:{name:"widgetClass",type:"ro",get:"widgetClass",alias:"widget_class"},name:{name:"name",type:"wname",set:"name",get:"name",alias:"widget_name"},widgetVersion:{name:"widgetVersion",type:"ro",get:"widgetVersion",alias:"widget_version",visible:!1},liveName:{name:"liveName",type:"livename",set:"liveName",get:"liveName",alias:"widget_live_name"},workflow:{name:"workflow",type:"ro",set:"workflow",get:"workflow",alias:"widget_workflow",visible:!1},version:{name:"version",
type:"text",set:"version",get:"version",alias:"widget_version"},loginFormId:{name:"loginFormId",type:"selectLoginForm",set:"loginFormId",get:"loginFormId",alias:"proptype_login_form"},formId:{name:"formId",type:"selectFormId",set:"formId",get:"formId",alias:"proptype_form_id"},userAccess:{name:"userAccess",type:"useraccess",set:"userAccess",get:"userAccess",alias:"proptype_user_access"},defaultPage:{name:"defaultPage",type:"pagetarget",set:"defaultPage",get:"defaultPage",alias:"widget_defaultpage"},
backgroundImage:{name:"backgroundImage",type:"imgTheme",set:"backgroundImage",get:"backgroundImage",alias:"widget_bgimage"},backgroundColor:{name:"backgroundColor",type:"color",set:"backgroundColor",get:"backgroundColor",alias:"widget_bgcolor"},backgroundRepeat:{name:"backgroundRepeat",type:"bgrepeat",set:"backgroundRepeat",get:"backgroundRepeat",alias:"widget_bgrepeat"},widgets:{name:"widgets",get:"widgets",set:"widgets",visible:!1},layout:{name:"layout",type:"layoutList",get:"layout",set:"layout",
alias:"widget_layout"},adaptiveLayout:{name:"adaptiveLayout",type:"adaptiveLayout",get:"adaptiveLayout",set:"adaptiveLayout",alias:"widget_adaptiveLayout"},width:{name:"width",type:"pixels",get:"width",set:"width",alias:"widget_width",inTheme:!0},height:{name:"height",type:"pixels",get:"height",set:"height",alias:"widget_height",inTheme:!0},autoExpand:{name:"autoExpand",type:"boolean",set:"autoExpand",get:"autoExpand",alias:"widget_auto_expand"},sections:{name:"sections",type:"accSections",set:"sections",
get:"sections",alias:"widget_sections"},url:{name:"url",type:"text",set:"url",get:"url",alias:"widget_aurl"},autoplay:{name:"autoplay",type:"boolean",set:"autoplay",get:"autoplay",alias:"widget_autoplay"},pageLayout:{name:"layout",type:"layoutList",get:"layout",set:"layout",alias:"widget_layout",inTheme:!0},editorButtons:{name:"editorButtons",type:"editorButtons",set:"editorButtons",get:"editorButtons",alias:"widget_editorbuttons"},content:{name:"content",type:"text",set:"content",get:"content",alias:"widget_content"},
label:{name:"label",type:"text",set:"label",get:"label",alias:"widget_label"},labelText:{name:"label",type:"labeltext",set:"label",get:"label",alias:"widget_label"},htmlText:{name:"htmlText",type:"htmledit",set:"htmlText",get:"htmlText",alias:"widget_htmlText"},labelDisabled:{name:"labelDisabled",type:"boolean",set:"labelDisabled",get:"labelDisabled",alias:"widget_label_disabled"},background_image_play:{name:"background_image_play",set:"background_image_play",get:"background_image_play",alias:"widget_background_image_play",
visible:!1},background_image_pause:{name:"background_image_pause",set:"background_image_pause",get:"background_image_pause",alias:"widget_background_image_pause",visible:!1},background_image_stop:{name:"background_image_stop",set:"background_image_stop",get:"background_image_stop",alias:"widget_background_image_stop",visible:!1},text:{name:"text",type:"text",get:"text",set:"text",alias:"widget_text"},placeholderText:{name:"placeholderText",type:"text",get:"placeholderText",set:"placeholderText",alias:"widget_placeholder_text"},
dots:{name:"dots",type:"captchadots",set:"dots",get:"dots",alias:"widget_dots"},lines:{name:"lines",type:"captchalines",set:"lines",get:"lines",alias:"widget_lines"},imageWidth:{name:"imageWidth",type:"number",set:"imageWidth",get:"imageWidth",alias:"widget_imageWidth"},imageHeight:{name:"imageHeight",type:"number",set:"imageHeight",get:"imageHeight",alias:"widget_imageHeight"},fontSize:{name:"fontSize",type:"number",set:"fontSize",get:"fontSize",alias:"widget_fontSize"},aspectRatio:{name:"aspectRatio",
type:"imgaspectratio",set:"aspectRatio",get:"aspectRatio",alias:"widget_aspectratio"},redirect:{name:"redirect",type:"ed",set:"redirect",get:"redirect",alias:"widget_proptype_abtn_redirect"},action:{name:"action",type:"actionbtnlist",set:"action",get:"action",alias:"widget_action"},pageJump:{name:"pageJump",type:"pjumplist",set:"pageJump",get:"pageJump",alias:"widget_proptype_abtn_pagejump"},link:{name:"link",type:"linkObject",set:"link",get:"link",alias:"widget_proptype_link"},submit_action:{name:"action",
type:"submitbtnlist",set:"action",get:"action",alias:"widget_action"},pageNum:{name:"pageNum",type:"pagetarget",set:"pageNum",get:"pageNum",alias:"widget_pagetarget"},img:{name:"img",type:"img",set:"img",get:"img",alias:"widget_image"},image:{name:"image",type:"img",set:"img",get:"img",alias:"widget_image",visible:!1},icon:{name:"icon",type:"img",set:"icon",get:"icon",alias:"widget_icon"},message_captcha:{name:"message_captcha",set:"message",get:"message",visible:!1},message:{name:"message",type:"ed",
set:"message",get:"message",alias:"widget_proptype_abtn_message"},openUrl:{name:"openUrl",type:"text",set:"openUrl",get:"openUrl",alias:"widget_proptype_abtn_openurl"},instanceIdField:{name:"instanceIdField",type:"objectwmdlist",alias:"widget_abtn_instance_id_field"},relationId:{name:"relationId",type:"linkActionRelation",alias:"widget_proptype_abtn_relation"},toInstance:{name:"toInstance",type:"objectwmdlist",alias:"widget_abtn_instance_to_link_to"},addLink:{name:"addLink",type:"linkAction",alias:"widget_proptype_abtn_add_link"},
switchApp:{name:"switchApp",type:"selectLoginForm",alias:"widget_proptype_abtn_switch_app"},target:{name:"target",type:"loadInstanceTarget",alias:"widget_proptype_abtn_target"},autoSize:{name:"autoSize",type:"boolean",set:"autoSize",get:"autoSize",alias:"widget_autoSize",visible:!1},wrapping:{name:"wrapping",type:"boolean",set:"wrapping",get:"wrapping",alias:"widget_wrapping",visible:!1},radioValue:{name:"radioValue",type:"text",set:"radioValue",get:"radioValue",alias:"widget_value"},checked:{name:"checked",
type:"boolean",set:"checked",get:"checked",alias:"widget_checked"},labelOn:{name:"labelOn",type:"text",set:"labelOn",get:"labelOn",alias:"widget_label_on"},labelOff:{name:"labelOff",type:"text",set:"labelOff",get:"labelOff",alias:"widget_label_off"},color:{name:"color",type:"color",set:"color",get:"color",alias:"widget_color"},displayText:{name:"displayText",type:"text",set:"displayText",get:"displayText",alias:"widget_display_text"},widgetColor:{name:"widgetColor",type:"widgetlist",set:"widgetColor",
get:"widgetColor",alias:"widget_wcolor"},widgetBGColor:{name:"widgetBGColor",type:"widgetlist",set:"widgetBGColor",get:"widgetBGColor",alias:"widget_wbgcolor"},widgetBorderColor:{name:"widgetBorderColor",type:"widgetlist",set:"widgetBorderColor",get:"widgetBorderColor",alias:"widget_wbordercolor"},renderAsJs:{name:"renderAsJs",type:"chartrendertype",get:"renderAsJs",set:"renderAsJs",alias:"widget_renderbyjs"},chartType:{name:"chartType",type:"charttypelist",set:"chartType",get:"chartType",alias:"widget_charttype"},
is3D:{name:"is3D",type:"boolean",get:"is3D",set:"is3D",alias:"widget_3d"},stacked:{name:"stacked",type:"boolean",get:"stacked",set:"stacked",alias:"widget_stacked"},dualYAxis:{name:"dualYAxis",type:"boolean",get:"dualYAxis",set:"dualYAxis",alias:"widget_dualyaxis"},data:{name:"data",type:"flist",set:"data",get:"data",alias:"widget_records"},dataWithValue:{name:"dataWithValue",type:"flist",set:"dataWithValue",get:"dataWithValue",alias:"widget_records"},dataWithValueListBox:{name:"dataWithValue",type:"fListCheckBox",
set:"dataWithValue",get:"dataWithValue",alias:"widget_records"},dataWithValueRadioBox:{name:"dataWithValue",type:"fListRadioBox",set:"dataWithValue",get:"dataWithValue",alias:"widget_records"},assocData:{name:"data",type:"moblistData",set:"data",get:"data",alias:"widget_records"},chartData:{name:"data",type:"flist",set:"data",get:"data",alias:"widget_records",visible:!1},hiddenData:{name:"data",type:"flist",set:"data",get:"data",alias:"widget_records",visible:!1},multySeries:{name:"multySeries",type:"multyseries",
set:"multySeries",get:"multySeries",alias:"widget_multy_series"},multySeriesFlot:{name:"multySeriesFlot",type:"multyseriesflot",set:"multySeries",get:"multySeries",alias:"widget_multy_series"},multySeriesZing:{name:"multySeriesZing",type:"multyserieszing",set:"multySeries",get:"multySeries",alias:"widget_multy_series"},hiddenMultySeries:{name:"multySeries",type:"ro",set:"multySeries",get:"multySeries",alias:"widget_multy_series",visible:!1},embedApp:{name:"embedApp",type:"selectEmbedForm",set:"embedApp",
get:"embedApp",alias:"widget_embed_app"},fileName:{name:"fileName",type:"ro",set:"fileName",get:"fileName",alias:"widget_filename",visible:!1},fileSizeLimit:{name:"fileSizeLimit",type:"number",set:"fileSizeLimit",get:"fileSizeLimit",alias:"widget_display_file_size_limit"},displayOptions:{name:"displayOptions",type:"fileuploadoptions",set:"displayOptions",get:"displayOptions",alias:"widget_display_options",inTheme:!0},fileSources:{name:"fileSources",type:"fileUploadSources",set:"fileSources",get:"fileSources",
alias:"widget_file_sources",inTheme:!0},attachText:{name:"attachText",type:"text",set:"attachText",get:"attachText",alias:"widget_attach_text",inTheme:!0},deattachText:{name:"deattachText",type:"text",set:"deattachText",get:"deattachText",alias:"widget_deattach_text",inTheme:!0},selectFileText:{name:"selectFileText",type:"text",set:"selectFileText",get:"selectFileText",alias:"widget_select_file_text",inTheme:!0},startUploadText:{name:"startUploadText",type:"text",set:"startUploadText",get:"startUploadText",
alias:"widget_start_upload_text",inTheme:!0},stopUploadText:{name:"stopUploadText",type:"text",set:"stopUploadText",get:"stopUploadText",alias:"widget_stop_upload_text",inTheme:!0},stopText:{name:"stopText",type:"text",set:"stopText",get:"stopText",alias:"widget_stop_text",inTheme:!0},btnLocation:{name:"btnLocation",type:"btnlocation",set:"btnLocation",get:"btnLocation",alias:"widget_btnlocation",inTheme:!0},fileTypes:{name:"fileTypes",type:"text",set:"fileTypes",get:"fileTypes",alias:"widget_filetypes",
inTheme:!0},autoStart:{name:"autoStart",type:"boolean",set:"autoStart",get:"autoStart",alias:"widget_autostart"},lightnavigation:{name:"lightnavigation",type:"boolean",set:"lightNavigation",get:"lightNavigation",alias:"widget_lightnav"},colwidthtype:{name:"colwidthtype",type:"colwidthtype",set:"colwidthtype",get:"colwidthtype",alias:"widget_cwt"},iframeUrl:{name:"iframeUrl",type:"text",set:"iframeUrl",get:"iframeUrl",alias:"widget_url"},lineColor:{name:"lineColor",type:"color",get:"lineColor",set:"lineColor",
alias:"widget_color",inTheme:!0},lineType:{name:"lineType",type:"linetype",get:"lineType",set:"lineType",alias:"widget_linetype",inTheme:!0},lineWidth:{name:"lineWidth",type:"slidersize",get:"lineWidth",set:"lineWidth",alias:"widget_linewidth",inTheme:!0},multiSelect:{name:"multySelect",type:"boolean",set:"multiSelect",get:"multiSelect",alias:"widget_multi_select"},mask:{name:"mask",type:"text",get:"mask",set:"mask",alias:"widget_mask"},currPage:{name:"currPage",type:"number",get:"currPage",set:"currPage",
alias:"widget_current_page"},strengthLabel:{name:"strengthLabel",type:"chlabel",set:"strengthLabel",get:"strengthLabel",alias:"password_strengthlabel"},strengthColors:{name:"strengthColors",type:"pwdcolorfields",set:"strengthColors",get:"strengthColors",alias:"password_strengthcolors"},pageButton:{name:"pageButton",type:"chpagebutton",set:"pageButton",get:"pageButton",alias:"widget_page_button"},sourceWidget:{name:"sourceWidget",type:"chsourcewidget",set:"sourceWidget",get:"sourceWidget",alias:"widget_page_source_widget"},
elementsPerPage:{name:"elementsPerPage",type:"elprepage",set:"elementsPerPage",get:"elementsPerPage",alias:"widget_elements_per_page"},usePaging:{name:"usePaging",type:"boolean",set:"usePaging",get:"usePaging",alias:"widget_use_paging"},currRowIndex:{name:"currRowIndex",type:"number",set:"currRowIndex",get:"currRowIndex",visible:!1},view:{name:"view",type:"sview",set:"viewId",get:"viewId",alias:"widget_view"},loginField:{name:"loginField",type:"logintextwidget",set:"loginField",get:"loginField",alias:"widget_login_field"},
passwordField:{name:"passwordField",type:"passtextwidget",set:"passwordField",get:"passwordField",alias:"widget_password_field"},rememberMe:{name:"rememberMe",type:"chwidget",set:"rememberMe",get:"rememberMe",alias:"widget_remember_me"},defaultForm:{name:"defaultForm",type:"selectDefaultForm",set:"defaultForm",get:"defaultForm",alias:"widget_default_form"},nameField:{name:"nameField",type:"logintextwidget",set:"nameField",get:"nameField",alias:"widget_username"},minChars:{name:"minChars",type:"number",
set:"minChars",get:"minChars",alias:"widget_signup_min_chars"},confirmField:{name:"confirmField",type:"passtextwidget",set:"confirmField",get:"confirmField",alias:"widget_signup_confirm"},confirmColors:{name:"confirmColors",type:"singupconfirmcolorfields",set:"confirmColors",get:"confirmColors",alias:"widget_signup_confirm_colors"},confirmInfo:{name:"confirmInfo",type:"chlabel",set:"confirmInfo",get:"confirmInfo",alias:"widget_signup_confirm_info"},captchaField:{name:"captchaField",type:"chcaptcha",
set:"captchaField",get:"captchaField",alias:"widget_signup_captcha"},fieldMapping:{name:"fieldMapping",type:"fieldmapping",set:"fieldMapping",get:"fieldMapping",alias:"widget_fieldmapping"},attachedLines:{name:"attachedLines",set:"attachedLines",get:"attachedLines",visible:!1},collectShapes:{name:"collectShapes",set:"collectLines",get:"collectLines",visible:!1},orientation:{name:"orientation",type:"orientation",set:"orientation",get:"orientation",alias:"widget_orientation"},max:{name:"max",type:"int",
set:"max",get:"max",alias:"widget_maxvalue"},min:{name:"min",type:"int",set:"min",get:"min",alias:"widget_minvalue"},values:{name:"values",type:"rangeEdit",set:"values",get:"values",alias:"widget_value"},step:{name:"step",type:"float",set:"step",get:"step",alias:"widget_step"},range:{name:"range",type:"sliderrange",set:"range",get:"range",alias:"widget_range"},slideBinding:{name:"slideBinding",type:"slidesbinding",set:"slideBinding",get:"slideBinding",alias:"widget_slidebindings"},slideWidget:{name:"slideWidget",
type:"imagewidgetslist",set:"slideWidget",get:"slideWidget",alias:"widget_slidewidget"},tabs:{name:"tabs",type:"onelist",set:"tabs",get:"tabs",alias:"widget_tabs"},maxChars:{name:"maxChars",type:"number",get:"maxChars",set:"maxChars",alias:"widget_maxchars"},typefield:{name:"typefield",type:"numtypefiled",set:"typefield",get:"typefield",alias:"widget_texttype"},enableCheckBoxes:{name:"enableCheckBoxes",set:"enableCheckBoxes",get:"enableCheckBoxes",visible:!1},modal:{name:"modal",set:"modal",get:"modal",
visible:!1},editable:{name:"editable",type:"boolean",set:"editable",get:"editable",alias:"widget_editable"},btnType:{name:"btnType",type:"btntype",set:"btnType",get:"btnType",alias:"widget_btntype"},btnWidth:{name:"btnWidth",type:"pixels",set:"btnWidth",get:"btnWidth",alias:"widget_btnwidth"},btnText:{name:"btnText",type:"text",set:"btnText",get:"btnText",alias:"widget_btntext"},resetBtnAction:{name:"action",type:"resetbtnlist",set:"action",get:"action",alias:"widget_action"},numericFormat:{name:"numericFormat",
type:"text",get:"numericFormat",set:"numericFormat",alias:"widget_numericformat"},numericLocale:{name:"numericLocale",type:"numericLocale",get:"numericLocale",set:"numericLocale",alias:"widget_numericlocale"},menuData:{name:"menuData",type:"menubuilder",get:"menuData",set:"menuData",alias:"widget_menudata"},mobileTextType:{name:"mobileTextType",type:"mobileTextType",set:"mobileTextType",get:"mobileTextType",alias:"m_widget_text_type"},mobileSliderValue:{name:"mobileSliderValue",type:"int",set:"value",
get:"value",alias:"m_widget_slider_value"},displayHourglassOver:{name:"displayHourglassOver",type:"widgethourglasstype",set:"displayHourglassOver",get:"displayHourglassOver",alias:"widget_displayhourglassover",inTheme:!0},displayHourglassOverParent:{name:"displayHourglassOver",type:"widgethourglassParenttype",set:"displayHourglassOver",get:"displayHourglassOver",alias:"widget_displayhourglassover"},hourglassImage:{name:"hourglassImage",type:"hourglass",set:"hourglassImage",get:"hourglassImage",alias:"widget_hourglassimage",
inTheme:!0},showUrl:{name:"showUrl",type:"boolean",set:"showUrl",get:"showUrl",alias:"widget_showurl"},urlMargin:{name:"urlMargin",type:"margin",set:"urlMargin",get:"urlMargin",alias:"widget_urlmargin"},wrapText:{name:"wrapText",type:"wrapText",set:"wrapText",get:"wrapText",alias:"widget_wraptext"},autoFocus:{name:"autoFocus",type:"boolean",set:"autoFocus",get:"autoFocus",alias:"widget_autofocus"},linkedExportApp:{name:"linkedExportApp",type:"appsArray",set:"linkedExportApp",get:"linkedExportApp",
alias:"widget_linkedexportapp"}},advanced:{id_form:{name:"id_form",type:"readonlytext",get:"id",set:"id",alias:"widget_appid",readonly:!0},id:{name:"id",type:"ro",get:"id",set:"id",visible:!1},realId:{name:"realId",type:"ro",get:"realId",set:"realId",visible:!1},actions:{name:"actions",type:"ro",get:"actions",set:"actions",visible:!1},id_folder:{name:"id_folder",type:"ro",get:"folderId",set:"folderId",readonly:!0,alias:"widget_appid",visible:!1},id_user:{name:"id_user",type:"ro",get:"userId",set:"userId",
readonly:!0,alias:"widget_userid"},pageTarget:{name:"pageTarget",type:"pagetarget",alias:"widget_pagetarget"},redirectUrl:{name:"redirectUrl",type:"text",alias:"widget_redirecturl"},autoPageJump:{name:"autoPageJump",type:"pagetargetwithspace",set:"autoPageJump",get:"autoPageJump",alias:"widget_autopagejump"},autoJumpTime:{name:"autoJumpTime",type:"number",set:"autoJumpTime",get:"autoJumpTime",alias:"widget_autojumptime"},gaAccountId:{name:"gaAccountId",type:"text",set:"gaAccountId",get:"gaAccountId",
alias:"widget_gaaccountid"},gmapsApiKey:{name:"gmapsApiKey",type:"text",set:"gmapsApiKey",get:"gmapsApiKey",alias:"widget_gmapsApiKey"},phoneGapOptions:{name:"phoneGapOptions",type:"phonegapoptions",set:"phoneGapOptions",get:"phoneGapOptions",alias:"widget_phonegap_opt"},phoneGapPlugins:{name:"phoneGapPlugins",type:"phonegapplugins",set:"phoneGapPlugins",get:"phoneGapPlugins",alias:"widget_phonegap_plugins"},gaTrackCode:{name:"gaTrackCode",type:"text",set:"gaTrackCode",get:"gaTrackCode",alias:"widget_gatrackcode"},
orientation:{name:"orientation",type:"phonegapOrientation",set:"orientation",get:"orientation",alias:"widget_phonegap_orientation",visible:!1},iframeMode:{name:"iframeMode",type:"iframeMode",set:"iframeMode",get:"iframeMode",alias:"widget_iframe_mode"},filesList:{name:"filesList",type:"filesList",set:"filesList",get:"filesList",alias:"widget_files_list"},advertising:{name:"advertising",type:"advertising",set:"advertising",get:"advertising",alias:"widget_advertising"},htmlHead:{name:"htmlHead",type:"htmlEditor",
set:"htmlHead",get:"htmlHead",alias:"widget_htmlhead"}},database:{isIncludedInSchema:{name:"isIncludedInSchema",type:"boolean",get:"isIncludedInSchema",set:"isIncludedInSchema",alias:"widget_isincludedinschema"},isUnique:{name:"isUnique",type:"uniqueType",get:"isUnique",set:"isUnique",alias:"widget_unique"},mandatory:{name:"mandatory",type:"boolean",set:"mandatory",get:"mandatory",alias:"widget_mandatory"},mandatoryHighlight:{name:"mandatoryHighlight",type:"text",set:"mandatoryHighlight",get:"mandatoryHighlight",
alias:"widget_mandatoryHighlight",visible:!1},dataType:{name:"dataType",type:"datatype",get:"dataType",set:"dataType",alias:"widget_datatype"},dataTypeText:{name:"dataType",type:"datatype_text",get:"dataType",set:"dataType",alias:"widget_datatype"},dataTypeNumeric:{name:"dataTypeNumeric",type:"datatype_numeric",get:"dataType",set:"dataType",alias:"widget_datatype"},datePickerType:{name:"datePickerType",type:"datepickertype",set:"datePickerType",get:"datePickerType",alias:"widget_datepickertype"},
isAttachment:{name:"isAttachment",type:"boolean",set:"isAttachment",get:"isAttachment",alias:"widget_isattachment"},hasStorage:{name:"hasStorage",type:"selectStorage",get:"hasStorage",set:"hasStorage",alias:"widget_storage"},instanceTitleTemplate:{name:"instanceTitleTemplate",type:"instanceTitleTemplate",get:"instanceTitleTemplate",set:"instanceTitleTemplate",alias:"widget_instancetitletemplate"},applicationRelationships:{name:"applicationRelationships",get:"applicationRelationships",set:"applicationRelationships",
type:"applicationRelationships",alias:"widget_applicationrelationships"},integrityHandling:{name:"integrityHandling",type:"integrityHandling",get:"integrityHandling",set:"integrityHandling",alias:"widget_integrityhandling"},uniquenessMessage:{name:"uniquenessMessage",type:"uniquenessMessageTextArea",get:"uniquenessMessage",set:"uniquenessMessage",alias:"widget_uniquenessmessage"},mandatoryMessage:{name:"mandatoryMessage",type:"mandatoryMessageTextArea",alias:"widget_mandatorymessage"},foreignAppWriting:{name:"foreignAppWriting",
type:"boolean",get:"foreignAppWriting",set:"foreignAppWriting",alias:"widget_foreignappwriting"},autoRelationships:{name:"autoRelationships",type:"foreignRelationshipSelector",get:"autoRelationships",set:"autoRelationships",alias:"widget_autorelationships"}},layout:{x:{name:"x",type:"pixels",get:"left",set:"left",alias:"widget_x"},xHidden:{name:"x",type:"pixels",get:"left",set:"left",alias:"widget_x",visible:!1},y:{name:"y",type:"pixels",get:"top",set:"top",alias:"widget_y"},yHidden:{name:"y",type:"pixels",
get:"top",set:"top",alias:"widget_y",visible:!1},pWidth:{name:"pWidth",type:"widthpercents",get:"pWidth",set:"pWidth",alias:"widget_pwidth",inTheme:!0},aspectResize:{name:"aspectResize",type:"boolean",get:"aspectResize",set:"aspectResize",alias:"widget_aspectResize"},rows:{name:"rows",type:"childint",get:"rows",set:"rows",alias:"widget_rows"},columns:{name:"columns",type:"childint",get:"columns",set:"columns",alias:"widget_columns"},cellsSize:{name:"cellsSize",type:"tableCellsSize",get:"cellsSize",
set:"cellsSize",alias:"widget_cells_size"},cellsStyle:{name:"cellsStyle",type:"tableCellsStyle",get:"cellsStyle",set:"cellsStyle",alias:"widget_cells_style"},width:{name:"width",type:"pixels",get:"width",set:"width",alias:"widget_width"},height:{name:"height",type:"pixels",get:"height",set:"height",alias:"widget_height"},pWidthHidden:{name:"pWidth",type:"widthpercents",get:"pWidth",set:"pWidth",alias:"widget_pwidth",inTheme:!0,visible:!1},widthHidden:{name:"width",type:"pixels",get:"width",set:"width",
alias:"widget_width",visible:!1},heightHidden:{name:"height",type:"pixels",get:"height",set:"height",alias:"widget_height",visible:!1},minWidth:{name:"minWidth",type:"pixels",get:"minWidth",set:"minWidth",alias:"widget_min_width",visible:!1,inTheme:!0},minHeight:{name:"minHeight",type:"pixels",get:"minHeight",set:"minHeight",alias:"widget_min_height",visible:!1,inTheme:!0},maxWidth:{name:"maxWidth",type:"pixels",get:"maxWidth",set:"maxWidth",alias:"widget_max_width",visible:!1,inTheme:!0},maxHeight:{name:"maxHeight",
type:"pixels",get:"maxHeight",set:"maxHeight",alias:"widget_max_height",visible:!1,inTheme:!0},sizes:{name:"sizes",type:"sizesopt",set:"updateLayoutSizes",get:"getLayoutSizes",alias:"widget_sizes"},anchors:{name:"anchors",type:"anchor",get:"anchors",set:"anchors",alias:"widget_anchors"},zindex:{name:"zindex",type:"ro",get:"zindex",set:"zindex",alias:"widget_zindex"},centered:{name:"centered",type:"boolean",set:"centered",get:"centered",alias:"widget_centered",inTheme:!0},tabindex:{name:"tabindex",
type:"ro",set:"tabindex",get:"tabindex",alias:"widget_taborder"},tabStop:{name:"tabStop",type:"boolean",set:"tabStop",get:"tabStop",alias:"widget_tabstop"},x1:{name:"x1",type:"pixels",get:"x1",set:"x1",alias:"widget_x1"},x2:{name:"x2",type:"pixels",get:"x2",set:"x2",alias:"widget_x2"},y1:{name:"y1",type:"pixels",get:"y1",set:"y1",alias:"widget_y1"},y2:{name:"y2",type:"pixels",get:"y2",set:"y2",alias:"widget_y2"},verticalSpacing:{name:"verticalSpacing",type:"pixels",get:"verticalSpacing",set:"verticalSpacing",
alias:"widget_vertical_spacing"},horizontalSpacing:{name:"horizontalSpacing",type:"pixels",get:"horizontalSpacing",set:"horizontalSpacing",alias:"widget_horizontal_spacing"},repeatMode:{name:"repeatMode",type:"repeatmodelist",get:"repeatMode",set:"repeatMode",alias:"widget_repeat_mode"},repeatScrolling:{name:"scrolling",type:"repeatScrollinglist",get:"scrolling",set:"scrolling",alias:"widget_rep_scrolling_mode"},scrolling:{name:"scrolling",type:"scrollinglist",get:"scrolling",set:"scrolling",alias:"widget_scrolling_mode"},
stretching:{name:"stretching",type:"boolean",get:"stretching",set:"stretching",alias:"widget_stretching_mode"},separatingLines:{name:"separatingLines",type:"boolean",get:"separatingLines",set:"separatingLines",alias:"widget_separating_lines_mode"},hideLastLine:{name:"hideLastLine",type:"boolean",get:"hideLastLine",set:"hideLastLine",alias:"widget_hide_last_line"},cellSpacing:{name:"cellSpacing",type:"pixels",set:"cellSpacing",get:"cellSpacing",alias:"widget_cell_spacing"},repeat:{name:"repeat",type:"repeat",
get:"repeat",set:"repeat",alias:"widget_repeat"},timelineWidth:{name:"timelineWidth",type:"pixels",get:"timelineWidth",set:"timelineWidth",alias:"widget_timeline_width"},alignInContainer:{name:"alignInContainer",type:"alignincontainer",set:"alignInContainer",get:"alignInContainer",alias:"widget_alignincontainer"}},behavior:{opacity:{name:"opacity",type:"opacityF",get:"opacity",set:"opacity",alias:"widget_opacity"},visible:{name:"visible",type:"boolean",get:"visible",set:"visible",alias:"widget_visible",
persistent:!0},enable:{name:"enable",type:"boolean",get:"enable",set:"enable",alias:"widget_enable",persistent:!0},asHtml:{name:"asHtml",type:"boolean",get:"asHtml",set:"asHtml",alias:"widget_ashtml"},readonly:{name:"readonly",type:"boolean",set:"readonly",get:"readonly",alias:"widget_ro",persistent:!0},range:{name:"range",type:"boolean",get:"range",set:"range",alias:"widget_range"},dateMin:{name:"dateMin",type:"date_range",get:"dateMin",set:"dateMin",alias:"widget_datemin"},dateMax:{name:"dateMax",
type:"date_range",get:"dateMax",set:"dateMax",alias:"widget_datemax"},dateValue:{name:"dateValue",type:"date",get:"dateValue",set:"dateValue",alias:"widget_pcat_date"},dateFormat:{name:"dateFormat",type:"dateformat",get:"dateFormat",set:"dateFormat",alias:"widget_pcat_format"},dateTimezone:{name:"dateTimezone",type:"datetimezone",get:"dateTimezone",set:"dateTimezone",alias:"widget_datetimezone"},maxChars:{name:"maxChars",type:"number",get:"maxChars",set:"maxChars",alias:"widget_maxchars"},dragAndDrop:{name:"dragAndDrop",
type:"boolean",get:"dragAndDrop",set:"dragAndDrop",alias:"widget_dnd"},resizing:{name:"resizing",type:"resizeopt",get:"resizing",set:"resizing",alias:"widget_resizing"},enableDragAndDrop:{name:"dragAndDrop",type:"boolean",get:"enableDragAndDrop",set:"enableDragAndDrop",alias:"widget_dnd",visible:!1},charsField:{name:"charsField",type:"widgetlist",get:"charsField",set:"charsField",alias:"widget_charsfield"},leftCharsField:{name:"leftCharsField",type:"widgetlist",get:"leftCharsField",set:"leftCharsField",
alias:"widget_leftcharsfield"},wordField:{name:"wordField",type:"widgetlist",get:"wordField",set:"wordField",alias:"widget_wordfield"},timelineVisible:{name:"timelineVisible",type:"boolean",get:"timelineVisible",set:"timelineVisible",alias:"widget_timeline_visible"},treeviewVisible:{name:"treeviewVisible",type:"boolean",get:"treeviewVisible",set:"treeviewVisible",alias:"widget_treeview_visible"},timelineMinDate:{name:"timelineMinDate",type:"date",get:"timelineMinDate",set:"timelineMinDate",alias:"widget_timelineMinDate"},
timelineMaxDate:{name:"timelineMaxDate",type:"date",get:"timelineMaxDate",set:"timelineMaxDate",alias:"widget_timelineMaxDate"},showBubble:{name:"showBubble",type:"boolean",get:"showBubble",set:"showBubble",alias:"widget_showbubble"}},data:{view:{name:"view",type:"sview",get:"view",set:"view",alias:"widget_view"},fields:{name:"fields",type:"fieldsmodel",get:"fields",set:"fields",alias:"widget_fields"},groupby:{name:"groupby",type:"groupby",get:"groupby",set:"groupby",alias:"widget_groupby"},orderby:{name:"orderby",
type:"orderby",get:"orderby",set:"orderby",alias:"widget_orderby"},filter:{name:"filter",type:"filterby",get:"filter",set:"filter",alias:"widget_filter"},multyFilterBy:{name:"filter",type:"multyfilterby",get:"filter",set:"filter",alias:"widget_filter"},onview:{name:"onview",type:"drillfilter",get:"onview",set:"onview",alias:"widget_drillfilter"},applyview:{name:"applyview",type:"boolean",get:"applyview",set:"applyview",alias:"widget_apply"},listenview:{name:"listenview",type:"boolean",get:"listenview",
set:"listenview",alias:"widget_listen"},resetfilter:{name:"resetfilter",type:"boolean",get:"resetfilter",set:"resetfilter",alias:"widget_resetfilter"},views:{name:"views",type:"views",get:"views",set:"views",alias:"widget_views"},dataWidgetsIds:{name:"dataWidgetsIds",type:"ro",get:"dataWidgetsIds",set:"dataWidgetsIds",alias:"widget_datawidgets",visible:!1},colmodel:{name:"colmodel",type:"gridcolmodel",get:"colmodel",set:"colmodel",alias:"widget_colmodel"},timelineColmodel:{name:"colmodel",type:"timelinecolmodel",
get:"colmodel",set:"colmodel",alias:"widget_colmodel"},cloneDataWidgets:{name:"cloneDataWidgets",type:"ro",get:"cloneDataWidgets",set:"cloneDataWidgets",alias:"",visible:!1},newData:{name:"newData",type:"ro",get:"newData",set:"newData",alias:"",visible:!1},dataObjectValue:{name:"dataObjectValue",type:"ro",get:"dataObjectValue",set:"dataObjectValue",alias:"",visible:!1},drillType:{name:"drillType",type:"drilltype",get:"drillType",set:"drillType",alias:"widget_drill_type"},drillTypePie:{name:"drillType",
type:"drilltypepie",get:"drillType",set:"drillType",alias:"widget_drill_type"},field:{name:"field",type:"fields",get:"field",set:"field",alias:"widget_field"},liketype:{name:"liketype",type:"liketype",get:"liketype",set:"liketype",alias:"widget_searchtype"},autoLoad:{name:"autoLoad",type:"boolean",get:"autoLoad",set:"autoLoad",alias:"widget_autoload"},keyFields:{name:"keyFields",type:"keyfields",get:"keyFields",set:"keyFields",alias:"widget_keyfields"}},mandatory:{highlightOpacity:{name:"highlightOpacity",
type:"highlightopacity",set:"highlightOpacity",get:"highlightOpacity",alias:"widget_highlightopacity"},highlightColor:{name:"highlightColor",type:"color",set:"highlightColor",get:"highlightColor",alias:"widget_highlightcolor"},mandatoryMessage:{name:"validateMessage",type:"text",set:"mandatoryMessage",get:"mandatoryMessage",alias:"widget_mandatorymessage"}},style:{theme:{name:"theme",type:"theme",set:"theme",get:"theme",alias:"widget_theme"},docked:{name:"docked",type:"boolean",set:"docked",get:"docked",
alias:"widget_docked"},bgColor:{name:"bgColor",type:"color",set:"bg",get:"bg",alias:"widget_bgcolor"},hrefColor:{name:"hrefColor",type:"color",set:"hrefColor",get:"hrefColor",alias:"widget_hrefcolor"},paragraphSpacing:{name:"paragraphSpacing",type:"paragraphspacing",set:"paragraphSpacing",get:"paragraphSpacing",alias:"widget_paragraphspacing"},mobileButtonIcon:{name:"icon",type:"mobileButtonIcon",set:"icon",get:"icon",alias:"widget_icon"},mobileButtonIconPos:{name:"iconPosition",type:"mobileButtonIconPos",
set:"iconPosition",get:"iconPosition",alias:"widget_iconPosition"},mobileTheme:{name:"mobileTheme",type:"mobileTheme",set:"mobileTheme",get:"mobileTheme",alias:"widget_mobileTheme"},fixed:{name:"fixed",type:"fixedPosition",set:"fixed",get:"fixed",alias:"widget_fixed"},widgetStyle:{name:"widgetStyle",type:"themestyle",set:"widgetStyle",get:"widgetStyle",alias:"widget_wstyle"},shadow:{name:"shadow",type:"shadow",set:"shadow",get:"shadow",alias:"widget_shadow"},textShadow:{name:"textShadow",type:"shadow",
set:"textShadow",get:"textShadow",alias:"widget_textShadow"},margin:{name:"margin",type:"margin",get:"margin",set:"margin",alias:"widget_margin"},padding:{name:"padding",type:"padding",get:"padding",set:"padding",alias:"widget_padding"},textFontColor:{name:"fontColor",type:"color",set:"fontColor",get:"fontColor",alias:"widget_text_color"},textFont:{name:"font",type:"tfont",set:"font",get:"font",alias:"widget_text_font"},fontColor:{name:"fontColor",type:"color",set:"fontColor",get:"fontColor",alias:"widget_color"},
font:{name:"font",type:"tfont",set:"font",get:"font",alias:"widget_font"},border:{name:"border",type:"border",set:"border",get:"border",alias:"widget_border"},boxSizing:{name:"boxSizing",type:"boxSizing",set:"boxSizing",get:"boxSizing",alias:"widget_box_sizing",inTheme:!0},borderRadius:{name:"borderRadius",type:"borderradius",set:"borderRadius",get:"borderRadius",alias:"widget_borderrad"},cellBorder:{name:"cellBorder",type:"border",set:"cellBorder",get:"cellBorder",alias:"widget_cell_border"},headerBGColor:{name:"headerBGColor",
type:"color",set:"headerBGColor",get:"headerBGColor",alias:"widget_header_bgcolor"},headerFont:{name:"headerFont",type:"tfont",set:"headerFont",get:"headerFont",alias:"widget_header_font"},cellBorderRadius:{name:"cellBorderRadius",type:"borderradius",set:"cellBorderRadius",get:"cellBorderRadius",alias:"widget_cell_borderrad"},headerFontColor:{name:"headerFontColor",type:"color",set:"headerFontColor",get:"headerFontColor",alias:"widget_color"},headerBGColors:{name:"headerBGColors",type:"headercolorfields",
set:"headerBGColors",get:"headerBGColors",alias:"widget_header_bg_color"},headerBorderRadius:{name:"headerBorderRadius",type:"borderradius",set:"headerBorderRadius",get:"headerBorderRadius",alias:"widget_header_borderrad"},sectionBGColor:{name:"sectionBGColor",type:"color",set:"sectionBGColor",get:"sectionBGColor",alias:"widget_section_bg_color"},contentBorderRadius:{name:"contentBorderRadius",type:"borderradius",set:"contentBorderRadius",get:"contentBorderRadius",alias:"widget_content_borderrad"},
padLeft:{name:"padLeft",type:"number",set:"padLeft",get:"padLeft",alias:"widget_padLeft"},padRight:{name:"padRight",type:"number",set:"padRight",get:"padRight",alias:"widget_padRight"},message:{name:"message",type:"text",set:"message",get:"message",alias:"widget_message"},letterSpacing:{name:"letterSpacing",type:"letterspacing",set:"letterSpacing",get:"letterSpacing",alias:"widget_letter_spacing"},lineHeight:{name:"lineHeight",type:"letterspacing",set:"lineHeight",get:"lineHeight",alias:"widget_line_height"},
textAlign:{name:"textAlign",type:"textalign",set:"textAlign",get:"textAlign",alias:"widget_textalign"},rangeValues:{name:"rangeValues",type:"gaugerangevalues",set:"rangeValues",get:"rangeValues",alias:"widget_rangevalues"},btnColor:{name:"btnColor",type:"color",set:"btnColor",get:"btnColor",alias:"widget_btncolor"},btnFont:{name:"btnFont",type:"tfont",set:"btnFont",get:"btnFont",alias:"widget_btnfont"},btnBgColor:{name:"btnBgColor",type:"color",set:"btnBgColor",get:"btnBgColor",alias:"widget_btnbgcolor"},
btnBorder:{name:"btnBorder",type:"border",set:"btnBorder",get:"btnBorder",alias:"widget_btnborder"},btnBorderRadius:{name:"btnBorderRadius",type:"borderradius",set:"btnBorderRadius",get:"btnBorderRadius",alias:"widget_btnborderrad"},defaultHeaderFont:{name:"defaultHeaderFont",type:"tfont",set:"defaultHeaderFont",get:"defaultHeaderFont",alias:"widget_defaultheaderfont"},defaultHeaderColor:{name:"defaultHeaderColor",type:"color",set:"defaultHeaderColor",get:"defaultHeaderColor",alias:"widget_defaultheadercolor"},
bgColorHeader:{name:"bgColorHeader",type:"color",set:"bgColorHeader",get:"bgColorHeader",alias:"widget_defaultheaderbgcolor"},defaultDataFont:{name:"defaultDataFont",type:"tfont",set:"defaultDataFont",get:"defaultDataFont",alias:"widget_defaultdatafont"},defaultDataColor:{name:"defaultDataColor",type:"color",set:"defaultDataColor",get:"defaultDataColor",alias:"widget_defaultdatacolor"},rowBgColor:{name:"rowBgColor",type:"color",set:"rowBgColor",get:"rowBgColor",alias:"widget_rowbgcolor"},alternativeRowBgColor:{name:"alternativeRowBgColor",
type:"color",set:"alternativeRowBgColor",get:"alternativeRowBgColor",alias:"widget_alternativerowbgcolor"},lineSpace:{name:"lineSpace",type:"letterspacing",set:"lineSpace",get:"lineSpace",alias:"widget_line_spacing"},selectedBg:{name:"selectedBg",type:"color",set:"selectedBg",get:"selectedBg",alias:"widget_selectedBg"},selectedFont:{name:"selectedFont",type:"tfont",set:"selectedFont",get:"selectedFont",alias:"widget_selectedFont"},selectedColor:{name:"selectedColor",type:"color",set:"selectedColor",
get:"selectedColor",alias:"widget_selectedColor"},blockBgColor:{name:"blockBgColor",type:"color",set:"blockBgColor",get:"blockBgColor",alias:"widget_block_bgcolor"},blockAlternativeBgColor:{name:"blockAlternativeBgColor",type:"color",set:"blockAlternativeBgColor",get:"blockAlternativeBgColor",alias:"widget_block_alternative_bgcolor"},blockBorder:{name:"blockBorder",type:"border",set:"blockBorder",get:"blockBorder",alias:"widget_block_border"},blockAlternativeBorder:{name:"blockAlternativeBorder",
type:"border",set:"blockAlternativeBorder",get:"blockAlternativeBorder",alias:"widget_block_alternative_border"},blockBorderRadius:{name:"blockBorderRadius",type:"borderradius",set:"blockBorderRadius",get:"blockBorderRadius",alias:"widget_block_borderrad"},blockAlternativeBorderRadius:{name:"blockAlternativeBorderRadius",type:"borderradius",set:"blockAlternativeBorderRadius",get:"blockAlternativeBorderRadius",alias:"widget_block_alternative_borderrad"},separatingLineWidth:{name:"separatingLineWidth",
type:"pixels",set:"separatingLineWidth",get:"separatingLineWidth",alias:"widget_separating_line_width"},separatingLineColor:{name:"separatingLineColor",type:"color",set:"separatingLineColor",get:"separatingLineColor",alias:"widget_separating_line_color"},borderColor:{name:"borderColor",type:"color",set:"borderColor",get:"borderColor",alias:"widget_border"},hoverColor:{name:"hoverColor",type:"color",set:"hoverColor",get:"hoverColor",alias:"widget_hovercolor"},defaultColor:{name:"defaultColor",type:"color",
set:"defaultColor",get:"defaultColor",alias:"widget_defaultcolor"},menuFontColor:{name:"menuFontColor",type:"color",set:"menuFontColor",get:"menuFontColor",alias:"widget_menu_font_color"},menuBGColor:{name:"menuBGColor",type:"color",set:"menuBGColor",get:"menuBGColor",alias:"widget_menu_bgcolor"},tabBGColors:{name:"tabBGColors",type:"tabcolorfields",set:"tabBGColors",get:"tabBGColors",alias:"widget_tab_color"},resizable:{name:"resizable",type:"boolean",set:"resizable",get:"resizable",alias:"widget_resizable"},
title:{name:"title",type:"text",set:"title",get:"title",alias:"widget_title"},fullMessage:{name:"fullMessage",type:"text",set:"fullMessage",get:"fullMessage"},errorNum:{name:"errorNum",type:"text",set:"errorNum",get:"errorNum"},treeBG:{name:"treeBG",type:"color",set:"treeBG",get:"treeBG",alias:"widget_treeBG"},timelineBG:{name:"timelineBG",type:"color",set:"timelineBG",get:"timelineBG",alias:"widget_timelineBG"},gridLineColor:{name:"gridLineColor",type:"color",set:"gridLineColor",get:"gridLineColor",
alias:"widget_gridLineColor"},gridLineOpacity:{name:"gridLineOpacity",type:"opacityF",set:"gridLineOpacity",get:"gridLineOpacity",alias:"widget_gridLineOpacity"},timelineLabelColor:{name:"timelineLabelColor",type:"color",set:"timelineLabelColor",get:"timelineLabelColor",alias:"widget_timelineLabelColor"},timelineItemColor:{name:"timelineItemColor",type:"color",set:"timelineItemColor",get:"timelineItemColor",alias:"widget_timelineItemColor"},verticalAlign:{name:"verticalAlign",type:"vertAlign",set:"verticalAlign",
get:"verticalAlign",alias:"widget_timelinevertalign"},verticalAlignCenter:{name:"verticalAlign",type:"vertAlignCenter",set:"verticalAlign",get:"verticalAlign",alias:"widget_timelinevertalign"},treeItemColor:{name:"treeItemColor",type:"color",set:"treeItemColor",get:"treeItemColor",alias:"widget_treeItemColor"},treeFont:{name:"treeFont",type:"tfont",set:"treeFont",get:"treeFont",alias:"widget_treeFont"},timelineItemFont:{name:"timelineItemFont",type:"tfont",set:"timelineItemFont",get:"timelineItemFont",
alias:"widget_timelineItemFont"},treeSelectedColor:{name:"treeSelectedColor",type:"color",set:"treeSelectedColor",get:"treeSelectedColor",alias:"widget_treeSelectedColor"},treeSelectedBorder:{name:"treeSelectedBorder",type:"border",set:"treeSelectedBorder",get:"treeSelectedBorder",alias:"widget_treeSelectedBorder"},timelineXFont:{name:"timelineXFont",type:"tfont",set:"timelineXFont",get:"timelineXFont",alias:"widget_timelineXFont"},timelineXColor:{name:"timelineXColor",type:"color",set:"timelineXColor",
get:"timelineXColor",alias:"widget_timelineXColor"},treeIconSize:{name:"treeIconSize",type:"pixels",set:"treeIconSize",get:"treeIconSize",alias:"widget_treeIconSize"},timelineIconSize:{name:"timelineIconSize",type:"pixels",set:"timelineIconSize",get:"timelineIconSize",alias:"widget_timelineIconSize"},advancedMenuTextColors:{name:"textColors",type:"advmenutextcolorfields",set:"textColors",get:"textColors",alias:"widget_menu_text_color"},advancedMenuBgColors:{name:"bgColors",type:"advmenubgcolorfields",
set:"bgColors",get:"bgColors",alias:"widget_menu_bg_color"},treeNodeIcon:{name:"treeNodeIcon",type:"imgicon",set:"treeNodeIcon",get:"treeNodeIcon",alias:"widget_treeNodeIcon"},treeLeafIcon:{name:"treeLeafIcon",type:"imgicon",set:"treeLeafIcon",get:"treeLeafIcon",alias:"widget_treeLeafIcon"},timelineEventIcon:{name:"timelineEventIcon",type:"imgicon",set:"timelineEventIcon",get:"timelineEventIcon",alias:"widget_timelineEventIcon"},imageAsThumbnail:{name:"imageAsThumbnail",type:"boolean",set:"imageAsThumbnail",
get:"imageAsThumbnail",alias:"widget_imageAsThumbnail"},useImage:{name:"useImage",type:"boolean",set:"useImage",get:"useImage",alias:"widget_useImage"},useCount:{name:"useCount",type:"boolean",set:"useCount",get:"useCount",alias:"widget_useCount"},useFilter:{name:"useFilter",type:"boolean",set:"useFilter",get:"useFilter",alias:"widget_useFilter"},numbered:{name:"numbered",type:"boolean",set:"numbered",get:"numbered",alias:"widget_numbered"},readOnlyList:{name:"readOnlyList",type:"boolean",set:"readOnlyList",
get:"readOnlyList",alias:"widget_readOnlyList"},customCssClasses:{name:"customCssClasses",type:"text",set:"customCssClasses",get:"customCssClasses",alias:"widget_customCssClasses",inTheme:!0},useAside:{name:"useAside",type:"boolean",set:"useAside",get:"useAside",alias:"widget_useAside"}},custom:{renderCharts:{name:"renderCharts",type:"appchartrendertype",set:"renderCharts",get:"renderCharts",alias:"widget_custom_rendercharts"},timeZone:{name:"timeZone",type:"timeZone",set:"timeZone",get:"timeZone",
alias:"widget_custom_timezone"}},grid:{snapToGrid:{name:"snapToGrid",type:"boolean",set:"snapToGrid",get:"snapToGrid",alias:"widget_snaptogrid"},gridSize:{name:"gridSize",type:"gridsize",set:"gridSize",get:"gridSize",alias:"widget_gridsize"}},chart:{bgColor:{name:"bgColor",type:"color",set:"bgColor",get:"bgColor",alias:"widget_bgcolor",inTheme:!0},bgAlpha:{name:"bgAlpha",type:"opacityN",set:"bgAlpha",get:"bgAlpha",alias:"widget_bgalpha",inTheme:!0},bgTransparent:{name:"bgTransparent",type:"opacityN",
set:"bgTransparent",get:"bgTransparent",alias:"widget_bgtransp",inTheme:!0},bgImage:{name:"bgImage",type:"img",set:"bgImage",get:"bgImage",alias:"*widget_bgimage",inTheme:!0},showLegend:{name:"showLegend",type:"styleboolean",set:"showLegend",get:"showLegend",alias:"widget_legend",inTheme:!0},legendBgColor:{name:"legendBgColor",type:"color",set:"legendBgColor",get:"legendBgColor",alias:"widget_legendbgcolor",inTheme:!0},legendBgAlpha:{name:"legendBgAlpha",type:"opacityN",set:"legendBgAlpha",get:"legendBgAlpha",
alias:"widget_legendbgalpha",inTheme:!0},legendBorderThickness:{name:"legendBorderThickness",type:"pixels",set:"legendBorderThickness",get:"legendBorderThickness",alias:"widget_legendborder",inTheme:!0},legendPosition:{name:"legendPosition",type:"legendpositionlist",set:"legendPosition",get:"legendPosition",alias:"widget_legendposition",inTheme:!0},showBorder:{name:"showBorder",type:"styleboolean",set:"showBorder",get:"showBorder",alias:"widget_border",inTheme:!0},borderColor:{name:"borderColor",
type:"color",set:"borderColor",get:"borderColor",alias:"widget_bordercolor",inTheme:!0},borderThickness:{name:"borderThickness",type:"pixels",set:"borderThickness",get:"borderThickness",alias:"widget_borderthickness",inTheme:!0},borderAlpha:{name:"borderAlpha",type:"opacityN",set:"borderAlpha",get:"borderAlpha",alias:"widget_borderalpha",inTheme:!0},useRoundEdges:{name:"useRoundEdges",type:"styleboolean",set:"useRoundEdges",get:"useRoundEdges",alias:"widget_roundedges",inTheme:!0},chartTopMargin:{name:"chartTopMargin",
type:"pixels",set:"chartTopMargin",get:"chartTopMargin",alias:"widget_margintop",inTheme:!0},chartBottomMargin:{name:"chartBottomMargin",type:"pixels",set:"chartBottomMargin",get:"chartBottomMargin",alias:"widget_marginbottom",inTheme:!0},chartLeftMargin:{name:"chartLeftMargin",type:"pixels",set:"chartLeftMargin",get:"chartLeftMargin",alias:"widget_marginleft",inTheme:!0},chartRightMargin:{name:"chartRightMargin",type:"pixels",set:"chartRightMargin",get:"chartRightMargin",alias:"widget_marginright",
inTheme:!0},outlineColor:{name:"outlineColor",type:"color",set:"outlineColor",get:"outlineColor",alias:"widget_outlinecolor"},stepSize:{name:"stepSize",type:"number",set:"stepSize",get:"stepSize",alias:"widget_stepsize"}},values:{valuePadding:{name:"valuePadding",type:"pixels",set:"valuePadding",get:"valuePadding",alias:"widget_padding",inTheme:!0},numberScaleValue:{name:"numberScaleValue",type:"text",set:"numberScaleValue",get:"numberScaleValue",alias:"widget_smartnumberingvalue",inTheme:!0},numberScaleUnit:{name:"numberScaleUnit",
type:"text",set:"numberScaleUnit",get:"numberScaleUnit",alias:"widget_smartnumberingunit",inTheme:!0},enableSmartLabels:{name:"enableSmartLabels",type:"styleboolean",set:"enableSmartLabels",get:"enableSmartLabels",alias:"*widget_smartlabeling",inTheme:!0},numberPrefix:{name:"numberPrefix",type:"text",set:"numberPrefix",get:"numberPrefix",alias:"widget_prefix",inTheme:!0},numberSuffix:{name:"numberSuffix",type:"text",set:"numberSuffix",get:"numberSuffix",alias:"widget_suffix",inTheme:!0},rotateValues:{name:"rotateValues",
type:"styleboolean",set:"rotateValues",get:"rotateValues",alias:"widget_rotate",inTheme:!0},placeValuesInside:{name:"placeValuesInside",type:"styleboolean",set:"placeValuesInside",get:"placeValuesInside",alias:"widget_valuesinternal",inTheme:!0}},canvas:{showCanvasBg:{name:"showCanvasBg",type:"styleboolean",set:"showCanvasBg",get:"showCanvasBg",alias:"widget_showbg",inTheme:!0},canvasBorderColor:{name:"canvasBorderColor",type:"color",set:"canvasBorderColor",get:"canvasBorderColor",alias:"widget_bordercolor",
inTheme:!0},canvasBorderThickness:{name:"canvasBorderThickness",type:"pixels",set:"canvasBorderThickness",get:"canvasBorderThickness",alias:"widget_borderthickness",inTheme:!0},canvasBorderAlpha:{name:"canvasBorderAlpha",type:"opacityN",set:"canvasBorderAlpha",get:"canvasBorderAlpha",alias:"widget_borderalpha",inTheme:!0},canvasBgColor:{name:"canvasBgColor",type:"color",set:"canvasBgColor",get:"canvasBgColor",alias:"widget_bgcolor",inTheme:!0},canvasBgAlpha:{name:"canvasBgAlpha",type:"opacityN",set:"canvasBgAlpha",
get:"canvasBgAlpha",alias:"widget_bgalpha",inTheme:!0},canvasBgRatio:{name:"canvasBgRatio",type:"numHundred",set:"canvasBgRatio",get:"canvasBgRatio",alias:"*widget_bgratio",inTheme:!0},canvasBgAngle:{name:"canvasBgAngle",type:"number",set:"canvasBgAngle",get:"canvasBgAngle",alias:"*widget_bgangle",inTheme:!0},canvasPadding:{name:"canvasPadding",type:"pixels",set:"canvasPadding",get:"canvasPadding",alias:"widget_padding",inTheme:!0}},title:{caption:{name:"caption",type:"text",set:"caption",get:"caption",
alias:"widget_caption"},subCaption:{name:"subCaption",type:"text",set:"subCaption",get:"subCaption",alias:"widget_subcaption"},captionPadding:{name:"captionPadding",type:"pixels",set:"captionPadding",get:"captionPadding",alias:"widget_caption"}},effects:{plotGradientColor:{name:"plotGradientColor",type:"color",set:"plotGradientColor",get:"plotGradientColor",alias:"*widget_usegradients",inTheme:!0},showPlotBorder:{name:"showPlotBorder",type:"styleboolean",set:"showPlotBorder",get:"showPlotBorder",
alias:"*widget_border",inTheme:!0}},format:{numberFormatting:{name:"numberFormatting",type:"numformat",set:"numberFormatting",get:"numberFormatting",alias:"widget_numberformatting",inTheme:!0},formatNumber:{name:"formatNumber",type:"styleboolean",set:"formatNumber",get:"formatNumber",alias:"widget_number",inTheme:!0},numberPrefix:{name:"numberPrefix",type:"text",set:"numberPrefix",get:"numberPrefix",alias:"widget_prefix",inTheme:!0},numberSuffix:{name:"numberSuffix",type:"text",set:"numberSuffix",
get:"numberSuffix",alias:"widget_suffix",inTheme:!0},decimals:{name:"decimals",type:"number",set:"decimals",get:"decimals",alias:"widget_decimals",inTheme:!0},forceDecimals:{name:"forceDecimals",type:"styleboolean",set:"forceDecimals",get:"forceDecimals",alias:"widget_forcedecimals",inTheme:!0},formatNumberScale:{name:"formatNumberScale",type:"styleboolean",set:"formatNumberScale",get:"formatNumberScale",alias:"widget_numberscale",inTheme:!0}},xaxis:{xAxisName:{name:"xAxisName",type:"text",set:"xAxisName",
get:"xAxisName",alias:"widget_pcat_title"},xAxisNamePadding:{name:"xAxisNamePadding",type:"pixels",set:"xAxisNamePadding",get:"xAxisNamePadding",alias:"widget_padding",inTheme:!0},labelDisplay:{name:"labelDisplay",type:"labeldisplaylist",set:"labelDisplay",get:"labelDisplay",alias:"widget_labeldisplay",inTheme:!0},labelPadding:{name:"labelPadding",type:"pixels",set:"labelPadding",get:"labelPadding",alias:"widget_labelpadding",inTheme:!0},labelStep:{name:"labelStep",type:"numberByOne",set:"labelStep",
get:"labelStep",alias:"widget_labelstep",inTheme:!0},xNumDivLines:{name:"xNumDivLines",type:"numberByOne",set:"xNumDivLines",get:"xNumDivLines",alias:"widget_divlines",inTheme:!0},xDivLineThickness:{name:"xDivLineThickness",type:"pixels",set:"xDivLineThickness",get:"xDivLineThickness",alias:"widget_divthickness",inTheme:!0},xDivLineColor:{name:"xDivLineColor",type:"color",set:"xDivLineColor",get:"xDivLineColor",alias:"widget_divcolor",inTheme:!0},xDivLineAlpha:{name:"xDivLineAlpha",type:"opacityN",
set:"xDivLineAlpha",get:"xDivLineAlpha",alias:"widget_divalpha",inTheme:!0},showValues:{name:"showValues",type:"styleboolean",set:"showValues",get:"showValues",alias:"widget_showvalues",inTheme:!0},showLabels:{name:"showLabels",type:"styleboolean",set:"showLabels",get:"showLabels",alias:"widget_showlabels",inTheme:!0},xShowGrid:{name:"xShowGrid",type:"boolean",set:"xShowGrid",get:"xShowGrid",alias:"widget_showgrid",inTheme:!0},showXAxisValues:{name:"showXAxisValues",type:"styleboolean",set:"showXAxisValues",
get:"showXAxisValues",alias:"widget_showlabels",inTheme:!0}},yaxis:{yAxisName:{name:"yAxisName",type:"text",set:"yAxisName",get:"yAxisName",alias:"widget_pcat_title"},yAxisNamePadding:{name:"yAxisNamePadding",type:"pixels",set:"yAxisNamePadding",get:"yAxisNamePadding",alias:"widget_padding",inTheme:!0},rotateYAxisName:{name:"rotateYAxisName",type:"styleboolean",set:"rotateYAxisName",get:"rotateYAxisName",alias:"widget_rotate",inTheme:!0},yAxisMinValue:{name:"yAxisMinValue",type:"number",set:"yAxisMinValue",
get:"yAxisMinValue",alias:"widget_minvalue",inTheme:!0},yAxisMaxValue:{name:"yAxisMaxValue",type:"number",set:"yAxisMaxValue",get:"yAxisMaxValue",alias:"widget_maxvalue",inTheme:!0},yShowGrid:{name:"yShowGrid",type:"boolean",set:"yShowGrid",get:"yShowGrid",alias:"widget_showgrid",inTheme:!0},setAdaptiveYMin:{name:"setAdaptiveYMin",type:"styleboolean",set:"setAdaptiveYMin",get:"setAdaptiveYMin",alias:"widget_automin",inTheme:!0},showYAxisValues:{name:"showYAxisValues",type:"styleboolean",set:"showYAxisValues",
get:"showYAxisValues",alias:"widget_showlabels",inTheme:!0},yAxisValuesStep:{name:"yAxisValuesStep",type:"numberByOne",set:"yAxisValuesStep",get:"yAxisValuesStep",alias:"widget_skiplabels",inTheme:!0},yNumDivLines:{name:"yNumDivLines",type:"numberByOne",set:"yNumDivLines",get:"yNumDivLines",alias:"widget_divlines",inTheme:!0},yDivLineThickness:{name:"yDivLineThickness",type:"pixels",set:"yDivLineThickness",get:"yDivLineThickness",alias:"widget_divthickness",inTheme:!0},yDivLineColor:{name:"yDivLineColor",
type:"color",set:"yDivLineColor",get:"yDivLineColor",alias:"widget_divcolor",inTheme:!0},yDivLineAlpha:{name:"yDivLineAlpha",type:"opacityN",set:"yDivLineAlpha",get:"yDivLineAlpha",alias:"widget_divalpha",inTheme:!0}},imagemap:{useMap:{name:"useMap",type:"usemapimg",set:"useMap",get:"useMap",alias:"widget_usemap"},mapData:{name:"mapData",type:"imgmap",set:"mapData",get:"mapData",alias:"widget_map_data"},mapMultiSelect:{name:"mapMultiSelect",type:"boolean",set:"mapMultiSelect",get:"mapMultiSelect",
alias:"widget_map_multisel"},mapHighLight:{name:"mapHighLight",type:"boolean",set:"mapHighLight",get:"mapHighLight",alias:"widget_map_highlight"},mapHighLightColor:{name:"mapHighLightColor",type:"color",set:"mapHighLightColor",get:"mapHighLightColor",alias:"widget_map_hl_color"},mapHighLightOpacity:{name:"mapHighLightOpacity",type:"opacityF",set:"mapHighLightOpacity",get:"mapHighLightOpacity",alias:"widget_map_hl_opacity"},mapOutline:{name:"mapOutline",type:"boolean",set:"mapOutline",get:"mapOutline",
alias:"widget_map_outline"},mapOutlineWidth:{name:"mapOutlineWidth",type:"pixels",set:"mapOutlineWidth",get:"mapOutlineWidth",alias:"widget_map_ol_width"},mapOutlineColor:{name:"mapOutlineColor",type:"color",set:"mapOutlineColor",get:"mapOutlineColor",alias:"widget_map_ol_color"},mapOutlineOpacity:{name:"mapOutlineOpacity",type:"opacityF",set:"mapOutlineOpacity",get:"mapOutlineOpacity",alias:"widget_map_ol_opacity"},mapFade:{name:"mapFade",type:"boolean",set:"mapFade",get:"mapFade",alias:"widget_map_fade"}},
appearance:{textAlign:{name:"textAlign",type:"textalign",set:"textAlign",get:"textAlign",alias:"widget_textalign"}},axis:{setAdaptiveMin:{name:"setAdaptiveMin",type:"boolean",set:"setAdaptiveMin",get:"setAdaptiveMin",alias:"widget_automin",inTheme:!0},upperLimit:{name:"upperLimit",type:"number",set:"upperLimit",get:"upperLimit",alias:"widget_upperlimit",inTheme:!0},lowerLimit:{name:"lowerLimit",type:"number",set:"lowerLimit",get:"lowerLimit",alias:"widget_lowerlimit",inTheme:!0},upperLimitDisplay:{name:"upperLimitDisplay",
type:"text",set:"upperLimitDisplay",get:"upperLimitDisplay",alias:"widget_upperlabel",inTheme:!0},lowerLimitDisplay:{name:"lowerLimitDisplay",type:"text",set:"lowerLimitDisplay",get:"lowerLimitDisplay",alias:"widget_lowerlabel",inTheme:!0},minValue:{name:"minValue",type:"minmaxval",set:"minValue",get:"minValue",alias:"widget_minvalue",inTheme:!0},maxValue:{name:"maxValue",type:"minmaxval",set:"maxValue",get:"maxValue",alias:"widget_maxvalue",inTheme:!0}},ticks:{showTickMarks:{name:"showTickMarks",
type:"boolean",set:"showTickMarks",get:"showTickMarks",alias:"widget_show",inTheme:!0},showTickValues:{name:"showTickValues",type:"boolean",set:"showTickValues",get:"showTickValues",alias:"widget_showvalues",inTheme:!0},showLimits:{name:"showLimits",type:"boolean",set:"showLimits",get:"showLimits",alias:"widget_showlimits",inTheme:!0},adjustTM:{name:"adjustTM",type:"boolean",set:"adjustTM",get:"adjustTM",alias:"widget_autoajust",inTheme:!0},ticksBelowGauge:{name:"ticksBelowGauge",type:"boolean",set:"ticksBelowGauge",
get:"ticksBelowGauge",alias:"widget_below",inTheme:!0},placeTicksInside:{name:"placeTicksInside",type:"boolean",set:"placeTicksInside",get:"placeTicksInside",alias:"widget_inside",inTheme:!0},placeValuesInside:{name:"placeValuesInside",type:"boolean",set:"placeValuesInside",get:"placeValuesInside",alias:"widget_valuesinside",inTheme:!0},majorTMNumber:{name:"majorTMNumber",type:"number",set:"majorTMNumber",get:"majorTMNumber",alias:"widget_majornum",inTheme:!0},majorTMColor:{name:"majorTMColor",type:"color",
set:"majorTMColor",get:"majorTMColor",alias:"widget_majorcolor",inTheme:!0},majorTMAlpha:{name:"majorTMAlpha",type:"opacityN",set:"majorTMAlpha",get:"majorTMAlpha",alias:"widget_majoralpha",inTheme:!0},majorTMHeight:{name:"majorTMHeight",type:"pixels",set:"majorTMHeight",get:"majorTMHeight",alias:"widget_majoraeight",inTheme:!0},majorTMThickness:{name:"majorTMThickness",type:"pixels",set:"majorTMThickness",get:"majorTMThickness",alias:"widget_majorthickness",inTheme:!0},minorTMNumber:{name:"minorTMNumber",
type:"number",set:"minorTMNumber",get:"minorTMNumber",alias:"widget_minornum",inTheme:!0},minorTMColor:{name:"minorTMColor",type:"color",set:"minorTMColor",get:"minorTMColor",alias:"widget_minorcolor",inTheme:!0},minorTMAlpha:{name:"minorTMAlpha",type:"opacityN",set:"minorTMAlpha",get:"minorTMAlpha",alias:"widget_minoralpha",inTheme:!0},minorTMHeight:{name:"minorTMHeight",type:"pixels",set:"minorTMHeight",get:"minorTMHeight",alias:"widget_minoraeight",inTheme:!0},minorTMThickness:{name:"minorTMThickness",
type:"pixels",set:"minorTMThickness",get:"minorTMThickness",alias:"widget_minorthickness",inTheme:!0},tickMarkDistance:{name:"tickMarkDistance",type:"pixels",set:"tickMarkDistance",get:"tickMarkDistance",alias:"widget_distance",inTheme:!0},tickValueDistance:{name:"tickValueDistance",type:"pixels",set:"tickValueDistance",get:"tickValueDistance",alias:"widget_valuedistance",inTheme:!0},trendValueDistance:{name:"trendValueDistance",type:"pixels",set:"trendValueDistance",get:"trendValueDistance",alias:"widget_trendvaluedistance",
inTheme:!0},tickValueStep:{name:"tickValueStep",type:"number",set:"tickValueStep",get:"tickValueStep",alias:"widget_valuestep",inTheme:!0},tickValueDecimals:{name:"tickValueDecimals",type:"number",set:"tickValueDecimals",get:"tickValueDecimals",alias:"widget_valuedecimals",inTheme:!0},forceTickValueDecimals:{name:"forceTickValueDecimals",type:"boolean",set:"forceTickValueDecimals",get:"forceTickValueDecimals",alias:"widget_valueforcedecimals",inTheme:!0}},angular:{gaugeStartAngle:{name:"gaugeStartAngle",
type:"dAngle",set:"gaugeStartAngle",get:"gaugeStartAngle",alias:"widget_startangle"},gaugeEndAngle:{name:"gaugeEndAngle",type:"dAngle",set:"gaugeEndAngle",get:"gaugeEndAngle",alias:"widget_endangle"},gaugeOriginX:{name:"gaugeOriginX",type:"pixels",set:"gaugeOriginX",get:"gaugeOriginX",alias:"widget_originx"},gaugeOriginY:{name:"gaugeOriginY",type:"pixels",set:"gaugeOriginY",get:"gaugeOriginY",alias:"widget_originy"},gaugeOuterRadius:{name:"gaugeOuterRadius",type:"pixels",set:"gaugeOuterRadius",get:"gaugeOuterRadius",
alias:"widget_outerraduis"},gaugeInnerRadius:{name:"gaugeInnerRadius",type:"pixels",set:"gaugeInnerRadius",get:"gaugeInnerRadius",alias:"widget_innerraduis"},gaugeFillMix:{name:"gaugeFillMix",type:"text",set:"gaugeFillMix",get:"gaugeFillMix",alias:"widget_fillmix"},gaugeFillRatio:{name:"gaugeFillRatio",type:"text",set:"gaugeFillRatio",get:"gaugeFillRatio",alias:"widget_fillratio"},showGaugeBorder:{name:"showGaugeBorder",type:"boolean",set:"showGaugeBorder",get:"showGaugeBorder",alias:"widget_gaugeborder"},
gaugeBorderColor:{name:"gaugeBorderColor",type:"color",set:"gaugeBorderColor",get:"gaugeBorderColor",alias:"widget_bordercolor"},gaugeBorderThickness:{name:"gaugeBorderThickness",type:"pixels",set:"gaugeBorderThickness",get:"gaugeBorderThickness",alias:"widget_borderthickness"},gaugeBorderAlpha:{name:"gaugeBorderAlpha",type:"opacityN",set:"gaugeBorderAlpha",get:"gaugeBorderAlpha",alias:"widget_borderalpha"}},bulb:{gaugeFillAlpha:{name:"gaugeFillAlpha",type:"boolean",set:"gaugeFillAlpha",get:"gaugeFillAlpha",
alias:"widget_fillalpha"},gaugeOriginX:{name:"gaugeOriginX",type:"pixels",set:"gaugeOriginX",get:"gaugeOriginX",alias:"widget_originx"},gaugeOriginY:{name:"gaugeOriginY",type:"pixels",set:"gaugeOriginY",get:"gaugeOriginY",alias:"widget_originy"},gaugeRadius:{name:"gaugeRadius",type:"pixels",set:"gaugeRadius",get:"gaugeRadius",alias:"widget_radius"},showGaugeBorder:{name:"showGaugeBorder",type:"boolean",set:"showGaugeBorder",get:"showGaugeBorder",alias:"widget_showborder"},gaugeBorderColor:{name:"gaugeBorderColor",
type:"color",set:"gaugeBorderColor",get:"gaugeBorderColor",alias:"widget_bordercolor"},gaugeBorderThickness:{name:"gaugeBorderThickness",type:"pixels",set:"gaugeBorderThickness",get:"gaugeBorderThickness",alias:"widget_borderthickness"},gaugeBorderAlpha:{name:"gaugeBorderAlpha",type:"opacityN",set:"gaugeBorderAlpha",get:"gaugeBorderAlpha",alias:"widget_borderalpha"},is3D:{name:"is3D",type:"boolean",set:"is3D",get:"is3D",alias:"widget_is3d"}},cylinder:{cylOriginX:{name:"cylOriginX",type:"pixels",set:"cylOriginX",
get:"cylOriginX",alias:"widget_originx"},cylOriginY:{name:"cylOriginY",type:"pixels",set:"cylOriginY",get:"cylOriginY",alias:"widget_originy"},cylRadius:{name:"cylRadius",type:"pixels",set:"cylRadius",get:"cylRadius",alias:"widget_radius"},cylHeight:{name:"cylHeight",type:"pixels",set:"cylHeight",get:"cylHeight",alias:"widget_height"},cylYScale:{name:"cylYScale",type:"numFifty",set:"cylYScale",get:"cylYScale",alias:"widget_yscale"},cylFillColor:{name:"cylFillColor",type:"color",set:"cylFillColor",
get:"cylFillColor",alias:"widget_fillcolor"}},led:{ledSize:{name:"ledSize",type:"pixels",set:"ledSize",get:"ledSize",alias:"widget_size"},ledGap:{name:"ledGap",type:"pixels",set:"ledGap",get:"ledGap",alias:"widget_gap"},useSameFillColor:{name:"useSameFillColor",type:"boolean",set:"useSameFillColor",get:"useSameFillColor",alias:"widget_usesamefillcolor"},useSameFillBgColor:{name:"useSameFillBgColor",type:"boolean",set:"useSameFillBgColor",get:"useSameFillBgColor",alias:"widget_usesamefillbgcolor"},
orientation:{name:"orientation",type:"orientation",set:"orientation",get:"orientation",alias:"widget_orientation"}},linear:{showGaugeLabels:{name:"showGaugeLabels",type:"boolean",set:"showGaugeLabels",get:"showGaugeLabels",alias:"widget_showlabels"},gaugeRoundRadius:{name:"gaugeRoundRadius",type:"number",set:"gaugeRoundRadius",get:"gaugeRoundRadius",alias:"widget_roundradius"},gaugeFillMix:{name:"gaugeFillMix",type:"int",set:"gaugeFillMix",get:"gaugeFillMix",alias:"widget_fillmix"},gaugeFillRatio:{name:"gaugeFillRatio",
type:"int",set:"gaugeFillRatio",get:"gaugeFillRatio",alias:"widget_fillratio"},showGaugeBorder:{name:"showGaugeBorder",type:"int",set:"showGaugeBorder",get:"showGaugeBorder",alias:"widget_border"},gaugeBorderColor:{name:"gaugeBorderColor",type:"color",set:"gaugeBorderColor",get:"gaugeBorderColor",alias:"widget_bordercolor"},gaugeBorderThickness:{name:"gaugeBorderThickness",type:"pixels",set:"gaugeBorderThickness",get:"gaugeBorderThickness",alias:"widget_borderthickness"},gaugeBorderAlpha:{name:"gaugeBorderAlpha",
type:"opacityN",set:"gaugeBorderAlpha",get:"gaugeBorderAlpha",alias:"widget_borderalpha"}},pointer:{pointerRadius:{name:"pointerRadius",type:"pixels",set:"pointerRadius",get:"pointerRadius",alias:"widget_radius"},pointerBgColor:{name:"pointerBgColor",type:"color",set:"pointerBgColor",get:"pointerBgColor",alias:"widget_bgcolor"},pointerBgAlpha:{name:"pointerBgAlpha",type:"opacityN",set:"pointerBgAlpha",get:"pointerBgAlpha",alias:"widget_bgalpha"},pointerSides:{name:"pointerSides",type:"_3To15",set:"pointerSides",
get:"pointerSides",alias:"widget_sides"},pointerBorderThickness:{name:"pointerBorderThickness",type:"pixels",set:"pointerBorderThickness",get:"pointerBorderThickness",alias:"widget_thickness"},pointerBorderColor:{name:"pointerBorderColor",type:"color",set:"pointerBorderColor",get:"pointerBorderColor",alias:"widget_bordercolor"},pointerBorderAlpha:{name:"pointerBorderAlpha",type:"opacityN",set:"pointerBorderAlpha",get:"pointerBorderAlpha",alias:"widget_borderalpha"}},media:{autoplay:{name:"autoplay",
type:"boolean",set:"autoplay",get:"autoplay",alias:"widget_mediaelementbase_autoplay"},controls:{name:"controls",type:"boolean",set:"controls",get:"controls",alias:"widget_mediaelementbase_controls"},preload:{name:"preload",type:"boolean",set:"preload",get:"preload",alias:"widget_mediaelementbase_preload"},volume:{name:"volume",type:"volumezeroone",set:"volume",get:"volume",alias:"widget_mediaelementbase_volume"},poster:{name:"poster",type:"img",set:"poster",get:"poster",alias:"widget_mediaelementbase_poster"}}};
(function(a){a.general.dataType=a.database.dataType;a.general.isIncludedInSchema=a.database.isIncludedInSchema;a.general.mandatoryHighlight=a.database.mandatoryHighlight;a.advanced.hasStorage=a.database.hasStorage;a.advanced.instanceTitleTemplate=a.database.instanceTitleTemplate;a.advanced.applicationRelationships=a.database.applicationRelationships;a.general.mandatory=a.database.mandatory})(AC.Property);
(function(a){a.html=function(a,c){var d=function(e){return this.htmlProperyTemplate(this,void 0,c,a,e,!1)};d.applyAfter=c;return d};a.htmlLng=function(a,c){var d=function(e){return this.htmlLngPropertyTemplate(this,void 0,c,a,e,!1)};d.applyAfter=c;return d};a.theme=function(a,c){var d=function(e){return this.htmlProperyTemplate(this,void 0,c,a,e,!0)};d.applyAfter=c;return d};a.normal=function(a,c){var d=function(e){return this.normalProperyTemplate(this,void 0,c,a,e)};d.applyAfter=c;return d};a.normalPropBeforeSet=
function(a,c,d){var e=function(f){return this.normalProperyTemplate(this,c,d,a,f)};e.applyAfter=d;return e};a.htmlPropBeforeSet=function(a,c,d){var e=function(f){return this.htmlProperyTemplate(this,c,d,a,f)};e.applyAfter=d;return e};a.htmlBeforeSetAfterGet=function(a,c,d,e){var f=function(f){return this.htmlProperyTemplate(this,c,d,a,f,!1,e)};f.applyAfter=d;return f};a.htmlLngPropBeforeSet=function(a,c,d){var e=function(f){return this.htmlLngPropertyTemplate(this,c,d,a,f)};e.applyAfter=d;return e}})(AC.Property);
(function(a){a.oAuthColModels={twitter:{consumerKey:{type:"text",value:"",group:a.Property.group_names.oauth,alias:"proptype_dgap_s_consumer_key"},consumerSecret:{type:"text",value:"",group:a.Property.group_names.oauth,alias:"proptype_dgap_s_consumer_secret"}},facebook:{consumerKey:{type:"text",value:"",group:a.Property.group_names.oauth,alias:"proptype_dgap_s_app_id"},consumerSecret:{type:"text",value:"",group:a.Property.group_names.oauth,alias:"proptype_dgap_s_app_secret"},scope:{type:"oAuthScope",
value:void 0,group:a.Property.group_names.oauth,alias:"proptype_oauth_scope"}},dropbox:{consumerKey:{type:"text",value:"",group:a.Property.group_names.oauth,alias:"proptype_dgap_s_app_key"},consumerSecret:{type:"text",value:"",group:a.Property.group_names.oauth,alias:"proptype_dgap_s_app_secret"}}};a.oAuthProviders=["twitter","facebook","dropbox"];a.oAuthProvidersNames={twitter:"Twitter",facebook:"Facebook",dropbox:"Dropbox"}})(AC);AC.Widgets={};
(function(a,b,c,d){function e(a){var f=c(a.target).closest(".ac-widget-item");f.length>0&&(f=f.data("widget"))&&f.enable()!==!1&&f._isParentEnable()!==!1&&f.onClick.call(f,a)}function f(){c(b).bind("vclick",e);f=null}function g(a,f){return function(e,g){g=g||this;this.hasOwnProperty(a)&&this[a].call(g);e=e&&i(e)||i(g);e[f]&&e[f](e,g)}}var i;if({}.__proto__)i=function(a){return a.__proto__};else{if(!Object.getPrototypeOf)Object.getPrototypeOf=function(a){var f=a.constructor,e;if(Object.prototype.hasOwnProperty.call(a,
"constructor")){e=f;if(!delete a.constructor)return null;f=a.constructor;a.constructor=e}return f?f.prototype:null};i=function(a){return Object.getPrototypeOf(a)}}var h=AC.Widgets.WiziCore_Widget_Base=AC.Widgets.Base=WiziCore_Api_Base.extend({_widgetClass:"WiziCore_Widget_Base",_project:null,_parent:null,_form:null,_page:null,_mode:null,_base:null,wrapSelect:!1,_eventsHandles:null,_bindingEvents:null,_isDrawn:!1,_modeObject:null,_editMode:!1,_loadMode:!1,_htmlId:null,_widgetEventId:null,_sizeAndPos:null,
_defaultValue:null,_defaultData:null,_enableDiv:null,_manualDrawPosition:!0,_hourglassImage:null,_isManual:!0,_canCallOnDataLoaded:!0,callOnDestroy:g("onDestroy","callOnDestroy"),callOnRemove:g("onRemove","callOnRemove"),init:function(a){this._super();if(typeof a!="object")throw new WiziCore_Api_Error("Need Parameters for init widget",WiziCore_Api_Error.ERR_NEED_PARENT_OBJECT);this._checkRepeatBeforeRemoveFlag=!1;this._project={};this._bindingEvents={};this._eventsHandles={};this._sizeAndPos={width:0,
height:0,left:0,right:0,top:0,bottom:0};this.initProps();this._checkVersion(a.project);if(a.mode!=d&&(this.mode(a.mode),a.mode==WiziCore_Visualizer.EDITOR_MODE))this.sendExecutor=this.sendExecutorEditor;a.parent!=d&&this.parent(a.parent);a.form!=d&&this.form(a.form);a.page!=d&&this.page(a.page);a.project!=d&&this.project(a.project);this.widgetClass()!="WiziCore_Api_Form"&&(this.setDefaultData(this.getData()),typeof this.value=="function"&&this.setDefaultValue(this.value()))},_onSTUpdated:function(){},
_onLanguageChanged:function(){},_onInitLanguage:function(){},_checkVersion:function(a){if(a.wVersion!=this._wVersion)this._doVersionUpdate(a),a.wVersion=this._wVersion},_doVersionUpdate:function(a){var f=AC.Core.Widgets().getDefaultWidgetProperties(this._widgetClass),e;for(e in f)a[e]===d&&(a[e]=typeof f[e]=="object"?WiziCore_Helper.clone(f[e]):f[e])},initProps:function(){if(this.name==d)this.name=this.normalProperty("name",this._afterName);this.zindex=this.htmlProperty("zindex",this._zindex);this.anchors=
this.htmlProperty("anchors",this._updateLayout);this.customCssClasses=this.htmlCssPropertyBeforeSet("customCssClasses",this._beforeAddCustomClass,this._addCustomClass);if(this.boxSizing==d)this.boxSizing=this.themeProperty("boxSizing",this._boxSizing);if(this.maxHeight==d)this.maxHeight=this.themeProperty("maxHeight",this._updateLayout);if(this.maxWidth==d)this.maxWidth=this.themeProperty("maxWidth",this._updateLayout);if(this.minWidth==d)this.minWidth=this.themeProperty("minWidth",this._updateLayout);
if(this.pWidth==d)this.pWidth=this.themeProperty("pWidth",this._updateLayout);if(this.margin==d)this.margin=this.themeProperty("margin",this._updateLayout);if(this.width==d)this.width=this.htmlProperty("width",this._updateLayout);if(this.height==d)this.height=this.htmlProperty("height",this._updateLayout);if(this.enable==d)this.enable=this.htmlProperty("enable",this._updateEnable);if(this.visible==d)this.visible=this.htmlProperty("visible",this._visible);if(this.hourglassImage==d)this.hourglassImage=
this.themeProperty("hourglassImage",this._updateHourglassImage);if(this.displayHourglassOver==d)this.displayHourglassOver=this.themeProperty("displayHourglassOver");if(this.alignInContainer==d)this.alignInContainer=this.themeProperty("alignInContainer",this._updateLayout);if(this.dragAndDrop==d)this.dragAndDrop=this.htmlProperty("dragAndDrop",this._dragAndDrop);if(this.resizing==d)this.resizing=this.htmlProperty("resizing",this._resizing)},autoLoad:function(){var a=this.normalProperty("autoLoad").apply(this,
arguments);return a=a===d?!0:a},tabStop:function(){var a=this.htmlProperty("tabStop",this._tabStop).apply(this,arguments);return a=a===d?!0:a},onWidgetMovedByCommand:function(){},sendExecutor:function(){},sendExecutorEditor:function(){},onRemove:function(){},onDestroy:function(){},destroy:function(){this._checkRepeatBeforeRemoveFlag=!0;this.remove();this.callOnDestroy();this.destroyDataIntegration&&this.destroyDataIntegration();c(this).unbind();this._form=this._page=this._parent=this._project=null},
isDestroyed:function(){return this._project==null},_checkRepeatBeforeRemove:function(){return!1},_updateStorageFlag:function(){if(this.mode()!=WiziCore_Visualizer.RUN_MODE&&(typeof this.hasStorage=="function"&&this.hasStorage()!="None"||typeof this.isIncludedInSchema=="function"&&this.isIncludedInSchema()!=!1)&&WiziCore_Helper.getLocalStorageFlag("useStorageWarning")==d)WiziCore_Helper.showWarning(d,AC.Core.lang().trText("widget_proptype_storage_warning_message")),WiziCore_Helper.setLocalStorageFlag("useStorageWarning",
!0)},remove:function(){if(!this._checkRepeatBeforeRemove()){this.callOnRemove();var a=this.eventsHandles(),f;for(f in a)this.unbindEvent(f,!0);this._tableBase!=d&&(this._tableBase.remove().empty(),delete this._tableBase);this._base!=d&&(this._base.remove().empty(),delete this._base);a=this.htmlId();c(b).unbind("mouseup."+a+".resizew");this._isDrawn=!1}},mode:function(a){if(a!=d&&this._mode!==a)this._mode=a;return this._mode},parent:function(a){if(a!=d)if(typeof a=="object")this._parent=a;else{var f=
null;this.traverseParent(function(e){return e.name()==a?(f=e,!0):!1});return f}return this._parent},form:function(a){if(a!=d)this._form=a;return this._form},page:function(a){if(a!=d)this._page=a;return this._page},repeatCompatiblePage:function(){return this._page?this._page:this._parent},project:function(a){a!=d&&this.initProject(a);return this._project},clone:function(){return c.extend(!0,{},this.project())},widgetClass:function(){return this._widgetClass},initProject:function(a){a==d?acDebugger.systemLog1("base:initProject",
er):this._project=a},getAvailableMethods:function(){var j;if(this._availableMethods==null){var a=h.schema(this.widgetClass());if(a==d){var a=this.getAvailableProps(),f,e,g={},b,i;for(i in a)if(f=a[i],f.props!=d)for(var c=0,q=f.props.length;c<q;c++)if(e=f.props[c],e.name!=d){b=e.name;j=g[b]=g[b.toLowerCase()]={},b=j;if(e.set!=d)b.set=e.set;if(e.get!=d)b.get=e.get}g.id={get:"id"};a=h.schema(this.widgetClass(),g)}this._availableMethods=a}return this._availableMethods},getAvailableProps:function(){return AC.Core.Widgets().getAvailableWidgetProperties(this.widgetClass())},
getEmptyProps:function(){return AC.Core.Widgets().getEmptyWidgetProperties(this.widgetClass())},_labelDataModelPart:function(){return{name:"widget_label",value:"",uid:"labeluid"}},_valueDataModelPart:function(){return{name:"widget_value",value:"",uid:"valueuid"}},_labelValueDataModel:function(){return[this._labelDataModelPart(),this._valueDataModelPart()]},_labelDataModel:function(){return[{name:"widget_label",value:"",uid:"labeluid"}]},_valueDataModel:function(){return[{name:"widget_value",value:"",
uid:"valueuid"}]},getDataModel:function(){return this._labelValueDataModel()},base:function(){if(this._base==null){if(c.browser.msie){var a=c("<table class='ie-table' cellpadding='0' cellspacing='0' border='0'><tr><td class='va-top'></td></tr></table>");this._tableBase=a;this._base=a.find("td");WiziCore_Helper.checkForIE8()&&this._tableBase.css("border-collapse","separate")}else this._base=this._tableBase=c("<div> </div>");this._tableBase.attr("id",this.htmlId());this._tableBase.attr("data-ac-wname",
this.name());this._tableBase.addClass(this.widgetClass())}return this._base},tableBase:function(){this.base();return this._tableBase},id:function(){var a=this._project.id;if(a==d)a=h.generateUniqueId(),this._project.id=a;return a},widgetId:function(){return this.id()},htmlId:function(a){if(this._htmlId==null||a)this._htmlId=WiziCore_Helper.generateUniqueId(36,"w");return this._htmlId},isDrawn:function(){return this._isDrawn},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&
this.base().focus()},realId:function(a){a!=d&&(this._project.realId=a);a=this._project.realId;a==d&&(a=this.id());return a},widgetEventId:function(){if(this._widgetEventId==null)this._widgetEventId="."+WiziCore_Helper.generateUniqueId(36,"");return this._widgetEventId},prop:function(a,f){if(typeof a=="string")return this._prop(a,f);else{var e;e=c.isArray(a)?!1:null;e=c.isPlainObject(a)?!0:e;if(e!==null){var g={},b;for(b in a)g[b]=e===!0?this._prop(b,a[b]):this._prop(b,d);return g}}},_prop:function(a,
f){var a=a.toLowerCase(),e=d,g=this.getAvailableMethods()[a];if(g)if(f!==d){if(typeof this[g.set]=="function")try{e=this[g.set].apply(this,[f])}catch(b){acDebugger.systemLog1("baseWidgetClass :: _prop :: setter",this.widgetClass(),a,f,b)}}else if(typeof this[g.get]=="function")try{e=this[g.get].apply(this)}catch(i){acDebugger.systemLog1("baseWidgetClass :: _prop :: getter",this.widgetClass(),a,i)}return e},wiziHandlerAddEvent:function(a){var f=a;if(typeof a=="object"&&a.type!=d)f=a.type;this._eventsHandles[f]==
d&&(this._eventsHandles[f]=0);this._eventsHandles[f]++;f!=h.onAddEventHandler&&f!=h.onRemoveEventHandler&&c(this).trigger(h.onAddEventHandler,f)},wiziHandlerRemoveEvent:function(a){var f=a;if(typeof a=="object"&&a.type!=d)f=a.type;this._eventsHandles[f]==d&&(this._eventsHandles[f]=1);this._eventsHandles[f]--;this._eventsHandles[f]<0&&(this._eventsHandles[f]=0);f!=h.onAddEventHandler&&f!=h.onRemoveEventHandler&&c(this).trigger(h.onRemoveEventHandler,f)},eventsHandles:function(){return this._eventsHandles},
draw:function(a){this.base().addClass("ac-widget-item");this.base().data("widget",this);this.initDomState();a!=d&&(this.parent()?(this._drawToContainer(a),this._updateLayout()):a.append(this._tableBase));this.initEditorLayer();var a=this.eventsHandles(),e;for(e in a)this.bindEvent(e);this._isDrawn=!0;f&&f()},_drawToContainer:function(a){a.append(this._tableBase);if(this._manualDrawPosition){var f=this,e=this.repeat(),g=function(){e.pos=="top"?a.prepend(f._tableBase):a.append(f._tableBase)};if(this.mode()==
WiziCore_Visualizer.EDITOR_MODE){var b=this.parent().children(),d=WiziCore_Helper.indexOf(b,this),i=d-1;e?g():d>0?b[i]&&b[i].repeat()?a.append(this._tableBase):this._tableBase.insertAfter(b[i]._tableBase):d==0&&a.prepend(this._tableBase)}else e?g():a.append(this._tableBase)}},drawInConsole:function(){this.draw.apply(this,arguments);this.onPageDrawn();this.parent()||WiziCore_Widget_Layout.Absolute.Static.processWidgetInConsole(this)},onPageDrawn:function(){var a=this;this.aspectResize&&this.aspectResize()&&
setTimeout(function(){a.relativeResize.call(a)},1)},getFixedContainer:function(){var a=null,f;if(this.fixed&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(f=this.page()||this.parent())&&f.pageContainer){var e=this.fixed();if(e=="top"||e=="bottom")a=f.pageContainer()[e+"Cont"];else if(e=="static_top"||e=="static_bottom")a=f.pageContainer()[e.replace(/static_/,"")+"Cont"]}return a},_checkBindEvent:function(a){var f=!0,e=this._bindingEvents;e[a]==d&&(e[a]=0);e[a]++;e[a]>1&&(f=!1);return f},bindEvent:function(a){if(this.mode()!=
WiziCore_Visualizer.EDITOR_MODE&&this._checkBindEvent(a)){var f=this.base();switch(a){case h.onDbClick:c(f).bind("dblclick",{self:this},this.onDbClick);break;case h.onMouseDown:c(f).bind("mousedown",{self:this},this.onMouseDown);break;case h.onMouseUp:c(f).bind("mouseup",{self:this},this.onMouseUp);break;case h.onMouseEnter:c(f).bind("mouseenter",{self:this},this.onMouseEnter);break;case h.onMouseLeave:c(f).bind("mouseleave",{self:this},this.onMouseLeave)}}},unbindEvent:function(a,f){this._bindingEvents[a]==
d&&(this._bindingEvents[a]=1);this._bindingEvents[a]--;this._bindingEvents[a]<0&&(this._bindingEvents[a]=0);if(!(this._bindingEvents[a]>0&&f!=!0)){f&&(this._bindingEvents[a]=0);var e=this.base();switch(a){case h.onDbClick:c(e).unbind("dblclick",this.onDbClick);break;case h.onMouseDown:c(e).unbind("mousedown",this.onMouseDown);break;case h.onMouseUp:c(e).unbind("mouseup",this.onMouseUp);break;case h.onMouseEnter:c(e).unbind("mouseenter",this.onMouseEnter);break;case h.onMouseLeave:c(e).unbind("mouseleave",
this.onMouseLeave)}}},onClick:function(a){var f=new c.Event(h.onClick);this.enable()!==!1&&this._isParentEnable()!==!1&&c(this).trigger(f,[a])},onDbClick:function(a){var f=a.data.self,e=new c.Event(h.onDbClick);f.enable()!==!1&&f._isParentEnable()!==!1&&c(f).trigger(e,[a])},onMouseDown:function(a){var f=a.data.self,e=new c.Event(h.onMouseDown);f.enable()!==!1&&f._isParentEnable()!==!1&&c(f).trigger(e,[a])},onMouseUp:function(a){var f=a.data.self,e=new c.Event(h.onMouseUp);f.enable()!==!1&&f._isParentEnable()!==
!1&&c(f).trigger(e,[a])},onMouseEnter:function(a){var f=a.data.self,e=new c.Event(h.onMouseEnter);f.enable()!==!1&&f._isParentEnable()!==!1&&c(f).trigger(e,[a])},onMouseLeave:function(a){var f=a.data.self,e=new c.Event(h.onMouseLeave);f.enable()!==!1&&f._isParentEnable()!==!1&&c(f).trigger(e,[a])},onDragStart:function(){var a=new c.Event(h.onDragStart);c(this).trigger(a)},onDragStop:function(){var a=new c.Event(h.onDragStop);c(this).trigger(a)},onResizeStop:function(){var a=new c.Event(h.onResizeStop);
c(this).trigger(a)},onResizeStart:function(){var a=new c.Event(h.onResizeStart);c(this).trigger(a)},onDataLoaded:function(a,f){var e=new c.Event(h.onDataLoaded);c(this).trigger(e,[a,f])},onDataReset:function(){typeof this.applyview=="function"&&this.applyview()&&this.reset();var a=new c.Event(h.onDataReset);c(this).trigger(a)},updateCursorByAction:function(a){var f=this.form().actions().system,e=this.id(),g=this,b=!1,i=function(){a==!0&&(g.base().css("cursor","pointer"),g.base().find("*").css("cursor",
"pointer"),b=!0);a==!1&&(g.base().css("cursor",""),g.base().find("*").css("cursor",""))},c;for(c in f){var h=f[c];if(e==h.objectid)switch(h.actions.action){case "WiziCore_Widget_Base.onClick":case "WiziCore_Widget_Base.onDbClick":case "WiziCore_Widget_Base.onMouseDown":case "WiziCore_Widget_Base.onMouseUp":case "AC.Widgets.Base.onClick":case "AC.Widgets.Base.onDbClick":case "AC.Widgets.Base.onMouseDown":case "AC.Widgets.Base.onMouseUp":i()}}(typeof this.action=="function"&&this.action()!="none"&&
b==!1||typeof this.pageJump=="function"&&this.pageJump()!="none"&&this.pageJump()!=d)&&i()},initDomState:function(){this._zindex(this.zindex());this._updateHourglassImage();this.customCssClasses(this.customCssClasses());this._boxSizing(this.boxSizing())},initDomStatePos:function(){},initEditorLayer:function(){if(this.mode()==WiziCore_Visualizer.EDITOR_MODE){var a=this;this.removeEditorLayer();var f=AC.Core.Widgets().getContainerType(this.widgetClass());if(!(f==h.CASE_TYPE_CONTAINER||f==h.CASE_TYPE_PAGE||
f==h.CASE_TYPE_COMPOSITE_CONTAINER)&&this._modeObject==null){var e=this.base(),g=c('<div style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;" class="wiziRo">\r\n    <div class="wiziRoEditModeRo" style="z-index: 100; background-color: transparent"></div>\r\n    <div class="wiziRoEditMode" style="z-index: 101"><span class="button" ></span></div>\r\n</div>');g.find(".wiziRoEditModeRo");e.resize(function(a){g.css({width:e.width(),height:e.height()});a.stopPropagation()});g.css({width:e.width(),
height:e.height(),left:"",top:""});f=g.find(".wiziRoEditMode");this.canEditWidgetInEditor()?(f.find("span").html(AC.Core.lang().trText("editor_emedit")),f.click(function(){a.editMode(!a._editMode);var f={};f.enableKeyManager=!a._editMode;c(a).trigger(h.onEditModeChange,[f]);a._enableDiv!=null&&a._setPosEnableDiv()})):f.hide();this._modeObject=g;e.prepend(g);e.css({"-moz-user-select":"none","-khtml-user-select":"none"}).attr("unselectable","on")}}},removeEditorLayer:function(){if(this._modeObject!=
null)this._modeObject.remove(),this._modeObject=null},editorLayer:function(){return this._modeObject},onSelManagerSelected:function(){},twirlyThing:function(a,f){this._twirlyThing(a,f)},_twirlyThing:function(a,f){var a=a==d?!1:a,f=!f||typeof f!="object"?{}:f,f=c.extend({},this.form().twirlyThingOptions(),f),e=this.widgetClass();if(e=="WiziCore_Api_Form"&&this._preloadTwirlyThing)this._preloadTwirlyThing=!1,a&&this._twirlyThing(!1);var g=this.base(),b=f.displayHourglassOver=f.displayHourglassOver?
f.displayHourglassOver:this.displayHourglassOver();if(e!="WiziCore_Api_Form"){if(b=="inherit"&&(b=this.form().displayHourglassOver()),b=="wholeapp")return f.displayHourglassOver=b,f.runFromPreview=this.form().runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE,this.form()._twirlyThing(a,f)}else if(e=!a?this.subTwirlyThingCounter():this.addTwirlyThingCounter(),!(e===0||e===1&&a))return;e=5E5+(5E5-parseInt(this.zindex(),10));e=isNaN(e)?15E6:e;b=this.htmlId();f.zIndex=e;f.uid=b;WiziCore_Helper.twirlyThing(g,
a,f)},loadMode:function(f,e,g,b,i,h){var b=b==d?this.findPropInParents("bgColor"):b,p={},q=this.base(),r=this.widgetClass(),h=h&&r!="WiziCore_Api_Form"?h:this.displayHourglassOver();h==="inherit"&&(h=this.form().displayHourglassOver());if(r!="WiziCore_Api_Form"){if(h==="wholeapp")return this.form().loadMode(f,e,g,b,i)}else{var t=!f?this.subTwirlyThingCounter():this.addTwirlyThingCounter();if(!(t===0||t===1&&f))return this._loadMode}if(f!=this._loadMode){this._loadMode=f;if((r=="WiziCore_Api_Page"||
r=="WiziCore_Api_Form")&&f==!0&&!c.browser.msie){var s=c(a),t=s.scrollLeft(),u=s.scrollTop(),v=s.width(),C=s.height(),w=q,s=0,x=w.offset().left,y=w.offset().top,D=w.width(),w=w.height();if(!(u<y&&C+u>w+y)){var z=Math.max(u,y),u=Math.min(u+C,y+w);u-z>30&&(s=(z+(u-z)/2-(y+w/2))*2);s>0?p["margin-top"]=s+"px":p["margin-bottom"]=-s+"px"}t<x&&v+t>D+x||(z=Math.max(t,x),u=Math.min(t+v,x+D),u-z>30&&(s=(z+(u-z)/2-(x+D/2))*2),s>0?p["margin-left"]=s+"px":p["margin-right"]=-s+"px")}t=this._hourglassImage;if(this._hourglassImage===
"Default"||r=="WiziCore_Api_Form")if((v=this.form().twirlyThingOptions())&&v!="Default")e=v.text,g=v.color,t=v.image,i=v.opacity,b=v.bgColor;q=r=="WiziCore_Api_Form"?this.mode()==WiziCore_Visualizer.RUN_MODE&&this.form().runtimeMode()!=WiziCore_UI_FormRuntime.PREVIEW_MODE?q.parent().parent():q.parent():q;WiziCore_Helper.loadMode(q,f,e,g,b,i,d,t,p,h=="widgetOnly"||r=="WiziCore_Api_Form")}return this._loadMode},findPropInParents:function(a){for(var f=d,e=this;;){var g=e.prop(a);if(g!==d&&g!==""&&g!==
null){f=g;break}else e=e.parent();if(e==d)break}return f},editMode:function(a){this._editMode=a},canEditWidgetInEditor:function(){return!1},mandatory:function(a){if(a!=d)this._project.mandatory=parseInt(a),this.sendExecutor({mandatory:this._project.mandatory});return this._project.mandatory},mandatoryHighlight:function(a){this._isDrawn&&a!=d&&(c.browser.msie?a==""?(a=this.prop("border"),a!=d?this._border(a):this._border("")):this._border("1px solid "+a.hColor):a===""?(a=typeof this.shadow=="function"?
this.shadow():d,a!=d?this._shadow(a):this._shadow("")):this._shadow(a.value))},_enableElement:function(a,f){f!=null&&(a===!1?(f.attr("disabled",!0),f.addClass("wa-disable-cursor")):(f.removeAttr("disabled"),f.removeClass("wa-disable-cursor")))},_enable:function(a,f){f=f!=d?f:this.base();this._enableElement(a,f)},_updateBackgroundImage:function(a){typeof a=="string"&&(a=null);var f=this.backgroundImage(),e=this.backgroundRepeat();(a||this.tableBase()).css(this._backgroundImageProps(f,e))},_addCustomClass:function(a){a&&
a!=""&&this.base().addClass(a)},_beforeAddCustomClass:function(a){var f=this.customCssClasses();f&&this.base().removeClass(f);return a},_backgroundImageProps:function(a,f){f=f==d||f==""?"no-repeat":f;return a&&a!=""&&a!="no-image"?{"background-image":"url("+a+")","background-repeat":f,"background-position":"0 0"}:{"background-image":"","background-repeat":"","background-position":""}},_updateHourglassImage:function(){var a=this.hourglassImage();this._hourglassImage=a?a:null},showEnableDiv:function(a){if(this._enableDiv==
null){var f=c('<div class="disable-div-ui">').css({position:"absolute",width:"100%",height:"100%",opacity:"0.4","background-color":"#fff",cursor:"default"}).bind("click",function(){return!1}).hide();this._enableDiv=f;this.base().append(f)}this._setPosEnableDiv();a===!1?this._enableDiv.show():this._enableDiv.hide()},_setPosEnableDiv:function(f){var e=0,g=this,b=function(f){++e;if(g._project)if(g.base().is(":visible")==0)e<2E3&&a.setTimeout(b,50);else if(g._enableDiv!=d)if(g._enableDiv.height(g.base().height()).width(g.base().width()),
g.base().css("position")=="static"||f!==d){var f=g.base().parent().offset(),i=g.base().offset();g._enableDiv.css({top:i.top-f.top+"px",left:i.left-f.left+"px"})}else g._enableDiv.css({top:"0px",left:"0px"})};b(f)},_zindex:function(a,f){f=f!=d?f:this.tableBase();f.css("z-index",a)},_visible:function(a){a===!1?this.mode()==WiziCore_Visualizer.EDITOR_MODE?(a=c("<div class='wiziInvis'>"),this.base().prepend(a),this.tableBase().css("opacity",0.7)):this.tableBase().hide():(this.mode()==WiziCore_Visualizer.EDITOR_MODE&&
this.base().find(".wiziInvis").remove(),typeof this.opacity=="function"&&this._opacity(this.opacity()),this.tableBase().show())},onParentVisibleChanged:function(){},_tabindex:function(a,f){var f=f!=d?f:this.base(),e=typeof this.tabStop=="function"?this.tabStop():!0;this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&e?f.attr("tabIndex",a):f.attr("tabIndex",-1)},_tabStop:function(a,f){f=f!=d?f:this.base();this._tabindex(this.tabindex(),f)},_setElementReadOnly:function(a,f){f!=null&&(a===!0?f.prop("readonly",
!0):f.prop("readonly",!1))},_readonly:function(a,f){f=f!=d?f:this.base();this._setElementReadOnly(a,f)},_opacity:function(a){a==1&&(a="");this.visible()==!0&&this.tableBase().css("opacity",a)},_setElementBg:function(a,f){f!=null&&(a=="transparent"&&(a="transparent"),f.css("background-color",a))},_bg:function(a,f){f=f!=d?f:this.tableBase();this._setElementBg(a,f)},_fontColor:function(a,f){f=f!=d?f:this.base();f.css("color",a);typeof this._updateLink=="function"&&this.link&&this._updateLink(this.link())},
cssClassUpdate:function(a,f,e){var g="style-"+f,b=a.data(g);a.removeClass(f+b);a.data(g,e);a.addClass(f+e)},_paragraphSpacing:function(a){a&&(a=parseInt(a,10),this.cssClassUpdate(this.base(),"paragraph-spacing-",a))},_hrefColor:function(a){this.base().find("a").css("color",a)},_font:function(a,f){f=f!=d?f:this.base();try{var e={font:a};a==""&&(e={"font-style":"","font-variant":"","font-weight":"","font-size":"","line-height":"","font-family":""});f.css(e)}catch(g){acDebugger.systemLog1("font set error",
g)}},_shadow:function(a,f){(f||this.base()).css({"box-shadow":a,"-moz-box-shadow":a,"-webkit-box-shadow":a,"-khtml-box-shadow":a,"-icab-box-shadow":a,"-o-box-shadow":a})},_setElementBorder:function(a,f){f!=null&&f.css("border",a)},_setBoxSizing:function(a,f){a=a==d||a==""?"border-box":a;f.css({"-ms-box-sizing":a,"-webkit-box-sizing":a,"-moz-box-sizing":a,"box-sizing":a})},_boxSizing:function(a,f){this._setBoxSizing(a,f||this._tableBase)},_border:function(a,f){f=f!=d?f:this._tableBase;this._setElementBorder(a,
f)},_setElementBorderRadius:function(a,f){f!=null&&f.css({"-moz-border-radius":a,"-webkit-border-radius":a,"border-radius":a})},_borderRadius:function(a,f){f=f!=d?f:this.tableBase();this._setElementBorderRadius(a,f)},_textAlign:function(a,f){f=f!=d?f:this.base();a=typeof a=="object"&&a.value!=d?a.value:a;f.css("text-align",a)},_filterBefore:function(a){a&&typeof a!="object"&&!c.isArray(a)&&(a=[a]);return a},_getTranslatedValue:function(a){return a},translateText:function(a){return a},getTrValueAddLngAttr:function(a){return a},
_afterName:function(a){var f=this.form();if(f){var e=f.stringTable()?WiziCore_Helper.clone(f.stringTable()):null,g=this.id();if(c.isArray(e)&&e[1]&&e[1][g]!=d)e[1][g].name=a,f._project.stringTable=e}},normalProperyTemplate:function(a,f,e,g,b){b!==d&&(typeof f=="function"&&(b=f.apply(a,[b])),a._project[g]=b,f={},f[g]=a._project[g],a.sendExecutor(f),typeof e=="function"&&e.apply(a,[b]));return a._project[g]},normalProperty:function(a,f){var e=this,g=function(g){return e.normalProperyTemplate(e,d,f,
a,g)};g.applyAfter=f;return g},normalPropBeforeSet:function(a,f,e){var g=this,b=function(b){return g.normalProperyTemplate(g,f,e,a,b)};b.applyAfter=e;return b},htmlProperyTemplate:function(a,f,e,g,b,i,c){b!==d&&(typeof f=="function"&&(b=f.apply(a,[b])),a._project[g]=b,f={},f[g]=a._project[g],a.sendExecutor(f),a._isDrawn&&typeof e=="function"&&(f=i?a.getStylePropValue(a.widgetClass(),g,a._project[g]):a._project[g],e.apply(a,[f])));e=i?a.getStylePropValue(a.widgetClass(),g,a._project[g]):a._project[g];
a._isDrawn&&typeof c=="function"&&(a=c.apply(a,[e]),a!=d&&(e=a));return e},htmlLngPropertyTemplate:function(a,f,e,g,b,i,c){b!==d&&(typeof f=="function"&&(b=f.apply(a,[b])),a._project[g]=b,f={},f[g]=a._project[g],a.sendExecutor(f),a._isDrawn&&typeof e=="function"&&(f=i?a.getStylePropValue(a.widgetClass(),g,a._project[g]):a._project[g],e.apply(a,[f])));e=!i?this._getTranslatedValue(a._project[g]):"";g=i?a.getStylePropValue(a.widgetClass(),g,a._project[g]):e;typeof c=="function"&&(a=c.apply(a,[g]),a!=
d&&(g=a));return g},htmlCssProperyTemplate:function(a,f,e,g,b,i,c){b!==d&&(typeof f=="function"&&(b=f.apply(a,[b])),a._project[g]=b,f={},f[g]=a._project[g],a.sendExecutor(f),i&&typeof e=="function"&&(f=i?a.getStylePropValue(a.widgetClass(),g,a._project[g]):a._project[g],e.apply(a,[f])));e=i?a.getStylePropValue(a.widgetClass(),g,a._project[g]):a._project[g];i&&typeof c=="function"&&(a=c.apply(a,[e]),a!=d&&(e=a));return e},htmlProperty:function(a,f){var e=this,g=function(g){return e.htmlProperyTemplate(e,
d,f,a,g,!1)};g.applyAfter=f;return g},htmlPropertyBeforeSet:function(a,f,e){var g=this,b=function(b){return g.htmlProperyTemplate(g,f,e,a,b,!1)};b.applyAfter=e;return b},htmlLngPropertyBeforeSet:function(a,f,e){var g=this,b=function(b){return g.htmlLngPropertyTemplate(g,f,e,a,b,!1)};b.applyAfter=e;return b},htmlCssPropertyBeforeSet:function(a,f,e){var g=this,b=function(b){return g.htmlCssProperyTemplate(g,f,e,a,b,!0)};b.applyAfter=e;return b},htmlPropertyAfterGet:function(a,f,e){var g=this,b=function(b){return g.htmlProperyTemplate(g,
d,f,a,b,!1,e)};b.applyAfter=funcAfter;return b},htmlPropertyBeforeSetAfterGet:function(a,f,e,g){var b=this,d=function(d){return b.htmlProperyTemplate(b,f,e,a,d,!1,g)};d.applyAfter=e;return d},themePropertyBeforeSet:function(a,f,e){var g=this,b=function(b){return g.htmlProperyTemplate(g,f,e,a,b,!0)};b.applyAfter=e;return b},themeProperty:function(a,f){var e=this,g=function(g){return e.htmlProperyTemplate(e,d,f,a,g,!0)};g.applyAfter=f;return g},object:function(){return this},getStylePropValue:function(a,
f,e){var g=e;if((e==d||e==="")&&this.context!=d&&typeof this.context=="function")if(e=this._project.widgetStyle,this.context().formThemeManager!=d&&e!=d){this.context().formThemeManager();var b=this.form().themeContent(),g=h._WIZI_USE_STYLE_CONSTANT,i=b[a];if(i==d)i=b.WiziCore_Api_Page,this.page!=d&&this.page()!==null&&this.page().prop!=d&&(e=this.page().prop("widgetStyle"));if(i!=d){i=b[a];if(i!=d&&i[e]!=d)var c=i[e];c!=d&&c[f]!=d&&(g=c[f]);if(g!==h._WIZI_USE_STYLE_CONSTANT&&(f=="font"||f=="fontColor")&&
a!="WiziCore_Api_Page")if(a=b.WiziCore_Api_Page,a!=d&&this.page!=d&&this.page()!==d&&this.page()!==null&&this.page().prop!=d&&(e=this.page().prop("widgetStyle"),g===""&&(g=this.page().prop(f)),a[e]!=d&&(a=a[e],(a[f]!==d||a[f]!=="")&&g==="")))g=a[f];if(g==d||g=="")i!=d&&i[e]!=d&&(c=i[e]),c!=d&&c[f]!=d&&(g=c[f])}if(g===h._WIZI_USE_STYLE_CONSTANT||g=="")c=this.getEmptyProps(),c!=d&&c[f]!=d&&(g=c[f]);g===h._WIZI_USE_STYLE_CONSTANT&&(g="")}return g},getPercentValue:function(a,f){var e=parseInt(a)*100/
parseInt(f);e<0&&(e=0);e+="%";return e},top:function(a){if(a!=d)this._project.y=parseInt(a),this._isDrawn&&this._updateLayout();return this._project.y},left:function(a){if(a!=d)this._project.x=parseInt(a),this._isDrawn&&this._updateLayout();return this._project.x},enableEx:function(){return this._project.enable},_updateLink:function(a){if(typeof a=="object"&&a&&this._link){var f="javascript:void(0)";if(a.title&&a.type){var e=a.type,g=a.title;switch(e){case "none":f="javascript:void(0)";break;case "url":f=
g||"javascript:void(0)";break;case "sms":g=g.replace(/[-() ]/g,"");a.body&&WiziCore_Helper.canUseSmsBody()&&(g+="?body="+encodeURIComponent(a.body));f=e+":"+g;break;case "mailto":a.body&&(g+="?body="+encodeURIComponent(a.body));a.subject&&(g+=g.indexOf("?")!=-1?"&":"?",g+="subject="+encodeURIComponent(a.subject));f=e+":"+g;break;case "tel":g=g.replace(/[-() ]/g,""),f=e+":"+g}}else f="javascript:void(0)";if(a.type=="url"&&(a.body==d||a.body!="same_window")&&WiziCore_Helper.isNative()&&WiziCore_Helper.isAndroid())this._link.attr("href",
"javascript:void(0)"),this._input&&this._input.attr("href","javascript:void(0)"),this._link.unbind("vclick.link").bind("vclick.link",function(){navigator.app.loadUrl(f,{openExternal:!0})});else if(this._link.attr("href",f),this._input&&this._input.attr("href",f),a.body&&a.body!="same_window"||a.type=="url"&&a.body==d)this._link.attr("target","_blank"),this._input&&this._input.attr("target","_blank")}},_updateEnable:function(){this.parent()?this.parent()._setWidgetEnableByChild(this):this._enable(this.enableEx());
this._dragAndDrop(this.enableEx()!==!1?this.dragAndDrop():!1);this._resizing(this.enableEx()!==!1?this.resizing():!1)},readonlyEx:function(){return this._project.readonly},_updateReadonly:function(){this.parent()?this.parent()._setWidgetReadonlyByChild(this):this._readonly(this.readonlyEx())},_isParentEnable:function(){var a=this.enableEx(),a=a==d?!0:a;this.traverseParent(function(f){f.parent()&&f.parent().enableEx()===!1&&(a=!1)});return a},_isParentReadonly:function(){var a=this.readonlyEx(),a=
a==d?!1:a;this.traverseParent(function(f){f.parent()&&f.parent().readonlyEx()===!0&&(a=!0)});return a},_onWidgetMoved:function(a){a=="relative"&&this._setPosEnableDiv(a)},layoutEx:function(){return this.layout()},_updateLayout:function(){this.parent()&&this.parent()._setWidgetPosition(this);this.onContainerChangeLayout();this._dragAndDrop(this.dragAndDrop());this._resizing(this.resizing())},updateLayoutSizes:function(a){if(a!==d){var f={},e;for(e in a)this._project[e]=a[e],f[e]=a[e];this.sendExecutor(f);
this._updateLayout()}},getLayoutSizes:function(){var a=this.getAvailableMethods(),f={};a.height&&(f.height=this.height());a.width&&(f.width=this.width());a.pWidth&&(f.pWidth=this.pWidth());a.minWidth&&(f.minWidth=this.minWidth());a.maxWidth&&(f.maxWidth=this.maxWidth());a.maxHeight&&(f.maxHeight=this.maxHeight());return f},onContainerChangeLayout:function(){},getContainerLayoutType:function(a){var f=a==d?WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute:a;a==d&&this.parent()!=d&&(a=this.parent().layoutEx(),
f=a==d?WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute:a);return f},getNewWidgetSize:function(){var a=this.base(),f=WiziCore_Helper.getBoxSizing(a)=="content-box",e=f?a.width():a.outerWidth(),a=f?a.height():a.outerHeight();return{width:e,height:a}},getUidWidgetFromObjectChooser:function(a){var f=a;if(typeof a=="object"&&a!=null&&a.uid!=d)f=a.uid;return f},onResize:function(){},_dragAndDrop:function(a){this.mode()==WiziCore_Visualizer.EDITOR_MODE||a==d||this.widgetClass()=="WiziCore_Widget_DndFake"||
this.enableEx()===!1||!this._isParentEnable()||(a=this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?a:!1,a===!0?this.initLiveLayer("dnd"):a===!1&&this._liveDndLayer&&(this.removeLiveLayer(),this.tableBase().unbind(".dndw")))},_resizing:function(a){if(!(a==d||this.mode()==WiziCore_Visualizer.EDITOR_MODE||this.enableEx()===!1||!this._isParentEnable()))if(a=this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?a:!1,a===!0||typeof a=="object"&&a!=d&&a.type!=
"disable")this.initLiveLayer("resize",a);else if(a===!1||a.type=="disable")this.dragAndDrop()!==!0&&this.outlineWidget("live-select-",!1),this.base().children(".ui-resizable-handle").remove(),this.tableBase().unbind(".resizew").children().unbind(".resizew")},initLiveLayer:function(a,f){var e=this;if(!this._liveDndLayer&&a=="dnd"){var g=c('<div style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;">');g.css("z-index","20");this._liveDndLayer=g}this.outlineWidget("live-select-",
"black");if(a=="dnd"){var d=AC.WidgetExt.DndManager;this.tableBase().unbind(".dndw").bind("touchstart.dndw mousedown.dndw",function(a){e.form().initLiveSelectingWidget(e,"dnd");d.setWidget(e,a);d.getActiveWidget()&&(a.preventDefault(),a.stopPropagation());e._clickedDND=!0;e.onDragStart()}).bind("touchmove.dndw mousemove.dndw",function(){if(e._clickedDND&&!e._dndLayerAppended)e.base().prepend(e._liveDndLayer),e._dndLayerAppended=!0}).bind("touchend.dndw mouseup.dndw",function(a){var f=e.form().getLiveSelectingWidget();
f&&f.type&&f.type=="dnd"&&f.w.id()==e.id()&&(d.dropWidget(e),a.stopPropagation(),a.preventDefault(),e.onDragStop());e._dndLayerAppended=!1;e._clickedDND=!1;e._liveDndLayer.detach()})}if(a=="resize"){var g=this.base(),i=g.children(".live-select-outline");i.unbind("mousedown.resizew");i.filter(".selectBorderLeft, .selectBorderRight").css("cursor","w-resize");i.filter(".selectBorderTop, .selectBorderBottom").css("cursor","n-resize");var h=g.children(".ui-resizable-handle"),q=f==!0?"rightBottom":f.type;
q=="rightBottom"?(i.filter(".selectBorderLeft, .selectBorderTop").css("cursor","default"),i=i.filter(".selectBorderRight, .selectBorderBottom")):q=="leftTop"&&(i.filter(".selectBorderRight, .selectBorderBottom").css("cursor","default"),i=i.filter(".selectBorderLeft, .selectBorderTop"));q!="leftTop"?(h=h.length==0?c("<div class='ui-resizable-handle ui-resizable-se ui-icon ui-icon-gripsmall-diagonal-se' style='z-index: 1000;'>"):h,g.append(h)):h.remove();var r=function(a,g){e.form().initLiveSelectingWidget(e,
"resize");WiziCore_Widget_Resize_Manager.setWidget(e,c(g),a,f);a.stopPropagation();a.preventDefault();e.onResizeStart()};h.unbind("mousedown.resizew").bind("mousedown.resizew",function(a){r(a,this)});i.bind("mousedown.resizew",function(a){r(a,this)});g=this.htmlId();c(b).unbind("mouseup."+g+".resizew").bind("mouseup."+g+".resizew",function(a){var f=e.form().getLiveSelectingWidget();f&&f.type&&f.type=="resize"&&f.w&&f.w.id()==e.id()&&(i.css("cursor",""),WiziCore_Widget_Resize_Manager.dropWidget(e),
a.stopPropagation(),a.preventDefault(),e.onResizeStop(),e.form().initLiveSelectingWidget(null,"resize"))})}},removeLiveLayer:function(){if(this.resizing()!==!0&&this.dragAndDrop()!==!0&&(this.outlineWidget("live-select-",!1),this._liveDndLayer))this._liveDndLayer.remove(),this._liveDndLayer=d},children:function(){return[]},findName:function(a,f){if(!a)return acDebugger.assert(a,a),null;f||(f=!0,a=a.toUpperCase());if(this.name&&this.name().toUpperCase()==a&&this.widgetClass()!=="WiziCore_Api_Form")return this;
else{var e=this.children(),g;for(g in e){var b=e[g];if(b!=d&&typeof b.findName=="function"&&(b=b.findName(a,f),b!=null))return b}}return null},w:function(){var a=this.findName.apply(this,arguments);if(a==null)throw WiziCore_Helper.getExceptionsString("widget",arguments[0]);return a},fullNamePath:function(){return this.fullPath(this,"")},fullPath:function(a,f){var e=typeof a.name=="function"?a.name():"",g=typeof a.parent=="function"?a.parent():null;f!=""&&(f="."+f);f=e+f;g!=null&&g.id()!=this.form().id()&&
(f=this.fullPath(g,f));return f},repeat:function(a){var f=this._project.repeat;if(a!=d){if(a&&this.parent().widgetClass()!="WiziCore_Api_Page")return WiziCore_Helper.showWarning(AC.Core.lang().tr("proptype_repeat_title"),AC.Core.lang().tr("proptype_repeat_warning_top_page")),f;var f=a,e=!this._project.repeat,g=this._project.repeat&&a&&this._project.repeat.pos!=a.pos;this._project.repeat=a;this.sendExecutor({repeat:a});var b=this.form();b!=null&&(a===!1?b.deleteRepeat(this):b.addRepeat(this,a,g,e))}return f},
themeParams:function(){try{var a=null;this!=d&&typeof this.form=="function"&&this.form()!=null&&this.form().widgetClass()=="WiziCore_Api_Form"&&typeof this.context=="function"&&typeof this.context().formThemeManager=="function"&&(a=this.context().formThemeManager().theme());a==null&&(a=WiziCore_ManagerContext.getInstance().appThemeManager.theme())}catch(f){acDebugger.systemLog1("baseWidgetClass:theme",f)}return a},checkStyleProp:function(a,f){var e=!1,g=this._project[a],e=g===""||g==d;f!==""&&(e=
e&&g!==f);return e},widgetStyle:function(a){if(a!=d)a=typeof a=="object"?a.value:a,this._project.widgetStyle=a,this.sendExecutor({widgetStyle:a}),this.setStyleProps();return this._project.widgetStyle},setStyleProps:function(){var a=this.widgetStyle();if(this.context!=d&&typeof this.context=="function"&&a!=null&&(a=typeof a=="object"?a.value:a,a!=d&&this.context().formThemeManager!=d)){var f=this.widgetClass(),e=this.form().themeContent()[f];if(e!=d&&e[a]!=d)for(var a=this.getAvailableMethods(),e=
this.getAvailableStyleProps(),g=0,b=e.length;g<b;g++){var i=e[g],c=i.toLowerCase(),h="";a[c].setter!=d&&(h=a[c].setter.replace("this.",""));a[c].set!=d&&(h=a[c].set);if(this.checkStyleProp(i," "))if(typeof this[h]=="function")this[h]("");else acDebugger.systemLog("-no methods for current widget",f,i)}}},getAvailableStyleProps:function(a){var a=a==d?this.widgetClass():a,a=AC.Core.Widgets().getAvailableWidgetProperties(a),f=[],e;for(e in a)if(a[e].props!=d){var g=a[e].props,b;for(b in g){var i=g[b];
i.name!="widgetStyle"&&(a[e].name==h._STYLE_GROUP||i.inTheme==!0)&&f.push(i.name)}}return f},getStyleValueByPropName:function(a,f){var e=d,g=null,g=this.widgetStyle();if(this.context!=d&&typeof this.context=="function"&&g!=null){if(typeof g=="object")g=g.value;if(g!=d&&this.context().formThemeManager!=d)if(this.context().formThemeManager(),f==d||f==!1){var b=this.widgetClass(),i=this.form().themeContent(),c=i[b],h=this.getEmptyProps();if(c==d)return e;i=i[b][g];if(i==d)return e;i[a]!=d&&(i[a]===""?
h[a]!=d&&(e=h[a]):e=i[a])}else if(h=this.page(),g=h.prop("widgetStyle"),b=h.prop("widgetClass"),i[b]!=d&&i[b][g]!=d)if(c=h.prop(a),c==""||c==null){if(i=i[b][g],i[a]!=d)if(i[a]===""){if(i=h.getEmptyProps(),i[a]!=d)return i[a]}else e=i[a]}else return c}return e},clientUrl:function(){return this.context().config().clientApi()},traverseParent:function(a,f){var e=a(this,f);this.parent()&&!e&&this.parent().traverseParent(a,this)},traverseChildren:function(a){return a(this)?!0:!1},_getDesignerRightMenuSub:function(){},
copyJson:function(){if(this.mode()==WiziCore_Visualizer.EDITOR_MODE){var a=JSON.stringify(this.project()),f=c('<div>\n    <textarea id="waCopyDataTextArea" class="text" cols="0" rows="0" style="width: 808px; height: 96%"></textarea>\n</div>');c(b.body).append(f);var e=AC.Core.lang().trText("designer_menu_copyjsondlg_title"),g={},i=AC.Core.lang().trText("dialog_button_close");g[i]=function(){f.dialog("close")};f.find("#waCopyDataTextArea").text(a);a=jQuery.extend({modal:!0,height:400,width:830,title:e,
resizable:!1,buttons:g,close:function(){},dialogClass:"wa-system-dialog wa-system-style"},{});f.dialog(a)}},_getDesignerRightMenu:function(){var a=this,f=this.id(),e="",g,b=[];this.traverseParent(function(a,i){if(a.id()!=f)g={title:e+" "+a.name(),userData:{exclude:null,include:"all"},func:function(){a.base().mousedown()}},g.nodes=a._getDesignerRightMenuSub(i),b.push(g),e+="."});b.length>0&&b.push({separator:!0});var i={title:AC.Core.lang().trText("designer_menu_copyjson"),userData:{exclude:"WiziCore_Api_Page,WiziCore_Api_Form",
include:"all"},func:function(){a.copyJson()}};b.push(i,{separator:!0});this.getAvailableMethods().sizes&&(i={title:AC.Core.lang().trText("widget_set_sizes"),userData:{exclude:"WiziCore_Api_Page,WiziCore_Api_Form",include:"all"},nodes:[{title:AC.Core.lang().trText("widget_set_min_sizes"),userData:{exclude:null,include:"all",updateSize:{minWidth:"width"}}},{title:AC.Core.lang().trText("widget_set_max_sizes"),userData:{exclude:null,include:"all",updateSize:{maxWidth:"width",maxHeight:"height"}}},{title:AC.Core.lang().trText("widget_drop_min_sizes"),
userData:{exclude:null,include:"all",updateSize:{minWidth:""}}},{title:AC.Core.lang().trText("widget_drop_max_sizes"),userData:{exclude:null,include:"all",updateSize:{maxWidth:"",maxHeight:""}}}]},b.push(i,{separator:!0}));return b},value:function(a,f){var e=this.prop(this._valName,a);a!==d&&f!==!1&&c(this).trigger(h.onChangeBaseValue,[a]);return e},valueFromWidget:function(a){return this.value(a,!1)},setDefaultData:function(a){if(a!=null&&typeof a=="object"){var f={};c.extend(!0,f,{value:a});this._defaultData=
f.value}else this._defaultData=a},getDefaultData:function(){return this._defaultData},setDefaultValue:function(a){if(a!=null&&typeof a=="object"){var f={};c.extend(!0,f,{value:a});this._defaultValue=f.value}else this._defaultValue=a},getDefaultValue:function(){var a=this._defaultValue,f=null;a!=null&&typeof a=="object"?(f={},c.extend(!0,f,{value:a}),f=f.value):f=a;return f},resetValue:function(){this.value(this.getDefaultValue())},_simpleConstDataSchema:function(a,f){if(!this.isIncludedInSchema())return d;
var e={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:a};typeof this.mandatory=="function"&&this.mandatory()&&(e.mandatory=!0);typeof this.isUnique=="function"&&(e.unique=this.isUnique());return f[this.id()]=e},_simpleDataSchema:function(a){return this._simpleConstDataSchema(this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,a)},_simpleDataObjectValue:function(a,f,e){if(!f&&!this.isIncludedInSchema())return d;f=this.value();typeof e=="function"&&(f=e(f));f!==d&&(a[this.id()]=
f);return!0},_getValueFromDataObject:function(a){return typeof a=="object"&&a!=null?a[this.id()]:null},_setDataObjectValueSimple:function(a,f,e){if(e||this.isIncludedInSchema())a=this._getValueFromDataObject(a),a===null?this.resetValue():a!==d&&(typeof f=="function"&&(a=f(a)),this.value(a))},collectDataSchema:function(a){typeof this.isIncludedInSchema=="function"&&typeof this.dataType=="function"&&this._simpleDataSchema(a)},appendValueToDataObject:function(a,f,e){return typeof this.isIncludedInSchema==
"function"||e?this._simpleDataObjectValue(a,e):d},setValueFromDataObject:function(a,f){(typeof this.isIncludedInSchema=="function"||f)&&this._setDataObjectValueSimple(a,d,f)},getData:function(){return this[this._dataPropName]?this[this._dataPropName]():d},_redrawElements:function(){c.inArray(this.widgetClass(),"WiziCore_UI_GridWidget,WiziCore_UI_RepeatContainerWidget,RepeatContainer,WiziCore_UI_ListBoxWidget,WiziCore_UI_ComboBoxWidget,WiziCore_UI_PopupDropdownMobileWidget,WiziCore_UI_SingleSelectMobileWidget,WiziCore_UI_PopupListboxMobileWidget,WiziCore_UI_ListMobileWidget,WiziCore_UI_CheckBoxGroupMobileWidget,WiziCore_UI_ExpandedRadioMobileWidget".split(","))!=
-1&&typeof this._data=="function"&&this._data(this.data())},setData:function(a,f){this._isManual=!!f;this.usePaging&&this.usePaging(!!f);var e=this[this._dataPropName]?this[this._dataPropName](a):d;this.callOnDataLoaded(!1,a);return e},callOnDataLoaded:function(a,f){this._canCallOnDataLoaded&&this.onDataLoaded&&this.onDataLoaded(a,f)},empty:function(){this.reset();this.setData(null)},reset:function(a,f){f&&this.setData(this.getDefaultData());a?this.value(this.getDefaultValue()):this.value(null)},
_collectCRUDChanges:function(){var a=/^{((\w| |-)*\.)+((\w| |-)*)}$/,f=this.fields(),e={},g=this.keyFields(),b=[],i;for(i in g)b.push(i);var c=!1;if(f!=d){g=0;for(i=f.length;g<i;++g){var h=f[g],r=h.value.match(a);r&&r.length==5&&(r=r[3],h=this._findField(h.name),h!=d&&(e[r]=h,c=!0))}}a={};f={};i=[];if(c){g=this._getRowsCount();for(r=0;r<g;++r){var t=this._getRowAppChange(r,e),s=new WiziApp_ForeignAppChange;if(t.key==d)s.action="create";else{s.action="update";var u=t.key;s.key=u;for(var v=[],c=0,h=
b.length;c<h;++c)v.push(u[b[c]]);WiziCore_ComplexKeyMap.add(f,v,!0)}s.tempKey=WiziCore_Helper.generateUniqueId();a[s.tempKey]=r;s.data=t.data;i.push(s)}}e=this._getDataKeys();r=[];if(e!=null){t=e.length;for(g=0;g<t;++g){u=[];s={};c=0;for(h=b.length;c<h;++c){var v=b[c],C=e.data[v][g];u.push(C);s[v]=C}if(WiziCore_ComplexKeyMap.get(f,u)==d)c=new WiziApp_ForeignAppChange,c.action="delete",c.key=s,c.data=null,r.push(c)}}r=r.concat(i);return{appChanges:r,localIds:a}},_processForeignInstanceStatuses:function(a,
f,e,g,b,i){var d=!0,h=!1,r;for(r in b){var t=b[r],s;for(s in t){var u=t[s];r==a&&s==f?e.status!=WiziCore_Api_InstanceStatusRequester.Status.PENDING&&e.status!=WiziCore_Api_InstanceStatusRequester.Status.PROCESSING?(e.status==WiziCore_Api_InstanceStatusRequester.Status.ERROR&&(h=!0),u.checked=!0,u.error=e.error,u.status=e.status):d=!1:(u.checked||(d=!1),u.error&&(h=!0))}}d&&(a=this._getForeignStatusEventId(i),f=this.context().instanceStatusRequester(),c(f).unbind(a),typeof g=="function"&&(a=null,h&&
(a=wiziCoreErrorObject("FOREIGN_INSTANCE_STATUS_ERROR")),g(a,b)))},_checkStatusesOfForeignInstances:function(a,f){var e=[],g=!1,b={},i=function(a,f){a in b||(b[a]={});b[a][f]={checked:!1,error:null};e.push({id:a,version:f})},d=function(a){if(a.error==null){i(a.id,a.version);var f=a.linkInstanceId,a=a.linkVersions;if(f!=null&&a!=null&&"length"in a)for(var e=0,g=a.length;e<g;++e)i(f,a[e])}},h;for(h in a.created)g=!0,d(a.created[h]);for(var r in a.updated)g=!0,d(a.updated[r]);h=0;for(r=a.deleted.length;h<
r;++h)g=!0,d(a.deleted[h]);if(g){var g=this.context().instanceStatusRequester(),t=this,s=WiziCore_Helper.generateUniqueId(36),d=this._getForeignStatusEventId(s);c(g).bind(d,function(a,e,g,i){t._processForeignInstanceStatuses(e,g,i,f,b,s)});g.addInstances(e)}},_getForeignStatusEventId:function(a){var f=[WiziCore_Api_InstanceStatusRequester.onInstanceStatusChanged,this.id()];a!=d&&f.push("crud#"+a);return f.join(".")},_syncViewData:function(a,f){var e=this.view(),e=this.form().view(e);e.crudCompatible==
WiziCore_Api_ClientView.CRUD.RDB?this._syncForeignAppData(a,f):e.crudCompatible==WiziCore_Api_ClientView.CRUD.DB&&this._syncDbData(a)},_syncDbData:function(a){var f=this;this._syncCRUDData(function(e,g){var b=!0;typeof a=="function"&&(b=a(e,g)!==!1);b&&f.reloadDataIntegrationData()})},_syncForeignAppData:function(a,f){var e=this;this._syncCRUDData(function(g,b){var i=!0;typeof a=="function"&&(i=a(g,b)!==!1);var d=function(){typeof f=="function"&&f.apply(null,arguments)===!1&&(i=!1);i&&e.reloadDataIntegrationData()};
b!=null&&e._checkStatusesOfForeignInstances(b,d);e.form().offlineMode()&&d(null)})},_syncCRUDData:function(a){var f=this.foreignAppWriting(),e=this.view();if(f&&e!=d){var g=this.form(),f=g.id(),b=this._collectCRUDChanges(),i=b.appChanges,c=b.localIds;if(!i||i.length==0)WiziCore_Helper.callCallback(a,[null,null]);else{var b=this.context().formInstances(),h=null,g=g.currentFormInstanceInfo();g!=null&&(h=g.id());this.form().offlineMode()?this._changeAppDataOffline(f,e,i,this.id(),h,a):b.changeAppData(f,
e,i,this.id(),h,function(f,e){if(typeof a=="function"){var g=null;if(f==null){var g={created:{},updated:{},deleted:e.deleted},b;for(b in e.created)b in c&&(g.created[c[b]]=e.created[b]);for(b in e.updated)b in c&&(g.updated[c[b]]=e.updated[b])}a(f,g)}})}}else e={message:AC.Core.lang().trText(f!=!0?"foreignapp_disabled":"foreignapp_noview")},WiziCore_Helper.callCallback(a,[e,null])},_changeAppDataOffline:function(a,f,e,g,b,i){a={operation:"CRUD",localAppId:a,viewId:f,appChanges:e,widgetId:g,localInstanceId:b};
this.form().saveInstanceToLocalDb(a,function(a){typeof i=="function"&&i(a,null)})},getDataFromMap:function(a,f){var e="",g=f.value;g!=d&&(e=h.getDataItemWithMap(a[0],g));return e},isBindableToData:function(){return!1},rdbValue:function(a){return this.value(a)},processPropertyChanged:function(a,f,e){if(a.length>0){var a=new c.Event(h.onPropertyChanged),g={id:this.id(),widgetClass:this.widgetClass()};c(b).trigger(a,[f,e,g])}return e},outlineWidget:function(a,f,e){var e=e?e:1,g=this.base();g.children("."+
a+"outline").remove();f&&this.appendOutlineDivs(g,a,e,f)},appendOutlineDivs:function(a,f,e,g){a.children("."+f+"outline").remove();a.append("<div class='selectBorderLeft "+f+"outline' style='border-width:"+e+"px; border-color: "+g+";'>","<div class='selectBorderRight "+f+"outline' style='border-width:"+e+"px; border-color: "+g+";'>","<div class='selectBorderTop "+f+"outline' style='border-width:"+e+"px; border-color: "+g+";'>","<div class='selectBorderBottom "+f+"outline' style='border-width:"+e+
"px; border-color: "+g+";'>")},selectInlineProp:function(){},checkResize:function(){if(this.mode()==WiziCore_Visualizer.RUN_MODE&&this.aspectResize)if(this.aspectResize()&&!this._aspectResizeOn){var a=this;this._resizeCallback=function(){a.relativeResize.call(a)};this.tableBase().resize(this._resizeCallback);this._aspectResizeOn=!0}else!this.aspectResize()&&this._aspectResizeOn&&this.tableBase().unbind("resize",this._resizeCallback)},relativeResize:function(){if(!this._resizeAspectRatio)this._resizeAspectRatio=
this.height()/this.width();if(this._stopCheckSize)this._stopCheckSize=!1;else{var a=this.tableBase().width();this.tableBase().height(a*this._resizeAspectRatio);if(a!=this.tableBase().width())this._stopCheckSize=!0}},getActions:function(){var a=AC.Widgets[this._widgetClass].actions;return a?a():d}});h.generateUniqueId=function(){return WiziCore_Helper.generateUniqueId(36)};h.actions=function(){return{click:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.Base.onClick",params:"mouseev",
group:"widget_event_mouse"},dbclick:{alias:"widget_event_ondblclick",funcview:"onDbClick",action:"AC.Widgets.Base.onDbClick",params:"mouseev",group:"widget_event_mouse"},mousedown:{alias:"widget_event_onmousedown",funcview:"onMouseDown",action:"AC.Widgets.Base.onMouseDown",params:"mouseev",group:"widget_event_mouse"},mouseup:{alias:"widget_event_onmouseup",funcview:"onMouseUp",action:"AC.Widgets.Base.onMouseUp",params:"mouseev",group:"widget_event_mouse"},mouseenter:{alias:"widget_event_onmouseenter",
funcview:"onMouseEnter",action:"AC.Widgets.Base.onMouseEnter",params:"mouseev",group:"widget_event_mouse"},mouseleave:{alias:"widget_event_onmouseleave",funcview:"onMouseLeave",action:"AC.Widgets.Base.onMouseLeave",params:"mouseev",group:"widget_event_mouse"},dragstart:{alias:"widget_event_ondragstart",funcview:"onDragStart",action:"AC.Widgets.Base.onDragStart",params:"",group:"widget_event_mouse"},dragstop:{alias:"widget_event_ondragstop",funcview:"onDragStop",action:"AC.Widgets.Base.onDragStop",
params:"",group:"widget_event_mouse"},resizestart:{alias:"widget_event_onresizestart",funcview:"onResizeStart",action:"AC.Widgets.Base.onResizeStart",params:"",group:"widget_event_mouse"},resizestop:{alias:"widget_event_onresizestop",funcview:"onResizeStop",action:"AC.Widgets.Base.onResizeStop",params:"",group:"widget_event_mouse"}}};h.availableMethods={};h.schema=function(a,f){f!=d&&h.availableMethods[a]==d&&(h.availableMethods[a]=f);return h.availableMethods[a]};h.getDataItemWithMap=function(a,
f){typeof f!="object"&&(f=[f]);var e=a,g;for(g in f)if(e[f[g]]!==d)e=e[f[g]];else{e=null;break}return e};h.onPropertyChanged="E#Base#onPropertyChanged";h.onEtlDragIn="E#Base#onEtlDragIn";h.onEtlStopDrag="E#Base#onEtlStopDrag";h.onItemCreated="E#Base#onItemCreated";h.onItemChanged="E#Base#onItemChanged";h.onItemDeleted="E#Base#onItemDeleted";h._STYLE_GROUP=AC.Property.group_names.style;h.onClick="E#Base#onClick";h.onDbClick="E#Base#onDbClick";h.onMouseDown="E#Base#onMouseDown";h.onMouseUp="E#Base#onMouseUp";
h.onMouseEnter="E#Base#onMouseEnter";h.onMouseLeave="E#Base#onMouseLeave";h.onDragStart="E#Base#onDragStart";h.onDragStop="E#Base#onDragStop";h.onResizeStart="E#Base#onResizeStart";h.onResizeStop="E#Base#onResizeStop";h.setManualProps="E#Base#setManualProps";h.onEditModeChange="E#Base#onEditModeChange";h.refreshData="E#Base#refreshData";h.onSmSelected="E#Base#onSmSelected";h.onDataLoaded="Event#Base#onDataLoaded";h.onDataReset="Event#Base#onDataReset";h.CASE_TYPE_ITEM="CASE_TYPE_ITEM";h.CASE_TYPE_APP=
"CASE_TYPE_APP";h.CASE_TYPE_PAGE="CASE_TYPE_PAGE";h.CASE_TYPE_CONTAINER="CASE_TYPE_CONTAINER";h.CASE_TYPE_COMPOSITE_CONTAINER="CASE_TYPE_COMPOSITE_CONTAINER";h.PROPERTY_CHANGE_EVENT="E#ClientApi#PropertyChanghed";h.onChangeBaseValue="E#ClientApi#onChangeBaseValue";h.onAddEventHandler="E#ClientApi#onAddEventhandler";h.onRemoveEventHandler="E#ClientApi#onRemoveEventhandler";h._WIZI_USE_STYLE_CONSTANT="@#!!!WIZI_asdlkfj adsfq2df a#$%!@$%!%$Dfdagh dopidasfgf;;[[23/.,ZXCV><><?/!#@@@"})(window,document,
jQuery);
var WiziCore_WidgetExtension_DataRequest=WiziCore_Api_Base.extend({_params:null,_callback:null,_view:null,init:function(a,b,c,d){this._view=a;this._params=b;this._callback=c;this._object=d},load:function(a){typeof this._params.newRequest=="function"&&this._params.newRequest();this._object&&this._object.loadMode(!0);this._view.loadData(this._collectRequestData(),this,this.dataCallback,this.loadCallback,a)},bind:function(){this.load(this.reloadCallback)},id:function(){return this._object&&typeof this._object.id=="function"?
this._object.id():""},name:function(){return this._object&&typeof this._object.name=="function"?this._object.name():"custom request"},widgetClass:function(){return this._object&&typeof this._object.widgetClass=="function"?this._object.widgetClass():""},dataCallback:function(a,b,c){var d=this._object;d?(d._canCallOnDataLoaded=!1,this._callback.call(d,a,b,c),d._canCallOnDataLoaded=!0,d.loadMode(!1),d.onDataLoaded(a,b)):this._callback&&this._callback(a,b)},_collectRequestData:function(){return this._processCollectRequestData(this._params)},
_processCollectRequestData:function(a){var b={},c;for(c in a)if(typeof a[c]=="function")if(this._object){if(b[c]=a[c].call(this._object),c=="orderBy"&&b[c]!=void 0&&!(b[c]instanceof Array)&&typeof b[c]!="string")b[c].name=b[c].name==void 0?"0":b[c].name,b[c]=[b[c]]}else b[c]=a[c]();else b[c]=!jQuery.isArray(a[c])&&typeof a[c]=="object"&&a[c]!=null?this._processCollectRequestData(a[c]):a[c];return b},reloadCallback:function(a,b){this._object&&typeof this._object.id=="function"&&this._object.id()!=
a&&(this.load(),b&&typeof this._object.reset=="function"&&this._object.onDataReset.call(this._object))},loadCallback:function(){this.load()},drillDown:function(a,b,c){this._view.applyDrillDown(a,b,c)},unbind:function(){this._view.removeCallback(this.reloadCallback(),this)},destroy:function(){this._object=this._callback=this._params=this._view=null}});AC.WidgetExt={};
var WiziCore_WidgetExtension_DataIntegration=AC.WidgetExt.DataIntegration={_activeWidgets:{},context:function(){return WiziCore_AppContext.getInstance()},createRequest:function(a,b,c,d){if(a==void 0)return null;a=d.form().getViewObj(a);return new WiziCore_WidgetExtension_DataRequest(a,b,c,d)}},WiziCore_Widget_Layout=AC.WidgetExt.Layout={};WiziCore_Widget_Layout.Base=$.Class.create({processWidget:function(){throw"specify layout";}});
WiziCore_Widget_Layout.LAYOUT_TYPES=AC.WidgetExt.Layout.LAYOUT_TYPES={Absolute:"absolute",Vertical:"vertical",Horizontal:"horizontal"};
WiziCore_Widget_Layout.Relative=WiziCore_Widget_Layout.Base.extend({type:"relative",_direction:null,_oldWPostion:null,init:function(a){this._direction=a},processWidget:function(a){a.ignoreUpdatelayout||this._setContainerProps(a,this._detectRelative(a));this._calculatePosition(a)},processContainer:function(a){a.parent()[0].nodeName=="TABLE"&&a.unwrap()},_detectRelative:function(a){return a.layout&&a.layout()!=WiziCore_Widget_Layout.Relative.DIRECTION.Vertical&&a.layout()!=WiziCore_Widget_Layout.Relative.DIRECTION.Horizontal},
_setContainerProps:function(a,b){a._tableBase.css({outline:"none","float":"left",position:"relative",top:"",left:"",right:"",bottom:""});b&&(a._tableBase.css({position:"relative",outline:"none"}),a.base().css({overflow:"hidden",outline:"none"}))},_fixWidthWithPaddingInFF:function(a){var b=a.width();if(a.padding&&$.browser.mozilla&&a.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(a=a.padding())&&b){var a=a.match(/\d+/ig),c=parseFloat(b);!isNaN(c)&&a&&a[1]!=void 0&&a[3]!=void 0&&(b=c-(a[1]-0+(a[3]-0)))}return b},
_calculatePosition:function(a){var b={};a.mode();var c=this._fixWidthWithPaddingInFF(a),d=a.minWidth?a.minWidth():void 0;b.width=c;b.height="";b["min-width"]="";b["min-height"]="";b["max-width"]="";b["max-height"]="";b["min-width"]=(d&&d!=""?d||c:c)-0;b["min-height"]=a.height()-0;d=a.maxWidth?a.maxWidth():void 0;c=a.maxHeight?a.maxHeight():void 0;b["max-width"]=d&&d!=""?d-0:"";b["max-height"]=c&&c!=""?c-0:"";if($.browser.msie)b["table-layout"]="fixed",WiziCore_Helper.checkForIE7()&&this._detectRelative(a)&&
(b.height=b["min-height"]);if(!(a._widgetClass=="WiziCore_Api_Page"&&a.mode()==WiziCore_Visualizer.EDITOR_MODE)&&typeof a.pWidth=="function"&&(c=a.pWidth()))d=a.minWidth?a.minWidth():"",b.width=c+"%",b["min-width"]=a.minWidth&&(!d||d=="")?"":b["min-width"];typeof a.margin=="function"&&(b.margin=a.margin());typeof a.padding=="function"&&(b.padding=a.padding());if(typeof a.alignInContainer=="function"&&this._direction==WiziCore_Widget_Layout.Relative.DIRECTION.Vertical)a.alignInContainer()=="center"?
(b["margin-left"]="auto",b["margin-right"]="auto",b["float"]="none"):a.alignInContainer()=="left"||a.alignInContainer()==""?(b["float"]="none",a.margin()||(b["margin-left"]="0")):a.alignInContainer()=="right"&&(b["margin-left"]="auto",a.margin()||(b["margin-right"]="0"),b["float"]="none"),b.width=b.width!=""?b.width:b["min-width"];b.clear=this._direction==WiziCore_Widget_Layout.Relative.DIRECTION.Horizontal?"none":"left";if(a.fixed&&a.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(d=a.fixed(),d=="top"||
d=="bottom"||d=="static_top"||d=="static_bottom"))b.position="relative",b.top="auto",b.left="auto",b.clear="",b["float"]="",b["min-width"]&&b.width&&(b.width="");a._tableBase.css(b)},_setMargin:function(a){if(WiziCore_Helper.checkForIE8()&&a){for(var a=a.split(" "),b=0,c=a.length;b<c;++b){var d=parseInt(a[b]),d=d/2+"px";a[b]=d}a=a.join(" ")}return a},startDnd:function(){},endDnd:function(){this._oldWPostion=null},processDnd:function(a,b,c){a=!1;switch(this._direction){case WiziCore_Widget_Layout.Relative.DIRECTION.Vertical:a=
this._processDndAll(b.top,c,"top");break;case WiziCore_Widget_Layout.Relative.DIRECTION.Horizontal:a=this._processDndAll(b.left,c,"left"),b=this._processDndAll(b.top,c,"top"),a=a>b-1?a:b}return a},_processDndAll:function(a,b,c){for(var d=0,e=!0,f=0,g=b.length;f<g;++f){var i=b[f].base().position(),d=f;if(i[c]>a){e=!1;break}}d=e?b.length:Math.max(0,d);if(a=this._oldWPostion!=d)e=e?b.length-1:d,e=b[e]&&b[e].repeat(),(b=b[d-1]?b[d-1]:null)&&b.repeat()&&e||!b&&e?a=!1:this._oldWPostion=d;return a?d:!1},
processArrowMove:function(a,b,c){b={left:b.left(),top:b.top(),positionInChildren:WiziCore_Helper.indexOf(c,b)};switch(a){case AC.WiziCore_DndManager.DIRECTION.LEFT:case AC.WiziCore_DndManager.DIRECTION.UP:b.positionInChildren-=1;break;case AC.WiziCore_DndManager.DIRECTION.RIGHT:case AC.WiziCore_DndManager.DIRECTION.DOWN:b.positionInChildren+=1}(a=b.positionInChildren>=0&&b.positionInChildren<c.length)&&c[b.positionInChildren].repeat()&&(a=!1);return a?b:!1},moveWidget:function(a,b,c){var d=WiziCore_Helper.indexOf(c,
a),e=b.positionInChildren;if(e===void 0||e===null||d==e)return d;b.arrow&&d<e&&++e;d>e&&c.splice(d,1);c.splice(e,0,a);d<e&&c.splice(d,1);b=WiziCore_Helper.indexOf(c,a);b==c.length-1?(c=c[b-1])&&a.base().insertAfter(c.base()):(c=c[b+1])&&a.base().insertBefore(c.base());return d}});WiziCore_Widget_Layout.Relative.DIRECTION={Vertical:"vertical",Horizontal:"horizontal"};
WiziCore_Widget_Layout.Absolute=WiziCore_Widget_Layout.Base.extend({type:"absolute",processWidget:function(a){this._setContainerProps(a);this._calculatePosition(a)},processWidgetInConsole:function(a){this._setContainerProps(a);var b=a.top(),c=a.left(),d=a.width(),e=a.height(),b={width:parseInt(d),height:parseInt(e),top:parseInt(b),left:parseInt(c)};a.base().css(b)},_calculatePosition:function(a){var b=a.width(),c=a.height(),d=a.top(),e=a.left(),f=a.parent().width(),g=a.parent().height(),i={left:!0,
top:!0,bottom:!1,right:!1},h={};if(typeof a.anchors=="function"){var j=a.anchors();if(j)i.left=j.left,i.top=j.top,i.bottom=j.bottom,i.right=j.right}typeof a.padding=="function"&&(h.padding=a.padding());h.width="";h.height="";$.browser.msie?(h.width=i.left&&i.right?"":parseInt(b),h.height=i.top&&i.bottom?"":parseInt(c),h["table-layout"]=""):(a.widgetClass()=="RepeatContainer"&&a.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(h.width=i.left&&i.right?"":parseInt(b)),h["min-width"]=i.left&&i.right?"":parseInt(b),
h["min-height"]=i.top&&i.bottom?"":parseInt(c));h.top=i.top?parseInt(d):"";h.left=i.left?parseInt(e):"";h.right=i.right?parseInt(f-b-e):"";h.bottom=i.bottom?parseInt(g-d-c):"";b=a.maxWidth?a.maxWidth():void 0;c=a.maxHeight?a.maxHeight():void 0;h["max-width"]=b&&b!=""?b-0:"";h["max-height"]=c&&c!=""?c-0:"";if(a.fixed&&a.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(b=a.fixed(),b=="top"||b=="bottom"||b=="static_top"||b=="static_bottom"))h.position="relative",h.top="auto",h.left="auto";a._tableBase.css(h)},
_setContainerProps:function(a){a._tableBase.css({position:"absolute",outline:"none"});a.base().css({overflow:"hidden",outline:"none"})},startDnd:function(a,b){debuger.systemLog("start absolute Dnd");WiziCore_Layout_HelpLines.startDnd(a,b)},endDnd:function(){WiziCore_Layout_HelpLines.endDnd()},processDnd:function(a){WiziCore_Layout_HelpLines.processLines(a);for(var b=0,c=a.length;b<c;++b){var d=a[b].base()[0];d.style.top=a[b]._position.top+"px";d.style.left=a[b]._position.left+"px"}},processArrowMove:function(a,
b,c,d){b={left:b.left(),top:b.top(),positionInChildren:void 0};switch(a){case AC.WiziCore_DndManager.DIRECTION.LEFT:b.left-=d.x;break;case AC.WiziCore_DndManager.DIRECTION.RIGHT:b.left+=d.x;break;case AC.WiziCore_DndManager.DIRECTION.UP:b.top-=d.y;break;case AC.WiziCore_DndManager.DIRECTION.DOWN:b.top+=d.y}return b},moveWidget:function(a,b){a.left(Math.max(0,b.left));a.top(Math.max(0,b.top));a._updateLayout()}});WiziCore_Widget_Layout.Absolute.Static=new WiziCore_Widget_Layout.Absolute;
WiziCore_Layout_HelpLines={top:null,left:null,bottom:null,right:null,_lines:null,_coord:[],_dragFakeWidget:null,_dndContainer:null,_fakeDrag:{},initLines:function(){this.top=this.createAlignDiv();this.left=this.createAlignDiv(!0);this.right=this.createAlignDiv(!0);this.bottom=this.createAlignDiv();this._lines=[this.top,this.bottom,this.left,this.right]},lines:function(){return this._lines},dndChildren:function(){return this._dndChildren},createAlignDiv:function(a){var b=$('<div unselectable="on" class="waDesignerHelpLines"/>');
a?b.width("1px"):b.height("1px");return b},endDnd:function(){this.hideLines();this._dragFakeWidget=this._dndContainer=this._dndChildren=null;this._coord.length=0},hideLines:function(){WiziCore_Helper.map(this._lines,function(a){a.hide().css({top:-1,left:-1})})},showLines:function(){WiziCore_Helper.map(this._lines,function(a){a.show()})},startDnd:function(a,b){this.endDnd();this._dndContainer=a;var c=this;WiziCore_Helper.filter(a.children(),function(a){for(var e=0,f=b.length;e<f;++e){if(c._dragFakeWidget==
null&&b[e].isDragWidget)c._dragFakeWidget=b[e];if(b[e].realWidget.object==a)return!1}c._coord.push({left:a._project.x-0,top:a._project.y-0,width:a.base().width()-0,height:a.base().height()-0});return!0});if(this._dragFakeWidget!=null)this._fakeDrag.width=this._dragFakeWidget.base().width()-0,this._fakeDrag.height=this._dragFakeWidget.base().height()-0;a.base().append.apply(a.base(),this._lines);this.showLines()},processLines:function(a){var b=this._coord;if(b.length!=0&&this._dragFakeWidget){var c=
this,d=this._fakeDrag,e={top:d.top,left:-1,height:0,priority:7},f={top:d.top,left:-1,height:0,priority:7},g={top:-1,left:d.left,width:0,priority:7},i={top:-1,left:d.left,width:0,priority:7},h=!1;d.left=this._dragFakeWidget._position.left-0;d.top=this._dragFakeWidget._position.top-0;WiziCore_Helper.map(b,function(a){var b=c.detectCross(a.left,a.width,d.left);b.cross&&(h=!0,c.calcCssPos(e,a,b,d,!0));b=c.detectCross(a.left,a.width,d.left+d.width);b.cross&&(h=!0,c.calcCssPos(f,a,b,d,!0));b=c.detectCross(a.top,
a.height,d.top);b.cross&&(h=!0,c.calcCssPos(g,a,b,d,!1));b=c.detectCross(a.top,a.height,d.top+d.height);b.cross&&(h=!0,c.calcCssPos(i,a,b,d,!1))});this.setCssToLine(e,c.left,"top","height");this.setCssToLine(f,c.right,"top","height");this.setCssToLine(g,c.top,"left","width");this.setCssToLine(i,c.bottom,"left","width");if(!WiziCore_Api_KeyManager.shiftIsDown()&&h==!0){var j=this.getDxValue(d,e,f,"left","width"),k=this.getDxValue(d,g,i,"top","height");WiziCore_Helper.map(a,function(a){a._position.left-=
j;a._position.top-=k})}i=f=e=d=null}},getDxValue:function(a,b,c,d,e){var f=0;b[d]!=-1&&c[d]!=-1?Math.min(b.priority,c.priority)?f=a[d]-b[d]:f=a[d]-(c[d]-a[e]):b[d]!=-1?f=a[d]-b[d]:c[d]!=-1&&(f=a[d]-(c[d]-a[e]));return f},setCssToLine:function(a,b,c,d){a[c]-=15;a[d]+=30;delete a.priority;b.css(a)},calcCssPos:function(a,b,c,d,e){var f=c.priority?c.leftPrior:c.rightPrior;if(e){if(c=c.priority?b.left-1:b.left+b.width,f<a.priority)a.left=c,a.priority=f,a.top=Math.min(d.top,b.top),a.height=Math.max(d.top,
b.top,d.top+d.height,b.top+b.height)-Math.min(d.top,b.top,d.top+d.height,b.top+b.height)}else if(c=c.priority?b.top-1:b.top+b.height,f<a.priority)a.top=c,a.priority=f,a.left=Math.min(d.left,b.left),a.width=Math.max(d.left,b.left,d.left+d.width,b.left+b.width)-Math.min(d.left,b.left,d.left+d.width,b.left+b.width)},detectCross:function(a,b,c){var d=a+b,e=c>a-7&&c<a+7||c>d-7&&c<d+7,b={cross:e};if(e)a=Math.abs(a-c),c=Math.abs(d-c),b.leftPrior=a,b.rightPrior=c,b.priority=a<c;return b}};WiziCore_Layout_HelpLines.initLines();
(function(a,b,c){var d,e;AC.WidgetExt.DndManager={_widget:null,getActiveWidget:function(){return this._widget},setWidget:function(a,g){function i(a){return a.originalEvent.touches&&a.originalEvent.touches.length?a.originalEvent.touches[0]:a.originalEvent.changedTouches&&a.originalEvent.changedTouches.length?a.originalEvent.changedTouches[0]:a}this.dropWidget();var c=i(g),j=a.tableBase(),k=parseInt(j.css("left"),10)-c.clientX,l=parseInt(j.css("top"),10)-c.clientY;this._widget=a;d=k+c.clientX;e=l+c.clientY;
j.addClass("wa-widget-dnd-active");$(b).bind("touchmove.wDndManager mousemove.wDndManager",function(a){c=i(a);d=k+c.clientX;e=l+c.clientY;j.css({left:d,top:e})})},dropWidget:function(a){a!=c&&(a.tableBase().removeClass("wa-widget-dnd-active"),a.left&&a.top&&(a.left(d),a.top(e)));this._widget=null;$(b).unbind(".wDndManager")}}})(window,document);
var WiziCore_Widget_Resize_Manager={setWidget:function(a,b,c,d){function e(f,e,g){e=parseInt(e[f]);e=!isNaN(e)?e:null;a[f]&&(f=a[f](),e=e!=null&&f!=""&&!isNaN(f)?Math[g](e,f):e==null&&f!=""&&!isNaN(f)?f:e);return e}this.dropWidget();var f=a.tableBase();f.offset();var g=c.clientX,i=c.clientY,h=parseFloat(f.css("left")),j=parseFloat(f.css("top")),k=(c=a.boxSizing&&a.boxSizing()=="content-box")?f.width():f.outerWidth(),l=c?f.height():f.outerHeight();f.css({"min-height":"","min-width":""});f.width(k);
f.height(l);var n=b.hasClass("selectBorderLeft")?"left":b.hasClass("selectBorderTop")?"top":b.hasClass("selectBorderRight")?"right":b.hasClass("selectBorderBottom")?"bottom":b.hasClass("ui-resizable-handle")?"se":null,m=e("minWidth",d,"max"),o=e("maxWidth",d,"min"),p=e("minHeight",d,"max"),q=e("maxHeight",d,"min");$(document).bind("mousemove.wResizeManager",function(a){var e=a.clientX-g,b=a.clientY-i,a=f.width(),d=f.height();switch(n){case "right":d=k+e-0;e={width:d};o!=null&&(d=d<o?d:o,e={width:d});
m!=null&&(d=d>m?d:m,e={width:d});d>10&&f.css(e);break;case "left":d=k-e-0;b=h+e-0;e={width:d,left:b};o!=null&&(d=d<o?d:o,b=d==o?a-o+f.position().left:b,e={width:d,left:b});m!=null&&(d=d>m?d:m,b=d==m?a-m+f.position().left:b,e={width:d,left:b});d>10&&f.css(e);break;case "top":a=l-b-0;b=j+b-0;e={height:a,top:b};q!=null&&(a=a<q?a:q,b=a==q?d-q+f.position().top:b,e={height:a,top:b});p!=null&&(a=a>p?a:p,b=a==p?d-p+f.position().top:b,e={height:a,top:b});a>10&&f.css(e);break;case "bottom":a=l+b-0;e={height:a};
q!=null&&(a=a<q?a:q,e={height:a});p!=null&&(a=a>p?a:p,e={height:a});a>10&&f.css(e);break;case "se":a=l+b-0,d=k+e-0,e={width:d,height:a},o!=null&&(d=d<o?d:o,e={width:d,height:a}),m!=null&&(d=d>m?d:m,e={width:d,height:a}),q!=null&&(a=a<q?a:q,e={width:d,height:a}),p!=null&&(a=a>p?a:p,e={width:d,height:a}),d<10&&delete e.width,a<10&&delete e.height,f.css(e)}})},dropWidget:function(a){if(a!=void 0){var b=a.boxSizing&&a.boxSizing()=="content-box";if(a.left&&a.top&&a.width&&a.height){var c=parseFloat(a.tableBase().css("left")),
d=parseFloat(a.tableBase().css("top")),e=b?a.tableBase().width():a.tableBase().outerWidth(),b=b?a.tableBase().height():a.tableBase().outerHeight();a.left(c);a.top(d);a.width(e);a.height(b)}}$(document).unbind("mousemove.wResizeManager")}},WiziCore_WidgetAbstract_Layout={_layoutManager:null,_fakeWidgets:null,_layout:function(a){this.updateLayout(a)},updateLayout:function(a){this._createLayout(a);this._updateChildrenLayout(a);$.browser.webkit&&WiziCore_Helper.reCalcElementDOM(this.tableBase())},_createNotExistLayout:function(a){this._layoutManager||
this._createLayout(a)},getLayoutType:function(){this._createNotExistLayout(this.layout());return this._layoutManager.type},_fixWidthWithPaddingInFF:function(a){this._createNotExistLayout(this.layout());return this._layoutManager&&this._layoutManager._fixWidthWithPaddingInFF?this._layoutManager._fixWidthWithPaddingInFF(a):a.width()},_createLayout:function(a){this._layoutManager&&delete this._layoutManager;switch(a){case WiziCore_Widget_Layout.LAYOUT_TYPES.Vertical:this._layoutManager=new WiziCore_Widget_Layout.Relative(WiziCore_Widget_Layout.Relative.DIRECTION.Vertical);
break;case WiziCore_Widget_Layout.LAYOUT_TYPES.Horizontal:this._layoutManager=new WiziCore_Widget_Layout.Relative(WiziCore_Widget_Layout.Relative.DIRECTION.Horizontal);break;default:this._layoutManager=new WiziCore_Widget_Layout.Absolute}},_updateChildrenLayout:function(){var a=this.layoutEx();this._createNotExistLayout(a);for(var b=this.children(),c=0,d=b.length;c<d;++c)this._setWidgetPosition(b[c],a)},_setWidgetPosition:function(a,b){b=this.layoutEx();this._createNotExistLayout(b);this._layoutManager.processWidget(a);
a.onContainerChangeLayout(b)},startDnd:function(a,b){this._fakeWidgets=a;acDebugger.systemLog1("DndStarted: ",this.name(),a,b);for(var c=0,d=a.length;c<d;++c)a[c]._parent=this,a[c].draw(this.base()),a[c].onPageDrawn();this._layoutManager.startDnd(this,a)},_cleanDndWidgets:function(){this._children=WiziCore_Helper.filter(this._children,function(a){var b=a.widgetClass()=="WiziCore_Widget_DndFake";b&&a.destroy();return!b})},refreshLayout:function(){},processDnd:function(a){var b=this._fakeWidgets,a=
this._layoutManager.processDnd(b,a,this._children);if(typeof a=="number"){acDebugger.systemLog("position",a);for(var c=this._children[a]?this._children[a].base():null,d,e,f=0,g=b.length;f<g;++f)d=a+f,e=b[f],e._positionInChildren=d,d==0?this.base().prepend(e.base()):c?e.base().insertBefore(c):this.base().append(e.base())}return a},endDnd:function(){acDebugger.systemLog1("endDnd: ",this.name());this._cleanDndWidgets();this._fakeWidgets=null;this._layoutManager.endDnd()},dndDrop:function(){acDebugger.systemLog1("propDnd: ",
this.name())},processArrowMove:function(a,b,c){return this._layoutManager.processArrowMove(a,b,this._children,c)},moveWidget:function(a,b){for(var c=this._layoutManager.moveWidget(a,b,this._children),d=this._layoutManager.type,e=0,f=this._children.length;e<f;e++)this._children[e]._onWidgetMoved(d);$(this.form()).trigger(AC.Widgets.Base.onItemChanged);return c}},WiziCore_WidgetAbstract_Behavior={_updateChildrenEnable:function(){for(var a=this._isParentEnable(),b=this.children(),c=0,d=b.length;c<d;++c){var e=
b[c];e._isDrawn&&this._setWidgetEnable(e,a);typeof e._updateChildrenEnable=="function"&&e._updateChildrenEnable()}},_setWidgetEnableByChild:function(a){var b=this._isParentEnable();this._setWidgetEnable(a,b)},_setWidgetEnable:function(a,b){a.getAvailableMethods().enable!=void 0&&a._enable(a.enableEx()&&b)},_updateEnable:function(){this._super();this._updateChildrenEnable()},_updateChildrenReadonly:function(){for(var a=this._isParentReadonly(),b=this.children(),c=0,d=b.length;c<d;++c){var e=b[c];e._isDrawn&&
this._setWidgetReadonly(e,a);typeof e._updateChildrenReadonly=="function"&&e._updateChildrenReadonly()}},_setWidgetReadonlyByChild:function(a){var b=this._isParentReadonly();this._setWidgetReadonly(a,b)},_setWidgetReadonly:function(a,b){a.getAvailableMethods().readonly!=void 0&&a._readonly(a.readonlyEx()||b)},_updateReadonly:function(){this._super();this._updateChildrenReadonly()}};
(function(a,b,c,d){var e=b.WiziCore_Widget_Container=AC.Widgets.WiziCore_Widget_Container=AC.Widgets.Base.extend(a.extend({},WiziCore_WidgetAbstract_Layout,WiziCore_WidgetAbstract_Behavior,{_children:null,_slowScroll:null,_widgetClass:"WiziCore_Widget_Container",_borderWidth:0,_userData:null,tableCell:null,init:function(){this._children=[];this._userData={};this._super.apply(this,arguments)},draw:function(){this._super.apply(this,arguments);this.drawChildren();this.widgetClass()!="WiziCore_Api_Page"&&
this.widgetClass();AC.Core.Widgets().getContainerType(this.widgetClass());this.mode()},_redraw:function(){for(var a=this.children(),e,b=0,d=a.length;b<d;++b)e=a[b],e._redraw&&e._redraw()},_visible:function(a){this._super.apply(this,arguments);this.onParentVisibleChanged(a)},onParentVisibleChanged:function(a){this._super.apply(this,arguments);for(var e=this.children(),b=0,d=e.length;b<d;++b)e[b].onParentVisibleChanged(a)},_onSTUpdated:function(){for(var a=this.children(),e=0,b=a.length;e<b;++e)a[e]._onSTUpdated()},
_onLanguageChanged:function(){for(var a=this.children(),e=0,b=a.length;e<b;++e)a[e]._onLanguageChanged()},_onInitLanguage:function(){for(var a=this.children(),e=0,b=a.length;e<b;++e)a[e]._onInitLanguage()},repeatPage:function(a){WiziCore_Helper.map(this.children(),function(e){e.repeatPage&&e.repeatPage(a)})},initDomState:function(){this._super();this.initDomStatePos();this._updateBackgroundImage();this._bg(this.bg());this._opacity(this.opacity());this._updateScrolling()},drawChildren:function(){for(var a=
this.children(),e=0,b=a.length;e<b;e++)this._drawChild(a[e],e)},_drawChild:function(a){var e=a.getFixedContainer()||this.base();a.draw(e)},onPageDrawn:function(){for(var a=this.children(),e=0,b=a.length;e<b;e++)a[e].onPageDrawn(),a[e].repeatPage&&a[e].repeatPage(this)},_updateLayout:function(){this._super();this._updateLayoutProcess()},_updateLayoutProcess:function(){this.tableBase().css({overflow:"hidden"});this._updateScrolling()},_updateScrolling:function(){this._scrolling(this.scrolling())},_scrolling:function(a){if(this.mode()!=
AC.Visualizer.EDITOR_MODE){var g=e,b=this.base(),c=this._slowScroll,j=WiziCore_Helper.isMobile();if(j&&!c&&a&&a!=g.SCROLLING_NONE)c=this._slowScroll=new slowScroll(b,{useWrap:!1}),b.css({overflow:"hidden"});j&&c&&c.enable(!0);switch(a){case d:case g.SCROLLING_NONE:j&&c&&c.enable(!1);b.css({overflow:"hidden"});break;case g.SCROLLING_AUTO:j?(c&&c.options("vertical",!0),c&&c.options("horizontal",!0)):b.css({overflow:"auto"});break;case g.SCROLLING_VERTICAL:j?(c&&c.options("vertical",!0),c&&c.options("horizontal",
!1)):b.css({"overflow-x":"hidden","overflow-y":"auto"});break;case g.SCROLLING_HORIZONTAL:j?(c&&c.options("vertical",!1),c&&c.options("horizontal",!0)):b.css({"overflow-y":"hidden","overflow-x":"auto"})}}},initDataIntegration:function(){if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE)for(var a=this.children(),e=0,b=a.length;e<b;e++)typeof a[e].initDataIntegration=="function"&&a[e].initDataIntegration()},initProps:function(){this._super();this.layout=this.themeProperty("layout",this._layout);this.opacity=
this.themeProperty("opacity",this._opacity);this.backgroundImage=this.htmlProperty("backgroundImage",this._updateBackgroundImage);this.backgroundRepeat=this.htmlProperty("backgroundRepeat",this._updateBackgroundImage);this.bg=this.themeProperty("bgColor",this._bg);this.padding=this.themeProperty("padding",this._updateLayout);this.scrolling=this.themeProperty("scrolling",this._scrolling)},_opacity:function(f){var g=new jQuery.Event(e.onChangeProperty);a(this).trigger(g,["opacity",f]);if(!g.isPropagationStopped())return this._super.apply(this,
arguments)},_updateBackgroundImage:function(){var f=new jQuery.Event(e.onChangeProperty),g=this.backgroundImage(),b=this.backgroundRepeat();a(this).trigger(f,["backgroundimage",g]);a(this).trigger(f,["backgroundrepeat",b]);if(!f.isPropagationStopped())return this._super.apply(this,[this.tableBase()])},_bg:function(f){var g=new jQuery.Event(e.onChangeProperty);a(this).trigger(g,["bgcolor",f]);if(!g.isPropagationStopped())return this._super.apply(this,arguments)},project:function(a){a!=d?(this._super(a),
this.initChildren()):this._project.children=this.collectChildrenProjects();return this._project},collectChildrenProjects:function(){for(var a=this.children(),e=[],b=0,d=a.length;b<d;b++)e.push(a[b].project());return e},initChildren:function(){this.destroyChildren();this._children.length=0;var a=this._project.children;if(a!=d)for(var e=0,b=a.length;e<b;e++){var c=a[e];if(c.widgetClass!=d)this.createChild(c);else{AC.Core.lang().trText("widget_base_invalid_widget");acDebugger.systemLog("no current widget in system",
c);break}}delete this._project.children},offset:function(){return{x:0,y:0}},children:function(){return this._children},currentContainer:function(){return this},onDestroy:function(){this.destroyChildren();this._children.length=0},destroyChildren:function(){for(var a=this.children(),e=0,b=a.length;e<b;e++)a[e].destroy()},onRemove:function(){this._checkRepeatBeforeRemove()||this.removeChildren()},removeChildren:function(){var a=this.children();if(a!=d)for(var e=0,b=a.length;e<b;e++)a[e].remove()},createChild:function(f,
e,b){var c=d;try{if(AC.Widgets[f.widgetClass]!=d){var j=this.form(),k={project:f,form:this.form(),page:this.page(),mode:this.mode(),parent:this};AC.initClass(AC.Widgets[f.widgetClass]);c=new AC.Widgets[f.widgetClass](k);e!==!1&&(b!==d?this._children.splice(b,0,c):this._children.push(c));a(j).trigger(AC.Widgets.Base.onItemCreated,[c]);j.bindEventsToWidget(c)}else acDebugger.systemLog("error:: no current widgetClass",f.widgetClass)}catch(l){acDebugger.systemLog("error:: creating child widget",f.widgetClass,
l)}return c},createWidget:function(a,e,b){if(e==-1||e===d)e=this.children().length;var e=e||0,c=this._isDrawn,a=this.addNewWidget({widgetClass:a,shouldToChildren:!0,posInChildren:!c?e:d,project:b||{}});c&&(a.draw(this.base()),a.onPageDrawn(),this.layout()!="absolute"&&this.moveWidget(a,{positionInChildren:e}));return a},addNewWidget:function(a){var e=a.widgetClass!=d?a.widgetClass:a.project.widgetClass;if(a.project==d||e==d)throw new WiziCore_Api_Error("WiziCore_Widget_Container::Need project for create new widget",
WiziCore_Api_Error.ERR_NEED_OBJECT);var b=a.project,c=a.checkName!=d?a.checkName:!0,j=AC.Core.Widgets().getDefaultWidgetProperties(e),b=jQuery.extend(j,b);b.widgetClass==d&&(b.widgetClass=e);b.id==d&&(b.id=AC.Widgets.Base.generateUniqueId());b.repeat==d&&(b.repeat=!1);if(c){var k=[];this.form().traverseChildren(function(a){k.push(a.name())});var l=function(a){a.name=WiziCore_Helper._getUniqueName(a.name,k);k.push(a.name);if(a.children)for(var e=0,f=a.children.length;e<f;e++)l(a.children[e])};l(b)}return this.createChild(b,
a.shouldToChildren,a.posInChildren)},_appendToContainer:function(a){var e=this._layoutManager.processDnd([a],{left:a.left(),top:a.left()},this._children),e=typeof e=="number"?e:this._children.length-1,e=this._children[e].base();a.base().insertBefore(e)},checkChildrenNames:function(){},deleteItem:function(e){function g(a){for(var e={},a=a.children(),f=0,b=a.length;f<b;++f){var d=a[f],i=d.id();e[i]=i;e[i].name=d.name();e[i].wClass=d.widgetClass();jQuery.extend(!0,e,g(d))}return e}for(var e=typeof e==
"object"?e.id():e,b={},d=0,c=this.children(),k=0,b=c.length;k<b;k++)if(c[k].id()==e){b=g(c[k]);b[e]=e;c[k].destroy();this.children().splice(k,1);d=k;a(this.form()).trigger(AC.Widgets.Base.onItemDeleted,[b]);break}return d},collectChildrenNames:function(){for(var a=this.children(),e=[],b=0,d=a.length;b<d;b++){var c=a[b],k={id:c.id(),name:c.name()};e.push(k);typeof c.collectChildrenNames=="function"&&(e=e.concat(c.collectChildrenNames()))}return e},findChildById:function(a){for(var e=this.children(),
b=null,d=0,c=e.length;d<c;d++)e[d].id()==a&&(b=e[d]);return b},find:function(a){var e=null;if(this.id()===a)return this;this.traverseChildren(function(b){var d=b.id()==a;d&&(e=b);return d});return e},traverseChildren:function(a){var e=a(this);if(e)return!0;for(var b=this.children(),d=0;d<b.length;++d)if(e=b[d],typeof e.traverseChildren=="function"){if(e=e.traverseChildren(a))return!0}else break;return!1},collectDataSchema:function(a){for(var e=this.children(),b=0;b<e.length;++b)e[b].collectDataSchema(a);
return!0},appendValueToDataObject:function(a,e,b,d){for(var c=this.children(),k=0;k<c.length;++k)c[k].appendValueToDataObject(a,e,b,d);return!0},setValueFromDataObject:function(a,e){for(var b=this.children(),d=0;d<b.length;++d)b[d].setValueFromDataObject(a,e);return!0},resetValue:function(){for(var a=this.children(),e=0,b=a.length;e<b;e++)a[e].resetValue.apply(a[e],arguments)},reset:function(){for(var a=this.children(),e=0,b=a.length;e<b;e++)a[e].reset.apply(a[e],arguments);this._userData={}},empty:function(){for(var a=
this.children(),e=0,b=a.length;e<b;e++)a[e].empty.apply(a[e],arguments);this._userData={}},_getContainerDataModel:function(){var a=[];this.traverseChildren(function(e){if(e.isBindableToData()){var b=typeof e.rdbValueDataModel=="function"&&e.rdbValueDataModel(),d=e.name(),e=e.id();if(b)for(var c=0,k=b.length;c<k;++c){var l=b[c];a.push({name:d+l.name,value:"",uid:[e,l.uid]})}else a.push({name:d,value:"",uid:e})}});return a},getDataModel:function(){return this._getContainerDataModel(this.children())},
value:function(a){a!=d&&this.setData(a);return this.getData()},setDataToContainerWidgets:function(a,e){var b=a&&"__ac_keys"in a?a.__ac_keys:null,a=a&&"__ac_data"in a?a.__ac_data:a;if(b!=null&&b.length>0){var c={},j;for(j in b.data)c[j]=b.data[j][0];this._userData.data_key=c}if(a!=null)for(var k in a)(b=this.find(k))&&a[k][e]!==d&&b.rdbValue(a[k][e])},_collectBoundData:function(){var e={},b={};this.appendValueToDataObject(e,{},!0);for(var c=this.fields(),h=/^{((\w| |-)*\.)+((\w| |-)*)}$/,j=0;j<c.length;++j){var k=
c[j],l=k.name,n;if(a.isArray(l)){var m=e[l[0]];m&&typeof m=="object"&&l[1]in m&&(n=m[l[1]])}else n=e[l];n!=d&&(k=k.value.match(h))&&k.length==5&&(b[k[3]]=n)}return b},_setExtData:function(a,e,b){a==0&&(this._userData[e]=b)},_checkStatusesOfForeignInstances:function(e,b){if(e!=null){var d=this.view();if(this.form().view(d).crudCompatible==WiziCore_Api_ClientView.CRUD.RDB)if(e.error==null){var c=[],j={},d=function(a,e){a in j||(j[a]={});j[a][e]={checked:!1,error:null};c.push({id:a,version:e})};d(e.id,
e.version);var k=e.linkInstanceId,l=e.linkVersions;if(k!=null&&l!=null&&"length"in l)for(var n=0,m=l.length;n<m;++n)d(k,l[n]);var d=this.context().instanceStatusRequester(),o=this,p=WiziCore_Helper.generateUniqueId(36),k=this._getForeignStatusEventId(p);a(d).bind(k,function(a,e,f,d){o._processForeignInstanceStatuses(e,f,d,b,j,p)});d.addInstances(c)}else WiziCore_Helper.callCallback(b,[e.error])}else WiziCore_Helper.callCallback(b,[null])},addForeignAppData:function(a,e){var b=this.foreignAppWriting(),
c=this.view();if(b&&c!=d){var j=new WiziApp_ForeignAppChange;j.action="create";j.tempKey=WiziCore_Helper.generateUniqueId();j.data=this._collectBoundData();var b=[j],k=this.form(),l=k.id(),n=this,m=this.context().formInstances(),o=null,k=k.currentFormInstanceInfo();k!=null&&(o=k.id());this.form().offlineMode()?this._changeAppDataOffline(l,c,b,this.id(),o,function(b){typeof a=="function"&&a(b,null);!b&&typeof e=="function"&&e(null,null)}):m.changeAppData(l,c,b,this.id(),o,function(b,d){if(b)WiziCore_Helper.callCallback(a,
[b,null]);else{var c="created"in d?d.created[j.tempKey]:null,i={created:{},updated:{},deleted:[]};if(c!=null)i.created[0]=c,n._userData.data_key=c.key;typeof a=="function"&&(c&&c.error!=null&&(b=!0),a(b,i));n._checkStatusesOfForeignInstances(c,e)}})}else c={message:AC.Core.lang().trText(b!=!0?"foreignapp_disabled":"foreignapp_noview")},WiziCore_Helper.callCallback(a,[c,null])},updateForeignAppData:function(a,e){var b=this.foreignAppWriting(),c=this.view();if(b&&c!=d){var b=this.form().id(),j=new WiziApp_ForeignAppChange;
j.action="update";j.key=this._userData.data_key;j.tempKey=WiziCore_Helper.generateUniqueId();j.data=this._collectBoundData();var k=[j],l=this.context().formInstances(),n=this;this.form().offlineMode()?this._changeAppDataOffline(b,c,k,this.id(),null,function(b){typeof a=="function"&&a(b,null);!b&&typeof e=="function"&&e(null,null)}):l.changeAppData(b,c,k,this.id(),null,function(b,d){if(b)WiziCore_Helper.callCallback(a,[b,null]);else{var c="updated"in d?d.updated[j.tempKey]:null,i={created:{},updated:{},
deleted:[]};if(c!=null)i.updated[0]=c,n._userData.data_key=c.key;typeof a=="function"&&(c&&c.error!=null&&(b=!0),a(b,i));n._checkStatusesOfForeignInstances(c,e)}})}else c={message:AC.Core.lang().trText(b!=!0?"foreignapp_disabled":"foreignapp_noview")},WiziCore_Helper.callCallback(a,[c,null])},deleteForeignAppData:function(a,e){var b=this.foreignAppWriting(),c=this.view();if(b&&c!=d){var b=this.form().id(),j=new WiziApp_ForeignAppChange;j.action="delete";j.key=this._userData.data_key;j.data=null;var j=
[j],k=this.context().formInstances(),l=this;this.form().offlineMode()?this._changeAppDataOffline(b,c,j,this.id(),null,function(b){typeof a=="function"&&a(b,null);!b&&typeof e=="function"&&e(null,null)}):k.changeAppData(b,c,j,this.id(),null,function(b,c){if(b)WiziCore_Helper.callCallback(a,[b,null]);else{var i="deleted"in c?c.deleted[0]:null,h={created:{},updated:{},deleted:[]};if(i!=null)h.deleted[0]=i,l._userData.data_key=d;typeof a=="function"&&(i&&i.error!=null&&(b=!0),a(b,h));l._checkStatusesOfForeignInstances(i,
e)}})}else c={message:AC.Core.lang().trText(b!=!0?"foreignapp_disabled":"foreignapp_noview")},WiziCore_Helper.callCallback(a,[c,null])}}));e._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.layout]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.pWidthHidden,AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.sizes,AC.Property.layout.minWidth,
AC.Property.layout.maxWidth,AC.Property.layout.maxHeight,AC.Property.layout.scrolling]},{name:AC.Property.group_names.advanced,props:[AC.Property.style.bgColor,AC.Property.general.backgroundImage,AC.Property.general.backgroundRepeat]},{name:AC.Property.group_names.behavior,visible:!1,props:[AC.Property.behavior.visible]},{name:AC.Property.group_names.style,props:[AC.Property.style.padding,AC.Property.behavior.opacity,AC.Property.general.displayHourglassOverParent,AC.Property.general.hourglassImage,
AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];e.SCROLLING_NONE="none";e.SCROLLING_AUTO="auto";e.SCROLLING_VERTICAL="vertical";e.SCROLLING_HORIZONTAL="horizontal";e.onChangeProperty="E#Container#onChangeProperty";e.props=function(){return e._props};e.actions=function(){var a=AC.Widgets.Base.actions();a.dataLoaded={alias:"widget_event_ondataloaded",funcview:"onDataLoaded",action:"AC.Widgets.Base.onDataLoaded",params:"error, data",group:"widget_event_data"};return a};e.capabilities=
function(){return{defaultProps:{widgetClass:"WiziCore_Widget_Container",width:100,height:100,x:0,y:0,name:"container1",opacity:1,visible:!0,bgColor:"transparent"},props:e.props(),scrolling:"none",containerType:AC.Widgets.Base.CASE_TYPE_CONTAINER,isField:!1,hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",layout:"absolute"}}})(jQuery,window,document);
(function(a){var b=AC.Widgets.ContainerForTable=function(){this.init.apply(this,arguments)};AC.extend(b,AC.Widgets.WiziCore_Widget_Container);b.prototype._widgetClass="ContainerForTable";var c=a.extend({},AC.Widgets.WiziCore_Widget_Container.actions()),d=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.layout]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.pWidthHidden,
AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.minWidth,AC.Property.layout.maxWidth,AC.Property.layout.maxHeight,AC.Property.layout.scrolling]},{name:AC.Property.group_names.behavior,visible:!1,props:[AC.Property.behavior.visible]},{name:AC.Property.group_names.style,props:[AC.Property.style.padding,AC.Property.general.displayHourglassOverParent,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];b.props=function(){return d};
b.capabilities=function(){return{defaultProps:{widgetClass:"ContainerForTable",width:100,height:100,x:0,y:0,name:"container1",opacity:1,visible:!0,bgColor:"transparent"},props:b.props(),scrolling:"none",containerType:AC.Widgets.Base.CASE_TYPE_CONTAINER,isField:!1,hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",layout:"absolute"}};b.actions=function(){return c}})(jQuery,window,document);
(function(a){var b=AC.Widgets.ContainerForRepeater=function(){this.init.apply(this,arguments)};AC.extend(b,AC.Widgets.WiziCore_Widget_Container);b.prototype._widgetClass="ContainerForRepeater";var c=a.extend({},AC.Widgets.WiziCore_Widget_Container.actions()),d=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.layout]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.pWidthHidden,
AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.sizes,AC.Property.layout.minWidth,AC.Property.layout.maxWidth,AC.Property.layout.maxHeight,AC.Property.layout.scrolling]},{name:AC.Property.group_names.advanced,props:[AC.Property.general.backgroundImage,AC.Property.general.backgroundRepeat]},{name:AC.Property.group_names.behavior,visible:!1,props:[AC.Property.behavior.visible]},{name:AC.Property.group_names.style,props:[AC.Property.style.padding,AC.Property.general.displayHourglassOverParent,
AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];b.props=function(){return d};b.capabilities=function(){return{defaultProps:{widgetClass:"ContainerForRepeater",width:100,height:100,x:0,y:0,name:"container1",opacity:1,visible:!0,bgColor:"transparent"},props:b.props(),scrolling:"none",containerType:AC.Widgets.Base.CASE_TYPE_CONTAINER,isField:!1,hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",layout:"absolute"}};b.actions=
function(){return c}})(jQuery,window,document);
var WiziCore_SignInUp={signInClick:function(){if(this.form().runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE)WiziCore_Helper.showWarning(null,AC.Core.lang().tr("live_load_signin_preview"));else{var a=this.form().find(this.getUidWidgetFromObjectChooser(this.loginField())),b=this.form().find(this.getUidWidgetFromObjectChooser(this.passwordField())),c=this.form().find(this.getUidWidgetFromObjectChooser(this.rememberMe())),d=this.getUidWidgetFromObjectChooser(this.defaultForm()),e=!1,f={html:[],str:""};
a==null&&this.setToStrValid(f,"loginwidgetempty");b==null&&this.setToStrValid(f,"passwidgetempty");if(a!=void 0&&b!=void 0&&(a=a.prop("text"),b=b.prop("text"),a==void 0||a==""?this.setToStrValid(f,"signinemptyname"):/[a-zA-Z_@.]+/.test(a)||(this.setToStrValid(f,"signininvalidchars"),a=""),(b==void 0||b=="")&&this.setToStrValid(f,"signinemptypass"),a!=""&&b!="")){var e=!0,g=this.context().getSession();WiziCore_Helper.disableInterface();var i=this;g.loginFull(a,b,i.form().formId(),function(a){if(a.error){WiziCore_Helper.enableInterface();
i.setToStrValid(f,"signinerrorsignin");var e=AC.Core.lang().trText("signin");i.onFailed(WiziCore_SignInUp,f.str,function(){WiziCore_Helper.showCustom(e,f.html)})}else{var a=a.object.result,b=a.sessionId;c!=null&&c.prop("checked")&&AC.Core.cookie().cookie("swirlSession",b,{expires:2592E3,path:"/"});i.onSuccess(WiziCore_SignInUp,a.user.id)?(b=i.form().id(),$(g).trigger(WiziCore_Api_SessionRequester.onLiveLogin,[a,d,b])):WiziCore_Helper.enableInterface()}})}if(!e){var h=AC.Core.lang().trText("signin");
this.onFailed(WiziCore_SignInUp,f.str,function(){WiziCore_Helper.showCustom(h,f.html,void 0,void 0,!0)})}}},setToStrValid:function(a,b){a.html.push(AC.Core.lang().tr(b));a.str+=$(a.html[a.html.length-1]).text()+"\n"},onFailed:function(a,b,c){typeof c=="function"&&(!this._bindingEvents[a.onFailedEv]||this._bindingEvents[a.onFailedEv]<1)&&c();$(this).trigger(a.onFailedEv,[b])},onSuccess:function(a,b){var c=new jQuery.Event(a.onSuccessEv);$(this).trigger(c,[b]);return!c.isPropagationStopped()},signUpClick:function(){if(this.form().runtimeMode()==
WiziCore_UI_FormRuntime.PREVIEW_MODE)WiziCore_Helper.showWarning(null,AC.Core.lang().tr("live_load_signup_preview"));else{var a=this.form(),b=a.find(this.loginField()),c=a.find(this.passwordField()),d=a.find(this.confirmField()),e=a.find(this.nameField()),f=a.find(this.captchaField()),g=this.getUidWidgetFromObjectChooser(this.defaultForm()),i=this,a=!1,h={html:[],str:""};b==null&&this.setToStrValid(h,"widget_signup_loginwidgetempty");c==null&&this.setToStrValid(h,"widget_signup_passwidgetempty");
f==null&&this.setToStrValid(h,"widget_signup_captchaempty");e==null&&this.setToStrValid(h,"widget_signup_nameempty");if(b!=void 0&&c!=void 0&&f!=void 0&&e!=void 0){var a=!0,j=b.prop("text"),k=c.prop("text"),b=this.minChars();if((k==null?0:k.length)<b)this.setToStrValid(h,"widget_signup_passminlength"),a=!1;var e=e.prop("text"),b=f.value(),c=f.url(),l=null;d!=null&&(l=d.prop("text"));j==void 0||j==""?(this.setToStrValid(h,"signinemptyname"),a=!1):/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+[.]{1}[a-zA-Z]{2,4}$/.test(j)||
(this.setToStrValid(h,"signininvalidchars"),a=!1);if(k==void 0||k=="")this.setToStrValid(h,"signinemptypass"),a=!1;if(e==void 0||e=="")this.setToStrValid(h,"widget_signup_nameempty"),a=!1;if(b==void 0||b=="")this.setToStrValid(h,"widget_signup_captchaempty"),a=!1;l!=null&&l!=k&&(this.setToStrValid(h,"widget_signup_passandconfmissmatch"),a=!1);if(a){var d=this.context(),n=d.getSession(),d=d.users(),l=new WiziCore_User;l.username=e;l.login=j;l.password=k;WiziCore_Helper.disableInterface();d.registerUser(l,
c,b,function(a,e){if(a){WiziCore_Helper.enableInterface();var b=e.message!=void 0?e.message:e;f._initCaptcha();i.onFailed(WiziCore_SignInUp,b,function(){WiziCore_Helper.showError(AC.Core.lang().tr("users_error_create"),b,701)})}else{var d=e.result.id;n.loginFull(j,k,i.form().formId(),function(a){if(a.error){WiziCore_Helper.enableInterface();i.setToStrValid(h,"signinerrorsignin");var e=AC.Core.lang().trText("signin");i.onFailed(WiziCore_SignInUp,h.str,function(){WiziCore_Helper.showCustom(e,h.html,
void 0,void 0,!0)})}else if(a=a.object.result,i.onSuccess(WiziCore_SignInUp,d)){var f=i.form().id();$(n).trigger(WiziCore_Api_SessionRequester.onLiveLogin,[a,g,f])}else WiziCore_Helper.enableInterface()})}})}}if(!a){var m=AC.Core.lang().trText("signup");this.onFailed(WiziCore_SignInUp,h.str,function(){WiziCore_Helper.showCustom(m,h.html)})}}},onSessionFullLogin:"Events#WiziCore_UI_SignUpButtonWidget#onSessionFullLogin",onFailedEv:"Events#WiziCore_UI_SignUpButtonWidget#onFailed",onSuccessEv:"Events#WiziCore_UI_SignUpButtonWidget#onSuccess"};
AC.Ext={};
AC.Ext.AdaptiveLayout=function(){var a=function(a){this._o=a;this._layout=a.adaptiveLayout();this._isEditor=a.mode()==WiziCore_Visualizer.EDITOR_MODE;this._isAdaptive=!1;this._availableProps=this._o.getAvailableMethods();this._originalMethods={}},b=a.prototype,c=function(a){d.call(a.data.self,$(this))},d=function(a){var f;var a=a.width(),b,d,c,l={};if(a==0)f=null;else{for(b=0,d=this._layout.length;b<d;b++)if(c=this._layout[b],(a>=c.min||c.min==null||c.min=="")&&(a<=c.max||c.max==null||c.max==""))for(f in c.props)l[f]=
c.props[f];f=l}e.call(this,f)},e=function(a){if(a!==null)if(WiziCore_Helper.objectsAreEqual({},a)){if(this._isAdaptive)f.call(this,null,!0),this._isAdaptive=!1,this._currProps=null}else if(!this._isAdaptive||!WiziCore_Helper.objectsAreEqual(this._currProps,a))f.call(this,a,!1),this._isAdaptive=!0,this._currProps=a},f=function(a){var e,f=this,b,d=function(a,e){return function(b){if(this.propBoxCall&&b==void 0)return e.apply(this,arguments);b!==void 0&&(e.apply(this,arguments),e.applyAfter&&e.applyAfter.call(f._o,
a));return a}};if(a==null){for(e in this._originalMethods)this._o[this._availableProps[e].get]=this._originalMethods[e],b=this._originalMethods[e],b.applyAfter&&b.applyAfter.call(this._o,b.call(this._o));this._originalMethods={}}else{var c;for(e in a)c=this._availableProps[e].get,this._originalMethods[e]?b=this._originalMethods[e]:(b=this._o[c],this._originalMethods[e]=b),this._o[c]=d(a[e],b),b.applyAfter&&b.applyAfter.call(this._o,a[e])}if(!this._isEditor)this._o.form().onAdaptiveLayout(this._o,
a)};b.initAdaptiveLayout=function(){if(this._layout&&this._layout.length!=0){var a=this._isEditor?this._o.form().base():$(window),e="resize."+this._o.id();a.unbind(e).bind(e,{self:this},c);a.trigger(e)}};b.unsetAdaptiveLayout=function(){(this._isEditor?this._o.form().base():$(window)).unbind("resize."+this._o.id())};b.adaptiveLayout=function(a){this._layout=a;e.call(this,null);(this._isEditor?this._o.form().base():$(window)).trigger("resize")};return a}();
var WiziCore_WidgetAbstract_DataIntegrationSimple=AC.WidgetExt.DataIntegration.Simple={_dataIntegation:!0,_request:null,_userDataRegEx:/^__.*/,createDataIntegrationRequest:function(){var a={inputs:this.filter,outputs:this.fields,groupBy:this.groupby,orderBy:this.orderby,listen:this.listenview,onview:this.onview,applyview:this.applyview,interval:{start:0,count:1}};typeof this.id=="function"&&(a.id=this.id());if(typeof this.view=="function"){var b=this.view();this._addCrudFields(b,a);this._request=
WiziCore_WidgetExtension_DataIntegration.createRequest(b,a,this.applyDataFromRequest,this)}},_addCrudFields:function(a,b){var c=this.form().view(a);if(c!=null){var c=c.crudCompatible,d=typeof this.foreignAppWriting=="function"&&this.foreignAppWriting();if(c!=null&&d)b.outputs=this._getOutputsWithKeyFieldsFunc(c),b.groupBy=this._getGroupByWithKeyFieldsFunc(c)}},_getOutputsWithKeyFieldsFunc:function(a){var b=this;return function(){var c=b.fields(),d={};if(!(c==null||c.length==0)){for(var c=c.slice(),
e=0,f=c.length;e<f;++e)d[c[e].value]=1;if(a!=null&&typeof b.keyFields=="function"){var e=b.keyFields(),g;for(g in e)f="{"+g+"}",d[f]||(c.push({value:f}),d[f]=1)}}return c}},_getGroupByWithKeyFieldsFunc:function(a){var b=this;return function(){var c=b.groupby(),d={};if(!(c==null||c.length==0)){for(var c=c.slice(),e=0,f=c.length;e<f;++e)d[c[e]]=1;if(a!=null&&typeof b.keyFields=="function"){var e=b.keyFields(),g;for(g in e)f="{"+g+"}",d[f]||(c.push(f),d[f]=1)}}return c}},sendDataRequest:function(){this.createDataIntegrationRequest();
this._request!==null&&(this.listenview!==void 0&&this.listenview()?this._request.bind():this._request.load())},getMap:function(a){var a=this.getMapNew(a),b={},c;for(c in a.data)b[c]=a.data[c];return b},getMapNew:function(a){var a=a[0],b=this.fields(),c=null;typeof this.keyFields=="function"&&(c=this.keyFields());var c=c||{},d={data:{},keys:{}},e,f,g={};for(e=0,f=b.length;e<f;++e){var i=b[e].value;i in g||(g[i]=[]);g[i].push(b[e].name)}b=/^\{([^}]+)\}$/;for(e=0,f=a.length;e<f;++e){var i=a[e],h=g[i];
if(h!=void 0)for(var j=0,k=h.length;j<k;++j){var l=h[j];if($.isArray(l)){var n=l[0],l=l[1];n in d.data||(d.data[n]={});d.data[n][l]=e}else d.data[l]=e}i=i.match(b);i!=null&&(i=i[1],i in c&&(d.keys[i]=e))}return d},_setDataKeys:function(a){this._dataKeys=a},_getDataKeys:function(){return this._dataKeys},applyDataFromRequest:function(a,b){a===!1&&(b!=void 0&&b[1]!=void 0&&b[1][0]!=void 0?this.setData(b[1][0]):this.setData(null))},sendDrillDown:function(){if(this._request!==null&&this.applyview()){var a=
this.processDrillDownFilter();this._request.drillDown(this.id(),a,this.resetfilter())}},processDrillDownFilter:function(){var a=this.value(),b=[],c=this.onview();c!=void 0&&c!=""&&(b=this.buildDrillDownFilter(c,a));return b},buildDrillDownFilter:function(a,b){for(var c=$.extend(!0,[],a),d=WiziCore_Helper.isInt(b)?b:'"'+b+'"',e=0,f=a.length;e<f;++e){var g=c[e],g=g.replace(RegExp("{value}","gi"),d);c[e]=g}return c},reloadDataIntegrationData:function(){this._request?this._request.load():this.sendDataRequest()},
initDataIntegration:function(){if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE){if(this.children)for(var a=this.children(),b=0,c=a.length;b<c;b++)typeof a[b].initDataIntegration=="function"&&a[b].initDataIntegration();typeof this.autoLoad=="function"&&this.autoLoad()&&this.sendDataRequest()}},destroyDataIntegration:function(){if(this._request)this._request.destroy&&this._request.destroy(),this._request=null}},WiziCore_WidgetAbstract_DataIntegrationList=AC.WidgetExt.DataIntegration.List=jQuery.extend({},
WiziCore_WidgetAbstract_DataIntegrationSimple,{createDataIntegrationRequest:function(a){var b={inputs:this.filter,outputs:this.fields,groupBy:this.groupby,orderBy:this.orderby,listen:this.listenview,onview:this.onview,applyview:this.applyview};typeof this.startPosition=="function"&&typeof this.elementsPerPage=="function"&&(b.interval={start:this.startPosition,count:this.elementsPerPage});typeof this.id=="function"&&(b.id=this.id());var c=this.view();this._addCrudFields(c,b);if(typeof a!=="function")a=
this.applyDataFromRequest;this._request=WiziCore_WidgetExtension_DataIntegration.createRequest(c,b,a,this)},applyDataFromRequest:function(a,b,c){if(a===!1)if(b!=void 0&&b[1]!=void 0){a=this.getDataRows(b);b=null;if("data"in a&&"keys"in a)b=a.keys,a=a.data;this.setData(a);typeof this._setDataKeys=="function"&&this._setDataKeys(b);typeof this.updatePageCount=="function"&&(this.updatePageCount(c),this.updateNavigationControls())}else this.setData(null)},getDataRows:function(a){var b=this.getMap(a);if(b.labeluid==
0&&b.valueuid)return a.splice(0,1),a;for(var c=[],d=1,e=a.length;d<e;d++)c.push([a[d][b.labeluid],a[d][b.valueuid]]);return c},sendDrillDown:function(){if(this._request!==null&&this.applyview()){var a=this.processDrillDownFilter(typeof this.multiSelect=="function"?this.multiSelect():!1);this._request.drillDown(this.id(),a,this.resetfilter())}},processDrillDownFilter:function(a){var b=[],c=this.value(),d=this.onview();d!=void 0&&d!=""&&(b=a?c.length>0?this.buildMultiDrillDownFilter(d,c):[]:c!=void 0?
this.buildDrillDownFilter(d,c):[]);return b},buildMultiDrillDownFilter:function(a,b){for(var c=$.extend(!0,[],a),d=RegExp("{value}","gi"),e=RegExp("{label}","gi"),f=0,g=a.length;f<g;++f){for(var i=[],h=0,j=b.length;h<j;++h){var k=a[f],l=WiziCore_Helper.isInt(b[h].value)?b[h].value:'"'+b[h].value+'"',n=WiziCore_Helper.isInt(b[h].label)?b[h].label:'"'+b[h].label+'"',k=k.replace(d,l),k=k.replace(e,n);i.push("("+k+")")}c[f]="("+i.join(" OR ")+")"}return c},buildDrillDownFilter:function(a,b){for(var c=
$.extend(!0,[],a),d=WiziCore_Helper.isInt(b.value)?b.value:'"'+b.value+'"',e=WiziCore_Helper.isInt(b.label)?b.label:'"'+b.label+'"',f=RegExp("{value}","gi"),g=RegExp("{label}","gi"),i=0,h=a.length;i<h;++i){var j=c[i],j=j.replace(f,d),j=j.replace(g,e);c[i]=j}return c}}),WiziCore_WidgetAbstract_DataIntegrationInterval=AC.WidgetExt.DataIntegration.Interval=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,{applyDataFromRequest:function(a,b){a===!1&&(b!=void 0&&b[1]!=void 0&&b[1][0]!=void 0?
this.isInterval()?this.setData([b[1][0],b[1][1]]):this.setData(b[1][0]):this.setData(null))},processDrillDownFilter:function(){var a=this.value(),b=[],c=this.onview();c!=void 0&&c!=""&&(b=this.isInterval()?this.buildDrillDownFilterInterval(c,a):this.buildDrillDownFilter(c,a));return b},buildDrillDownFilterInterval:function(a,b){for(var c=$.extend(!0,[],a),d=WiziCore_Helper.isInt(b[0])?b[0]:'"'+b[0]+'"',e=WiziCore_Helper.isInt(b[1])?b[1]:'"'+b[1]+'"',f=0,g=a.length;f<g;++f){var i=c[f],h=RegExp("{value}\\[1\\]",
"gi"),i=i.replace(RegExp("{value}\\[0\\]","gi"),d),i=i.replace(h,e);c[f]=i}return c}}),WiziCore_WidgetAbstract_DataIntegrationSimpleOrList={_dataIntegation:!0,_simple:WiziCore_WidgetAbstract_DataIntegrationSimple,_list:WiziCore_WidgetAbstract_DataIntegrationList,_request:null,createDataIntegrationRequest:function(){return this._callFunction(this.useMap(),"createDataIntegrationRequest",arguments)},_callFunction:function(a,b,c){return!a?this._simple[b].apply(this,c):this._list[b].apply(this,c)},sendDataRequest:function(){return this._callFunction(this.useMap(),
"sendDataRequest",arguments)},getMap:function(){return this._callFunction(this.useMap(),"getMap",arguments)},applyDataFromRequest:function(){return this._callFunction(this.useMap(),"applyDataFromRequest",arguments)},sendDrillDown:function(){return this._callFunction(this.useMap(),"sendDrillDown",arguments)},processDrillDownFilter:function(){return this._callFunction(this.useMap(),"processDrillDownFilter",arguments)},buildDrillDownFilter:function(a,b){return this._callFunction(this.useMap(),"buildDrillDownFilter",
arguments)},getDataRows:function(){return this._callFunction(this.useMap(),"getDataRows",arguments)},buildMultiDrillDownFilter:function(a,b){return this._callFunction(this.useMap(),"buildMultiDrillDownFilter",arguments)}},WiziCore_WidgetAbstract_DataIntegrationChart=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationList,{getDataRows:function(a){for(var b=this.getMap(a),c={},d=1,e=a.length;d<e;++d)c[a[d][b.labeluid]]=a[d][b.valueuid];return{0:c}}}),WiziCore_WidgetAbstract_DataIntegrationChartMulti=
jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationChart,{_isMultiRequest:null,_seriesRequest:null,_labels:null,_waitLabels:null,createDataIntegrationRequest:function(){this._isMultiRequest?this.createDataIntegrationMultyRequest():WiziCore_WidgetAbstract_DataIntegrationChart.createDataIntegrationRequest.apply(this,arguments)},_initRequestLoad:function(){this._resultChartData={};this._waitLabels=[];for(var a in this._seriesRequest)this._seriesRequest[a]=!1},createDataIntegrationMultyRequest:function(){this._seriesRequest=
{};this._request={};this._initRequestLoad();var a=this.multySeries().rows,b;typeof this.id=="function"&&(b=this.id());for(var c=this.view(),d=this,e=function(a,e,f,b){return function(){return d._getSerieInfo(a(),e,f,b)}},f=function(a){return function(e,f){d.applyMultiDataFromRequest(e,f,a)}},g=0,i=a.length;g<i;++g){var h={inputs:e($.proxy(d.filter,d),a[g].data[0],"seriesId"),outputs:e($.proxy(d.fields,d),a[g].data[0],"name","labeluid"),groupBy:this.groupby,listen:this.listenview,onview:this.onview,
applyview:this.applyview,newRequest:function(){d.onNewRequest()}};h.id=b;this._seriesRequest[a[g].data[0]]=!1;this._request[a[g].data[0]]=WiziCore_WidgetExtension_DataIntegration.createRequest(c,h,f(a[g].data[0]),this)}if(this.orderby()!=void 0&&this.orderby().length>0)a={inputs:function(){return d._getSerieInfo(d.filter(),-1,"seriesId")},outputs:function(){return d._getSerieInfo(d.fields(),-1,"name","labeluid")},groupBy:this.groupby,orderBy:this.orderby,listen:this.listenview,onview:this.onview,
applyview:this.applyview,newRequest:function(){d.onNewRequest()}},a.id=b,this._seriesRequest.labeluid=!1,this._request.labeluid=WiziCore_WidgetExtension_DataIntegration.createRequest(c,a,f("labeluid"),this)},_getSerieInfo:function(a,b,c,d){var e=[];if(a!==void 0)if(jQuery.isArray(a)&&!jQuery.isArray(a[0])&&typeof a[0]!="object")for(var f=0,g=a.length;f<g;++f)(a[f][c]==b||a[f][c]==d)&&e.push(a[f]);else for(f in a)if(f==b||f==d||f==0)e=e.concat(a[f]);return e},applyMultiDataFromRequest:function(a,b,
c){acDebugger.systemLog(c,a);a||(c=="labeluid"?this._processLabelsData(b):this._seriesRequest.labeluid==void 0||this._seriesRequest.labeluid?this._processSerieData(b,c):this._waitLabels.push([b,c]));this.applySetData()},applySetData:function(){for(var a in this._seriesRequest)if(!this._seriesRequest[a])return;a={};for(var b=this.multySeries().rows,c=0,d=b.length;c<d;++c)a[b[c].data[1]]=this._resultChartData[b[c].data[0]];this.setData(a)},_processLabelsData:function(a){this._labels={};for(var b=1,
c=a.length;b<c;++b)this._labels[a[b]]=[];this._seriesRequest.labeluid=!0;a=0;for(b=this._waitLabels.length;a<b;++a)this._processSerieData(this._waitLabels[a][0],this._waitLabels[a][1])},_processSerieData:function(a,b){var c=this.getMap(a);if(this._resultChartData==null)this._resultChartData=this._labels==null?{}:this._labels;for(var d=c.labeluid,c=c[b],e={},f=1,g=a.length;f<g;++f)e[a[f][d]]=a[f][c];this._resultChartData[b]||(this._resultChartData[b]={});if(this._labels!==null)for(var i in this._labels)this._resultChartData[b][i]=
e[i];else this._resultChartData[b]=e;this._seriesRequest[b]=!0},sendDataRequest:function(){this._isMultiRequest=typeof this.multySeries=="function"&&this.multySeries().rows!==void 0&&this.multySeries().rows.length>1;this.createDataIntegrationRequest();if(this._isMultiRequest){var a=this.listenview!==void 0&&this.listenview()?"bind":"load",b;for(b in this._request)if(this._request[b]!=null)this._request[b][a]()}else WiziCore_WidgetAbstract_DataIntegrationChart.sendDataRequest.apply(this,arguments)},
reloadDataIntegrationData:function(){if(this._request)if(this._isMultiRequest)for(var a in this._request)this._request[a].load();else this._request.load();else this.sendDataRequest()},onNewRequest:function(){this._initRequestLoad()},sendDrillDown:function(){if(this._request!==null&&this.applyview()){var a=this.processDrillDownFilter(this.isMultiValue());if(this._isMultiRequest)for(var b in this._request){this._request[b].drillDown(this.id(),a,this.resetfilter());break}else this._request.drillDown(this.id(),
a,this.resetfilter())}}}),WiziCore_WidgetAbstract_DataIntegrationChartMultiFlot=AC.WidgetExt.DataIntegration.ChartMultiFlot=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationChartMulti,{_isMultiRequest:null,_seriesRequest:null,_labels:null,_waitLabels:null,createDataIntegrationRequest:function(){this._isMultiRequest?this.createDataIntegrationMultyRequest():WiziCore_WidgetAbstract_DataIntegrationChart.createDataIntegrationRequest.call(this,this.applyDataFromRequest)},applyDataFromRequest:function(a,
b,c){if(a===!1)if(b!=void 0&&b[1]!=void 0){a=this.getDataRows(b);b=null;if("data"in a&&"keys"in a)b=a.keys,a=a.data;this.setData(a);typeof this._setDataKeys=="function"&&this._setDataKeys(b);typeof this.updatePageCount=="function"&&(this.updatePageCount(c),this.updateNavigationControls())}else this.setData(null)},getDataRows:function(a){for(var b=this.getMap(a),c=[],d=1,e=a.length;d<e;++d)c.push({label:a[d][b.labeluid],data:a[d][b.valueuid]});return{0:c}},_processLabelsData:function(a){this._labels=
[];for(var b=1,c=a.length;b<c;++b)this._labels.push({label:a[b][0],data:null});this._seriesRequest.labeluid=!0;a=0;for(b=this._waitLabels.length;a<b;++a)this._processSerieData(this._waitLabels[a][0],this._waitLabels[a][1])},_processSerieData:function(a,b){var c=this.getMap(a);if(this._resultChartData==null)this._resultChartData=this._labels==null?{}:this._labels;var d=c.labeluid,e=c[b],c=$.extend(!0,[],this._labels);if(this._labels==null||this._labels.length<1)for(var f=1,g=a.length;f<g;++f)c.push({label:a[f][d],
data:a[f][e]});else{f=1;for(g=a.length;f<g;++f)for(var i=0,h=c.length;i<h;i++)if(c[i].label==a[f][d]){c[i].data=a[f][e];break}}this._resultChartData[b]||(this._resultChartData[b]=[]);if(this._labels!==null){d=0;for(g=this._labels.length;d<g;d++)this._resultChartData[b][d]=c[d]}else this._resultChartData[b]=c;this._seriesRequest[b]=!0}}),WiziCore_WidgetAbstract_DataIntegrationTimeline=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationList,{_seriesRequest:null,_initRequestLoad:function(){this._resultData=
{};for(var a in this._seriesRequest)this._seriesRequest[a]=!1},createDataIntegrationMultyRequest:function(){this._seriesRequest={};this._request={};this._initRequestLoad();var a=this.multySeries().rows,b;typeof this.id=="function"&&(b=this.id());var c=this.view();if(c)for(var d=this,e=function(a,e,f,b){return function(){return d._getSerieInfo(a,e,f,b)}},f=function(a){return function(e,f){d.applyMultiDataFromRequest(e,f,a)}},g=0,i=a.length;g<i;++g){var h={inputs:e(d.filter(),a[g].data[0],"seriesId"),
outputs:d.fields(),groupBy:this.groupby,orderBy:this.orderBy,listen:this.listenview,onview:this.onview,applyview:this.applyview,newRequest:function(){d.onNewRequest()}};h.id=b;this._seriesRequest[a[g].data[0]]=!1;this._request[a[g].data[0]]=WiziCore_WidgetExtension_DataIntegration.createRequest(c,h,f(a[g].data[0]),this)}},_getSerieInfo:function(a,b,c,d){var c=[],e;for(e in a)if(e==b||e==d||e==0)c=c.concat(a[e]);return c},applyMultiDataFromRequest:function(a,b,c){debuger.systemLog(c,a);a||this._processSerieData(b,
c);this.applySetData()},applySetData:function(){for(var a in this._seriesRequest)if(!this._seriesRequest[a])return;this.setData({tree:this._resultData.treeid,timeline:this._resultData.timelineid})},_processSerieData:function(a,b){var c={items:{}},d=this.getMap(a),e;e=b=="treeid"?{appid:"appId",nameid:"name",parentid:"parentId",iconid:"icon"}:{appid:"appId",nameid:"name",parentid:"parentId",dateid:"date",iconid:"icon"};for(var f=1;f<a.length;f++){var g=a[f],i={data:{}},h=g[d.appid];delete g[d.appid];
for(var j in d)g[d[j]]!=void 0&&(e[j]!=void 0?i[e[j]]=g[d[j]]:i.data[j]=g[d[j]]);c.items[h]=i}this._resultData[b]=c;this._seriesRequest[b]=!0},sendDataRequest:function(){this.createDataIntegrationMultyRequest();var a=this.listenview!==void 0&&this.listenview()?"bind":"load",b;for(b in this._request)this._request[b][a]()},reloadDataIntegrationData:function(){if(this._request)for(var a in this._request)this._request[a].load();else this.sendDataRequest()},onNewRequest:function(){this._initRequestLoad()},
destroyDataIntegration:function(){var a=this._request;if(a){for(var b in a){var c=a[b];c&&c.destroy&&c.destroy();delete a[b]}this._request=null}},sendDrillDown:function(){if(this._request!==null&&this.applyview()){var a=this.processDrillDownFilter(!0);this._request.drillDown(this.id(),a,this.resetfilter())}}}),WiziCore_WidgetAbstract_DataIntegrationContainer=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,{createDataIntegrationRequest:function(){return(this._singleData?WiziCore_WidgetAbstract_DataIntegrationSimple:
WiziCore_WidgetAbstract_DataIntegrationList).createDataIntegrationRequest.apply(this,arguments)},applyDataFromRequest:function(a,b,c){if(a===!1)if(b!=void 0&&b[1]!=void 0){a=this.getDataRows(b);b=null;if(a&&"__ac_keys"in a)b=a.__ac_keys;this.setData(a);typeof this._setDataKeys=="function"&&this._setDataKeys(b);typeof this.updatePageCount=="function"&&(this.updatePageCount(c),this.updateNavigationControls())}else this.setData(null)},getDataRows:function(a){var b=this.getMapNew(a),c=null;typeof this.keyFields==
"function"&&(c=this.keyFields());var d={length:0,data:{}};if(c!=null)for(var e in c)d.data[e]=[];var c={},f;e=a.length;if(e>0)for(f in b.data)c[f]=[];for(f=1;f<e;++f){var g=a[f],i;for(i in b.data){var h=b.data[i],j;if(typeof h!="object")j=g[h];else{j={};for(var k in h)j[k]=g[h[k]]}c[i].push(j)}for(var l in b.keys)d.data[l].push(g[b.keys[l]]);++d.length}return{__ac_data:c,__ac_keys:d}}}),WiziCore_WidgetAbstract_DataIntegrationCheckbox=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,
{applyDataFromRequest:function(a,b){var c=this.getMap(b);a===!1&&(b!=void 0&&b[1]!=void 0&&b[1][0]!=void 0?(this.setData(b[1][c.valueuid]),this.label(b[1][c.labeluid])):this.setData(null))}}),WiziCore_WidgetAbstract_DataIntegrationGrid=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationList,{getDataRows:function(a){var b=this.getMapAdv(a),c,d=[],e=null;typeof this.keyFields=="function"&&(e=this.keyFields());var f={length:0,data:{}};if(e!=null)for(var g in e)f.data[g]=[];e=1;for(g=a.length;e<
g;e++){var i=[],h={data:i,id:e,key:{}},j=a[e];for(c in b.data)i.push(j[b.data[c]]);for(var k in b.keys)i=j[b.keys[k]],f.data[k].push(i),h.key[k]=i;++f.length;d.push(h)}return{data:{rows:d},keys:f}},getMapAdv:function(a){for(var a=this.getMapNew(a),b={data:{},keys:a.keys},c=this.colmodel(),d=0,e=c.length;d<e;++d)b.data[d]=a.data[c[d].colUid];return b},sendDrillDown:function(){if(this._request!==null&&this.applyview()){var a=this.processDrillDownFilter();this._request.drillDown(this.id(),a,this.resetfilter())}},
processDrillDownFilter:function(){var a=[],b=this.value(),c=this.onview();c!=void 0&&c!=""&&(a=this.buildDrillDownFilter(c,b));return a},buildDrillDownFilter:function(a,b){for(var c=$.extend(!0,[],a),d=0,e=b.length;d<e;d++)for(var f=RegExp("{value}\\["+d+"\\]","gi"),g=WiziCore_Helper.isInt(b[d])?b[d]:'"'+b[d]+'"',i=0,h=a.length;i<h;++i){var j=c[i],j=j.replace(f,g);c[i]=j}return c}}),WiziCore_WidgetAbstract_DataIntegrationAssocArray=AC.WidgetExt.DataIntegration.AssocArray=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationList,
{getDataRows:function(a){for(var b=this.getMap(a),c=[],d=1,e=a.length;d<e;d++){var f={},g;for(g in b)f[g]=a[d][b[g]];c.push(f)}return c},sendDrillDown:function(a){this._request!==null&&this.applyview()&&(a=this.processDrillDownFilter(a),this._request.drillDown(this.id(),a,this.resetfilter()))},processDrillDownFilter:function(a){var b=[],c=this.onview();c!=void 0&&c!=""&&(b=this.buildDrillDownFilter(c,a));return b},buildDrillDownFilter:function(a,b){for(var c=$.extend(!0,[],a),d=this.getDataModel(),
e=d.length;e--;)for(var f=d[e].uid,g=b[f],g=WiziCore_Helper.isInt(g)?g:'"'+g+'"',f=RegExp("{"+f+"}","gi"),i=0,h=a.length;i<h;++i){var j=c[i],j=j.replace(f,g);c[i]=j}return c}}),WiziCore_WidgetAbstract_DataIntegrationAssocArrayWithFiltering=AC.WidgetExt.DataIntegration.AssocArrayWithFiltering=jQuery.extend({},WiziCore_WidgetAbstract_DataIntegrationAssocArray,{createDataIntegrationRequest:function(a){var b={inputs:this.filterListData,outputs:this.fields,groupBy:this.groupby,orderBy:this.orderby,listen:this.listenview,
onview:this.onview,applyview:this.applyview};typeof this.startPosition=="function"&&typeof this.elementsPerPage=="function"&&(b.interval={start:this.startPosition,count:this.elementsPerPage});typeof this.id=="function"&&(b.id=this.id());var c=this.view();this._addCrudFields(c,b);if(typeof a!=="function")a=this.applyDataFromRequest;this._request=WiziCore_WidgetExtension_DataIntegration.createRequest(c,b,a,this)}}),WiziCore_WidgetAbstract_DataIntegrationMultyColumnList=AC.WidgetExt.DataIntegration.MultyColumnList=
jQuery.extend({},AC.WidgetExt.DataIntegration.AssocArray,{getDataRows:function(a){for(var b=this.getMap(a),c=[],d=1,e=a.length;d<e;d++){var f=parseInt(a[d][b.columnIndex]),g=[a[d][b.labeluid],a[d][b.valueuid]];isNaN(f)||(c[f]||(c[f]=[]),c[f].push(g))}return c},buildDrillDownFilter:function(a,b){var c=$.extend(!0,[],a);if(b==null)return c;for(var d=0,e=b.length;d<e;d++)for(var f=b[d],f=WiziCore_Helper.isInt(f)?f:'"'+f+'"',g=RegExp("{value}\\["+d+"\\]","gi"),i=0,h=a.length;i<h;++i){var j=c[i],j=j.replace(g,
f);c[i]=j}return c}}),WiziCore_Methods_Form=function(a,b,c,d){return{_visualizerCurrentPage:null,_parentApp:null,networkTimeout:function(a){return this._webClientCall("timeout",arguments)},alert:function(a,f,b,d){return this.isNativeApp()?navigator.notification.alert(a,f,b,d):alert(a)},getACVersion:function(){var a=b.AC.Core.lang().trText("version_date").split(" ")[0].replace(",","").split(".");this.getACVersion=function(){return a};return a},confirm:function(a,f,b,d){return this.isNativeApp()?navigator.notification.confirm(a,
f,b,d):(a=confirm(a),f&&WiziCore_Helper.callCallbackAndCatchErrors(this,"confirm",f,[a]),a)},debugOutput:function(a){b.acDebugger!=d&&typeof b.acDebugger.log=="function"&&acDebugger.log(a)},showMessage:function(e,f,b){var e=WiziCore_Helper.showInfo(f,e),d=this;a(e).one(WiziCore_UI_MessageBoxWidget.onDialogClose,function(a,e){switch(e){case WiziCore_UI_MessageBoxWidget.IDOK:WiziCore_Helper.callCallbackAndCatchErrors(d,"showMessage",b)}})},showConfirm:function(e,f,b){var d=this,e=WiziCore_Helper.showConfirm(f,
e);a(e).one(WiziCore_UI_MessageBoxWidget.onDialogClose,function(a,e){if(typeof b=="function")switch(e){case WiziCore_UI_MessageBoxWidget.IDYES:WiziCore_Helper.callCallbackAndCatchErrors(d,"showConfirm",b,[!0]);break;case WiziCore_UI_MessageBoxWidget.IDNO:WiziCore_Helper.callCallbackAndCatchErrors(d,"showConfirm",b,[!1])}})},showPrompt:function(e,f,b,c){var h=this,e=WiziCore_Helper.showPrompt(e,f);a(e).one(WiziCore_UI_MessageBoxWidget.onDialogClose,function(a,e,f){typeof c=="function"&&(f==b?WiziCore_Helper.callCallbackAndCatchErrors(h,
"showPrompt",c,[!0]):f!=d&&WiziCore_Helper.callCallbackAndCatchErrors(h,"showPrompt",c,[!1]))})},parentApp:function(){return this._parentApp},childApp:function(a){typeof a!="object"&&(a=this.w(a));return typeof a.childApp=="function"?a.childApp():null},getValue:function(a){if(a!=d)return a=(typeof a=="object"?a:this.w(a)).value(),typeof a=="object"?WiziCore_Helper.clone(a):a;throw"widget name not specified";},setValue:function(a,f,b){var d=[].slice.call(arguments,1),d=WiziCore_Helper.clone(d);this._applyFunc(a,
function(a){a.value.apply(a,d)})},_loadCss:function(e,f){var b=a("<link>");b.attr({rel:"stylesheet",type:"text/css",href:e,"class":f});a("head").append(b)},_removeCss:function(e){a("link[class="+e+"]").remove()},_setCurrentPage:function(a){this._visualizerCurrentPage=a},currentPage:function(){return this._visualizerCurrentPage},runEditor:function(){var e=this;if(WiziCore_Helper.checkForIEandBlock()){var f=this.isIframeMode(),b=this.isEmbed();!b&&e.runtimeMode()==WiziCore_UI_FormRuntime.LIVE_MODE?
f?(f=AC.Core.lang().trText("dialog_editor_embed_description"),b=AC.Core.lang().trText("dialog_title_open_editor"),f=WiziCore_Helper.showConfirm(f,b),a(f).one(WiziCore_UI_MessageBoxWidget.onDialogClose,function(a,f){switch(f){case WiziCore_UI_MessageBoxWidget.IDYES:e._runEditor(!0);break;case WiziCore_UI_MessageBoxWidget.IDNO:e._runEditor(!1)}})):e._runEditor(!1):WiziCore_Helper.showWarning(null,AC.Core.lang().tr(b?"live_load_runeditor_warning_embedapp":"live_load_runeditor_warning_full"))}},_runEditor:function(e){var f=
this,g=this.formId(),d=this.currentPage().id(),h=this.context().getSession().getToken();if(e){var j=b.open("editor_frame.php","Swirl_Editor","menubar=no,location=no,resizable=yes,scrollbars=no,status=no");b.Swirl_EditorInitReady=function(){j.Swirl_createEditor(h,g,d);j.focus()};b.Swirl_OnEditorClose=function(){f.switchApp({formId:g,pageId:d});j.close()}}else{var k=a("<iframe>");k.attr("src","editor_frame.php");k.attr("id","editorFrame");k.css({width:"100%",height:"100%",position:"absolute",top:"0",
left:"0",border:"0"});a(c.body).append(k);k.hide(0);a("#wiziLiveMode").hide(400);b.Swirl_EditorInitReady=function(){k.show(400);k[0].contentWindow.Swirl_createEditor(h,g,d)};b.Swirl_OnEditorClose=function(){f.switchApp({formId:g,pageId:d});k.hide(400);k.remove();a("#wiziLiveMode").show(400)}}},updateCodeAfterWidgetChangeName:function(a,f,b){var a=this.actions().system,c=this.actions().userCode,h;for(h in a){var j=a[h],k=j.handler;if(j.handler!=d&&k.indexOf(b)!=-1)j.handler=j.handler.replace(b+"_",
f+"_"),c!==d&&(c=c.replace(k,j.handler))}this.actions().userCode=c},assign:function(a,f){f=this.context().dataObject().processString(this,f,!1);this.setValue(a,f)},enableView:function(a,f){return this.viewByName(a).enable(f)},setProperty:function(a,f,b){b=typeof b=="object"?WiziCore_Helper.clone(b):b;this._applyFunc(a,function(a){a.prop(f,b)})},getProperty:function(a,f){if(a!=d&&f!=d){var b=typeof a=="object"?a:this.findName(a);if(b!=null)return b=b.prop(f),typeof b=="object"?WiziCore_Helper.clone(b):
b;else throw WiziCore_Helper.getExceptionsString("widget",a);}throw"Wrong getProperty parameters";},setData:function(a,f,b){var b=b==d?!0:b,c=this._skipTokenCreation;this._skipTokenCreation=!0;f=typeof f=="object"?WiziCore_Helper.clone(f):f;this._applyFunc(a,function(a){a.setData(f,b)});this._skipTokenCreation=c},getData:function(a){if(a!=d){var f=a;typeof f!="object"&&(f=this.w(a));a=f.getData();return typeof a=="object"?WiziCore_Helper.clone(a):a}throw"widget name not specified";},sectionsOpeningModes:function(a,
f){if(a!=d){var b=a;typeof b!="object"&&(b=this.w(a));return b.sectionsOpeningModes(f)}return null},saveSourceData:function(a,f,b){if(typeof b=="function"){(a==d||a.type==d||a.uid==d)&&b(null);var c=a.uid;switch(a.type){case WiziCore_ObjectChooserTypes.WIDGET:c!=d&&(a=c,typeof a!="object"&&(a=this.findName(c)),b(a.setData(f)));break;case WiziCore_ObjectChooserTypes.MYDETAILS:if(a.parentUid==d){b(null);break}this.setMyDetailsParamValue({uid:c,identUid:a.parentUid},f,b)}}},loadSourceData:function(a,
f){if(typeof f=="function"){(a==d||a.type==d||a.uid==d)&&f(null);var b=a.uid,c=null;switch(a.type){case WiziCore_ObjectChooserTypes.WIDGET:b=this.find(b);b!=null?(c=b.getData(),f(c)):f(null);break;case WiziCore_ObjectChooserTypes.MYDETAILS:if(a.parentUid==d){f(null);break}this.getMyDetailsParamValue({uid:b,identUid:a.parentUid},f)}}},setMyDetailsParamValue:function(a,f,b,c){var h=this,j=this.context().accounts(),k=this.context().accounts().identParams(),l=null,c=c==d?!0:c,n=a.identUid,m=a.uid,o=a.groupName,
p=a.paramName;o!=d?l=this.getMyDetailsGroupByName(o):n!=d&&(l=k[n]);if(l!=null)for(var q in l.params){if(p!=d&&p==l.params[q].name||m!=d&&l.params[q].id_param==m){l.params[q].value=f;j.saveIdentParams(l,function(a){b(!a)});break}}else c?j.loadIdentsParams(function(){h.setMyDetailsParamValue(a,f,b,!1)}):b(!1)},getMyDetailsParamValue:function(a,f,b){var c=this,h=this.context().accounts(),j=this.context().accounts().identParams(),k=null,l=null,b=b==d?!0:b,l=a.identUid,n=a.uid,m=a.groupName,o=a.paramName;
if(m!=d)k=this.getMyDetailsGroupByName(m).params;else if(l!=d)k=j[l].params;if(k!=null)for(var p in k){if(o!=d&&o==k[p].name||n!=d&&k[p].id_param==n){l=k[p].value;f(l);break}}else b?h.loadIdentsParams(function(){c.getMyDetailsParamValue(a,f,!1)}):f(null)},userParameterGet:function(a,f){return this.getEnvValue("["+[WiziCore_DataObject.USER,WiziCore_DataObject.PARAMETERS,a,f].join(".")+"]")},getEnvValue:function(a){return this.context().dataObject().processString(this,a,!1)},getTokenValue:function(a){return this.context().dataObject().processToken(this,
a,!1)},userParameterSet:function(a,f,b,d){this.setMyDetailsParamValue({groupName:a,paramName:f},b,d)},getMyDetailsGroupByName:function(a){var b=this.context().accounts().identParams(),d=null,c;for(c in b)if(b[c].name==a){d=b[c];break}return d},refreshData:function(a){this._applyFunc(a,function(a){a.reloadDataIntegrationData()})},logout:function(a){var b=this;WiziCore_Helper.disableInterface(AC.Core.lang().tr("exiting"));this.context().getSession().sessionLogout(function(){AC.Core.cookie().cookie("swirlSession",
null);b.onLogout(a)})},onLogout:function(a){this.context().getSession().createGuestSession(function(){WiziCore_Helper.enableInterface();a!=d&&a()})},reset:function(){this.runtimeMode()==WiziCore_UI_FormRuntime.LIVE_MODE?this.context().formRunTime(this.runTimeId()).reOpen():WiziCore_Helper.showWarning(null,AC.Core.lang().tr("live_load_warning_cant_reset"))},switchApp:function(a,b,g,c,h){var j={};if(typeof a=="object"&&a!=d)j.appId=a.appId!=d?a.appId:a.formId,j.pageName=a.pageName,j.pageId=a.pageId,
j.formInstance=a.formInstance,j.twirlyThing=a.twirlyThing,j.inputParams=a.inputParams;else if(typeof a=="string")j.appId=a,j.pageName=b!=d?b:d,j.formInstance=g!=d?g:d,j.twirlyThing=c!=d?c:d,j.inputParams=h!=d?h:d;else{WiziCore_Helper.showWarning(null,AC.Core.lang().tr("live_load_switchapp_warning_setapp"));return}this.runtimeMode()==WiziCore_UI_FormRuntime.LIVE_MODE?this._loadFormForRuntime(j):WiziCore_Helper.showWarning(null,AC.Core.lang().tr("live_load_switchapp_warning_cant_switch"))},_stopRuntimeApp:function(){var a=
this.context().formRunTime(this.runTimeId());a&&a.stop()},_loadFormForRuntime:function(a,b,g){function c(){n.widget&&n.form?q.twirlyThing(!1,{form:n.form,widget:n.widget}):q.twirlyThing(!1)}b=b===!0?!0:!1;if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE){var h=a.appId,j=a.pageName,k=a.pageId,l=a.formInstance,n=a.twirlyThing,m=a.inputParams,o=a.embedWnd,p=this.context(),q=p.formRunTime(this.runTimeId()),a=p.getSession(),r=this;if(b){var t=new WiziCore_UI_FormRuntime(WiziCore_UI_FormRuntime.LIVE_MODE,
o);q.addEmbedRuntime(t);q=t}t=this.twirlyThingOptions();n=n==d?{}:n;n.widget&&n.form&&(t=n.form.twirlyThingOptions());if(n.image==null&&t!=d&&typeof t=="object")for(var s in t)n[s]==d&&(n[s]=t[s]);q.twirlyThing(!0,n);a.loadFullForm(null,h,l,function(a){if(a.error==!1){if(!b)if(r.callClosingEvent(d,d,!1).isPropagationStopped()){c();return}else q.beforeSwitchShow();if(m!=d&&typeof m=="object"){var e=p.inputParameters(),h;for(h in m)e[h]=m[h]}p.forms()._populateFormResult(a.object.result,function(a,
e,h,l){if(a==!1){if(b&&p.formRunTime(r.runTimeId())==d){q.stop();return}a=h.pages();if(j!=d)for(var m in a)if(a[m].name().toUpperCase()==j.toUpperCase()){k=a[m].id();break}b?q.show(h,l,o,{pageId:k,session:q.session(),embedCall:g(h)}):q.switchShow(h,l,{pageId:k,session:q.session()})}else WiziCore_Helper.showError(e,AC.Core.lang().tr("live_load_inst"),17);c()})}else c(),a=a.object&&a.object.message?a.object.message:AC.Core.lang().tr("live_load_error"),WiziCore_Helper.showError(AC.Core.lang().tr("live_load_app"),
a,16)})}},pageJump:function(a,b,d){for(var c=this.pages(),h=a.toLowerCase(),j=a,k=0,l=c.length;k<l;k++){var n=c[k];if(n.id()==j){j=k;break}if(n.name().toLowerCase()==h){j=k;break}}j=parseInt(j);typeof j=="number"&&j<c.length?this.showPageByNum(j,b,d):acDebugger.systemLog(AC.Core.lang().trText("formclient_pagejump_error")+" id='"+a+"'")},pageNext:function(a,b){this.showNextPage(a,b)},showNextPage:function(e,b){a(this).trigger(WiziCore_Api_ClientForm.onShowNextPage,[e,b])},getRunMode:function(){if(this.runtimeMode()==
WiziCore_UI_FormRuntime.PREVIEW_MODE)return 2;else if(b.WiziCore_openIDE)return 1;return 0},pagePrevious:function(a,b){this.showPrevPage(a,b)},showPrevPage:function(e,b){a(this).trigger(WiziCore_Api_ClientForm.onShowPrevPage,[e,b])},pageCalling:function(a,b){this.showCallingPage(a,b)},showCallingPage:function(e,b){a(this).trigger(WiziCore_Api_ClientForm.onShowCallingPage,[e,b])},pageByNum:function(a,b,d){this.showPageByNum(a,b,d)},showPageByNum:function(e,b,d){a(this).trigger(WiziCore_Api_ClientForm.onShowPageByNum,
[e,b,d])},showPage:function(e,b,d){a(this).trigger(WiziCore_Api_ClientForm.onShowPage,[e,b,d])},pageForward:function(a,b){this.pageStackForward(a,b)},pageBack:function(a,b){this.pageStackBack(a,b)},pageClearStack:function(a,b){this.pageStackClear(a,b)},pageStackForward:function(e,b){a(this).trigger(WiziCore_Api_ClientForm.onPageStackForward,[e,b])},pageStackBack:function(e,b){a(this).trigger(WiziCore_Api_ClientForm.onPageStackBack,[e,b])},pageStackClear:function(){a(this).trigger(WiziCore_Api_ClientForm.onPageStackClear)},
_getClosingParams:function(a,b){return{message:a,url:b}},callClosingEvent:function(e,b,d){var c=new jQuery.Event(WiziCore_Api_ClientForm.onClosing),e=this._getClosingParams(e,b);a(this).trigger(c,[e,d]);return c},closeForm:function(a,b,d){var c=this.callClosingEvent.apply(this,arguments),h=this._getClosingParams(a,b);if(d||!c.isPropagationStopped())(c=this.context().formRunTime(this.runTimeId()))&&c.closeForm(h,d)},resetView:function(a){var b=this.viewByName(a);b||(b=this.getViewObj(a));if(b!=null)b.resetFilter();
else throw WiziCore_Helper.getExceptionsString("view",a);},reloadView:function(a){var b=this.viewByName(a);b||(b=this.getViewObj(a));if(b!=null)b.reload();else throw WiziCore_Helper.getExceptionsString("view",a);},_getViewObj:function(a){var b=this.viewByName(a);b||(b=this.getViewObj(a));return b},setViewFilter:function(b,f){var d=this._getViewObj(b);if(!d)throw"View "+b+" not found";d=d.project();jQuery.isArray(d.filter)||(d.filter=[]);for(var c=!a.isArray(f)?[f]:f,h=0,j=c.length;h<j;++h)d.filter.push(c[h])},
getViewFilter:function(a){var b=this._getViewObj(a);if(!b)throw"View "+a+" not found";a=b.project();jQuery.isArray(a.filter)||(a.filter=[]);for(var b=[],d=0,c=a.filter.length;d<c;++d)b.push(a.filter[d]);return b},getViewData:function(b,f,c,i,h,j,k,l){if(typeof c!="function")return null;var n=this,m=this.viewByName(b);if(m==null)throw WiziCore_Helper.getExceptionsString("view",b);i=i!=d&&!a.isArray(i)?[i]:i;h=h!=d&&!a.isArray(h)?[h]:h;b={inputs:i,outputs:this._convertFieldsArray(f),groupBy:h,orderBy:j,
interval:{start:k,count:l}};(new WiziCore_WidgetExtension_DataRequest(m,b,function(a,b){n._getViewDataCallback.call(n,a,b,c)},null)).load();return!0},_convertFieldsArray:function(a){if(!a)return null;for(var b=[],d=0,c=a.length;d<c;d++)b.push({name:d,value:a[d]});return b},_getViewDataCallback:function(a,b,d){d.call(this,a,b)},getViewObj:function(a){if(this._viewObjs[a]==d){var b=this.view(a);b&&(this._viewObjs[a]=new WiziCore_Api_ClientView(this,b))}return this._viewObjs[a]},viewByName:function(a){if(a!=
d){var b=this.views(),c;for(c in b)if(b[c].name==a)return this.getViewObj(b[c].viewId)}return null},getInstanceURL:function(a){return this.liveUrl(this.realId(),a)},liveUrl:function(a,b){var c=this.context().config().clientApi()+"live.php",i=[];a!=d&&i.push("formId="+a);b!=d&&i.push("instanceId="+b);i.length!=0&&(c+="?"+i.join("&"));return c},populateWidget:function(){var a=null,a=arguments[0],a=typeof a=="object"?a:this.w(a),b=a.getDataFromMap.apply(a,[].slice.call(arguments,1));this.setData(a,b)},
populateChart:function(a,b){var d=null,c=null,c={},d=typeof a=="object"?a:this.w(a);typeof b=="object"?c=b instanceof AC.Widgets.Base?b.getData():b:(c=this.w(b),c=c.getData());this.setData(d,c)},sendEmail:function(b,f){if(a.isArray(b.to))b.toArray=b.to,b.to=d;if(b.cc)b.cc=a.isArray(b.cc)?b.cc:[b.cc];if(b.bcc)b.bcc=a.isArray(b.bcc)?b.bcc:[b.bcc];if(b.attachments){var c=[];if(a.isArray(b.attachments))for(var i=0,h=b.attachments.length;i<h;i++){var j=this.w(b.attachments[i]).value();(j||j!="")&&c.push(j)}b.attachments=
c}this.context().getSession().sendEmail(b,f)},highlightWidgets:function(a,b,d){var c=this._getMandatoryShadow(b,d);a||(a=this.getFormFields());this._applyFunc(a,function(a){a.mandatoryHighlight(c)})},unhighlightWidgets:function(a){a||(a=this.getFormFields());this._applyFunc(a,function(a){a.mandatoryHighlight("")})},getRepeaterRowWidget:function(a,b){var c=null,c=a;if(a.data!=d&&a.data.self!=d)c=a.data.self;c=c.parent();if(c!=null)c=c.w(b);else throw"no parent for specified widget";return c},_checkValidateWidget:function(b,
f,c){var i=[];this._applyFunc(b,function(b){if(b.prop("mandatory")==!0&&f==!0||f==!1){var e,k=b.value();e=k===""||k===null||k===d||a.isArray(k)&&k.length==0||k!==!0&&b.widgetClass()=="WiziCore_UI_CheckBoxWidget";if(!e&&typeof k=="object"){var l=0,n=!1,m;for(m in k)if(l++,k[m]!=null){n=!0;break}l>0&&!n&&(e=!0)}e?(b.mandatoryHighlight(c),i.push(b.name())):b.mandatoryHighlight("")}});return i},checkMandatory:function(a,b,c,i){var h=[];b==d&&(b=[]);c=this._getMandatoryShadow(c,i);switch(a){case AC.Widgets.WiziCore_Api_Form.MANDATORY.FORM_WIDGETS:a=
this.getFormFields();h=this._checkValidateWidget(a,!0,c);break;case AC.Widgets.WiziCore_Api_Form.MANDATORY.ARRAY_WIDGETS:h=this._checkValidateWidget(b,!1,c);break;case AC.Widgets.WiziCore_Api_Form.MANDATORY.BOTH:a=this.getFormFields(),a=this._checkValidateWidget(a,!0,c),b=this._checkValidateWidget(b,!1,c),h=[].concat(a,b)}return h},getParent:function(a){return this.w(a).parent()},selectContents:function(a){a=typeof a=="object"?a:this.w(a);a!=null&&a.selectContents!=d&&a.selectContents()},setFocus:function(a){a=
typeof a=="object"?a:this.w(a);a!=null&&a.setFocus!=d&&a.setFocus()},emptyWidget:function(a){this._applyFunc(a,function(a){a.empty()})},resetWidget:function(a,b,d){this._applyFunc(a,function(a){a.reset(b,d)})},enabled:function(a,b){this._applyFunc(a,function(a){typeof a.enable=="function"&&a.enable(b)})},readOnly:function(a,b){this._applyFunc(a,function(a){a.prop("readOnly",b)})},visible:function(a,b){this._applyFunc(a,function(a){a.visible(b)})},_applyFunc:function(a,b){for(var d=this._getWidgetArray(a),
a=d[0],d=d[1],c=a.length-1;c>-1;--c)a[c]&&b(a[c]);if(d.length>0)throw"Widgets '"+d.join(", ")+"' doesn't exist.";},_getWidgetArray:function(a){jQuery.isArray(a)||(a=[a]);for(var b=[],d=a.length-1;d>-1;--d)if(typeof a[d]!=="object")try{a[d]=this.w(a[d])}catch(c){b.push(a[d]),a[d]=!1}return[a,b]},httpRequest:function(){var a=[].slice.call(arguments,0),b=a[6]||{};b.accrossdomain=b.crossdomain===d?!1:b.crossdomain;a[6]=b;return this._webClientCall("httpRequest",a)},soapRequest:function(){var a=[].slice.call(arguments,
0),b=a[4]||{};b.accrossdomain=b.crossdomain===d?!1:b.crossdomain;a[4]=b;return this._webClientCall("soapRequest",a)},_webClientCall:function(a,b){var d=this.context().webClient();return d[a].apply(d,b)},OBJ2JSON:function(){return this._webClientCall("JSON2TEXT",arguments)},JSON2OBJ:function(){return this._webClientCall("TEXT2JSON",arguments)},OBJ2XML:function(){return this._webClientCall("JSON2XML",arguments)},XML2OBJ:function(){return this._webClientCall("XML2JSON",arguments)},OBJ2ARRAY:function(){return this.advancedToArray.apply(this,
arguments)},ARRAY2OBJ:function(){return this.arrayToAdvanced.apply(this,arguments)},getFormFields:function(){for(var a=[],b=this.pages(),d=b.length,c=0;c<d;c++)var h=this._getFormField(b[c]),a=a.concat(h);return a},_getFormField:function(a){var b=[];if(typeof a.children=="function")for(var d=a.children(),c=d.length,h=0;h<c;h++)var j=this._getFormField(d[h]),b=b.concat(j);d=a.widgetClass();AC.Core.Widgets().getIsField(d)&&b.push(a.name());return b},_collectWidgetsInAppForDebug:function(a,b){if(a==
d)for(var c=this.children(),a=[],i=0,h=c.length;i<h;i++){var j=c[i];AC.Core.Widgets().getContainerType(j.widgetClass())==AC.Widgets.Base.CASE_TYPE_PAGE&&(a=[].concat(a,j.children()))}var k={};this._applyFunc(a,function(a){switch(b){case WiziCore_Methods_Form.CONST_debugValues:k[a.name()]=a.value();break;case WiziCore_Methods_Form.CONST_debugData:k[a.name()]=a.getData();break;case WiziCore_Methods_Form.CONST_debugProps:k[a.name()]=a.project()}});return k},debugValues:function(a){return this._collectWidgetsInAppForDebug(a,
WiziCore_Methods_Form.CONST_debugValues)},debugData:function(a){return this._collectWidgetsInAppForDebug(a,WiziCore_Methods_Form.CONST_debugData)},debugProperties:function(a){return this._collectWidgetsInAppForDebug(a,WiziCore_Methods_Form.CONST_debugProps)},getPlatform:function(){return WiziCore_Helper.getPlatform()},getPlatfromInfo:function(){return WiziCore_Helper.getPlatfromInfo()},getPlatformInfo:function(){return WiziCore_Helper.getPlatformInfo()},twirlyThing:function(b,f,c){var i={};if(typeof c==
"string")switch(arguments.length){case 7:if(typeof arguments[6]=="string")i.displayHourglassOver=arguments[6];case 6:if(typeof arguments[5]=="string")i.opacity=arguments[5];case 5:if(typeof arguments[4]=="string")i.bgColor=arguments[4];case 4:if(typeof arguments[3]=="string")i.color=arguments[3];case 3:if(typeof arguments[2]=="string")i.text=arguments[2]}else a.isPlainObject(c)&&(i=c);i=a.extend({},this.twirlyThingOptions(),i);f=f===d?!0:f;this._applyFunc(b,function(a){a._twirlyThing(f,i)})},getGlobalData:function(a){if(b.WiziCore_GlobalDataPool!=
d)return WiziCore_GlobalDataPool.getGlobalData(a);else acDebugger.systemLog("error, can't detect WiziCore_GlobalDataPool object")},setGlobalData:function(a,f){b.WiziCore_GlobalDataPool!=d?WiziCore_GlobalDataPool.setGlobalData(a,f):acDebugger.systemLog("error, can't detect WiziCore_GlobalDataPool object")},clearGlobalData:function(a){b.WiziCore_GlobalDataPool!=d?WiziCore_GlobalDataPool.clearGlobalData(a):acDebugger.systemLog("error, can't detect WiziCore_GlobalDataPool object")},getInputParameters:function(a){var b=
this.context().inputParameters();a!=d&&(b=b[a]);return b},isPrinting:function(){return WiziCore_Helper.isPrinting()&&!this.isEmbed()},getPrintData:function(){return WiziCore_Helper.getPrintData()},printApp:function(a,b,c){var b=b===d?{printAll:!0}:b,i=-(new Date).getTimezoneOffset()/60;b.timezone=b.timezone===d?i:b.timezone;this.context().getSession().printApp(a,b,function(a,b){WiziCore_Helper.callCallback(c,[a,b])})},getAppSnapshot:function(){var a=this.clone(),b=this.currentPage().id(),d=WiziCore_Helper.clone(this._currentInstanceInfo);
return{app:a,pageId:b,instanceInfo:d}},setAppSnapshot:function(a){if(a==d)WiziCore_Helper.showError(AC.Core.lang().trText("appsnapshot_error"),AC.Core.lang().trText("appsnapshot_appdata_undefined"));else{var b={project:WiziCore_Helper.clone(a.app),level:0,mode:this.mode()},b=new AC.Widgets.WiziCore_Api_Form(b),c=this.context(),i=c.formRunTime(this.runTimeId());c.forms().forms()[b.id()]=b;i.beforeSwitchShow();i.switchShow(b,null,{pageId:a.pageId,session:i.session()});a=WiziCore_Helper.clone(a.instanceInfo);
b._currentInstanceInfo=a}},showPagePopup:function(a){var b=null,d;for(d in this.pages()){b=this.pages()[d];if(b.id()==a){a=d;break}if(b.name().toUpperCase()==a.toUpperCase()){a=d;break}}d=this.context().formRunTime(this.runTimeId());a=parseInt(a);typeof a=="number"&&a<this.pages().length&&d.visualizer().showPageDialog(d.vuid(),b.id())},closePagePopup:function(){var a=this.context().formRunTime(this.runTimeId());a.visualizer().removePageDialog(a.vuid())},systemDebuggerStatus:function(a){return acDebugger.systemLogMode(a)},
setCookie:function(a,b,d){var c={};if(d){var h=d.path?d.path.match(/((http|ftp):\/)?\/?([^:\/\s]+)?((\/\w+)*\/)?([\w\-\.]+\.[^#?\s]+)?(#[\w\-]+)?/)?{url:RegExp["$&"],protocol:RegExp.$2,host:RegExp.$3,path:RegExp.$4,file:RegExp.$6,hash:RegExp.$7}:{url:"",protocol:"",host:"",path:"",file:"",hash:""}:{};c.expires=typeof d.expire=="string"?new Date(d.expire):d.expire;c.domain=h.host?h.host:"";c.path=h.path?h.path:"";c.secure=d.secure}AC.Core.cookie().cookie(a,b,c)},getCookie:function(a){return AC.Core.cookie().cookie(a)},
openExternal:function(a){WiziCore_Helper.openExternal(a)},mobileDial:function(a){a=a.replace(/[-() ]/g,"");this.openExternal("tel:"+a)},mobileEmail:function(a,b){var c="mailto:"+a;b!=d&&(c+=c.indexOf("?")!=-1?"&body="+b:"?body="+b);this.openExternal(c)},mobileSMS:function(a){a=a.replace(/[-() ]/g,"");this.openExternal("sms:"+a)},_DATE2DB:function(a,b){var d=null,c=null,c=typeof a=="string"?new Date(Date.parse(a)):a;if(Object.prototype.toString.call(c)!=="[object Date]"?0:!isNaN(c.getTime())){var d=
function(a){return(a<10?"0":"")+a},h=d(c.getUTCFullYear()),j=d(c.getUTCMonth()+1),k=d(c.getUTCDate());if(b)var l=d(c.getUTCHours()),n=d(c.getUTCMinutes()),m=d(c.getUTCSeconds());d=""+h+"-"+j+"-"+k;b&&(d+=" "+l+":"+n+":"+m)}return d},DATE2DB:function(a){return this._DATE2DB(a,!1)},TIME2DB:function(a){return this._DATE2DB(a,!0)},DB2DATE:function(a){if(a===d)return null;if(typeof a=="string"){var b;return(b=/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+)/.exec(a))!=null?new Date(b[1],b[2]+0-1,b[3],b[4],b[5],b[6],
0):null}else return null},dtNewDate:function(){var a=Array.prototype.slice.call(arguments),a=new TZDate(a);a.setTimeZone(this.instanceGetRTZ());return a},dtAdd:function(a,b,d){a.setTimeZone(this.instanceGetRTZ());a.dtAdd(b,d);return a},dtDifference:function(a,b,d){a.setTimeZone(this.instanceGetRTZ());b.setTimeZone(this.instanceGetRTZ());return a.dtDifference(b,d)},dtAdjust:function(a,b){a.setTimeZone(this.instanceGetRTZ());a.dtAdjust(b);return a},dtDateToString:function(a,b,d){a.setTimeZone(this.instanceGetRTZ());
return a.dtDateToString(b,d)},gaTrack:function(a){this.currentPage().GATrack(a)},filterArray:function(){return WiziCore_Helper.filter.apply(this,arguments)},mapArray:function(){return WiziCore_Helper.map.apply(this,arguments)},callService:function(a,b,d,c){var h=this;this.context().getSession().executeFunction(this.id(),function(){try{h&&!h.isDestroyed()&&typeof b=="function"&&b.apply(h,arguments)}catch(a){h._onUserCodeError(a,"callSSJ")}},function(){try{h&&!h.isDestroyed()&&typeof c=="function"&&
c.apply(h,arguments)}catch(a){h._onUserCodeError(a,"callSSJ")}},a,d)},callSSJ:function(){this.callService.apply(this,arguments)},scrollTo:function(e,f){if(WiziCore_Helper.isMobile()){var d=a(".wa-page-container-bottom");d.css({position:"relative"})}b.scrollTo(e,f);WiziCore_Helper.isMobile()&&d.css({position:"fixed"})},scrollBy:function(a,f){b.scrollBy(a,f)},isEmbed:function(){return this.parentApp()!=null},isIframeMode:function(){return b!=b.parent},defaultScrollBehavior:function(a){if(a!==d)this._defaultScrollBehavior=
a;return this._defaultScrollBehavior},restoreScrollTop:function(a){if(a!==d)this._restoreScrollTop=a;return this._restoreScrollTop},_scrolledElement:function(b){if(b)this._scrolledElementObj=a(b);return this._scrolledElementObj},createWidget:function(a,b,c,i){if(b===d||a==d)throw"Wrong call. Check createWidget params";a=this.w(a);return a.createWidget(b,c,i)},createWidgetFromJSON:function(a,b,c){if(a==null||b==d)throw"createWidgetFromJSON::container or json undefined";typeof b=="string"&&(b=JSON.parse(b));
c!=d&&(b=WiziCore_Helper.replaceNames(b,c));a=this.w(a);return a.createWidget(b.widgetClass,d,b)},cloneWidget:function(a,b){if(a==null||b==null)throw"cloneWidget::container or widget undefined";var b=this.w(b),a=this.w(a),c=b.project();a.createWidget(c.widgetClass,d,c)},deleteWidget:function(a){this._applyFunc(a,function(a){a.parent().deleteItem(a.id())})},offlineMode:function(a){return this.context().offlineMode(a)},isMobile:function(){return WiziCore_Helper.isMobile()},jGrowl:function(){a.jGrowl.apply(this,
arguments)},translate:function(a,b){var d=this.stringTable(),c=this.languages()?this.languages().defaultLng:null,b=!b?this.language():b;return d?AC.AppLng().trText(a,d[0],b,c):a},setLngToken:function(a,b){if(b!=d&&!WiziCore_Helper.isLngToken(b))WiziCore_Helper.showError(AC.Core.lang().trText("lng_token_creation_error"),AC.Core.lang().trText("lng_token_creation_error"));else return b=b?b:WiziCore_Helper.generateId(10,"ac-"),this.addTokenToStringTable("userTokens","userTokens",b,a),b},cacheImage:function(a){return a},
oAuthSignIn:function(e,f){e==d&&f(!1);var c=WiziCore_Helper.generateId(10,d,"abcdefghijklmnopqrstuvwxyz0123456789"),i=this.context().config().serverApi(),i=i.replace("json","").replace(/^https?/,"https"),h=i+"oAuth/redirect.php?providerId="+e+"&formId="+this.id()+"&id="+c,j,k=a.browser.msie,l=k&&parseInt(a.browser.version,10)<10;if(l){if(!WiziCore_Helper.checkFlash()){WiziCore_Helper.showMessage("Attention","Please install flash player");return}new easyXDM.Rpc({serializer:b.JSON,protocol:"6",local:"name.html",
swf:this.context().config().staticUrl()+"/common/js/easyXDM/easyxdm.swf",remote:i+"oAuth/oAuthResult.php",remoteHelper:i+"oAuth/name.php"},{remote:{postMessage:{}},local:{postMessage:function(a){a=a.split(" ");if(typeof b.AC["providerAuthCallback_"+a[0]]=="function")b.AC["providerAuthCallback_"+a[0]](a[1])},startRedirect:function(a){(j=b.open(h+a.replace(/^\?/,"&"),"oAuthSignIn"))&&j.focus&&j.focus()}}})}else{var n=function(a){var d=b.location,d=d.protocol+"//"+d.host;if(a.origin.replace(/^https?/,
"")==d.replace(/^https?/,"")){a=a.data.split(" ");if(typeof b.AC["providerAuthCallback_"+a[0]]=="function")b.AC["providerAuthCallback_"+a[0]](a[1]);b.removeEventListener("message",n)}};b.addEventListener("message",n,!1)}if(WiziCore_Helper.isNative()&&b.plugins&&b.plugins.childBrowser){var m=b.plugins.childBrowser.onLocationChange;b.plugins.childBrowser.onLocationChange=function(a){if(a.indexOf("oAuthResult")!=-1)a=a.indexOf("oAuthResult_true.php")!=-1,b.plugins.childBrowser.close(),f(a,c),b.plugins.childBrowser.onLocationChange=
m};b.plugins.childBrowser.showWebPage(h,{showLocationBar:!0,showAddress:!0,showNavigationBar:!1})}else l||(j=k?b.open(h,"oAuthSignIn","resizable=1,width=800,height=600"):b.open(h,"oAuthSignIn"))&&j.focus&&j.focus();b.AC["providerAuthCallback_"+c]=function(a){b.AC["providerAuthCallback_"+c]=null;j&&(j.close(),j=null);b&&b.focus&&b.focus();f(a,c)}},registerNotificationHandler:function(a,b){var d=this.context().getSession(),c=this.context().serverEvents(),h=this.id()+"#"+a,j=this,k=function(){j&&!j.isDestroyed()&&
b.apply(this,arguments)};d.getOrLoadNotificationServiceUrl(function(a,b){a||c.registerHandler(h,b,k)})},unregisterNotificationHandler:function(a){var b=this.context().getSession(),d=this.context().serverEvents(),c=this.id()+"#"+a;b.getOrLoadNotificationServiceUrl(function(a,b){a||d.unregisterHandler(c,b)})},uploadFile:function(a,b){if(typeof b=="function"&&WiziCore_Helper.isNative()){var d=this.context().config().uploadServerDirectPath(),c=a.substr(a.lastIndexOf("/")+1),h={formId:this.id()};this.context().accounts().uploadForNative(a,
d,c,h,"application/octet-stream",function(a){a=JSON.parse(decodeURIComponent(a.response));a.error?b(!0):b(!1,a.url)},function(a){b(!0,a)})}}}}($,window,document);WiziCore_Methods_Form.CONST_debugValues="debugValues";WiziCore_Methods_Form.CONST_debugProps="debugProps";WiziCore_Methods_Form.CONST_debugData="debugData";
var WiziCore_Methods_Form_Instance=function(a,b,c,d){function e(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=Math.random()*16|0;return(a=="x"?b:b&3|8).toString(16)})}function f(a,b,d,c,f,g){var i=b.id_form_instance,h=a._currentInstanceInfo.version(),j=h==null?1:h+1;d&&(i=e(),j=1);b.id_form_instance=i;b.version=j;a.saveInstanceToLocalDb({instance:b,operation:d?"create":"update",roleId:c},function(e){var c={updated:{}},h={error:e,id:i,version:j};d?c.created={0:h}:
c.updated[0]=h;WiziCore_Helper.callCallback(f,[e,c]);WiziCore_Helper.enableInterface();!e&&a.hasStorage()=="CdbAndRdb"?(b.version=j,a.applyInstance(b,!1),c={},c[i]={},c[i][j]={status:WiziCore_Api_InstanceStatusRequester.Status.VALID},WiziCore_Helper.callCallback(g,[null,c])):WiziCore_Helper.callCallback(g,[e,null])})}function g(a,b,d,e){a.saveInstanceToLocalDb({instanceId:b,operation:"delete"},function(c){var f={deleted:[{error:c,version:null,id:b}]};WiziCore_Helper.callCallback(d,[c,f]);WiziCore_Helper.enableInterface();
!c&&a.hasStorage()=="CdbAndRdb"&&(f={},f[b]={},f[b][null]={status:WiziCore_Api_InstanceStatusRequester.Status.VALID},WiziCore_Helper.callCallback(e,[null,f]))})}function i(a,b,d,e,c){a.saveInstanceToLocalDb({instanceId:b,operation:"link",relationData:d},function(d){var f={links:{}};f.links[b]={error:d,id:b,version:null};WiziCore_Helper.callCallback(e,[d,f]);WiziCore_Helper.enableInterface();!d&&a.hasStorage()=="CdbAndRdb"&&(f={},f[b]={},f[b][null]={status:WiziCore_Api_InstanceStatusRequester.Status.VALID},
WiziCore_Helper.callCallback(c,[null,f]))})}function h(a){for(var b=a.length-1;b>-1;--b){var d=a[b],d=n.call(this,d);this._restoreWidgetsState(this,d)}}function j(a,b,d){var e=this,c={};this._applyFunc(a,function(a){m.call(e,a,c)});d||(c=l.call(this,c));return c}function k(a,b,d){var b=b||!1,e={},c={};this._applyFunc(a,function(a){a.appendValueToDataObject(e,c,!0,b)});a=d?WiziCore_Helper.clone(e):l.call(this,e);e=null;return a}function l(a){var b={},d;for(d in a){var e=this.find(d).name();b[e]=a[d]}return b}
function n(a){var b={},d;for(d in a)try{var e=this.w(d).id();b[e]=a[d]}catch(c){}return b}function m(a,b){var e=a.getAvailableProps(),c=a.id();b[c]={};for(var f in e)if(e[f].props!=d){var g=e[f].props,i;for(i in g){var h=g[i],j=g[i].name;j!=d&&h.persistent==!0&&(b[c][j]=a.prop(j))}}if(a.children){e=a.children();c=0;for(f=e.length;c<f;++c)m.call(this,e[c],b)}}return{_collectWidgetsState:function(a,b){for(var e=a.children(),c=0,f=e.length;c<f;++c){var g=e[c],i=g.getAvailableProps(),h=g.id();b[h]={};
for(var j in i)if(i[j].props!=d){var k=i[j].props,l;for(l in k){var m=k[l],n=k[l].name;n!=d&&m.persistent==!0&&(b[h][n]=g.prop(n))}}typeof g.children=="function"&&this._collectWidgetsState(g,b)}},_restoreWidgetsState:function(a,b){if(typeof b=="object")for(var e=a.children(),c=0,f=e.length;c<f;++c){var g=e[c],i=g.id(),i=b[i],h=g.getAvailableProps(),j;for(j in h)if(h[j].props!=d)for(var k in i)g.prop(k,i[k]);typeof g.children=="function"&&this._restoreWidgetsState(g,b)}},_collectInstanceContent:function(a){var b=
{};a==d&&(a={});for(var e=this.children(),c=0;c<e.length;++c)e[c].appendValueToDataObject(b,a);return b},_applyInstanceContent:function(a,b){for(var d=this.children(),e=0;e<d.length;++e)d[e].setValueFromDataObject(a,b)},_collectWidgetNameToIdMap:function(a,b,e){for(var a=a.children(),c=0;c<a.length;++c){var f=a[c],g=f.id();b[g]!=d&&(e[f.name()]=g);typeof f.children=="function"&&this._collectWidgetNameToIdMap(f,b,e)}},_generateTitle:function(a){var b=this.instanceTitleTemplate(),e=[],c=/{.*?}/,f={};
for(this._collectWidgetNameToIdMap(this,a,f);;){var g=c.exec(b);if(g==null){e.push(b);break}else{var i=b.search(c),h=b.substring(0,i);e.push(h);h=g[0].substring(1,g[0].length-1);h=f[h];h!=d&&e.push(a[h]);b=b.slice(i+g[0].length)}}return e.join("")},applyInstance:function(b,d){this._currentInstanceInfo=new WiziCore_Api_FormInstanceInfo(b);b!=null&&d!==!1&&(this._restoreWidgetsState(this,b.widget_state),this._applyInstanceContent(b.content,!0));this.context().dataObject().setFormInstance(this._currentInstanceInfo);
this._currentInstanceInfo._id&&a(this).trigger(AC.Widgets.WiziCore_Api_Form.onInstanceLoaded,[this._currentInstanceInfo._id])},collectInstance:function(a){var b=new WiziApp_FormInstance,d=this._currentInstanceInfo;b.id_form_instance=d.id();b.id_content=d.contentId();b.form_version=this.version();b.status=WiziCore_Api_FormInstanceInfo.Status.NORMAL;b.id_form=this.id();b.id_stage=d.stageId();b.time_zone=this.getTimeZone();b.widget_state={};this._collectWidgetsState(this,b.widget_state);b.content=this._collectInstanceContent(a);
b.title=this._generateTitle(b.content);return b},getInstanceData:function(){var b=this.collectInstance({}),d={};a.extend(!0,d,b);return d},setInstanceData:function(b){var d={};a.extend(!0,d,b);this.applyInstance(d,!0)},currentFormInstanceInfo:function(){return this._currentInstanceInfo},instanceListLoad:function(a){var b=this.context().formInstances(),d=this.id();b.loadFormInstanceList(d,a)},instanceNew:function(){this.applyInstance({},!0)},instanceLoad:function(a,d,e,c){var f=this;this.context().formInstances().loadFormInstance(a,
function(c,g,i){if(c)WiziCore_Helper.callCallback(e,[c,g]);else{var h=i.id_form;d!==!1?(h!=f.id()?f.switchApp({appId:h,formInstance:a}):f.applyInstance(i),WiziCore_Helper.callCallback(e,[c,g])):(c=f.liveUrl(h,a),b.open(c))}},c)},submitCurrentInstance:function(a,b,e,c){if(this.runtimeMode()!=WiziCore_UI_FormRuntime.LIVE_MODE)WiziCore_Helper.showWarning(null,AC.Core.lang().tr("submit_instance_preview_error"));else{var g=this.hasStorage();if(g!=d&&g!=="None"){var i=this;this._currentInstanceInfo.id();
var g=function(a,d,c,f){if(a)WiziCore_Helper.enableInterface(),acDebugger.systemLog1("error",a),typeof b!="function"&&WiziCore_Helper.showError(AC.Core.lang().trText("system_error"),a.message,112);else if(i.applyInstance(f,!1),i.hasStorage()!="CdbAndRdb")WiziCore_Helper.enableInterface();else{var f=i._currentInstanceInfo.id(),g=i._currentInstanceInfo.version();i._addInstanceForCheckingStatus(f,g,function(a,b,d){WiziCore_Helper.enableInterface();i._isDestroyed||(a.status==WiziCore_Api_InstanceStatusRequester.Status.ERROR&&
a.error!=null?i._instanceStatusError(a):a.status==WiziCore_Api_InstanceStatusRequester.Status.VALID&&(a=i._getMandatoryShadow(),i._highlightWidgets(i,{},a)));WiziCore_Helper.callCallback(e,[b,d])})}f={updated:{}};d={error:a,id:d,version:g};c?f.created={0:d}:f.updated[0]=d;WiziCore_Helper.callCallback(b,[a,f])},h=function(){WiziCore_Helper.enableInterface()},j={},k=this.collectInstance(j),l=[],m;for(m in j)l.push(m);l.length!=0?this._instanceStatusError({status:WiziCore_Api_InstanceStatusRequester.Status.ERROR,
error:{mandatory:l}}):((a=a||k.id_form_instance==null)&&(k.id_form_instance=null),acDebugger.systemLog("data to submit: ",k),WiziCore_Helper.disableInterface(AC.Core.lang().tr("saving_forminstance")),this.offlineMode()?f(this,k,a,c,b,e):this.context().formInstances().submitFormInstance(a,k,g,h,c))}else WiziCore_Helper.showWarning(AC.Core.lang().tr("submit_instance_storage_error"),AC.Core.lang().tr("submit_instance_storage_error_full"))}},_highlightWidgets:function(a,b,d){for(var a=a.children(),e=
0,c=a.length;e<c;++e){var f=a[e];f.id()in b?f.mandatoryHighlight(d):f.mandatoryHighlight("");typeof f.children=="function"&&this._highlightWidgets(f,b,d)}},_instanceStatusError:function(a){var b=a.error.unique,a=a.error.mandatory,e=this._integrityHandlingShowMessage(),c=this._integrityHandlingHighlightWidgets();if(e){e=[];if(b!=d&&b.length!=0){var f=this.uniquenessMessage();if(f==d||f==""){if(e.push(AC.Core.lang().trText("uniqueness_default_message")),b!=d){var g=[];for(f=0,h=b.length;f<h;++f){var i=
this.find(b[f]);g.push(i.name())}e.push(g.join(",<br/>"))}}else e.push(f)}if(a!=d&&a.length!=0)if(f=this.mandatoryMessage(),f==d||f==""){if(e.push(AC.Core.lang().trText("mandatory_default_message")),a!=d){g=[];for(f=0,h=a.length;f<h;++f)i=this.find(a[f]),g.push(i.name());e.push(g.join(",<br/>"))}}else e.push(f);e.length!=0&&(e=e.join("\n"),WiziCore_Helper.showError(e))}if(c){var c=this._getMandatoryShadow(),e={},h;if(b!=d)for(f=0,h=b.length;f<h;++f)e[b[f]]=!0;if(a!=d)for(f=0,h=a.length;f<h;++f)e[a[f]]=
!0;this._highlightWidgets(this,e,c)}},_addInstanceForCheckingStatus:function(b,d,e){var f=this.context().instanceStatusRequester(),c=this._getInstanceSubmitStatusEventId(b,d),g=this;a(f).bind(c,function(a,f,i,h){g._onInstanceStatusChanged(f,i,h,e,b,d,c)});f.addInstance(b,d)},_onInstanceStatusChanged:function(b,d,e,f,c,g,i){b!=c||d!=g||e.status==WiziCore_Api_InstanceStatusRequester.Status.PENDING||e.status==WiziCore_Api_InstanceStatusRequester.Status.PROCESSING||(c={},c[b]={},c[b][d]=e,b=null,e.status==
WiziCore_Api_InstanceStatusRequester.Status.ERROR&&(b=wiziCoreErrorObject("INSTANCE_STATUS_ERROR")),WiziCore_Helper.callCallback(f,[e,b,c]),a(this.context().instanceStatusRequester()).unbind(i))},_integrityHandlingHighlightWidgets:function(){var a=this.integrityHandling();return a==AC.Widgets.WiziCore_Api_Form.IntegrityHandling.HIGHLIGHT||a==AC.Widgets.WiziCore_Api_Form.IntegrityHandling.MESSAGE_AND_HIGHLIGHT},_integrityHandlingShowMessage:function(){var a=this.integrityHandling();return a==d||a==
AC.Widgets.WiziCore_Api_Form.IntegrityHandling.MESSAGE||a==AC.Widgets.WiziCore_Api_Form.IntegrityHandling.MESSAGE_AND_HIGHLIGHT},instanceSave:function(){this.instanceUpdate.apply(this,arguments)},_callForeignDataMethod:function(a,b,d,e,f){a=this.findName(a);if(a!=null){var c=this.view(a.view()),g=c&&c.crudCompatible==WiziCore_Api_ClientView.CRUD.RDB,b=a[b];typeof b=="function"?(WiziCore_Helper.disableInterface(),b.apply(a,[function(a,b){(a||!g)&&WiziCore_Helper.enableInterface();typeof e=="function"?
e.apply(e,arguments):a&&WiziCore_Helper.showError(AC.Core.lang().tr(d))},function(a,b){WiziCore_Helper.enableInterface();WiziCore_Helper.callCallback(f,arguments)}])):raiseWiziCoreError("METHOD_NOT_FOUND")}else raiseWiziCoreError("WIDGET_NOT_FOUND")},instanceSync:function(a,b,d){this.runtimeMode()!=WiziCore_UI_FormRuntime.LIVE_MODE?WiziCore_Helper.showWarning(null,AC.Core.lang().tr("submit_instance_preview_error")):this._callForeignDataMethod(a,"syncForeignAppData","foreignapp_sync_data",b,d)},instanceUpdate:function(a,
b,e){this.runtimeMode()!=WiziCore_UI_FormRuntime.LIVE_MODE?WiziCore_Helper.showWarning(null,AC.Core.lang().tr("submit_instance_preview_error")):a==d||a==""?this.submitCurrentInstance(!1,b,e):this._callForeignDataMethod(a,"updateForeignAppData","foreignapp_update_data",b,e)},instanceCreate:function(a,b,e){this.runtimeMode()!=WiziCore_UI_FormRuntime.LIVE_MODE?WiziCore_Helper.showWarning(null,AC.Core.lang().tr("submit_instance_preview_error")):a==d||a==""?this.submitCurrentInstance(!0,b,e):this._callForeignDataMethod(a,
"addForeignAppData","foreignapp_add_data",b,e)},instanceDelete:function(a,b,e,f){if(this.runtimeMode()!=WiziCore_UI_FormRuntime.LIVE_MODE)WiziCore_Helper.showWarning(null,AC.Core.lang().tr("submit_instance_preview_error"));else if(a==d||a=="")if(b=b==null&&this._currentInstanceInfo!=null?this._currentInstanceInfo.id():b,b!=null){var a=this.context().formInstances(),c=this,i=this.hasStorage()=="CdbAndRdb";WiziCore_Helper.disableInterface();this.offlineMode()?g(this,b,e,f):a.deleteFormInstance(b,function(a,
b,d){var g={deleted:[{error:a,version:d,id:b}]};a!=null||!i?(WiziCore_Helper.enableInterface(),WiziCore_Helper.callCallback(e,[a,g])):(WiziCore_Helper.callCallback(e,[a,g]),c._addInstanceForCheckingStatus(b,d,function(a,b,d){WiziCore_Helper.enableInterface();WiziCore_Helper.callCallback(f,[b,d])}))});b==this._currentInstanceInfo.id()&&this.instanceNew()}else raiseWiziCoreError("NO_INSTANCE_AVAILABLE");else this._callForeignDataMethod(a,"deleteForeignAppData","foreignapp_delete_data",e,f)},_setInstanceRelations:function(b,
d,e,f,c,g){if(b===null&&(b=this.currentFormInstanceInfo().id(),b==null)){typeof c=="function"&&c({message:"The instance is not saved"});return}var h=function(b){b!=null&&(a.isArray(b)||typeof b=="string")?typeof b=="string"&&(b=b==""?[]:[b]):b=[];return b},j=this.hasStorage()=="CdbAndRdb",e=h(e),f=h(f);if(e.length==0&&f.length==0)WiziCore_Helper.callCallback(c,[null,null]),WiziCore_Helper.callCallback(g,[null,null]);else{h=new WiziApp_InstanceRelationData;h.relationName=d;h.removed=e;h.added=f;d=
this.context().formInstances();WiziCore_Helper.disableInterface();var k=this;this.offlineMode()?i(this,b,h,c,g):d.setInstanceRelations(b,h,function(a,b,d){var e={links:{}};e.links[b]={error:a,id:b,version:d};a!=null||!j?(WiziCore_Helper.enableInterface(),WiziCore_Helper.callCallback(c,[a,e])):(WiziCore_Helper.callCallback(c,[a,e]),k._addInstanceForCheckingStatus(b,d,function(a,b,d){WiziCore_Helper.enableInterface();WiziCore_Helper.callCallback(g,[b,d])}))})}},instanceSetRelationship:function(a,b,
d,e,f,c){return this._setInstanceRelations(a,b,e,d,f,c)},instanceGetRTZ:function(){return this.getTimeZone()},instanceSetRTZ:function(a){a!=d&&this.setTimeZone(a)},dataGetValues:function(a,b){if(a===!1||a===!0||a===d)b=a,a=this;return k.call(this,a,b||!1)},dataSetValues:function(b){a.isArray(b)||(b=[b]);for(var d=b.length-1;d>-1;--d){var e=b[d],e=n.call(this,e);this._applyInstanceContent(e,!0)}},dataGetStates:function(a,b){if(a===!1||a===!0||a===d)b=a,a=this;return j.call(this,a,b||!1)},dataSetStates:function(b){a.isArray(b)||
(b=[b]);return h.call(this,b)},dataGetAll:function(a,b){if(a===!1||a===!0||a===d)b=a,a=this;var e=a,f;f=b||!1||!1;var c=new WiziApp_FormInstance,g=this._currentInstanceInfo;c.id_form_instance=g.id();c.id_content=g.contentId();c.form_version=this.version();c.status=WiziCore_Api_FormInstanceInfo.Status.NORMAL;c.id_form=this.id();c.id_stage=g.stageId();c.time_zone=this.getTimeZone();c.widget_state=j.call(this,e,f);c.content=k.call(this,e,f);return c},dataSetStates:function(b){a.isArray(b)||(b=[b]);return h.call(this,
b)},dataGetAllWithIds:function(a,b){if(a===!1||a===!0||a===d)b=a,a=this;var e=a,c;c=b||!1||!1;var f=new WiziApp_FormInstance,g=this._currentInstanceInfo;f.id_form_instance=g.id();f.id_content=g.contentId();f.form_version=this.version();f.status=WiziCore_Api_FormInstanceInfo.Status.NORMAL;f.id_form=this.id();f.id_stage=g.stageId();f.time_zone=this.getTimeZone();f.widget_state=j.call(this,e,c,!0);f.content=k.call(this,e,c,!0);return f}}}($,window,document),WiziCore_Methods_Form_Sync=function(a,b,c,
d){function e(a,b){for(var e=0,d=b.length;e<d;++e)a[b[e]]=1}function f(b,e){a.ajax({url:b,dataType:"json",success:function(a){e(!1,a)},error:function(){e(!0)}})}function g(b,e,d,f,c,i){if(f<0||f>=d.length)i();else{var h=d[f];h==b?(c(e),g(b,e,d,f+1,c,i)):(h=WiziCore_AppContext.getInstance().config().localAppsPath()+h+".json",a.ajax({url:h,dataType:"json",success:function(a){a=a.form;a==null?i(!0):(c(a),g(b,e,d,f+1,c,i))},error:function(){i(!0)}}))}}function i(a){return"'"+a.replace(/\'/g,"''")+"'"}
function h(a){return'"'+a.replace(/\"/g,'""')+'"'}function j(a){switch(typeof a){case "boolean":a=a?1:0;break;case "string":a=i(a);break;case "number":break;default:a="NULL"}return a}function k(a,b,e,d,f){var c,g,i="CREATE TABLE IF NOT EXISTS "+h(b)+" (";for(c=0,g=e.length;c<g;++c)c!=0&&(i+=","),i+=h(e[c]);if(d!=null&&d.length!=0){i+=", PRIMARY KEY (";for(c=0,g=d.length;c<g;++c)c!=0&&(i+=","),i+=h(d[c]);i+=")"}i+=")";a.executeSql(i);b="INSERT INTO "+h(b)+" (";for(c=0,g=e.length;c<g;++c)c!=0&&(b+=
","),b+=h(e[c]);b+=") VALUES ";for(c=0,g=f.length;c<g;++c){for(var e=b+"(",d=f[c],i=0,k=d.length;i<k;++i)i!=0&&(e+=","),e+=j(d[i]);e+=")";a.executeSql(e)}}function l(){return"CREATE TABLE IF NOT EXISTS "+H+" (operation TEXT, t INTEGER DEFAULT (strftime('%s', CURRENT_TIMESTAMP)))"}function n(a,b,e){b="SELECT instanceField FROM "+I+" WHERE appId = "+i(b);a.executeSql(b,function(a){for(var b=[],a=a.rows,d=0,c=a.length;d<c;++d){var f=JSON.parse(a[d].instanceField);b.push(f)}e(!1,b)},function(){e(!0)})}
function m(a,b){a.executeSql("SELECT a.appId, a.instanceField, t.fieldId FROM "+I+" a LEFT JOIN "+J+" t ON a.appId = t.appId AND a.instanceField = t.instanceField",function(a){for(var e={},a=a.rows,d=0,c=a.length;d<c;++d){var f=a[d],g=f.appId,i=JSON.parse(f.instanceField),f=f.fieldId;g in e||(e[g]=[]);e[g].push({tableField:f,instanceField:i})}b(!1,a.length>0,e)},function(){b(!0)})}function o(a){var e=function(){a(!0)};b.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(b){b.root.getDirectory(O,
{create:!0},function(d){d.removeRecursively(function(){b.root.getDirectory(O,{create:!0},function(b){a(!1,b)},e)},e)},e)},e)}function p(a,b){var e=null,d=b.split(".");d.length>1&&(e=d[d.length-1]);d=WiziCore_Helper.generateId();d=a.fullPath+"/"+d;e!=null&&(d+="."+e);return d}function q(a){a.index=a.index||0;a.instanceChanged=a.instanceChanged||!1;var b=a.attachmentFields,e=a.index;if(e>=b.length)a.allProcessedCallback(a.instanceChanged);else{for(var d=function(){++a.index;q(a)},b=b[e].instanceField,
c,f,e=a.instance,g=0,i=b.length;g<i;++g){var h=b[g];if(!(h in e)){d();return}c=e;f=h;e=e[h]}if(e==null||c==null)d();else{var j=e,k,l=a.remoteToLocalUrlMap;if(j in l){if(!l[j].error)k=l[j].localUrl,c[f]=k,a.instanceChanged=!0;d()}else k=p(a.acFilesDir,j),(new FileTransfer).download(j,k,function(){l[j]={error:!1,localUrl:k};c[f]=k;a.instanceChanged=!0;d()},function(){l[j]={error:!0};d()})}}}function r(a){a.index=a.index||0;var b=a.instanceRows,e=a.index;if(e>=b.length)a.allProcessedCallback();else{var d=
function(){++a.index;r(a)},b=b[e],c=b.instanceId,b=b.instance;if(b==null)d();else{var f=JSON.parse(b);f==null?d():q({attachmentFields:a.attachmentFields,instance:f,remoteToLocalUrlMap:a.remoteToLocalUrlMap,acFilesDir:a.acFilesDir,allProcessedCallback:function(b){b&&(b=JSON.stringify(f),b="UPDATE "+B+" SET instance = "+i(b)+" WHERE instanceId = "+i(c)+" AND isUpdatable = 1",a.attachmentDbChanges.push(b));d()}})}}}function t(a){a.index=a.index||0;var b=a.urlsToDownload,e=a.index;if(e>=b.length)a.allProcessedCallback();
else{var d=function(){++a.index;t(a)},c=a.remoteToLocalUrlMap,f=b[e].remoteUrl;if(f in c)d();else{var g=p(a.acFilesDir,f);(new FileTransfer).download(f,g,function(){c[f]={error:!1,localUrl:g};d()},function(){c[f]={error:!0};d()})}}}function s(a){a.index=a.index||0;var b=a.tableRows,e=a.index;if(e>=b.length)a.allProcessedCallback();else{var b=b[e],e=a.fieldAliasMap,d=b.instance_id,c=[],f;for(f in e){var g=b[f];g!=null&&c.push({remoteUrl:g,tableField:e[f]})}t({remoteToLocalUrlMap:a.remoteToLocalUrlMap,
urlsToDownload:c,acFilesDir:a.acFilesDir,allProcessedCallback:function(){for(var b=!1,e=!0,f="UPDATE "+h(a.tableName)+" SET ",g=0,j=c.length;g<j;++g){var k=c[g],l=k.tableField,k=a.remoteToLocalUrlMap[k.remoteUrl];k.error||(b=!0,e?e=!1:f+=",",f+=h(l)+"="+i(k.localUrl))}b&&(f+=" WHERE instance_id = "+i(d),a.attachmentDbChanges.push(f));++a.index;s(a)}})}}function u(a){var b=a.db;z(b,a.appId,function(e,d){if(e)a.onTotalFailCallback();else if(d==null)a.allProcessedCallback();else{for(var c="SELECT instance_id",
f=!1,g={},i=0,j=a.attachmentFields.length;i<j;++i){var k=a.attachmentFields[i].tableField;if(k!=null){var f=!0,l="c"+i;g[l]=k;c+=","+h(k)+" AS "+l}}c+=" FROM "+h(d);f?b.executeSql(c,function(b){s({remoteToLocalUrlMap:a.remoteToLocalUrlMap,acFilesDir:a.acFilesDir,tableRows:b.rows,fieldAliasMap:g,tableName:d,attachmentDbChanges:a.attachmentDbChanges,allProcessedCallback:a.allProcessedCallback})},a.onTotalFailCallback):a.allProcessedCallback()}})}function v(a){a.index=a.index||0;var b=a.appIds,e=a.index;
if(e>=b.length)a.allProcessedCallback();else{var d=b[e],c=a.attachmentAppMap[d],b="SELECT instanceId, instance FROM "+B+" WHERE appId = "+i(d);a.db.executeSql(b,function(b){b=b.rows;b.length==0?u({appId:d,acFilesDir:a.acFilesDir,remoteToLocalUrlMap:a.remoteToLocalUrlMap,onTotalFailCallback:a.onTotalFailCallback,attachmentDbChanges:a.attachmentDbChanges,attachmentFields:c,db:a.db,allProcessedCallback:function(){++a.index;v(a)}}):r({instanceRows:b,attachmentFields:c,attachmentDbChanges:a.attachmentDbChanges,
acFilesDir:a.acFilesDir,remoteToLocalUrlMap:a.remoteToLocalUrlMap,allProcessedCallback:function(){u({appId:d,acFilesDir:a.acFilesDir,remoteToLocalUrlMap:a.remoteToLocalUrlMap,onTotalFailCallback:a.onTotalFailCallback,attachmentDbChanges:a.attachmentDbChanges,attachmentFields:c,db:a.db,allProcessedCallback:function(){++a.index;v(a)}})}})},a.onTotalFailCallback)}}function C(a,b){var e=function(){b(!1)};o(function(d,c){m(a,function(d,f,g){if(d)e();else if(f){var d=[],i;for(i in g)d.push(i);var h=[],
j={};v({db:a,appIds:d,attachmentDbChanges:h,remoteToLocalUrlMap:j,attachmentAppMap:g,acFilesDir:c,onTotalFailCallback:e,allProcessedCallback:function(){h.length==0?b(!1):a.transaction(function(a){for(var b=0,e=h.length;b<e;++b)a.executeSql(h[b]);var b=[],d;for(d in j)e=j[d],e.error||b.push([d,e.localUrl,!1]);k(a,F,["remoteUrl","localUrl","isNew"],["localUrl"],b)},function(){b(!1)},e)}})}else b(!1)})})}function w(a,b){var e=function(){b(!0)};WiziCore_Api_LocalDb.remove("sync",function(){var d=a.tables;
WiziCore_Api_LocalDb.getDb("sync",function(c,f){f.transaction(function(b){var e=a.apps,c=[],f=[],g=[],i=[],j,m,n;for(n in e){var o=e[n];j=o.table;var p=o.relations,q=o.instanceMap,o=o.attachmentMap;if(j){c.push([n,j]);if(p)for(j=0,m=p.length;j<m;++j){var G=p[j];f.push([n,G.id,G.name,G.tableName])}if(q)for(var r in q)g.push([n,r,JSON.stringify(q[r])])}if(o)for(j=0,m=o.length;j<m;++j)i.push([n,JSON.stringify(o[j])])}k(b,P,["appId","tableName"],["appId"],c);k(b,Q,["appId","relationId","relationName",
"tableName"],["appId","relationId"],f);k(b,J,["appId","fieldId","instanceField"],["appId","instanceField"],g);k(b,I,["appId","instanceField"],["appId","instanceField"],i);for(var A in d){c=d[A].data;if(c.length<1)throw"Error";e=c[0];c=c.slice(1);k(b,A,e,null,c)}A=a.queries;for(var s in A)if(c=A[s],e=c.data,c=c.view)e="CREATE VIEW "+h(s)+" AS "+c,b.executeSql(e);else if(e){if(e.length<1)throw"Error";c=e[0];e=e.slice(1);k(b,s,c,null,e)}else throw"Error";s=a.instances;A=[];for(var E in s)e=s[E],A.push([E,
e.appId,e.updatable,e.readable,JSON.stringify(e.instance)]);k(b,B,["instanceId","appId","isUpdatable","isReadable","instance"],["instanceId"],A);E=a.loginInfo;s=[];for(var N in E)s.push([N,JSON.stringify(E[N])]);k(b,V,["attribute","value"],["attribute"],s);b.executeSql(l());b.executeSql("CREATE TABLE "+F+" (localUrl TEXT NOT NULL, remoteUrl TEXT, isNew INTEGER, mimeType TEXT, filename TEXT, PRIMARY KEY (localUrl))")},function(){b(!1,f)},e)},e)},e)}function x(a,b,e,d,c,f,g){if(a)f(!0,{});else{var i,
h,j=function(a,b,e,d){for(var c in a){var f=b[c];if(f)for(i=0,h=f.length;i<h;++i){var g=f[i];g.error=d;g.queryId=c;e.push(g)}else e.push({type:"query",queryId:c,error:d})}};g(10);WiziCore_AppContext.getInstance().dataIntegration().loadDataForOffline(b,d,c,function(a,b){var d=[];a?(j(e,e,d,!0),f(!0,d)):(g(50),j(b.errors,e,d,!0),j(b.queries,e,d,!1),w(b,function(a,b){a?f(!0):(g(70),C(b,function(a){if(a)f(!0);else{a=!1;for(i=0,h=d;i<h;++i)if(d[i].error){a=!0;break}g(100);f(a,d)}}))}))})}}function y(a,
b,e,d,c,f){var g,i=!1,h=function(a,b){e.push({id:a,version:b});a in d||(d[a]={});d[a][b]={crud:!0,opIndex:f};f in c||(c[f]={});a in c[f]||(c[f][a]={});c[f][a][b]=!0},j=function(a){if(a.error==null){h(a.id,a.version);var b=a.linkInstanceId,a=a.linkVersions;if(b!=null&&a!=null&&"length"in a)for(var e=0,d=a.length;e<d;++e)h(b,a[e])}};for(g in b.created)i=!0,j(b.created[g]);for(g in b.updated)i=!0,j(b.updated[g]);g=0;for(var k=b.deleted.length;g<k;++g)i=!0,j(b.deleted[g]);if(!i)a.error=!1}function D(b,
e,c,f,g){if(c)g(!0);else{for(var i=[],c=[],h={},j={},k=0,l=f.length;k<l;++k){var m=f[k],n={appId:m.appId,operation:m.operation};if(m.error)n.error=!0,n.sentData=e[k];else if(m.addedToRdb)if(n.error=d,m.operation!="CRUD"){var o=m.result.instanceId,m=m.result.version;c.push({id:o,version:m});o in h||(h[o]={});h[o][m]={crud:!1,opIndex:k}}else y(n,m.result,c,h,j,k);else n.error=!1;i.push(n)}if(c.length==0)g(!1,i);else{var p=WiziCore_AppContext.getInstance().instanceStatusRequester(),f=WiziCore_Helper.generateUniqueId(36),
q=b._getForeignStatusEventId(f);a(p).bind(q,function(b,c,f,j){b=h[c][f];b.crud?j.status==WiziCore_Api_InstanceStatusRequester.Status.ERROR?i[b.opIndex].error=!0:i[b.opIndex]===d&&(i[b.opIndex]=!1):j.status==WiziCore_Api_InstanceStatusRequester.Status.ERROR?(i[b.opIndex].error=!0,i[b.opIndex].sentData=e[b.opIndex]):i[b.opIndex].error=!1;delete h[c][f];a.isEmptyObject(h[c])&&(delete h[c],a.isEmptyObject(h)&&(a(p).unbind(q),g(!1,i)))});p.addInstances(c)}}}function z(a,b,e){b="SELECT tableName FROM "+
P+" WHERE appId = "+i(b);a.executeSql(b,function(a){var a=a.rows,b=null;if(a.length>0)b=a[0].tableName;e(!1,b)},function(){e(!0)})}function S(a,b,e,d){b="SELECT tableName FROM "+Q+" r JOIN "+B+" i ON r.appId = i.appId WHERE i.instanceId = "+i(b)+" AND r.relationName = "+i(e);a.executeSql(b,function(a){var a=a.rows,b=null;if(a.length>0)b=a[0].tableName;d(!1,b)},function(){d(!0)})}function L(a,b,e){b="SELECT fieldId, instanceField FROM "+J+" WHERE appId = "+i(b);a.executeSql(b,function(a){var a=a.rows,
b=null;if(a.length>0)for(var b={},d=0,c=a.length;d<c;++d){var f=a[d];b[f.fieldId]=JSON.parse(f.instanceField)}e(!1,b)},function(){e(!0)})}function M(a,b,e,d){var c={},f;for(f in b){for(var g=b[f],k=e,l=!0,m=0,n=g.length;m<n;++m){var o=g[m];if(!(o in k)){l=!1;break}k=k[o]}l&&(c[f]=k)}b=e.id_form_instance;if(d){var p="",d="",b=!0,q;for(q in c)b?b=!1:(p+=",",d+=","),e=c[q],p+=h(q),d+=j(e);c="INSERT INTO "+h(a)+" ("+p+") VALUES ("+d+")"}else{a="UPDATE "+h(a)+" SET ";q=!0;for(p in c)p!="instance_id"&&
(q?q=!1:a+=",",d=c[p],a+=h(p)+"="+j(d));q?c=null:(a+=" WHERE instance_id = "+i(b),c=a)}return c}function T(a,b,e){var c=b.appId,f=[],g,j,k=b.operation;switch(k){case "create":case "update":case "delete":k=="delete"?(j=b.instanceId,g="DELETE FROM "+B+" WHERE instanceId = "+i(j)+" AND isUpdatable = 1"):(j=b.instance.id_form_instance,g=JSON.stringify(b.instance),g=k=="create"?"INSERT INTO "+B+" (instanceId, appId, isUpdatable, isReadable, instance) VALUES ("+i(j)+","+i(b.instance.id_form)+", 1, 1, "+
i(g)+")":"UPDATE "+B+" SET instance = "+i(g)+" WHERE instanceId = "+i(j)+" AND isUpdatable = 1");g!=d&&f.push(g);z(a,c,function(d,g){d?e(null):g==null?e(f):k=="create"?L(a,c,function(a,d){a||d==null?e(null):(f.push(M(g,d,b.instance,k=="create")),e(f))}):U(a,j,function(d){d?k=="update"?L(a,c,function(a,d){a||d==null?e(null):(f.push(M(g,d,b.instance,k=="create")),e(f))}):(f.push("DELETE FROM "+h(g)+" WHERE instance_id = "+i(j)),e(f)):e(null)})});break;case "link":j=b.instanceId;var l=b.relationData;
S(a,j,l.relationName,function(a,b){if(a)e(null);else{if(b!=null){var d=j,c=l.added,g;g=l.removed;var k=!0,m,n,o,p="";for(m=0,n=g.length;m<n;++m)if(o=g[m])k?k=!1:p+=",",p+=i(o);for(m=0,n=c.length;m<n;++m)if(o=c[m])k?k=!1:p+=",",p+=i(o);(g=k?null:"DELETE FROM "+h(b)+" WHERE from_instance = "+i(d)+" AND to_instance IN ("+p+")")&&f.push(g);g=0;for(k=c.length;g<k;++g)typeof c[g]=="string"&&(m="INSERT INTO "+h(b)+" (from_instance, to_instance) VALUES ("+i(d)+","+i(c[g])+")",f.push(m))}e(f)}});break;case "CRUD":e([])}}
function U(a,b,e){b="SELECT isUpdatable FROM "+B+" WHERE instanceId = "+i(b);a.executeSql(b,function(a){var a=a.rows,b=null;if(a.length>0)b=a[0].isUpdatable;e(b)},function(){e(!1)})}function W(b){var e={};if(a.isArray(b))for(var d=b.length;d--;){var c=b[d];c.id in e||(e[c.id]={fields:a.isArray(c.fields)?c.fields:{},orFilters:a.isArray(c.orFilters)?c.orFilters:[]})}return e}function X(a,b){a.executeSql("SELECT localUrl, remoteUrl, isNew, mimeType, filename FROM "+F,function(a){for(var a=a.rows,e={},
d={},c=0,f=a.length;c<f;++c){var g=a[c];g.isNew?d[g.localUrl]={mimeType:g.mimeType,name:g.filename}:e[g.localUrl]=g.remoteUrl}b(!1,e,d,!1)},function(){b(!0)})}function Y(a,b,e,d){e in a?d(!1,a[e]):n(b,e,function(b,c){b?d(!0):(a[e]=c,d(!1,c))})}function R(a){a.index=a.index||0;var b=a.attachmentFields,e=a.index;if(e>=b.length)a.allProcessedCallback();else{for(var d=function(){++a.index;R(a)},b=b[e],c,f,e=a.instance,g=0,h=b.length;g<h;++g){var j=b[g];if(!(j in e)){d();return}c=e;f=j;e=e[j]}if(e==null||
c==null)d();else{var k=e,l;k in a.urlMap?(l=a.urlMap[k],c[f]=l,d()):k in a.newUrls?(b=a.newUrls[k],e={formId:a.appId},g=WiziCore_AppContext.getInstance(),h=g.config().uploadServerDirectPath(),g.accounts().uploadForNative(k,h,b.name,e,b.mimeType,function(b){b=JSON.parse(decodeURIComponent(b.response));b.error?a.allProcessedCallback(!0):(l=b.url,l==null?a.allProcessedCallback(!0):(b="UPDATE "+F+" SET isNew = 0, remoteUrl = "+i(l)+" WHERE localUrl = "+i(k),a.db.executeSql(b,function(){a.urlMap[k]=l;
delete a.newUrls[k];c[f]=l;d()},function(){a.allProcessedCallback(!0)})))},function(){a.allProcessedCallback(!0)})):d()}}}function K(a){a.index=a.index||0;a.appAttachmentFields=a.appAttachmentFields||{};var b=a.operationRows,e=a.index;if(e>=b.length)a.allProcessedCallback();else if(b=JSON.parse(b[e].operation),e=b.operation,a.instanceOperations.push(b),e!="update"&&e!="create")++a.index,K(a);else{var d=b.instance,c=d.id_form;Y(a.appAttachmentFields,a.db,c,function(b,e){b?a.allProcessedCallback(!0):
R({attachmentFields:e,instance:d,urlMap:a.urlMap,newUrls:a.newUrls,db:a.db,appId:c,allProcessedCallback:function(b){b?a.allProcessedCallback(!0):(++a.index,K(a))}})})}}var P="app_to_table",J="instance_field_map",H="instance_operations",Q="app_relation_tables",B="app_instances",V="offlineInfo",I="attachment_fields",F="attachment_urls",O="acDev_AttachmentCache";return{offlineDataFetch:function(b,c,i,h,j){if(WiziCore_Helper.isNative()){var k=this;f(this.context().config().localAppsPath()+"list.json",
function(f,l){if(f)WiziCore_Helper.callCallback(h,[!0,{}]);else{var m,n,o=W(c),p={};if(b==d)g(k.id(),k._project,l,0,function(a){var b=a.views;if(b){var a=a.id_form,d,c;for(d=0,c=b.length;d<c;++d){var f=b[d],g=f.queryId;g in o||(o[g]={fields:{},orFilters:[]});g in p||(p[g]=[]);p[g].push({appId:a,viewId:f.viewId,viewName:f.name});e(o[g].fields,f.inputs);e(o[g].fields,f.outputs);if(o[g].orFilters!==null)if(!f.filter||f.filter.length==0)o[g].orFilters=null;else{for(var i=[],h=0,j=f.filter.length;h<j;++h)i.push(f.filter[h]);
o[g].orFilters.push(i)}}}},function(a){x(a,o,p,i,l,function(){WiziCore_Helper.callCallback(h,arguments)},function(){WiziCore_Helper.callCallback(j,arguments)})});else{var q={},s=[];for(m=0,n=b.length;m<n;++m){var r=b[m],t=r.app?r.app:k.id(),u=r.view;if(u!=null&&a.inArray(t,l)!=-1){t in q||(q[t]={});if(u in q[t]){WiziCore_Helper.callCallback(h,[!0,{}]);return}q[t][u]=r;s.push(t)}}g(k.id(),k._project,s,0,function(b){var d=b.views,b=q[b.id_form];if(d&&b){var c=t,f,g,i={};for(f=0,g=d.length;f<g;++f){var h=
d[f],j=h.viewId,k=h.name,l=h.queryId,m=null;if(j in b)m=b[j];else if(k in b)m=b[k];else continue;if(j in i)throw{message:"Settings for view are defined more than once"};l in o||(o[l]={fields:{},orFilters:[]});l in p||(p[l]=[]);p[l].push({appId:c,viewId:j,viewName:k});m.fields!=null?e(o[l].fields,m.fields):(e(o[l].fields,h.inputs),e(o[l].fields,h.outputs));if(o[l].orFilters!==null)if((!a.isArray(h.filter)||h.filter.length==0)&&(!a.isArray(m.filter)||m.filter.length==0))o[l].orFilters=null;else{var j=
[],n;for(k=0,n=h.filter.length;k<n;++k)j.push(h.filter[k]);for(k=0,n=m.filter.length;k<n;++k)j.push(m.filter[k]);o[l].orFilters.push(j)}}}},function(a){x(a,o,p,i,l,function(){WiziCore_Helper.callCallback(h,arguments)},function(){WiziCore_Helper.callCallback(j,arguments)})})}}})}},saveInstanceToLocalDb:function(a,b){a.appId=this.id();WiziCore_Api_LocalDb.getDb("sync",function(e,d){var c=JSON.stringify(a);T(d,a,function(a){a==null?typeof b=="function"&&b(!0):(a.unshift(l(),"INSERT INTO "+H+" (operation) VALUES ("+
i(c)+")"),d.transaction(function(b){for(var e=0,d=a.length;e<d;++e)a[e]!=null&&b.executeSql(a[e])},function(){typeof b=="function"&&b(!1)},function(){typeof b=="function"&&b(!0)}))})},function(){typeof b=="function"&&b(!0)})},offlineDataPush:function(a){typeof a!="function"&&(a=function(){});var b=function(){a(!0)},e=this;WiziCore_Api_LocalDb.getDb("sync",function(d,c){X(c,function(d,f,g){d?b():c.executeSql("SELECT operation FROM "+H+" ORDER BY t",function(d){var i=[];K({operationRows:d.rows,instanceOperations:i,
db:c,urlMap:f,newUrls:g,allProcessedCallback:function(d){d?b():WiziCore_AppContext.getInstance().dataIntegration().pushOfflineData(i,function(b,d){b?D(e,i,b,d,a):o(function(){WiziCore_Api_LocalDb.remove("sync",function(){D(e,i,b,d,a)},function(){D(e,i,b,d,a)})})})}})},b)})},b)},offlineDataDiscard:function(a){typeof a!="function"&&(a=function(){});WiziCore_AppContext.getInstance().dataIntegration().pushOfflineData([],function(b){b?a(!0):o(function(){WiziCore_Api_LocalDb.remove("sync",function(){a(!1)},
function(){a(!1)})})})},setDatabaseKey:function(a){WiziCore_Api_LocalDb.setKey(a)},verifyDatabaseKey:function(a){return WiziCore_Api_LocalDb.verifyKey(a)},addLocalUploadFileInfo:function(a,b,e,d){var c=function(){typeof d=="function"&&d(!0)};WiziCore_Api_LocalDb.getDb("sync",function(f,g){var h="INSERT INTO "+F+" (localUrl, mimeType, fileName, isNew) VALUES ("+i(a)+","+j(b)+","+j(e)+", 1)";g.executeSql(h,function(){typeof d=="function"&&d(!1)},c)},c)}}}($,window,document);
AC.WidgetExt.Workflow=function(a){function b(){return WiziCore_AppContext.getInstance().wfRequester()}function c(b,d){for(var c=a.workflow().containers,i=null,h=0,j=c.length;h<j;++h){var k=c[h];if(b!=void 0){if(k.id==b){i=k;break}}else if(d!=void 0&&k.name==d){i=k;break}}return i}function d(b){b==void 0&&(b=a.currentFormInstanceInfo().id());b==void 0&&WiziCore_Helper.showError(AC.Core.lang().trText("instanceid_undefined"));return b}return{assignToRole:function(a,d,c,i,h){c=c instanceof Array||c==
void 0?c:[c];i=i instanceof Array||i==void 0?i:[i];b().assignToRole(a,d,c,i,h)},unassignFromRole:function(a,d,c,i,h){c=c instanceof Array||c==void 0?c:[c];i=i instanceof Array||i==void 0?i:[i];b().unassignFromRole(a,d,c,i,h)},assignInstance:function(a,c,g,i,h,j,k,l){a=d(a);a!=void 0&&(g=g instanceof Array||g==void 0?g:[g],i=i instanceof Array||i==void 0?i:[i],b().assignInstance(a,c,g,i,h,j,k,l))},cancelAssignments:function(a,c,g,i,h){a=d(a);a!=void 0&&(g=g instanceof Array||g==void 0?g:[g],i=i instanceof
Array||i==void 0?i:[i],b().cancelAssignments(a,c,g,i,h))},currentUserRole:function(){return a.currentFormInstanceInfo().role()},getAssignedRoles:function(a,c){a=d(a);a!=void 0&&b().getAssignedRoles(a,c)},notify:function(d,c,g,i,h,j,k,l,n){c==void 0?(g=g instanceof Array||g==void 0?g:[g],i=i instanceof Array||i==void 0?i:[i]):(g=[],i=[]);var m="relative";j instanceof Date&&(m="absolute");h.text=h.text.replace(/\[url\]/g,a.getInstanceURL());c!=void 0?(g=a.formId(),b().notifyRole(d,g,c,h,j,m,k,l,n)):
b().notify(d,g,i,h,j,m,k,l,n)},notifyAndAssignInstance:function(c,f,g,i,h,j,k,l,n,m,o,p,q){f=d(f);if(f!=void 0){var r="relative";k instanceof Date&&(r="absolute");j.text=j.text.replace(/\[url\]/g,a.getInstanceURL());i!=void 0&&h!=void 0?(i=i instanceof Array||i==void 0?i:[i],h=h instanceof Array||h==void 0?h:[h],b().notifyAndAssignInstance(c,f,g,i,h,j,k,r,l,n,m,o,p,q)):b().notifyRoleAndAssignInstance(c,f,g,j,k,r,l,n,m,o,p,q)}},cancelNotifications:function(a,c,g,i,h){a=d(a);a!=void 0&&(c=c instanceof
Array||c==void 0?c:[c],g=g instanceof Array||g==void 0?g:[g],b().cancelNotificationsForInstance(a,c,g,i,h))},setStage:function(b){var d=a;d.workflow();b=c(null,b);b!=null?d._currentInstanceInfo._stageId=b.id:raiseWiziCoreError("STAGE_NOT_FOUND")},getStage:function(){var b=null,d=null,g=a.currentFormInstanceInfo();g!=void 0&&(g=g.stageId(),g!=void 0&&(d=c(g,null)));d!=void 0&&(b={id:d.id,name:d.name,title:d.title,description:d.description});return b},getNotificationTask:function(a,d){b().getNotificationTask(a,
d)},setNotificationTask:function(a,d){b().setNotificationTask(a,d)},cancelNotificationTask:function(a,d){b().cancelNotificationTask(a,d)},getUserNotifications:function(a,d,c,i,h){b().getUserNotifications(a,d,c,i,h)},getNotifications:function(a,d,c,i){b().getNotifications(a,d,c,i)}}};
AC.WidgetExt.Sys=function(a){function b(){return WiziCore_AppContext.getInstance()}function c(){return b().users()}function d(){return b().groups()}function e(){return b().folders()}return{loadUsersList:function(a){c().loadUserList(null,a)},loadGroupsList:function(a){d().loadGroupList(null,a)},createGroup:function(a,b){d().createGroup(a,b)},updateGroup:function(a,b){d().saveGroup(a,b)},deleteGroup:function(a,b){d().deleteGroup(a,b)},addToGroup:function(a,b,c,e){d().addToGroup(a,b,c,e)},removeFromGroup:function(a,
b,c){d().removeFromGroup(a,b,c)},getGroupMembers:function(a,b,c){d().getGroupMembers(a,b,c)},createUser:function(a,b){c().createUser(a,b)},deleteUser:function(a,b){c().deleteUser(a,b)},saveUser:function(a,b){c().saveUser(a,b)},setUserPassword:function(a,b,d){c().setPassword(a,b,d)},getMemberOf:function(a,b){c().getMemberOf(a,b)},isUserLoaded:function(a){return c().isUserLoaded(a)},getUserById:function(a){return c().getUserById(a)},usersList:function(){return c().userList()},groupsList:function(){return d().groupList()},
isGroupLoaded:function(a){return d().isGroupLoaded(a)},getGroupById:function(a){return d().getGroupById(a)},loadAppsList:function(a){b().forms().loadFormList(a)},loadAppsFoldersList:function(a){b().forms().loadFormFolderList(a)},getSharedAppsUsersList:function(a){e().getSharedUserList(WiziCore_Api_FoldersRequester.FORM,a)},getSharedAppsFoldersList:function(a,b){e().getSharedFoldersList(WiziCore_Api_FoldersRequester.FORM,a,b)},getSharedAppsItemsList:function(a,b){e().getSharedItemsList(WiziCore_Api_FoldersRequester.FORM,
a,b)},getListResource:function(a,d){b().resources().getListResource(a,d)},updateListResource:function(a,d){b().resources().updateListResource(a,d)},loadResources:function(a,d){b().resources().loadResourceList(d,{typeFilter:a})},loadResourceFolders:function(a){b().resources().loadResourceFolderList(a)},getResources:function(){return b().resources().resourceList()},getSharedResources:function(a,b,d){e().getSharedItemsList(WiziCore_Api_FoldersRequester.RESOURCE,a,d,{typeFilter:b})},getSharedResourceFolders:function(a,
b){e().getSharedFoldersList(WiziCore_Api_FoldersRequester.RESOURCE,a,b)},runReport:function(d,c,e,h){if(typeof d!="string"||typeof e!="string"||typeof c!="object"&&typeof c!="undefined"||typeof h!="function")throw"";var j=b().resources(),k=b().serverEvents();j.runReport(a.id(),d,c,e,function(a,b,d){a?typeof h=="function"&&h({message:"Error occured"}):k.registerHandler(b,d,function(a){if(a.type=="result"){k.unregisterHandler(b,d);var c=a.data,e=null,f=!0;if(c)f=!1,e=c.url;a.error&&(e=a.error instanceof
Object&&a.error.message);WiziCore_Helper.callCallback(h,[f,e])}})})},loadQueries:function(a){b().queries().loadQueryList(a)},loadQueryFolders:function(a){b().queries().loadQueryFolderList(a)},getQueries:function(){return b().queries().queries()},getSharedQueries:function(a,b){e().getSharedItemsList(WiziCore_Api_FoldersRequester.QUERY,a,b)},getSharedQueryFolders:function(a,b){e().getSharedFoldersList(WiziCore_Api_FoldersRequester.QUERY,a,b)},getQueryData:function(d,c){b().dataIntegration().loadData(d,
a.id(),void 0,!0,function(a,b){WiziCore_Helper.callCallback(c,[a,b&&b.result?b.result.data:null])})}}};
var WiziCore_Methods_Widget_ActionClick={onActionClick:function(a,b,c){if(c&&!c.isDestroyed())switch(b!=void 0&&b!="none"&&WiziCore_Helper.isMobile()&&a.preventDefault(),b){case void 0:case null:case "none":break;case "calling":c.pageCalling();break;case "next":c.showNextPage();break;case "prev":c.showPrevPage();break;case "forward":c.pageStackForward();break;case "back":c.pageStackBack();break;default:c.pageJump(b)}}},WiziCore_Source_Widget_PagingAPI={_navigationUpdater:null,_pageCount:null,pageCount:function(){return this._pageCount},
registerPaging:function(a,b){if(this._navigationUpdater==null)this._navigationUpdater={};this._navigationUpdater[a.id()]={callback:b,obj:a}},unregisterPaging:function(a){this._navigationUpdater!=null&&delete this._navigationUpdater[a]},updatePageCount:function(a){var b=parseInt(a/this.elementsPerPage());a%this.elementsPerPage()!=0&&++b;this._pageCount=b},updateNavigationControls:function(){for(var a in this._navigationUpdater){var b=this._navigationUpdater[a];b.callback.call(b.obj,this.currPage(),
this._pageCount)}},startPosition:function(){return(this.currPage()-1)*this.elementsPerPage()},_currPage:function(a){return a==void 0?WiziCore_Source_Widget_PagingAPI.DEFAULT_CURR_PAGE:a},_elementsPerPage:function(a){a=a==void 0?WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE:a;if(this._pageCount!=null&&this.elementsPerPage()!=void 0){var b=this.elementsPerPage()*(this.currPage()-1)+1,a=parseInt(a),c=parseInt(b/a);this.currPage(b%a!=0?c+1:c)}return a},_getStartAndLength:function(a){var b=
this.startPosition()||0,c=b+this.elementsPerPage();return{i:b,l:c<a?c:a}},_getDefaultStartAndLength:function(a){var b=this.elementsPerPage();return{i:0,l:b<a?b:a}},fetchDataPage:function(a){var b=a;if(typeof a=="string")switch(a){case "next":b=this.currPage()+1;if(this._pageCount!=null&&this._pageCount<b)b=this._pageCount;break;case "prev":case "previous":b=this.currPage()-1>0?this.currPage()-1:1;break;case "first":b=1;break;case "last":b=this._pageCount!=null?this._pageCount:1;break;default:b=this.currPage()}this.currPage(b);
this.usePaging()?this._redrawElements():this.reloadDataIntegrationData()},_updateDataByPaging:function(){this._isManual&&this._redrawElements()},updatePagingByWidget:function(a){this.updatePageCount(a);this.updateNavigationControls();this.currPage(WiziCore_Source_Widget_PagingAPI.DEFAULT_CURR_PAGE)},DEFAULT_ELEMENTS_PER_PAGE:10,DEFAULT_CURR_PAGE:1},WiziCore_ContainerDataBind={setData:function(a){this.setDataToContainerWidgets(a,0);var b=/^__.*/,c;for(c in a)b.test(c)&&this._setExtData(0,c,a[c][0]);
this.callOnDataLoaded(!1,a)},getData:function(){for(var a=this.children(),b=[],c={},d=0,e=a.length;d<e;d++){var f=a[d];c[f.name()]=f.getData()}b.push(c);return b}};
AC.WidgetExt.Upload={checkByFileType:function(a){var b=this.fileTypes(),b=b==""||b==null?null:b.split("|"),c=!1,a=a.split("."),a=a[a.length-1].toLowerCase();if($.isArray(b)==!0)for(var d=0,e=b.length;d<e;++d){if(b[d].toLowerCase()==a){c=!0;break}}else c=!0;return c},sendFile:function(){$(this).trigger(this.newOnStartedEvent(),[]);var a=this._htmlForm,b=this._requestId,c=this._desktopFormAction,d=c.indexOf("?")==-1?"?":"&",e=this.context().getSession().getToken(),f=this.form().id(),c=c+d+["requestId="+
b,"sessionId="+e,"formId="+f].join("&");WiziOnFileUploadWidgetUploadObject[b]={loading:!0};a.attr("action",c);a.submit();$(this._fileInput).val("");this._changeState(AC.WidgetExt.UPLOAD_STATE.STOP)},_bindGlobalUploadEvents:function(a){var b=this;$(AC.Core.UploadEvents).bind(AC.Core.UploadEvents.onUploaded,function(c,d,e){if(d==a){if(e.error==!0)$(b).trigger(b.newOnUploadedEvent(),[!0]),c=AC.Core.lang().trText("widget_upload_error_uploading"),WiziCore_Helper.showError(c);else if("url"in e)b._fileName=
e.url,$(b).trigger(b.newOnUploadedEvent(),[!1,e.url]);b._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)}});$(AC.Core.UploadEvents).bind(AC.Core.UploadEvents.onError,function(c,d){if(d==a){$(b).trigger(b.newOnUploadedEvent(),[!0]);var e=AC.Core.lang().trText("widget_upload_error_uploading");WiziCore_Helper.showError(e);b._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)}})},_drawFileInput:function(a){var b=this,c=$('<input type="file" style="position: absolute; opacity: 0; filter: Alpha(Opacity=0); right: 0px; top: 0px;" dir="ltr">');
c.css({"font-size":Math.max(b.width(),b.height()),"z-index":2}).attr("name","file_"+a).click(function(a){if(b.enable()===!1||b._isParentEnable()===!1||b._state!==AC.WidgetExt.UPLOAD_STATE.SELECT)a.stopPropagation(),a.originalEvent.preventDefault()}).change(function(){var a=$(this).val();a===""||b.enable()===!1||b._isParentEnable()===!1||($(b).trigger(b.newOnSelectedEvent(),[!1,{path:a}]),b.checkByFileType(a)===!0?b.autoStart()?b.sendFile():b._changeState(AC.WidgetExt.UPLOAD_STATE.START):(WiziCore_Helper.showValid(AC.Core.lang().tr("widget_upload_invalid_filetype")),
$(this).val("")))});return c},_createIframe:function(a,b){var c=this,d;if($.browser.msie)try{d=document.createElement('<iframe name="'+a+'"></iframe>')}catch(e){d=document.createElement("iframe")}else d=document.createElement("iframe");d.setAttribute("frameBorder",0);d.setAttribute("name",a);d=$(d).css({width:"0px",height:"0px",border:"0px"}).hide();d.attr({id:a}).load(function(){if(WiziOnFileUploadWidgetUploadObject!=void 0){var a=WiziOnFileUploadWidgetUploadObject;if(a[b]&&a[b].loading)$(c).trigger(c.newOnUploadedEvent(),
[!0]),WiziCore_Helper.showError(AC.Core.lang().trText("widget_upload_error_uploading")),a[b].loading=!1,c._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)}});return d},_getCurrentText:function(){var a=AC.WidgetExt.UPLOAD_STATE;switch(this._state){case a.SELECT:return this.selectFileText();case a.START:return this.startUploadText();case a.STOP:return this.stopUploadText()}},stopUploading:function(){var a=this._requestId;if(WiziOnFileUploadWidgetUploadObject!=void 0){var b=WiziOnFileUploadWidgetUploadObject;
if(b[a]!=void 0&&b[a].loading==!0)b[a].loading=!1}this._iframe.attr("src","");$(this).trigger(this.newOnStoppedEvent(),[]);this._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)},_fileSizeLimit:function(a){if(a!=void 0){var b=this._htmlForm;if(b!=void 0){var c=b.find("input[name=MAX_FILE_SIZE]");c.length==0&&a!=0&&(c=$("<input type='hidden' name='MAX_FILE_SIZE'>"),b.prepend(c));c.val(a*1E3);a==0&&c.remove()}}}};AC.WidgetExt.UPLOAD_STATE={SELECT:0,START:1,STOP:2};
var WiziOnFileUploadWidgetUploadObject={};AC.Core.UploadEvents={};AC.Core.UploadEvents.onUploaded="E#UploadEvents#onUploaded";AC.Core.UploadEvents.onError="E#UploadEvents#onError";WiziOnFileUploadWidgetUploaded=function(a,b){switch(b.state){case "upload":$(AC.Core.UploadEvents).trigger(AC.Core.UploadEvents.onUploaded,[a,b]);break;default:b.error&&$(AC.Core.UploadEvents).trigger(AC.Core.UploadEvents.onError,[a,b])}};
(function(a,b,c,d,e){b=d.WidgetExt.Placeholder={_placeholderText:function(a){if(this._input&&a!=e)if(a=WiziCore_Helper.isLngToken(a)?this._getTranslatedValue(a):a,this._useHtml5Placeholder())a=WiziCore_Helper.decodeHTML(a),this._input.attr("placeholder",""),this._input.attr("placeholder",a);else this.onBlurPlaceholder({data:{self:this}})},_bindPlaceholderEvents:function(a){this.mode()==WiziCore_Visualizer.RUN_MODE&&!this._useHtml5Placeholder()&&(a.bind("focus.placeholder",{self:this},this.onFocusPlaceholder),
a.bind("blur.placeholder",{self:this},this.onBlurPlaceholder))},_unbindPlaceholderEvents:function(a){this.mode()==WiziCore_Visualizer.RUN_MODE&&!this._useHtml5Placeholder()&&(a.unbind("focus.placeholder"),a.unbind("blur.placeholder"))},onFocusPlaceholder:function(b){var b=b.data.self,d=a(b._input);b.placeholderText();if(b._placeholder)d.val(""),d.removeClass("placeholder"),b._placeholder=!1},onBlurPlaceholder:function(b){var b=b.data.self,d=a(b._input),c=b.placeholderText();d.val()==""||b._placeholder?
(d.addClass("placeholder"),d.val(c),b._placeholder=!0):b._placeholder||d.removeClass("placeholder")},_checkTextWithPlaceholder:function(a){if(!this._useHtml5Placeholder())this._placeholder=a==""?!0:!1,this._placeholderText(this.placeholderText())},_updateTextWithPlaceholder:function(a){this._placeholder&&!this._useHtml5Placeholder()&&(a="");return a},_beforePlaceholderText:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var b=WiziCore_Helper.isLngToken(a),d=b?a:"ac-"+
this.id()+"-ph";b||this.form().addTokenToStringTable(this.id(),this.name(),d,a);return d}else return a},_onInitLanguage:function(){this.placeholderText(this.placeholderText())},_onSTUpdated:function(){this._onLanguageChanged()},_onLanguageChanged:function(){this._placeholderText(this._project.placeholderText)},_useHtml5Placeholder:function(){return WiziCore_Helper.isAndroid4()&&typeof this.mobileTextType=="function"&&this.mobileTextType()=="number"?!1:WiziCore_Helper.hasPlaceholder()},_placeholder:null};
b.placeholderText=d.Property.htmlLngPropBeforeSet("placeholderText",b._beforePlaceholderText,b._placeholderText)})(jQuery,window,document,AC);
(function(a,b,c,d){var e=AC.Widgets.WiziCore_Api_Form=WiziCore_Widget_Container.extend(a.extend({},WiziCore_Methods_Form,WiziCore_Methods_Form_Instance,WiziCore_Methods_Form_Sync,{_level:2,_widgetClass:"WiziCore_Api_Form",_actions:null,_viewObjs:null,_zIndex:10,_currentInstanceInfo:null,triggerObject:{},_invalidHandlerActions:null,_userCodeContext:null,_mobileMode:!1,isDraggable:!1,isResizable:!1,isEditable:!1,_timeZone:null,_nativeOnlineFlag:!0,_showLngTokens:!1,_skipTokenCreation:!1,_nativeEventHanlders:null,
_nativeAppIsActive:!0,_twirlyThingCounter:0,_preloadTwirlyThing:!1,_preloadTH:null,_preloadPagesTH:null,init:function(b){this._viewObjs={};this._nativeEventHanlders={};this.level(b.level);b.form=this;b.runtimeMode!=d&&(this._runtimeMode=b.runtimeMode);this._super.apply(this,[b]);this._currentInstanceInfo=new WiziCore_Api_FormInstanceInfo;this.webClient=this.context().webClient();var b=this.context().formInstances(),c=this._detectCurrentLanguage();this._skipTokenCreation=!1;if(AC.Features)this._skipTokenCreation=
!AC.Features.isAccessAllowed(AC.Features.FEATURE_MULTILANG);c&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(this.language(c),a(this).trigger(e.onLanguageDetection,[c]));var f=this;a(b).bind(WiziCore_Api_FormInstanceRequester.onPreSubmit,function(b,d){a(f).trigger(e.onPreSubmit,[d])});a(b).bind(WiziCore_Api_FormInstanceRequester.onSubmitted,function(b,d,c,g,i){a(f).trigger(e.onSubmitted,[d,c,g,i])});this.setTimeZone();if(this.isNativeApp())this._nativeOnlineFlag=WiziCore_Helper.isPhoneGapOnline();
this.runTimeId()},_detectCurrentLanguage:function(){return null},base:function(){var a=this._super();a.css("display","table");this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&a.css({"table-layout":"fixed"});this._tableBase.css("float","left");return a},initProject:function(){this._super.apply(this,arguments);var b=this._project,c;if(b.actions==d)b.actions={userServerCode:"",userCode:"/*Place your code here*/",genCode:"",system:[]};else if(!b.actions.userServerCode)b.actions.userServerCode="";if((c=b.stringTable)&&
c[0]&&a.isArray(c[0])&&c[1]&&a.isArray(c[1])&&c[0].length==0&&c[1].length==0)c[0]={},c[1]={};this._project.layout="vertical";this._phoneGapPlugins(this.phoneGapPlugins())},onAdaptiveLayout:function(b,d){a(this).trigger(e.onAdaptiveLayout,[b,d])},_executeActionsCheck:function(){return this.mode()==WiziCore_Visualizer.RUN_MODE},_checkActionsAfterExport:function(){var a=this.actions(),b=this.id(),d=e.actions(),c={};if(a&&a.system){var a=a.system,f;for(f in d)c[f]=!0;for(d=0;d<a.length;++d)if(f=a[d],
f.actionid in c)if(f.objectid==b)break;else f.objectid=b}},initChildren:function(){this._executeActionsCheck()?this.executeActions():this._checkActionsAfterExport();this._super.apply(this,arguments);this.repeates();this._initRepeatWidgets();a(this).trigger(e.onStartScriptExecuted)},showMobilePreloadTransition:function(){},hideMobilePreloadTransition:function(){},_initRepeatWidgets:function(a){for(var b=this.repeates(),d=[],c=[],e=0,f=b.length;e<f;e++)b[e].repeat().pos=="bottom"?c.push(b[e]):d.push(b[e]);
for(e=d.length-1;e>-1;--e)this.updateChildrenOfPageByRepeat(d[e],d[e].repeat(),a);e=0;for(f=c.length;e<f;++e)this.updateChildrenOfPageByRepeat(c[e],c[e].repeat(),a)},drawChildren:function(){},initDrop:function(){},project:function(a){a=this._super(a);a.dataSchema=this.collectDataSchema();return a},shortUrl:function(){var a=this._project.shortUrl;a==d&&this._notSaved!=!1?this._notSaved=!0:this._notSaved&&(a=d);return a},addTwirlyThingCounter:function(){this._twirlyThingCounter+=1;return this._twirlyThingCounter},
subTwirlyThingCounter:function(){return this._twirlyThingCounter=this._twirlyThingCounter>0?this._twirlyThingCounter-1:this._twirlyThingCounter},stopHandlingShortUrl:function(){this._notSaved=!1},initProps:function(){this._super();this.gaAccountId=this.normalProperty("gaAccountId");this.gmapsApiKey=this.normalProperty("gmapsApiKey");this.parseAppId=this.normalProperty("parseAppId");this.parseApiKey=this.normalProperty("parseApiKey");this.pageTarget=this.normalProperty("pageTarget");this.redirectUrl=
this.normalProperty("redirectUrl");this.version=this.normalProperty("version");this.phoneGapOptions=this.normalProperty("phoneGapOptions");this.phoneGapPlugins=this.htmlProperty("phoneGapPlugins",this._phoneGapPlugins);this.orientation=this.normalProperty("orientation");this.fullScreen=this.normalProperty("fullScreen");this.filesList=this.normalProperty("filesList");this.htmlHead=this.normalProperty("htmlHead");this.languages=this.htmlPropertyBeforeSet("languages",this._beforeLanguages,this._languages);
this.language=this.htmlPropertyBeforeSet("language",this._beforeLanguage,this._language);this.stringTable=this.htmlProperty("stringTable",this._stringTable);this.authProviders=this.normalProperty("authProviders");this.formId=this.normalProperty("id_form");this.userId=this.normalProperty("id_user");this.folderId=this.normalProperty("id_folder");this.defaultPage=this.normalProperty("defaultPage");this.theme=this.normalProperty("theme",this.switchThemeStyles);this.views=this.normalProperty("views");
this.pageTransition=this.normalProperty("pageTransition");this.actions=this.normalProperty("actions");this.icon=this.normalProperty("icon");this.mobileSplash=this.normalProperty("mobileSplash");this.desktopSplash=this.normalProperty("desktopSplash");this.displayHourglassOver=this.normalProperty("displayHourglassOver");this.twirlyThingOptions=this.normalProperty("twirlyThingOptions");this.linkedExportApp=this.normalProperty("linkedExportApp");this.hasStorage=this.normalProperty("hasStorage",this._updateStorageFlag);
this.applicationRelationships=this.normalProperty("applicationRelationships");this.instanceTitleTemplate=this.normalProperty("instanceTitleTemplate");this.integrityHandling=this.normalProperty("integrityHandling");this.uniquenessMessage=this.normalProperty("uniquenessMessage");this.highlightColor=this.normalProperty("highlightColor");this.highlightOpacity=this.normalProperty("highlightOpacity");this.mandatoryMessage=this.normalProperty("validateMessage");this.backgroundImage=this.htmlProperty("backgroundImage",
this._backgroundImage);this.backgroundColor=this.htmlProperty("backgroundColor",this._backgroundColor);this.backgroundRepeat=this.htmlProperty("backgroundRepeat",this._backgroundRepeat);this.renderCharts=b.FusionCharts!==d?this.normalProperty("renderCharts",this._setFusionChartsRenderer):function(){};this.liveName=this.normalProperty("liveName");this.loginFormId=this.normalProperty("loginFormId");this.userAccess=this.normalProperty("userAccess");this.workflow=this.normalProperty("workflow");this.autoFocus=
this.normalProperty("autoFocus");this.advertising=this.normalProperty("advertising")},_phoneGapPlugins:function(a){a!=d&&b.AC&&b.AC.PGPluginEmulator&&b.AC.PGPluginEmulator.setPlugins(a,this.mode())},getFusionChartsRenderer:function(){return this.renderCharts()},_setFusionChartsRenderer:function(a){a=WiziCore_Helper.checkFlash()?a:"javascript";FusionCharts.setCurrentRenderer(a)},draw:function(){var d=this.base(),f=this.mode(),h=a("html"),j=a(c),k=WiziCore_Helper.isPositionFixedSupport(),l=a(b);this.mode()!=
WiziCore_Visualizer.EDITOR_MODE&&a("#wiziLiveMode").css({"table-layout":"fixed"});if(a.mobile)a.mobile.pageContainer=d;d.css({left:0,top:0,overflow:"visible"});this._tableBase.css({left:0,top:0,overflow:"visible"});d.addClass("wiziFormApplication m-ui-mobile-viewport");k||h.addClass("m-ui-mobile-not-fixed-toolbars");AC.Core.registerExtendsObject(this,this.context(),this);WiziCore_Helper.isMobile()||h.addClass("m-ui-desktop-min-height");f!=WiziCore_Visualizer.EDITOR_MODE&&(this.htmlId(),this.isEmbed()||
l.scrollTop(0),this.updateFocus(j,h,"m-ui-mobile-not-fixed-toolbars",k));var n=this;this._twirlyThing(!0,{top:"-1000px",left:"-1000px"});this._preloadTwirlyThing=!0;setTimeout(function(){if(n._preloadTwirlyThing)n._preloadTwirlyThing=!1,n._twirlyThing(!1)},1);this._super.apply(this,arguments);a.browser.msie&&(parseFloat(a.browser.version)<8?this.tableBase().css({width:"100%",height:null}):this.tableBase().css({width:"100%",height:"100%"}),this.tableBase().css({overflow:"hidden"}));if(f!=WiziCore_Visualizer.EDITOR_MODE){var m=
function(a,b){b++;var d=a;b<=50&&a&&a.caller&&(d=m(a.caller,b));return d};a(this.triggerObject).bind(e.onSelectPageByLink,function(b,d){var c=d.pageId;if(n.id()==d.wId)n.pageJump(c);else{var e=m(arguments.callee,0);if(e&&(e=e.arguments[0]))(e=a(e.target).closest(".ac-widget-item").data("widget"))&&e.form().id()==n.id()&&n.pageJump(c)}})}},updateFocus:function(d,e,f,j){if(WiziCore_Helper.isMobile()){var k=!1,l=this,n=0,m;if(WiziCore_Helper.isIPad()||WiziCore_Helper.isNative())n=200;var o=function(o){function p(){if(!l.isDestroyed()){var m=
l.currentPage(),n=m.pageContainer(),o=n.topCont,q=n.bottomCont,n=n.centerCont;j&&(k?e.addClass(f):e.removeClass(f));if(k){if(j){var m=n.data("advHeight"),r=0,w=0,x=n.data("advPosBottom");m&&(x?w+=m:r+=m);n.css({"padding-bottom":"0px","padding-top":"0px"});w=0;q.css({bottom:"0px"});n.css({"margin-top":r+"px","margin-bottom":w+"px"})}n.data("hasFocus",!0);if(j){var y=function(){var a=b.pageXOffset;o.css("left",a+"px");q.css("left",a+"px");AC.Advertising.setRelativePositionByScroll()};d.unbind("scroll."+
l.id()).bind("scroll."+l.id(),function(){y()});y()}}else if(n.data("hasFocus")&&(j&&(d.unbind("scroll."+l.id()),o.css("left",""),q.css("left",""),AC.Advertising.dropRelativePositionByScroll(),n.css({"margin-top":"","margin-bottom":""}),WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad()&&m.setDesktopPagePos()),n.data("hasFocus",!1),m.updateFixedChildrenHeight(),!j||WiziCore_Helper.isNative()&&WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad()))n="dialog-"+m.id(),a(c).trigger("scroll."+n)}}clearTimeout(m);
o?p():m=setTimeout(function(){p()},n)};this.checkFocusForm=function(a){o(a)};var p='input:not(input[class*="mobiscroll"]), textarea, select';if(WiziCore_Helper.isIPad()||WiziCore_Helper.isAndroid4())p='input:not(input[class*="mobiscroll"]), textarea';a(c).on("focus."+this.id(),p,function(){k=!0;o()}).on("blur."+this.id(),p,function(){k=!1;o()})}},checkFocusForm:function(){},initDomState:function(){this._backgroundImage(this.backgroundImage());this._backgroundColor(this.backgroundColor());this._backgroundRepeat(this.backgroundRepeat());
this.addGATracker()},addGATracker:function(){if(this.runtimeMode()==WiziCore_UI_FormRuntime.LIVE_MODE){var f=this,i=this.gaAccountId();if(!(i==""||i==d)){var h=("https:"==c.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";WiziCore_Helper.isPhoneGapOnline()&&a.getScript(h,function(){if(b._gat)a._gat=b._gat,a(f).trigger(e.onGatLoaded)}).fail(function(){throw"error loading "+h;})}}},initEditorLayer:function(){},onRemove:function(){a(c).unbind("."+this.id());a(this.triggerObject).unbind(e.onSelectPageByLink);
this._unbindFormEvents()},onDestroy:function(){this._scrolledElementObj=null;this._userCodeContext&&this._userCodeContext.cleanUpClientObjects();this._userCodeContext=null},destroyChildren:function(){this._cleanPagesRepeats(this.repeates());this._super.apply(this,arguments)},_getNativeListener:function(){return b.PhoneGap!=d?b:c},nativeAppIsActive:function(a){if(a!==d)this._nativeAppIsActive=a;return this._nativeAppIsActive},_bindPauseResumeEvents:function(){if(this.isNativeApp()){var a=this;c.addEventListener("pause",
this._nativeEventHanlders.pause=function(){a.nativeAppIsActive(!1);return a.fireNativeEvent(e.NativeMobile.onPause)},!1);c.addEventListener("resume",this._nativeEventHanlders.resume=function(){setTimeout(function(){a.nativeAppIsActive(!0);a._callAllAlerts()},100);return a.fireNativeEvent(e.NativeMobile.onResume)},!1)}},_bindFormEvent:function(d){var f=this,h=this.id();switch(d){case "onResize":a(b).bind("resize.onResize"+h,function(){f.onResize.apply(f,arguments)});break;case "onKeyPress":a(c).bind("keypress."+
h,function(a){f.onKeyPress(a)});break;case "onOffLine":a(c.body).bind("offline."+h+" onoffline."+h,function(a){f.onOffLine(a)});a(c).bind("offline."+h+" onoffline."+h,function(a){f.onOffLine(a)});break;case "onOnLine":a(c.body).bind("online."+h+" ononline."+h,function(a){f.onOnLine(a)});a(c).bind("online."+h+" ononline."+h,function(a){f.onOnLine(a)});break;case "onError":a(c).bind(e.onError+"."+h,function(a,b,d){return f.onAppError(b,d)})}if(this.isNativeApp())switch(this._getNativeListener(),d){case "onNativeOnline":c.addEventListener("online",
this._nativeEventHanlders.online=function(){f._nativeOnlineFlag=!0;return f.fireNativeEvent(e.NativeMobile.onOnline)},!1);break;case "onNativeOffline":c.addEventListener("offline",this._nativeEventHanlders.offline=function(){f._nativeOnlineFlag=!1;return f.fireNativeEvent(e.NativeMobile.onOffline)},!1);break;case "onNativeMenuButton":c.addEventListener("menubutton",this._nativeEventHanlders.menubutton=function(){return f.fireNativeEvent(e.NativeMobile.onMenuButton)},!1);break;case "onNativeSearchButton":c.addEventListener("searchbutton",
this._nativeEventHanlders.searchbutton=function(){return f.fireNativeEvent(e.NativeMobile.onSearchButton)},!1);break;case "onNativeBackButton":c.addEventListener("backbutton",this._nativeEventHanlders.backbutton=function(){f.fireNativeEvent(e.NativeMobile.onBackButton)!==!1&&f.pageBack.apply(f)},!1)}},isNativeAppOnline:function(){return WiziCore_Helper.isPhoneGapOnline()},isNativeApp:function(){return b.PhoneGap!==d},_unbindFormEvents:function(){var d=this.id();a(b).unbind("resize.onResize"+d);a(c).unbind(e.onError+
"."+d);a(c).unbind("keypress."+d);a(c).unbind(" offline."+d+" online."+d+" onoffline."+d+" ononline."+d);a(c.body).unbind(" offline."+d+" online."+d+" onoffline."+d+" ononline."+d);if(this.isNativeApp()){d=this._nativeEventHanlders;this._getNativeListener();for(var f in d)c.removeEventListener(f,d[f],!1),(f=="online"||f=="offline")&&b.removeEventListener(f,d[f],!1);for(f in d)delete d[f]}},_getInstanceSubmitStatusEventId:function(a,b){var c=[WiziCore_Api_InstanceStatusRequester.onInstanceStatusChanged,
this.id()];a!=d&&b!=d&&c.push(a+"#"+b);return c.join(".")},level:function(a){if(a!=d)this._level=a;return this._level},runtimeMode:function(a){if(a!=d)this._runtimeMode=a;return this._runtimeMode},id:function(){return this._project.id_form},runTimeId:function(){if(!this._runTimeId)this._runTimeId=AC.Widgets.Base.generateUniqueId();return this._runTimeId},clientUrl:function(){return this.context().config().clientApi()},collectDataSchema:function(){for(var a={},b=this.children(),d=0;d<b.length;++d)b[d].collectDataSchema(a);
return a},queries:function(){if(this._queries==null)this._queries=[];return this._queries},addQueries:function(a){this.queries().push(a)},deleteQueries:function(a){var b=-1,d;for(d in this.queries())if(this.queries()[d]==a){b=d;break}b!=-1&&this.queries().splice(b,1)},addNewPage:function(a){var b=AC.Core.Widgets().getDefaultWidgetProperties("WiziCore_Api_Page");b.widgetClass="WiziCore_Api_Page";if(!a||a&&this.find(a))a=AC.Widgets.Base.generateUniqueId();b.id=a;var d=["page"];this.traverseChildren(function(a){d.push(a.name())});
var c=this.pages(!0);d.push("page0");a=0;for(c=c.length;a<c;a++)d.push("page"+(a+1));b.name=WiziCore_Helper._getUniqueName(b.name,d);return this.createPage(b)},createPage:function(b){b=this.createChild(b);this.checkRepeatsForNewPage(b);a(this).trigger(WiziCore_Api_ClientForm.ADD_PAGE_EVENT,[b.id()]);return b},createItem:function(a){return this.createChild(a)},deleteItem:function(a,b){if(b==d){for(var c=typeof a=="object"?a.id():a,e=this.children(),f=null,l=0;l<e.length;l++)if(e[l].id()==c){f=e[l];
break}f!=null&&(f.widgetClass()=="WiziCore_Api_Page"?this.deletePage(f):this.deleteRepeat(f,!0))}else this._super(a)},deletePage:function(b){b=b.id();this.deleteItem(b,!0);a(this).trigger(WiziCore_Api_ClientForm.DELETE_PAGE_EVENT,[b])},pages:function(){for(var a=this.children(),b,d=[],c=0;c<a.length;c++)b=a[c],b.widgetClass()=="WiziCore_Api_Page"&&d.push(b);return d},getPageByUid:function(a){for(var b=null,d=this.pages(),c=0,e=d.length;c<e;c++)if(d[c].id()==a){b=d[c];break}return b},reorderPages:function(a){for(var b=
this.repeates(),d=this.pages(),c=[],e={},f=0,n=d.length;f<n;f++){var m=d[f];e[m.id()]=m}for(f in a)d=parseInt(a[f]),c[d]=e[f];f=0;for(n=b.length;f<n;f++)c.push(b[f]);this._children=c},repeates:function(){for(var a=this.children(),b=[],d=0,c=a.length;d<c;d++)a[d].widgetClass()!="WiziCore_Api_Page"&&b.push(a[d]);return b},processPosChanged:function(){},processRepeatUpdate:function(){this.repeates()},addRepeat:function(a,b,c,e){var a=typeof a!="object"?this.find(a):a,f=a.project();a.id();var l=WiziCore_Helper.indexOf(this.children(),
a);f.widgetClass=a.widgetClass();l!=-1&&a.parent(this);if(c||e)l=b.pos=="bottom"?d:0;this._cleanPagesRepeats();a.parent().deleteItem(a);this.createChild(f,d,l)==d||b.include==d?acDebugger.systemLog("error creating repeat widget",b):this._initRepeatWidgets(function(a,b){a.base().is(":visible")&&a._isDrawn&&(b.parent(a),b._isDrawn?(b._drawToContainer(a.base()),b._updateLayout()):(a._drawChild(b),b.onPageDrawn()))})},_cleanPagesRepeats:function(){this.deleteRepeatFromChildrenOfPages(this.repeates())},
updateChildrenOfPageByRepeat:function(a,b,d){if(typeof b=="object")for(var c=this.pages(),e=b.include,f=0,n=c.length;f<n;f++){var m=c[f],o=!0;if(e!=="all"){for(var o=m.id(),p=!1,q=b.pages,r=0;r<q.length;r++)q[r]==o&&(p=!0);o=p===e}o&&m.findChildById(a.id())==null&&(b.pos=="bottom"?m.children().push(a):m.children().splice(0,0,a),typeof d=="function"&&d(m,a))}},deleteRepeat:function(a,b){var c=typeof a!="object"?this.find(a):a,e=c.project();c.id();this.deleteRepeatFromChildrenOfPages(c);this.deleteItem(c,
!0);c=this.currentPage();c==d?acDebugger.systemLog("error init page for delete repeat widget"):b!==!0&&(e=c.createChild(e,d,0),c._isDrawn&&(e.draw(c.base()),e.onPageDrawn()))},deleteRepeatFromChildrenOfPages:function(b){a.isArray(b)||(b=typeof b=="object"?[b]:[this.find(b)]);for(var d=this.pages(),c=0,e=b.length;c<e;c++)for(var f=0;f<d.length;f++){var l=d[f].children(),n=WiziCore_Helper.indexOf(l,b[c]);n!=-1&&l.splice(n,1)}},checkRepeatsForNewPage:function(a){function b(a){var d=a.include,c=d=="all"||
d===!1;if(d===!0&&a.pages)for(var a=a.pages,d=0,e=a.length;d<e;d++)if(n==a[d]){c=!0;break}return c}var d=a.children(),c=this.repeates(),e=[],f=[],n=a.id(),m;for(a=0,m=c.length;a<m;a++)c[a].repeat().pos=="bottom"?f.push(c[a]):e.push(c[a]);for(a=e.length-1;a>-1;--a)b(e[a].repeat())&&d.splice(0,0,e[a]);for(a=0,m=f.length;a<m;++a)b(f[a].repeat())&&d.push(f[a])},actions:function(a){a!=d&&(this._project.actions=a);return this._project.actions},_callAllAlerts:function(){},_bindAlertCall:function(a){function b(){for(var c=
0,e=d.length;c<e;c++)a.alert(d[c]);d.length=0}var d=[];a._callAllAlerts=b;return function(c){a.nativeAppIsActive()?d.length>0?b():a.alert(c):d.push(c)}},userContextConstructor:function(a,d){a._invalidHandlerActions={};var c=AC.WidgetExt.Workflow(a),e=AC.WidgetExt.Sys(a),f,l,n,m=function(a){acDebugger.systemLog("Include problem public client file : "+a)};n=a._bindAlertCall(a);f=function(d,c){return b.setTimeout(function(){if(a&&!a.isDestroyed())try{typeof d=="function"?d():eval(d)}catch(b){a._onUserCodeError(b,
"setTimeout")}},c)};l=function(d,c){var e=b.setInterval(function(){if(a&&!a.isDestroyed())try{typeof d=="function"?d():eval(d)}catch(c){a._onUserCodeError(c,"setInterval")}else b.clearInterval(e)},c);return e};eval("var app,wf,sys,include,setTimeout,setInterval,alert;function ac_setobjects(a,w,s,i,st,si,al){app=a,wf=w,sys=s,include=i,setTimeout=st,setInterval=si,alert=al}function ac_setwidget(w){_widget=w}");ac_setobjects(a,c,e,m,f,l,n);for(var o=function(){eval(d.userCode);return function(a){return eval(a)}}(),
p=d.AEcode,q=0;q<p.length;++q){var r=p[q];if(r.editingType==WiziCore_Api_ClientForm.ACTION_CODE_TYPE_AE)try{eval(r.code)}catch(t){acDebugger.systemLog("invalidHandlerActions",t),a._invalidHandlerActions[r.handler]=!0}}this.getHandler=o;this.setWidget=function(a){ac_setwidget(a)};this.cleanUpClientObjects=function(){a=c=e=m=f=l=n=null;ac_setobjects(null,null,null,null,null,null,null);ac_setwidget(null);this.cleanUpClientObjects=this.getHandler=this.setWidget=null}},_onUserCodeError:function(b,d){var f=
"";if(typeof b=="object"){var f=b.message,j=a('<table style="text-align: justify; width: 100%" cellspacing="2">\r\n    <tr>\r\n        <td data-lng="ac-app_message">\r\n        </td>\r\n        <td id="waFormErrorMsg"></td>\r\n    </tr>\r\n    <tr>\r\n        <td style="padding-bottom: .5em"></td><td></td>\r\n    </tr>\r\n    <tr>\r\n        <td data-lng="ac-app_function">\r\n        </td>\r\n        <td id="waFormErrorHname"></td>\r\n    </tr>\r\n</table>');j.find("#waFormErrorMsg").text(f);j.find("#waFormErrorHname").text(d);
f=j}else f=b;var j={supress:!1},k=new a.Event(e.onError+"."+this.id());a(c).trigger(k,[b,j]);!k.isPropagationStopped()&&!j.supress&&WiziCore_Helper.showError(AC.Core.lang().trText("app_error"),f,112);acDebugger.systemLog(f,b)},userCodeEnviroment:function(b,c){var e=d;if(c!=d)try{this._userCodeContext=new this.userContextConstructor(this,c)}catch(f){e=f.message,acDebugger.systemLog1("form:error execute actions: ",f)}var k=this;if(b!=d&&this._userCodeContext!=null){var l=eval(b.bindAction),n=this._userCodeContext.getHandler(b.handler),
m=b.widget;a(m).unbind(l);a(m).bind(l,function(a,b,c,e){return function(){try{var f=arguments[0],g=[].slice.call(arguments);g.shift();k._userCodeContext.setWidget(a);var i=c.apply(k,g);acDebugger.systemLog("code",b);i!=d&&i==!1&&f.stopPropagation()}catch(h){k._onUserCodeError(h,e)}k._userCodeContext&&k._userCodeContext.setWidget(null)}}(m,m.id(),n,b.handler));m=n=l=null}return e},_collectUserCode:function(a){var b=e.Scripts.CLIENT,c=a[b]&&a[b].files?a[b].files:d,a=a.userCode;if(c!=d)for(var f in c)a+=
c[f];if(this.runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE)var k=this.context().publicScripts().scripts()[b].files,l=function(a){var b=a,d,c,e=/(?:\'(?:\\[\w\W]|[^\'\\])*?\'|"(?:\\[\w\W]|[^"\\])*?"|\/\/[\w\W]*?$|\/\*[\w\W]*?\*\/|include\(\s*?(\'(?:\\[\w\W]|[^\'\\])*?\'|"(?:\\[\w\W]|[^"\\])*?")\s*?\))/gi;if(a&&a!="")for(;(d=e.exec(a))!=null;)c=d[0],d[1]&&(d=d[1]+"",d=d.substr(1,d.length-2),d=k[d]?l(k[d]):"",b=b.replace(c,d));return b},a=l(a);return a},executeActions:function(){var a=this.actions();
if(a!=d){var b=this._collectUserCode(a),c=a.system,f=a="";if(c!=d){b=this.userCodeEnviroment(null,{userCode:b,AEcode:c});b!=d&&(a=b);var b=e.actions(),f={},k;for(k in b)f[k]=this;k="";var l=this._invalidHandlerActions;this._bindPauseResumeEvents();for(var n=this.id(),m=0;m<c.length;++m){var o=c[m];if(l[o.handler])k.length!=0&&(k+="<br />"),k+=AC.Core.lang().tr("handler")+": "+o.handler+", "+AC.Core.lang().tr("widget_action")+": "+o.actionid;else{var p=o.actionid;p in f&&o.objectid==n&&(this._bindFormEvent(p),
this.bindEventsToWidget(this,[o],!0))}}f=k;if(f!==""||a!=="")c="",f!==""&&(c="<b>"+AC.Core.lang().tr("actions_syntax_warning")+"</b><br>",c+=f,c+="<br><br>"),a!==""&&(c+="<b>"+AC.Core.lang().tr("actions_jssyntax_warning")+"</b><br>",c+=a,c+="<br>"),WiziCore_Helper.showWarning(AC.Core.lang().tr("actions_wrong_syntax_warning"),c);b==d&&this.bindOnSubmitActions()}}},bindEventsToWidget:function(a,b,c){var e=b==d?this.actions():{system:b};if(e!=d&&this._executeActionsCheck())if(b=a.getActions())for(var e=
e.system,f=this._invalidHandlerActions,l=0;l<e.length;++l){var n=e[l];if(!(f!=null&&f[n.handler])){var m=n.objectid;if(c||a.id()==m)try{this.userCodeEnviroment({bindAction:b[n.actionid].action,handler:n.handler,widget:a})}catch(o){acDebugger.systemLog1("handler not exist",n.handler)}}}else acDebugger.systemLog1("no actions for widget: ",a.name())},buildDOM:function(){return null},bindOnSubmitActions:function(){var c=this.pageTarget(),e=this.redirectUrl();if(!(c==-1||c==d)||!(e==d||e=="")){var f=this,
j=this.context().formInstances();a(j).bind(WiziCore_Api_FormInstanceRequester.onSubmitted,function(a,j){if(!j&&(c!=-1&&f.showPageByNum(c),e!=d&&e!=""))if(f.runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE)b.open(e);else if(f.runtimeMode()==WiziCore_UI_FormRuntime.LIVE_MODE)b.location=e})}},roles:function(){return this._project.roles},themeContent:function(){return this.context().formThemeManager().themeContent(this.theme())},switchThemeStyles:function(){if(this._isDrawn){var a=this.context().formThemeManager(),
b=!1,c={},e=this,f=this.themeContent(),l=function(a){for(var a=a.children(),g=0,o=a.length;g<o;g++){var p=a[g],q=p.widgetClass(),r=p.prop("widgetStyle");f[q]!=d?f[q][r]!=d?p.prop("widgetStyle",r):f[q]["default"]==d&&(b=!0,c=e.createNewDefaultStyle(q),f[q]["default"]=c):(b=!0,c=e.createNewDefaultStyle(q),f[q]={},f[q]["default"]=c);f[q]&&f[q]["default"]!=d&&p.prop("widgetStyle","default");l(p)}};l(this);b!=!0&&a.applyTheme()}},createNewDefaultStyle:function(a){for(var a=this.getAvailableStyleProps(a),
b={},d=0,c=a.length;d<c;d++)b[a[d]]="";return b},_backgroundImage:function(a){a!=d&&this._setBodyProp("background-image","url("+a+")")},_backgroundColor:function(a){this._setBodyProp("background-color",a)},_backgroundRepeat:function(a){this._setBodyProp("background-repeat",a)},_setBodyProp:function(b,d){this.mode()==WiziCore_Visualizer.EDITOR_MODE||this.form().runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE||this.isEmbed()?this.base().css(b,d):a("body").css(b,d)},_getMandatoryShadow:function(a,
b){var c=a!=d?a:this.highlightColor(),e=b!=d?b:this.highlightOpacity(),c=c==null?"#ff0000":c,e=e==null?8:e;return{value:"0px 0px "+e+"px "+c,hColor:c,hOpacity:e}},initLiveSelectingWidget:function(a,b){this._liveSelectingWidget={w:a,type:b}},getLiveSelectingWidget:function(){return this._liveSelectingWidget},view:function(a){for(var b=this.views(),d=0,c=b.length;d<c;d++)if(b[d].viewId==a)return b[d];return null},onDrillDown:function(b,d,c,f){var k=new jQuery.Event(e.onDrillDown);a(this).trigger(k,
[b,d,c,f])},onKeyPress:function(b){var d=new jQuery.Event(e.onKeyPress);a(this).trigger(d,[b])},onResize:function(){var b=new jQuery.Event(e.onResize);a(this).trigger(b,arguments)},onOffLine:function(b){var d=new jQuery.Event(e.onOffLine);a(this).trigger(d,[b])},onOnLine:function(b){var d=new jQuery.Event(e.onOnLine);a(this).trigger(d,[b])},outlineWidget:function(b,d,c){var c=c?c:1,e=this.base().parents(".wiziDesignerPlace");e.find("."+b+"outline").remove();e.unbind("scroll.outline");d&&(this.appendOutlineDivs(e,
b,c,d),e.bind("scroll.outline",function(){var b=a(this);b.find(".selectBorderRight, .selectBorderBottom").css({right:-b.scrollLeft(),bottom:-b.scrollTop()});b.find(".selectBorderLeft, .selectBorderRight").css({bottom:-b.scrollTop(),height:"auto"});b.find(".selectBorderBottom, .selectBorderTop").css({right:-b.scrollLeft(),width:"auto"})}),e.scroll())},getLiveUrl:function(){var a=this.liveName(),a=a!=d&&a!=""&&a!=null?a:"live.php?formId="+this.formId();return WiziCore_Helper.getHttpUrl(this.context().config().clientApi())+
a},setTimeZone:function(a){this._timeZone=a==d?(new Date).getTimezoneOffset():a},getTimeZone:function(){if(this._timeZone==null)this._timeZone=(new Date).getTimezoneOffset();return this._timeZone},onAppError:function(b,d){var c=new jQuery.Event(e.onError);a(this).trigger(c,[b,d]);return!c.isPropagationStopped()},fireNativeEvent:function(b){b=new jQuery.Event(b);a(this).trigger(b);return!b.isPropagationStopped()},_beforeLanguages:function(a){return a},_languages:function(b){b!=d&&a(this).trigger(e.onAppLanguagesChanged)},
_beforeLanguage:function(a){return a},_language:function(){},showLngTokens:function(a){this._showLngTokens=a===!0},_stringTable:function(){},addTokenToStringTable:function(){},cloneToken:function(){}}));e._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.liveName,AC.Property.general.version,{name:"icon",type:"iconsoptions",set:"icon",get:"icon",alias:"widget_icon"},{name:"mobileSplash",type:"splashScreenOptions",set:"mobileSplash",
get:"mobileSplash",alias:"widget_mobileSplash"},{name:"desktopSplash",type:"desktopSplash",set:"desktopSplash",get:"desktopSplash",alias:"widget_desktopSplash",visible:!1},{name:"twirlyThingOptions",type:"twirlythingoptions",set:"twirlyThingOptions",get:"twirlyThingOptions",alias:"widget_twirlythingoptions",inTheme:!0},{name:"displayHourglassOver",type:"formhourglasstype",set:"displayHourglassOver",get:"displayHourglassOver",alias:"widget_displayhourglassover"},{name:"pageTransition",type:"pagetransitionoptions",
set:"pageTransition",get:"pageTransition",alias:"widget_pageTransition"},AC.Property.general.loginFormId,AC.Property.general.userAccess,AC.Property.general.defaultPage,AC.Property.general.backgroundImage,AC.Property.general.backgroundColor,AC.Property.general.backgroundRepeat,AC.Property.general.autoFocus,AC.Property.general.actions,AC.Property.general.workflow,AC.Property.general.linkedExportApp]},{name:AC.Property.group_names.internationalization,props:[{name:"languages",type:"appLanguages",set:"languages",
get:"languages",alias:"form_language"},{name:"stringTable",type:"stringTable",set:"stringTable",get:"stringTable",alias:"string_table"}]},{name:AC.Property.group_names.oauth,props:[{name:"authProviders",type:"authProviders",set:"authProviders",get:"authProviders",alias:"form_auth_providers"}]},{name:AC.Property.group_names.data,props:[AC.Property.data.views]},{name:AC.Property.group_names.advanced,props:[{name:"advertising",type:"advertisingApp",set:"advertising",get:"advertising",alias:"widget_advertising"},
AC.Property.advanced.id_folder,AC.Property.advanced.id_form,AC.Property.advanced.id_user,AC.Property.advanced.pageTarget,AC.Property.advanced.redirectUrl,AC.Property.advanced.gaAccountId,AC.Property.advanced.gmapsApiKey,{name:"parseAppId",type:"text",set:"parseAppId",get:"parseAppId",alias:"widget_parseAppId"},{name:"parseApiKey",type:"text",set:"parseApiKey",get:"parseApiKey",alias:"widget_parseApiKey"},AC.Property.advanced.filesList,AC.Property.advanced.htmlHead]},{name:AC.Property.group_names.phonegap,
props:[AC.Property.advanced.phoneGapOptions,AC.Property.advanced.phoneGapPlugins,AC.Property.advanced.orientation,{name:"fullScreen",type:"boolean",set:"fullScreen",get:"fullScreen",alias:"widget_fullscreen",visible:!1}]},{name:AC.Property.group_names.database,props:[AC.Property.advanced.hasStorage,AC.Property.advanced.instanceTitleTemplate,AC.Property.advanced.applicationRelationships,AC.Property.database.integrityHandling,AC.Property.database.uniquenessMessage,AC.Property.mandatory.mandatoryMessage,
AC.Property.mandatory.highlightOpacity,AC.Property.mandatory.highlightColor]},{name:AC.Property.group_names.custom,props:[AC.Property.custom.renderCharts]},{name:AC.Property.group_names.style,props:[AC.Property.style.theme]}];e.props=function(){return e._props};e.onRepeatesAdded="E#Form#onRepeatesAdded";e.onRepeatesDeleted="E#Form#onRepeatesDeleted";e.onStartCreate="E#Form#onStartCreate";e.onCreated="E#Form#onCreated";e.onStartScriptExecuted="E#Form#onStartScriptExecuted";e.onAppStarted="E#Form#onAppStarted";
e.onInstanceLoaded="E#Form#onInstanceLoaded";e.onSubmit="E#Form#onSubmit";e.onThemeEmpty="E#Form#onThemeEmpty";e.onDrillDown="E#Form#onDrillDown";e.onKeyPress="E#Form#onKeyPress";e.onError="E#Form#onAppError";e.onResize="E#Form#onResize";e.onSubmitted="E#Form#onSubmitted";e.onPreSubmit="E#Form#onPreSubmit";e.onOffLine="E#Form#onOffLine";e.onOnLine="E#Form#onOnLine";e.NativeMobile={};e.NativeMobile.onOnline="E#Form#NativeMobile#onOnline";e.NativeMobile.onOffline="E#Form#NativeMobile#onOffline";e.NativeMobile.onMenuButton=
"E#Form#NativeMobile#onMenuButton";e.NativeMobile.onPause="E#Form#NativeMobile#onPause";e.NativeMobile.onResume="E#Form#NativeMobile#onResume";e.NativeMobile.onSearchButton="E#Form#NativeMobile#onSearchButton";e.NativeMobile.onBackButton="E#Form#NativeMobile#onBackButton";e.onAdaptiveLayout="E#Form#onAdaptiveLayout";e.onEmbedAppStarted="E#Form#onEmbedAppStarted";e.onPageChange="E#Form#onPageChange";e.onSelectPageByLink="E#Form#onSelectPageByLink";e.onGatLoaded="E#Form#onGatLoaded";e.onAppLanguagesChanged=
"E#Form#onAppLanguagesChanged";e.onAppLanguageChanged="E#Form#onAppLanguageChanged";e.onLanguageDetection="E#Form#onLanguageDetection";e.onSTUpdated="E#Form#onSTUpdated";e.onLanguageInited="E#Form#onLanguageInited";e.onLanguagesRemoved="E#Form#onLanguagesRemoved";var f={onStartScriptExecuted:{alias:"widget_event_onAppLoading",funcview:"onAppLoading",action:"AC.Widgets.WiziCore_Api_Form.onStartScriptExecuted",params:"",group:"widget_event_general"},onAppStarted:{alias:"widget_event_onappstarted",funcview:"onAppStarted",
action:"AC.Widgets.WiziCore_Api_Form.onAppStarted",params:"",group:"widget_event_general"},onInstanceLoaded:{alias:"widget_event_oninstanceloaded",funcview:"onInstanceLoaded",action:"AC.Widgets.WiziCore_Api_Form.onInstanceLoaded",params:"instanceId",group:"widget_event_general"},onAdaptiveLayout:{alias:"widget_event_onadaptiveLayout",funcview:"onAdaptiveLayout",action:"AC.Widgets.WiziCore_Api_Form.onAdaptiveLayout",params:"widget, props",group:"widget_event_general"},onClose:{alias:"widget_event_appteminate",
funcview:"onAppTerminate",action:"WiziCore_Api_ClientForm.onClosing",params:"opt, quiet",group:"widget_event_general"},onSubmitted:{alias:"widget_event_onsubmitted",funcview:"onSubmitted",action:"AC.Widgets.WiziCore_Api_Form.onSubmitted",params:"error, instanceId, created",group:"widget_event_general"},onPreSubmit:{alias:"widget_event_onpresubmit",funcview:"onPreSubmit",action:"AC.Widgets.WiziCore_Api_Form.onPreSubmit",params:"savingOptions",group:"widget_event_general"},onDrillDown:{alias:"widget_event_ondrilldown",
funcview:"onDrillDown",action:"AC.Widgets.WiziCore_Api_Form.onDrillDown",params:"viewName, widgetId, filters, resetFlag",group:"widget_event_general"},onError:{alias:"widget_event_onerror",funcview:"onError",action:"AC.Widgets.WiziCore_Api_Form.onError",params:"error",group:"widget_event_general"},onPageChange:{alias:"widget_event_onpagechange",funcview:"onPageChange",action:"AC.Widgets.WiziCore_Api_Form.onPageChange",params:"previousPageId, currentPageId",group:"widget_event_general"},onKeyPress:{alias:"widget_event_onkeypress",
funcview:"onKeyPress",action:"AC.Widgets.WiziCore_Api_Form.onKeyPress",params:"keyEv",group:"widget_event_key"},onResize:{alias:"widget_event_onresize",funcview:"onResize",action:"AC.Widgets.WiziCore_Api_Form.onResize",params:"ev, width, height",group:"widget_event_general"},onAppLanguageChanged:{alias:"widget_event_onapplanguagechanged",funcview:"onAppLanguageChanged",action:"AC.Widgets.WiziCore_Api_Form.onAppLanguageChanged",params:"language",group:"widget_event_internationalization"},onLanguageDetection:{alias:"widget_event_onlanguagedetection",
funcview:"onLanguageDetection",action:"AC.Widgets.WiziCore_Api_Form.onLanguageDetection",params:"detectedLanguage",group:"widget_event_internationalization"},onNativeOnline:{alias:"widget_event_native_ononline",funcview:"onMobileOnline",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onOnline",params:"",group:"widget_event_mobile_native"},onNativeOffline:{alias:"widget_event_native_onflline",funcview:"onMobileOffline",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onOffline",params:"",group:"widget_event_mobile_native"},
onNativePause:{alias:"widget_event_native_onpause",funcview:"onMobilePause",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onPause",params:"",group:"widget_event_mobile_native"},onNativeResume:{alias:"widget_event_native_onresume",funcview:"onMobileResume",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onResume",params:"",group:"widget_event_mobile_native"},onNativeMenuButton:{alias:"widget_event_native_onmenu",funcview:"onMobileMenuPress",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onMenuButton",
params:"",group:"widget_event_mobile_native"},onNativeSearchButton:{alias:"widget_event_native_onsearch",funcview:"onMobileSearchPress",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onSearchButton",params:"",group:"widget_event_mobile_native"},onNativeBackButton:{alias:"widget_event_native_onback",funcview:"onMobileBackPress",action:"AC.Widgets.WiziCore_Api_Form.NativeMobile.onBackButton",params:"",group:"widget_event_mobile_native"}};e.actions=function(){return f};e.capabilities=function(){return{isField:!1,
containerType:AC.Widgets.Base.CASE_TYPE_APP}};e.appRelationshipProps=function(){return{name:{type:"text",value:"Name",group:AC.Property.group_names.data,alias:"proptype_dapprel_tp_name",weight:1},type:{type:"appRelationshipType",value:"ManyToMany",group:AC.Property.group_names.data,alias:"proptype_dapprel_tp_type",weight:2},toApplication:{type:"selectRelForm",value:null,group:AC.Property.group_names.data,alias:"proptype_dapprel_tp_toApplication",weight:3},cascade:{type:"boolean",value:!1,group:AC.Property.group_names.data,
alias:"proptype_dapprel_tp_cascadedelete",weight:4}}};e.Scripts={CLIENT:"clientScripts",SERVER:"serverScripts"};e.PageChanging={onShow:"E#Form#PageChangingonShow",onStart:"E#Form#PageChangingonStart",onStop:"E#Form#PageChangingonStop"};e.Type={STRING:"String",INTEGER:"Integer",REAL:"Real",BOOLEAN:"Boolean",DATE:"Date",NUMERIC:"Numeric",ATTACHMENT:"Attachment"};e.Kind={SIMPLE:"Simple",OBJECT:"Object",LIST:"List",OBJECT_LIST:"ObjectList"};e.DEFAULT_LIST_KEY="_";e.MANDATORY={FORM_WIDGETS:1,ARRAY_WIDGETS:2,
BOTH:3};e.IntegrityHandling={MESSAGE:"message",MESSAGE_AND_HIGHLIGHT:"messageAndHighlight",HIGHLIGHT:"highlight",NONE:"none"}})(jQuery,window,document);
(function(a,b,c,d){var e=[];a(b).resize(function(a,b){for(var d=0,c=e.length;d<c;d++)e[d]&&e[d].onWindowResize(b)});var f=AC.Widgets.WiziCore_Api_Page=AC.Widgets.WiziCore_Widget_Container.extend({_widgetClass:"WiziCore_Api_Page",_mobileMode:!1,_isPageShown:null,_isPageChanging:null,_pageContainer:null,isDraggable:!1,_pageDialogMode:null,_webkitFixInited:!1,_scrollTopPos:0,_scrollLeftPos:0,_transitionProfile:{},_pageDisableDiv:null,init:function(a){a.page=this;this._super.apply(this,[a])},transitionTime:function(a,
b){if(a!=d)if(b!=d){if(this._transitionProfile[this.id()+"_"+b]==d||this._transitionProfile[this.id()+"_"+b]<a)this._transitionProfile[this.id()+"_"+b]=a,this._transitionProfile[b+"_"+this.id()]=a}else this._transitionProfile[this.id()]=a;return this._transitionProfile[this.id()+(b!=d?"_"+b:"")]},_checkCenterWidth:function(){},scrollTop:function(a){if(a!=d)this._scrollTopPos=a;return this._scrollTopPos},scrollLeft:function(a){if(a!=d)this._scrollLeftPos=a;return this._scrollLeftPos},onWindowResize:function(){this._fullScreenHeight(this.fullScreenHeight())},
_fullScreenHeight:function(a){var b=this.layout()==d||this.layout()=="absolute",c=this.mode()!=WiziCore_Visualizer.EDITOR_MODE;if(!b&&c&&this._tableBase){b={};if(a){var e=this._pageContainer,a=e.topCont.data("paddingTop"),c=this.form().isEmbed?this.form()._scrolledElement().height():WiziCore_Helper.getOutputWindowDimensions(this.form()).height,e=e.bottomCont.data("paddingBottom"),a=isNaN(a)?0:a,e=isNaN(e)?0:e;b.height=c-a-e}else b.height=this.height();this._tableBase.css(b)}},isPageChanging:function(a){if(a!==
d)this._isPageChanging=a;return this._isPageChanging},_applyCssRules:function(){var b={},c={},e=this.centered(),f=this.pWidth(),g=this.layout()==d||this.layout()=="absolute",n=this.dialogMode(),m=this.mode(),o=m!=WiziCore_Visualizer.EDITOR_MODE,p=this.pageContainer().centerCont;b.height="";c.display="block";c.position="static";b.overflow="hidden";if(m==WiziCore_Visualizer.RUN_MODE){if(!f)b.width=this._fixWidthWithPaddingInFF(this),b.display="table-cell",o&&(b["table-layout"]="fixed");g?b.display=
"block":(b.display="table-cell",o&&(b["table-layout"]="fixed"))}if(a.browser.msie)b.display="block",f&&(b.width=f+"%");o&&(m="auto",g&&(m=this.width()),p.css("width",f?"":m));b.position="relative";if(o){if(f)n?p.css("width","100%"):p.css("width",f+"%"),b.width="100%",c.width="100%";e?(c["float"]="none",b["float"]="none",p.css("margin","0 auto")):(c["float"]=!n&&!a.browser.msie?"left":"",p.css("margin","0"))}f&&o&&(b["min-width"]="");if(b.display=="table-cell")b.height=this.height(),b["min-height"]=
"",b["float"]="";this.base().css(c);this._tableBase.css(b);this._fullScreenHeight(this.fullScreenHeight())},_updateLayout:function(){this._super();this._isPageShown&&(this._applyCssRules(),this.setDesktopPagePos())},pageDisableDiv:function(a){if(a!==d)this._pageDisableDiv=a;return this._pageDisableDiv},_setMobilePagePos:function(d){var c=this.form(),e=c.runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE?c.base().offset():{left:0,top:0},f=a(b).scrollTop(),g=a(b).scrollLeft();this.tableBase();var n=
this._pageContainer.base,m=n.width(),o=this.form()._scrolledElement(),o=c.isEmbed()?{width:o.width(),height:o.height()}:WiziCore_Helper.getWindowDimension(),p=(o.height-n.height())/2-(c.isEmbed()?0:e.top),q=(o.width-m)/2-(c.isEmbed()?0:e.left);c.isEmbed()&&(g=f=0);WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad()&&this.pWidth()&&(q=((screen?b.orientation==0?screen.width:screen.height:o.width)-m)/2-e.left,g=0);p+=f;q+=g;p=p<0?0:p;q=q<0?0:q;n.data("top",p);n.stop();d?n.animate({top:p,left:q},200):
n.css({top:p,left:q})},setDesktopPagePos:function(a){var b=this.pageContainer();if(this.dialogMode()){var d=this,c=this.getShadowOffset(),e=parseInt(this.border(),10),f=0,c=this.tableBase().outerHeight()+b.topCont.outerHeight()+b.bottomCont.outerHeight()+c.h,g=WiziCore_Helper.getWindowDimension().height,e=isNaN(e)?0:e*2,f=this.width()-0+5;c<g?b.base.css("height",c):b.base.css("height","");b.topCont.css("width",f);b.bottomCont.css("width",f);b.base.css({width:this.pWidth()>0?this.pWidth()+"%":f});
b.base.addClass("m-ui-mobile-page-popup");WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad()&&d._orientationChanged?(d._orientationChanged=!1,b.base.css({left:0}),setTimeout(function(){d._setMobilePagePos(a)},100)):this._setMobilePagePos(a);this.updateFixedChildrenHeight()}else b.base.removeClass("m-ui-mobile-page-popup"),b.topCont.css("width",""),b.bottomCont.css("width",""),b.base.css({width:"",height:"",left:"",top:b.base.data("topDefault")||""}),b.base.data("top",null)},collectChildrenProjects:function(){for(var a=
this.children(),b=[],d=0,c=a.length;d<c;d++)a[d].repeat()===!1&&b.push(a[d].project());return b},initProps:function(){this._super();this.maxHeight=this.maxWidth=this.minWidth=d;this.autoPageJump=this.normalProperty("autoPageJump");this.autoJumpTime=this.normalProperty("autoJumpTime");this.gaTrackCode=this.normalProperty("gaTrackCode");this.centered=this.themeProperty("centered",this._centered);this.shadow=this.themeProperty("shadow",this.checkShadowDocked);this.font=this.themeProperty("font",this._font);
this.fontColor=this.themeProperty("fontColor",this._fontColor);this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.padding=this.themeProperty("padding",this._updateLayout);this.fullScreenHeight=this.themeProperty("fullScreenHeight",this._fullScreenHeight);this.transitionMode=this.normalProperty("transitionMode");this.backgroundImage=this.themeProperty("backgroundImage",this._updateBackgroundImage);this.backgroundRepeat=
this.themeProperty("backgroundRepeat",this._updateBackgroundImage)},draw:function(a){var b=this._pageContainer,d=b.base;d.attr("data-role","page");d.addClass("m-ui-page");this._isDrawn?this.reDrawRepeatWidgets():(a.append(d),this._super.apply(this,[b.centerCont]),b.base.show(),this.onPageDrawn(),this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(this.initDataIntegration(),e.push(this)));WiziCore_Helper.appendStyleSheetsForWidgets(this.form(),"WiziCore_UI_LabelWidget");WiziCore_Helper.appendStyleSheetsForWidgets(this.form(),
"WiziCore_UI_WysiwygWidget")},hideToolBars:function(){if(WiziCore_Helper.isMobile()&&this._pageContainer&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE){var a=this._pageContainer;a.topCont.hide();a.bottomCont.hide()}},showToolBars:function(){if(WiziCore_Helper.isMobile()&&this._pageContainer&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE){var a=this._pageContainer;a.topCont.fadeIn(100);a.bottomCont.fadeIn(100)}},hasFocus:function(){return this._pageContainer.centerCont.data("hasFocus")},setAndroidStylesForDom:function(){if(this.dialogMode()){if(WiziCore_Helper.isIOS()&&
!WiziCore_Helper.isIPad())m=this,r=b.onorientationchange,b.onorientationchange=function(){m._orientationChanged=!0;typeof r=="function"&&r.apply(this,arguments)}}else{var e=this._pageContainer,f=e.topCont,g=e.bottomCont,k=AC.Advertising,l=WiziCore_Helper.isPositionFixedSupport(),e=WiziCore_Helper.isNative()||WiziCore_Helper.isMobile(),n,m=this;f.unbind("resize").resize(function(){m.updateFixedChildrenHeight()});g.unbind("resize").resize(function(){m.updateFixedChildrenHeight()});var o=function(a,
d){if(a===!1)f.css("left",""),g.css("left",""),k.dropRelativePositionByScroll();else{if(d)f.css("left",""),g.css("left","");else{var c=b.pageXOffset;f.css("left",c+"px");g.css("left",c+"px")}k.setRelativePositionByScroll()}},p=function(){var a=m.form()&&m.form().isDestroyed();return a==null?!0:a},q=function(){if(!p()){var a=WiziCore_Helper.getWindowDimension();if(m.hasFocus()||!l)!l||this.pWidth()?o(d,!0):o();var c=a.width;l||(c=screen?b.orientation==0?screen.width:screen.height:c);f.width(c);g.width(c);
k.checkWidthOfAdvert(function(a){a.width(c)})}};if(WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad()){p()||setTimeout(function(){q()},800);var r=b.onorientationchange;b.onorientationchange=function(){clearTimeout(n);!p()&&m._isPageShown&&(q(),m.hasFocus()||!l?n=setTimeout(function(){q()},800):WiziCore_Helper.isNative()&&WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad()&&a(c).trigger("scroll"));typeof r=="function"&&r.apply(this,arguments)}}if(WiziCore_Helper.isAndroid()&&!WiziCore_Helper.isAndroid4())r=
b.onorientationchange,b.onorientationchange=function(){if(!p()&&m._isPageShown){var b=m.pageDisableDiv();b&&(b.hide(),setTimeout(function(){b.css({left:"",top:"",width:a(c).width()+"px",height:a(c).height()+"px"});b.show()},400))}typeof r=="function"&&r.apply(this,arguments)};e&&(!l||WiziCore_Helper.isNative()&&WiziCore_Helper.isIOS()&&!WiziCore_Helper.isIPad())&&a(c).unbind("scroll.notFixedSupport").bind("scroll.notFixedSupport",function(){p()||m._isPageShown&&o()})}},onPagePainted:function(){var a=
this._pageContainer;this.setAndroidStylesForDom();if(this.form().isPrinting()&&!this.dialogMode()){var b=function(a){a.css("position","relative")};b(a.base);b(a.centerCont);b(a.topCont);b(a.bottomCont);a.base.addClass("wa-print-page-break")}},reDrawRepeatWidgets:function(b){function d(a,b){var c=a.parent()==e;if(!c){var f=a.base().clone();n=n.add(f)}a.parent(e);a._isDrawn||(e._drawChild(a,b),a.onPageDrawn());c||f.insertBefore(a.base());a._redraw&&a._redraw();a._drawToContainer(a.getFixedContainer()||
e.base());a._updateLayout();a.repeatPage&&a.repeatPage(e)}var c=this.children(),e=this,g=[],n=a();WiziCore_Helper.map(c,function(a,b){var c=a.repeat();c&&(c.pos=="top"?g.push({child:a,pos:b,repeat:c}):d(a,b))});g=g.reverse();WiziCore_Helper.map(g,function(a){d(a.child,a.pos)});if(b)n.remove();else a(this).unbind(f.onPagePreShow).one(f.onPagePreShow,function(){n.remove()})},drawChildren:function(){function b(a,e){if(a._isDrawn){if(a.parent()!=d){var f=a.base().clone();c=c.add(f);f.insertAfter(a.base())}a.parent(d);
a._drawToContainer(a.getFixedContainer()||d.base());a._updateLayout()}else a.parent(d),d._drawChild(a,e)}var d=this,c=a(),e=[],g,n=this.children();WiziCore_Helper.map(n,function(a,d){(g=a.repeat())&&g.pos=="top"?e.push({item:a,pos:d}):b(a,d)});e=e.reverse();WiziCore_Helper.map(e,function(a){b(a.item,a.pos)});if(!this.form().isPrinting())a(this).one(f.onPagePreShow,function(){c.remove()})},_drawToContainer:function(a){a.append(this._tableBase)},updateFixedChildrenHeight:function(){var a=this.form();
if(this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&!a.isEmbed()){var b=this._pageContainer,d=b.topCont.height(),c=WiziCore_Helper.isPositionFixedSupport(),e=0,f=b.centerCont.data("hasFocus"),g=AC.Advertising.usingAdvertToolbar(),o=b.bottomCont.height();o-=0;d-=0;if(g){var e=AC.Advertising,p=e.isBottomPosition(),e=e.toolbarHeight()||0;p?o+=e:d+=e}b.centerCont.data("advHeight",e);b.centerCont.data("advPosBottom",p);b.topCont.data("paddingTop",d);b.bottomCont.data("paddingBottom",o);f||
(c?b.centerCont.css({"padding-top":d+"px","padding-bottom":o+"px"}):g&&!p&&b.centerCont.css({"padding-top":e+"px"}));a.runtimeMode()==WiziCore_UI_FormRuntime.PREVIEW_MODE?(a=a.base().parent().offset(),d=a.top,!p&&(d+=e),b.topCont.css({left:a.left,top:d}),b.bottomCont.css({left:a.left})):g&&(f||(p?c&&b.bottomCont.css({bottom:e}):b.topCont.css({top:e})));this._fullScreenHeight(this.fullScreenHeight())}},pageContainer:function(){if(!this._pageContainer){var b=this.mode(),d=a('<div class="wa-page-container">\r\n    <div class="wa-page-container-top">\r\n    </div>\r\n    <div class="wa-page-container-center"></div>\r\n    <div class="wa-page-container-bottom">\r\n    </div>\r\n</div>');
this.form().isEmbed()&&d.addClass("wa-page-container-in-embed");d.css({"z-index":0,display:"none"});var c=this._pageContainer={base:d,topCont:d.find(".wa-page-container-top"),centerCont:d.find(".wa-page-container-center"),bottomCont:d.find(".wa-page-container-bottom")};b==WiziCore_Visualizer.EDITOR_MODE&&(d.css({position:"relative",overflow:"hidden"}),c.centerCont.css({position:"relative",overflow:"auto"}))}return this._pageContainer},isPageShown:function(){return this._isPageShown},show:function(d){a(this).trigger(f.onPagePrepare,
[this._isDrawn]);if(this.form()&&this.form().isDestroyed()!=!0){var e=this,g=this.htmlId();!this._isPageShown&&this.mode()==WiziCore_Visualizer.RUN_MODE&&a(b).bind("resize.page_"+g,function(b){e._isPageShown&&a(e).trigger(f.onResize,arguments)});var k=this._isDrawn;this.pageContainer();this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._pageContainer.centerCont.css({"table-layout":"fixed"});this.draw(d);this._tableBase.show();this._pageContainer.base.show();this.showToolBars();this._isPageShown=!0;
this.dialogMode()||this.updateFixedChildrenHeight();k?this._updateLayout():this._applyCssRules();this.mode()==WiziCore_Visualizer.RUN_MODE&&a(c).bind("keypress."+g,function(a){e.onKeyPress(a)});this.GATrack()}},hide:function(){this._isPageShown=!1;this._pageContainer.base.hide();a(c).unbind("keypress."+this.htmlId())},restoreScrollTop:function(a){if(a!==d)this._restoreScrollTop=a;return this._restoreScrollTop},_font:function(){},_fontColor:function(a){this._super(a,this.pageContainer().base)},_bg:function(a){this._super.apply(this,
arguments)},snapToGrid:function(){var a=this.normalProperty("snapToGrid").apply(this,arguments);return this.processPropertyChanged(arguments,"snapToGrid",a)},bg:function(){var a=this.themeProperty("bgColor",this._bg).apply(this,arguments);return this.processPropertyChanged(arguments,"bgColor",a)},gridSize:function(){var a=this.normalProperty("gridSize").apply(this,arguments);return this.processPropertyChanged(arguments,"gridSize",a)},name:function(){var a=this.normalProperty("name").apply(this,arguments);
return this.processPropertyChanged(arguments,"name",a)},initDomState:function(){this.checkShadowDocked();this._bg(this.bg());this._borderRadius(this.borderRadius());this._border(this.border());this._font(this.font());this._fontColor(this.fontColor());this._updateBackgroundImage();this._boxSizing(this.boxSizing());this.customCssClasses(this.customCssClasses())},GATrack:function(b){if(this.mode()==WiziCore_Visualizer.RUN_MODE){var c=this.form();b==d&&(b=this.gaTrackCode());if(b==""||b==d)b=c.name()+
"/"+this.name(),this.gaTrackCode(b);var e=c.gaAccountId();if(e!=""&&e!=d)if(a._gat!=d){if(c._pageTracker==d)c._pageTracker=a._gat._getTracker(e);c._pageTracker._trackPageview(b)}else a(c).one(AC.Widgets.WiziCore_Api_Form.onGatLoaded,function(){c._pageTracker=a._gat._getTracker(e);c._pageTracker._trackPageview(b)})}},width:function(a){if(a!=d)this._project.width=a,this._isDrawn&&this._updateLayout(),this.sendExecutor();return this.getStylePropValue(this.widgetClass(),"width",this._project.width)},
height:function(a){if(a!=d)this._project.height=a,this._isDrawn&&this._updateLayout(),this.sendExecutor();return this.getStylePropValue(this.widgetClass(),"height",this._project.height)},onRemove:function(){var d=this.htmlId();a(c).unbind("keypress."+d);a(b).unbind("resize.page_"+d);if(this._pageContainer)this._pageContainer.base.remove(),this._pageContainer=null;if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE)for(var d=0,f=e.length;d<f;d++)if(e[d]==this){e.splice(d,1);break}},destroyChildren:function(){for(var a=
this.children(),b,c,e=0,f=a.length;e<f;e++)b=a[e],c=b.repeat(),c===!1||c==d?b.destroy():b.remove()},addItem:function(a){return this.createChild(a)},widgets:function(){return this.children()},checkShadowDocked:function(){this._shadow(this.prop("shadow"))},_centered:function(a){this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(a?this.base().css({position:"relative",margin:"0 auto",left:"",right:""}):this.base().css({position:"relative",margin:""}),this.mode()==WiziCore_Visualizer.RUN_MODE&&this._updateLayout())},
dialogMode:function(a){if(a!=d)this._pageDialogMode=a;return this._pageDialogMode},_borderRadius:function(a){this._super(a,this.tableBase());this._super(a,this.pageContainer().base)},_shadow:function(a){var b=this.mode()==WiziCore_Visualizer.EDITOR_MODE?this.pageContainer().base:this.base();this._super(a,b)},getShadowOffset:function(){var a=this.shadow(),b={h:0,w:0};if(a!=d){var c=a.split(" "),a=c[0]==d||c[0]==""?0:parseInt(c[0]),e=c[1]==d||c[1]==""?0:parseInt(c[1]),c=c[2]==d||c[2]==""?0:parseInt(c[2]);
!isNaN(a)&&!isNaN(c)&&(b.w+=a+c);!isNaN(c)&&!isNaN(e)&&(b.h+=e+c)}return b},_zindex:function(a){this._super(a,this.pageContainer().base)},onKeyPress:function(b){var d=new a.Event(f.onKeyPress);a(this).trigger(d,[b])}}),g=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.width,AC.Property.general.height,AC.Property.general.name,AC.Property.advanced.autoPageJump,AC.Property.advanced.autoJumpTime,AC.Property.general.widgets,AC.Property.general.pageLayout,
AC.Property.advanced.gaTrackCode]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.pWidth,{name:"fullScreenHeight",type:"boolean",get:"fullScreenHeight",set:"fullScreenHeight",alias:"widget_full_screen_height",inTheme:!0}]},{name:AC.Property.group_names.behavior,props:[{name:"transitionMode",type:"transitionMode",get:"transitionMode",set:"transitionMode",alias:"widget_mobile_transition_mode",inTheme:!0}]},{name:AC.Property.group_names.style,props:[AC.Property.style.bgColor,AC.Property.general.backgroundImage,
AC.Property.general.backgroundRepeat,AC.Property.style.textFont,AC.Property.style.textFontColor,AC.Property.style.shadow,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.padding,AC.Property.layout.centered,AC.Property.general.displayHourglassOverParent,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]},{name:AC.Property.group_names.grid,props:[AC.Property.grid.snapToGrid,AC.Property.grid.gridSize]}];f.props=function(){return g};f.emptyProps=function(){return{width:"600",
height:"400",fontColor:"black",shadow:"",bgColor:"white",centered:!1,layout:"absolute"}};f.defaultProps=function(){return{name:"page1",snapToGrid:!1,gridSize:[5,5],widgetStyle:"default",customCssClasses:"",centered:!1,widgetClass:"WiziCore_Api_Page",width:"",height:"",displayHourglassOver:"inherit",fullScreenHeight:!1,transitionMode:"auto",autoPageJump:"",autoJumpTime:0,gaTrackCode:""}};f.onPageShow="E#Page#onPageShow";f.onPagePreShow="E#Page#onPagePreShow";f.onPageLeft="E#Page#onPageLeft";f.onPageBuild=
"E#Page#onPageBuild";f.onKeyPress="E#Page#onKeyPress";f.onResize="E#Page.onResize";f.onPagePrepare="E#Page.onPagePrepare";f.MAX_TRANSITION_TIME=1500;f.actions=function(){var b={onPageShow:{alias:"widget_event_onpageshow",funcview:"onPageShow",action:"AC.Widgets.WiziCore_Api_Page.onPageShow",params:"",group:"widget_event_general"},onPageLeft:{alias:"widget_event_onpageleft",funcview:"onPageLeave",action:"AC.Widgets.WiziCore_Api_Page.onPageLeft",params:"",group:"widget_event_general"},onResize:{alias:"widget_event_onresize",
funcview:"onResize",action:"AC.Widgets.WiziCore_Api_Page.onResize",params:"ev, width, height",group:"widget_event_general"},onPagePrepare:{alias:"widget_event_onpageprepare",funcview:"onPagePrepare",action:"AC.Widgets.WiziCore_Api_Page.onPagePrepare",params:"isDrawn",group:"widget_event_general"},onKeyPress:{alias:"widget_event_onkeypress",funcview:"onKeyPress",action:"AC.Widgets.WiziCore_Api_Page.onKeyPress",params:"keyEv",group:"widget_event_key"}},b=a.extend(AC.Widgets.Base.actions(),b);delete b.dragstart;
delete b.dragstop;delete b.resizestart;delete b.resizestop;f.actions=function(){return b};return b};f.capabilities=function(){return{isField:!1,containerType:AC.Widgets.Base.CASE_TYPE_PAGE}}})(jQuery,window,document);
(function(a,b,c,d){var e=AC.Widgets.WiziCore_WindowWidget=AC.Widgets.Base.extend({_dlg:null,init:function(){this._super.apply(this,arguments)},draw:function(){this.autoOpen()==d&&this.autoOpen(!1);var c=this.dlgTemplate();this._dlg=c==d?a("<div/>"):a(c);this.dialogClass("wa-system-dialog wa-system-style");this.base().append(this._dlg);this._dlg.dialog(this.project());this._super.apply(this,arguments);if(this.modal()){var c=this.htmlId(),e="click."+c,f=function(a){a.stopPropagation()};this._dlg.parent().bind(e,
f);var j=this._dlg.data("dialog").overlay;if(j&&j.$el){var k=j.$el;k.bind(e,f);if(WiziCore_Helper.isPositionFixedSupport())k.css("position","fixed");else{var l=a(b);l.bind("scroll."+c,function(){k&&k.css("top",l.scrollTop());k&&k.css("left",l.scrollLeft())})}}}},initProps:function(){this._super();this.dialogClass=this.normalProperty("dialogClass");this.autoOpen=this.normalProperty("autoOpen");this.dlgTemplate=this.normalProperty("dlgtemplate");this.message=this.htmlProperty("message",this._message);
this.resizable=this.htmlProperty("resizable",this._resizable);this.title=this.htmlProperty("title",this._title);this.zindex=this.htmlProperty("zindex",this._zindex);this.position=this.htmlProperty("position",this._position);this.modal=this.htmlProperty("modal",this._modal)},closeWindow:function(){acDebugger.systemLog("close dialog");if(this._isDrawn&&this._dlg.dialog("isOpen")){if(this.modal()==!0){var d=this.htmlId(),c="click."+d;this._dlg.parent().unbind(c);this._dlg.parent().parent().unbind(c);
a(b).unbind("scroll."+d)}this._dlg.dialog("close");this._dlg.dialog("destroy")}},initDomState:function(){this._super();this._message(this.message());this._resizable(this.resizable());this._zindex(this.zindex());this._modal(this.modal())},open:function(){this._isDrawn&&this._dlg.dialog("isOpen")&&this._dlg.dialog("open")},dlgTemplate:function(){return this._dlg},dialog:function(){return this._dlg},_dialogProperty:function(a,b,c){var e=d;c!==d?(this._isDrawn?this._dlg.dialog("option",b,c):this._project[a]=
c,b={},b[a]=c,this.sendExecutor(b)):e=this._isDrawn?this._dlg.dialog("option",b):this._project[a];return e},width:function(a){return this._dialogProperty("width","width",a)},height:function(a){return this._dialogProperty("heigth","heigth",a)},_resizable:function(b){b!=d&&a(this._dlg).dialog("option","resizable",b)},_zindex:function(b){b!=d&&a(this._dlg).dialog("option","zIndex",b)},_title:function(b){b!=d&&a(this._dlg).dialog("option","title",b)},_modal:function(b){b!=d&&a(this._dlg).dialog("option",
"modal",b)},_message:function(a){a!=d&&(this._dlg.empty(),this._dlg.html(a))},_position:function(a){a!=d&&this._dlg.dialog("option","position",a)},onDestroy:function(){this.closeWindow();this._dlg=null}}),f=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.modal]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.width,AC.Property.layout.height,AC.Property.layout.zindex]},
{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.visible]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.resizable,AC.Property.style.message,AC.Property.style.title,AC.Property.style.widgetStyle]}];e.props=function(){return f};e.defaultProps=function(){return{title:"Some text",width:"200",height:"200",x:"100",y:"50",zindex:"auto",opacity:1,visible:!0,modal:!0,autoOpen:!1,position:"center"}};e.actions=function(){var b={},b=a.extend(AC.Widgets.Base.actions(),
b);e.actions=function(){return!0};return b}})(jQuery,window,document);
var WiziCore_UI_MessageBoxWidget=AC.Widgets.WiziCore_UI_MessageBoxWidget=AC.Widgets.WiziCore_WindowWidget.extend({_widgetClass:"WiziCore_UI_MessageBoxWidget",init:function(){this._super.apply(this,arguments);if(WiziCore_Helper.checkFlash()&&!WiziCore_Helper.isMobile()){var a=this.context().config().staticUrl();ZeroClipboard.setMoviePath(a+"common/js/zeroclipboard/ZeroClipboard.swf");this._clip=new ZeroClipboard.Client}},initProps:function(){this._super();this.buttons=this.normalProperty("buttons");
this.minHeight=this.normalProperty("minHeight");this.minWidth=this.normalProperty("minWidth");this.icon=this.normalProperty("icon");this.close=this.normalProperty("close");this.multiple=this.normalProperty("multiple");this.fullMessage=this.htmlProperty("fullMessage",this._fullMessage);this.errorNum=this.htmlProperty("errorNum",this._errorNum);this.description=this.htmlProperty("description",this._description);this.rule=this.normalProperty("rule")},initDomState:function(){this._super();this._fullMessage(this.fullMessage());
this._errorNum(this.errorNum());this._description(this.description())},_checkRulePass:function(){var a=this._dlg.data("rulePass"),b=!0;if(a===!0||a===!1)b=a,b==!1&&(a=this._dlg.data("rulePassElement"))&&a.effect("pulsate",{times:2});return b},draw:function(){var a=this.buttons(),b=this.icon(),c=this,d=AC.Core.lang().trText("dialog_button_ok"),e=AC.Core.lang().trText("dialog_button_cancel"),f=AC.Core.lang().trText("dialog_button_yes"),g=AC.Core.lang().trText("dialog_button_no"),i=AC.Core.lang().trText("dialog_button_close");
AC.Core.lang().trText("dialog_button_copy");switch(a){case WiziCore_UI_MessageBoxWidget.MB_OKCANCEL:var h={};h[e]=function(a){c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDCANCEL,a)};h[d]=function(a){c._checkRulePass()&&c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDOK,a)};this.buttons(h);break;case WiziCore_UI_MessageBoxWidget.MB_YESNO:h={};h[g]=function(a){c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDNO,a)};h[f]=function(a){if((b==WiziCore_UI_MessageBoxWidget.MB_ICONDELETE||
b==WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION)&&c._checkRulePass()){var d=$(c._dlg).find("input").val();c.conftxt!=d?(a=b==WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION?".wiziMBCheckMsg":".wiziMBFullMsg",$(c._dlg).find(a).effect("pulsate")):c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDYES,a)}else c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDYES,a)};this.buttons(h);break;case WiziCore_UI_MessageBoxWidget.MB_YESNOCANCEL:h={};h[e]=function(a){c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDCANCEL,
a)};h[g]=function(a){c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDNO,a)};h[f]=function(a){if(b==WiziCore_UI_MessageBoxWidget.MB_ICONDELETE&&c._checkRulePass()){var d=c._dlg.find("input").val();c.conftxt!=d?$(c._dlg).find(".wiziMBFullMsg").effect("pulsate"):c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDYES,a)}else c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDYES,a)};this.buttons(h);break;case WiziCore_UI_MessageBoxWidget.MB_CLOSE:h={};h[i]=function(a){c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDCLOSE,
a)};this.buttons(h);break;case WiziCore_UI_MessageBoxWidget.MB_COPYOK:h={};h[d]=function(){c._checkRulePass()&&c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDOK)};this.buttons(h);break;default:h={},h[d]=function(a){c._checkRulePass()&&c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDOK,a)},this.buttons(h)}this.close(function(a){c.closingDialogHandler(WiziCore_UI_MessageBoxWidget.IDCANCEL,a)});d=this.setTemplate(b);this.dlgTemplate(d);d.find(".wiziMBFullMsg").show();this._super.apply(this,
arguments);this.designByType(b);a==WiziCore_UI_MessageBoxWidget.MB_COPYOK&&WiziCore_Helper.checkFlash()&&!WiziCore_Helper.isMobile()&&(a=this.htmlId(),e=$("<div id='"+a+"'></div>").css({"float":"right",height:"28px","line-height":"26px","margin-right":"10px",position:"relative"}),f=$("<span><u>"+AC.Core.lang().trText("dialog_button_copy")+"</u></span>").css({cursor:"pointer"}),this._clip.addEventListener("onMouseDown",function(){var a=c.fullMessage();typeof a.text=="function"&&(a=c.fullMessage().text());
var a=$("<span>").append(a).text(),b=c.message(),b=$("<span>").append(b).text(),a="error #"+c.errorNum()+" message: '"+b+"' FullMessage: '"+a+"'";c._clip.setText(a)}),e.append(f),d.parent().find(".ui-dialog-buttonset").append(e),this._clip.glue(f[0],a),e.find("div").css({position:"absolute",top:0,left:0,"z-index":""}))},setTemplate:function(a){var b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td id="wiziMBShortMsg" class="wiziMBTitle">\n\t    </td>\n    </tr>\n\t<tr>\n\t\t<td>\n            <div class="wiziMBFullMsg"/>\n\t    </td>\n    </tr>\n</table>\n</div>'),
c=$("<div/>"),d=this;switch(a){case WiziCore_UI_MessageBoxWidget.MB_ICONDELETE:b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td class="wiziMBTitle">\n           <span id="wiziMBShortMsg"/>\n\t    </td>\n    </tr>\n\t<tr>\n\t\t<td>\n            <span data-lng="ac-widget_msgbox_confirm"></span>\n            <span class="wiziMBFullMsg" style="font-weight: bold; color: red;"></span>\n            <input type="text" style="width:  60px;" class="text"/>\n\t    </td>\n    </tr>\n</table>\n</div>');
break;case WiziCore_UI_MessageBoxWidget.MB_ICONEXCLAMATION:b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n        <td class="wiziMBTitle"  style="box-shadow: 0px 1px 0px rgb(169,169,169);padding: .2em 0 .4em 0;vertical-align: middle;height: 24px;">\n            <table>\n                <tr>\n                    <td class="ui_dialog_warning_icon">\n                    </td>\n                    <td>\n                        <span class="wiziMBMessage" style="font-size: 12pt;font-family: Arial;font-weight: normal;"></span>\n                    </td>\n                </tr>\n            </table>\n\t    </td>\n    </tr>\n    <tr>\n        <td style="padding: 0 0 .8em 0"></td>\n    <tr>\n\t<tr style="font-size:10pt">\n\t\t<td>\n            <div class="wiziMBFullMsg"/>\n\t    </td>\n    </tr>\n    <tr>\n        <td style="padding: 0 0 1.6em 0"></td>\n    <tr>\n</table>\n</div>');
break;case WiziCore_UI_MessageBoxWidget.MB_ICONVALIDATE:b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td class="wiziMBTitle">\n           <span id="wiziMBShortMsg"/>\n\t    </td>\n    </tr>\n\t<tr>\n\t\t<td>\n            <div class="wiziMBFullMsg" class="validate"/>\n\t    </td>\n    </tr>\n</table>\n</div>');break;case WiziCore_UI_MessageBoxWidget.MB_ICONINFORMATION:b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td class="wiziMBTitle">\n           <span id="wiziMBShortMsg"/>\n\t    </td>\n    </tr>\n\t<tr>\n\t\t<td>\n           <div class="wiziMBFullMsg"/>\n\t    </td>\n    </tr>\n</table>\n</div>');
break;case WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION:b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td class="wiziMBTitle">\n           <span id="wiziMBShortMsg"/>\n\t    </td>\n    </tr>\n\t<tr>\n\t\t<td>\n            <div class="wiziMBFullMsg"/>\n            <center>\n                <div id="confirmDiv">\n                    <span class="wiziMBCheckMsg" >\n                        <span data-lng="ac-widget_msgbox_confirm" ></span>\n                    </span>\n                    <input type="text" style="width:  60px;" class="text"/>\n                </div>\n            </center>\n\t    </td>\n    </tr>\n</table>\n</div>');
break;case WiziCore_UI_MessageBoxWidget.MB_ICONERROR:b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td class="wiziMBTitle"  style="box-shadow: 0px 1px 0px rgb(169,169,169);padding: .2em 0 .4em 0;vertical-align: middle;height: 24px;">\n            <table>\n                <tr>\n                    <td class="ui_dialog_error_icon">\n                    </td>\n                    <td>\n                        <span class="wiziMBMessage" style="font-size: 12pt;font-family: Arial;font-weight: normal;"></span>\n                    </td>\n                </tr>\n            </table>\n\n\t    </td>\n    </tr>\n    <tr>\n        <td style="padding: 0 0 .8em 0"></td>\n    <tr>\n\t<tr style="font-size:10pt">\n\t\t<td>\n            <div class="wiziMBFullMsg"/>\n\t    </td>\n    </tr>\n    <tr>\n        <td style="padding: 0 0 1.6em 0"></td>\n    <tr>\n</table>\n</div>');
b.find(".wiziMBFullMsg").hide();break;case WiziCore_UI_MessageBoxWidget.MB_ICONPROMPT:var b=$('<div>\n<table style="width:100%; height:100%; border : 0;">\n\t<tr>\n\t\t<td class="wiziMBTitle">\n           <span id="wiziMBShortMsg"/>\n\t    </td>\n    </tr>\n\t<tr>\n\t\t<td>\n           <div class="wiziMBFullMsg" style="margin-top: 6px"/>\n           <input class="text wiziMBPromptInput" style="width: 97%; margin-top: 6px"/>\n           <span class="wiziMBDesc"></span>\n\t    </td>\n    </tr>\n</table>\n</div>'),
e=b.find(".wiziMBPromptInput"),f=this.rule()?RegExp(this.rule(),"gi"):null,g={"box-shadow":"0 0 8px #FF0F0F","-moz-box-shadow":"0 0 8px #FF0F0F","-webkit-box-shadow":"0 0 8px #FF0F0F","-khtml-box-shadow":"0 0 8px #FF0F0F","-icab-box-shadow":"0 0 8px #FF0F0F"},i={"box-shadow":"","-moz-box-shadow":"","-webkit-box-shadow":"","-khtml-box-shadow":"","-icab-box-shadow":""};f&&c.data("rulePassElement",e);e.bind("keypress keyup",function(){var a=$(this).val(),b=a.replace(f);f&&b!==a?(e.css(g),d._dlg.data("rulePass",
!1)):(e.css(i),d._dlg.data("rulePass",!0))})}c.append(b);return c},designByType:function(a){var b=this._dlg.parent().find(".ui-dialog-titlebar");switch(a){case WiziCore_UI_MessageBoxWidget.MB_ICONDELETE:case WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION:WiziCore_Helper.enableInterface();b.find(".ui-dialog-title").addClass("ui-dialog-title-warning");this.conftxt=parseInt(Math.random()*89999)+1E4;this.multiple()==!0?(a==WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION?this._dlg.find(".wiziMBCheckMsg").append($('<span style="font-weight: bold; color: red;">'+
this.conftxt+"</span>")):this._dlg.find(".wiziMBFullMsg").append($("<span>"+this.conftxt+"</span>")),this._dlg.find("input").focus()):(a==WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION?this._dlg.find("#confirmDiv").hide():this._dlg.find("table").find("tr:eq(1)").hide(),this._dlg.find("input").val(this.conftxt));break;case WiziCore_UI_MessageBoxWidget.MB_ICONEXCLAMATION:WiziCore_Helper.enableInterface();b.addClass("ui-dialog-titlebar-warning");this._dlg.find(".wiziMBMessage").html(this.message());break;
case WiziCore_UI_MessageBoxWidget.MB_ICONVALIDATE:WiziCore_Helper.enableInterface();b.find(".ui-dialog-title").addClass("ui-dialog-title-warning");break;case WiziCore_UI_MessageBoxWidget.MB_ICONINFORMATION:WiziCore_Helper.enableInterface();break;case WiziCore_UI_MessageBoxWidget.MB_ICONERROR:WiziCore_Helper.enableInterface();b.find(".ui-icon-closethick").addClass("ui-icon-closethick-error");b.addClass("ui-dialog-titlebar-error");this._dlg.find(".wiziMBMessage").html("Error #"+this.errorNum()+" - "+
this.message());break;case WiziCore_UI_MessageBoxWidget.MB_ICONPROMPT:WiziCore_Helper.enableInterface(),b.append('<span class="wiziMBIcon wiziMBQuestion" />')}},closingDialogHandler:function(a,b){if(this.icon()==WiziCore_UI_MessageBoxWidget.MB_ICONPROMPT)var c=this._dlg.find(".wiziMBPromptInput").val();var d=new jQuery.Event(WiziCore_UI_MessageBoxWidget.onDialogClose),c=[a,c,b];$(this).trigger(d,c);d.isPropagationStopped()||this.closeMessageBox(c)},_message:function(a){a!=void 0&&this._dlg.find("#wiziMBShortMsg").empty().append(a)},
_fullMessage:function(a){a!=void 0&&this._dlg.find(".wiziMBFullMsg").empty().append(a)},_description:function(a){this._dlg.find(".wiziMBDesc").empty().append(a)},_errorNum:function(a){a!=void 0&&this._dlg.find("#wiziMBErrorNum").text(a)},closeMessageBox:function(a){this._clip=null;this.closeWindow();$(this).trigger(WiziCore_UI_MessageBoxWidget.onDialogAfterClose,a)},fullMsgDiv:function(){return this._dlg.find(".wiziMBFullMsg")}});
WiziCore_UI_MessageBoxWidget._props=[{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.width,AC.Property.layout.height,AC.Property.layout.zindex]},{name:AC.Property.group_names.style,props:[AC.Property.style.resizable,AC.Property.style.title,AC.Property.style.message,AC.Property.style.fullMessage,AC.Property.style.errorNum,{name:"rule",type:"text",set:"rule",get:"rule"},{name:"description",type:"text",set:"description",get:"description"}]}];
WiziCore_UI_MessageBoxWidget.props=function(){return WiziCore_UI_MessageBoxWidget._props};WiziCore_UI_MessageBoxWidget.MB_OK=0;WiziCore_UI_MessageBoxWidget.MB_OKCANCEL=1;WiziCore_UI_MessageBoxWidget.MB_YESNO=4;WiziCore_UI_MessageBoxWidget.MB_YESNOCANCEL=3;WiziCore_UI_MessageBoxWidget.MB_CLOSE=5;WiziCore_UI_MessageBoxWidget.MB_COPYOK=6;WiziCore_UI_MessageBoxWidget.MB_ICONNONE=0;WiziCore_UI_MessageBoxWidget.MB_ICONEXCLAMATION=30;WiziCore_UI_MessageBoxWidget.MB_ICONINFORMATION=40;
WiziCore_UI_MessageBoxWidget.MB_ICONQUESTION=20;WiziCore_UI_MessageBoxWidget.MB_ICONERROR=10;WiziCore_UI_MessageBoxWidget.MB_ICONDELETE=50;WiziCore_UI_MessageBoxWidget.MB_ICONVALIDATE=60;WiziCore_UI_MessageBoxWidget.MB_ICONPROMPT=70;WiziCore_UI_MessageBoxWidget.IDOK=0;WiziCore_UI_MessageBoxWidget.IDCANCEL=1;WiziCore_UI_MessageBoxWidget.IDYES=2;WiziCore_UI_MessageBoxWidget.IDNO=3;WiziCore_UI_MessageBoxWidget.IDCLOSE=5;WiziCore_UI_MessageBoxWidget.RESIZABLE=!0;
WiziCore_UI_MessageBoxWidget.NO_RESIZABLE=!1;WiziCore_UI_MessageBoxWidget.onDialogClose="Events#WiziCore_UI_MessageBoxWidget#onDialogClose";WiziCore_UI_MessageBoxWidget.onDialogAfterClose="Events#WiziCore_UI_MessageBoxWidget#onDialogAfterClose";WiziCore_UI_MessageBoxWidget.defaultProps=function(){return{title:"Some title",resizable:!0,modal:!0,minHeight:100,minWidth:100,buttons:WiziCore_UI_MessageBoxWidget.MB_OK}};
(function(a,b,c,d){function e(a){return!this._input?a:this._input.val()}var f=AC.Widgets.WiziCore_UI_TextWidget=AC.Widgets.Base.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,AC.WidgetExt.Placeholder,{_widgetClass:"WiziCore_UI_TextWidget",_input:null,_dataPropName:"text",_valueDefaultPropName:"text",init:function(){this._super.apply(this,arguments)},draw:function(){if(this._input==null){var b=this._input=a('<input type="text" class="input clear-input-border" style="position: relative; width: 100%; height: 100%; outline: none; "/>');
a.browser.msie&&b.css("padding-right","1px");this.base().prepend(b)}b=this._input;a(b).unbind("change.custom").bind("change.custom",{self:this},this.onChangeText);this._bindPlaceholderEvents(b);this._super.apply(this,arguments)},_updateLayout:function(){this._super();this._input.height(this.height());a.browser.msie&&this._input.css("line-height",this.height()+"px")},onContainerChangeLayout:function(){this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?this._input.width(this.width()):
a.browser.msie?this._input.width("98%"):this._input.width("100%")},onRemove:function(){this._checkRepeatBeforeRemove()||this._input&&this._input.remove()},onDestroy:function(){var b=a(this._input);b.unbind("change.custom");this._unbindPlaceholderEvents(b);this._input=null},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.dataType=this.normalProperty("dataType");this.isUnique=this.normalProperty("isUnique");this.mandatory=
this.normalProperty("mandatory");this.font=this.themeProperty("font",this._font);this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.fontColor=this.themeProperty("fontColor",this._fontColor);this.bg=this.themeProperty("bgColor",this._bg);this.shadow=this.themeProperty("shadow",this._shadow);this.value=this.text=AC.Property.htmlBeforeSetAfterGet("text",d,this._text,e);this.opacity=this.themeProperty("opacity",this._opacity);
this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.readonly=this.htmlProperty("readonly",this._updateReadonly);this.typefield=this.htmlProperty("typefield",this._typefield);this.textAlign=this.htmlProperty("textAlign",this._textAlign);this.maxChars=this.htmlProperty("maxChars",this._maxChars);this.view=this.normalProperty("view");this.fields=this.normalProperty("fields");this.groupby=this.normalProperty("groupby");this.orderby=this.normalProperty("orderby");this.filter=this.normalPropBeforeSet("filter",
this._filterBefore);this.resetfilter=this.normalProperty("resetfilter");this.listenview=this.normalProperty("listenview");this.applyview=this.normalProperty("applyview");this.onview=this.normalProperty("onview")},initDomState:function(){this._super();this.initDomStatePos();this._bg(this.bg());this._font(this.font());this._fontColor(this.fontColor());this._borderRadius(this.borderRadius());this._border(this.border());this._text(this.text());this._shadow(this.shadow());this._updateEnable();this._updateReadonly();
this._visible(this.visible());this._opacity(this.opacity());this._tabindex(this.tabindex());this._typefield(this.typefield());this._textAlign(this.textAlign());this._maxChars(this.maxChars());this._placeholderText(this._project.placeholderText)},bindEvent:function(b){this._super(b);if(!(this._bindingEvents[b]>1||this.mode()==WiziCore_Visualizer.EDITOR_MODE))switch(b){case f.onKeyDown:a(this._input).bind("keydown",{self:this},this.onKeyDown);break;case f.onKeyUp:a(this._input).bind("keyup",{self:this},
this.onKeyUp);break;case f.onKeyPress:a(this._input).bind("keypress",{self:this},this.onKeyPress);break;case f.onFocus:a(this._input).bind("focus",{self:this},this.onFocus);break;case f.onBlur:a(this._input).bind("blur",{self:this},this.onBlur)}},unbindEvent:function(b,d){this._super(b,d);if(!(this._bindingEvents[b]>0&&d!=!0))switch(b){case f.onKeyDown:a(this._input).unbind("keydown",this.onKeyDown);break;case f.onKeyUp:a(this._input).unbind("keyup",this.onKeyUp);break;case f.onKeyPress:a(this._input).unbind("keypress",
this.onKeyPress);break;case f.onFocus:a(this._input).unbind("focus",this.onFocus);break;case f.onBlur:a(this._input).unbind("blur",this.onBlur)}},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},selectContents:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.select()},onFocus:function(b){var b=b.data.self,d=new a.Event(f.onFocus);a(b).trigger(d)},onBlur:function(b){var b=b.data.self,d=new a.Event(f.onBlur);a(b).trigger(d)},
onKeyPress:function(b){var d=b.data.self,c=d._text(),e=new a.Event(f.onKeyPress);a(d).trigger(e,[b,c])},onKeyDown:function(b){var d=b.data.self,c=d._text(),e=new a.Event(f.onKeyDown);a(d).trigger(e,[b,c])},onKeyUp:function(b){var d=b.data.self,c=d._text(),e=new a.Event(f.onKeyUp);a(d).trigger(e,[b,c])},onChangeText:function(b){var b=b.data.self,d=new a.Event(f.onChange),c=b._project.text,e=b._text();a(b).trigger(d,[e,c]);d.isPropagationStopped()?b._text(c):(b._project.text=e,b.sendDrillDown());b._placeholderText(b.placeholderText())},
_fontColor:function(a){this._super(a,this._input)},_font:function(a){this._super(a,this._input)},_text:function(a){a===null&&(a="");a!==d&&(this._input.val(a),this._checkTextWithPlaceholder(a));a=this._input.val();return a=this._updateTextWithPlaceholder(a)},_readonly:function(a){this._super(a,this._input)},_tabindex:function(a){this._super(a,this._input)},_tabStop:function(a){this._super(a,this._input)},_enable:function(a){this._super(a,this._input);a===!1?this._input.addClass("ui-state-disabled"):
this._input.removeClass("ui-state-disabled")},_typefield:function(a){a=typeof a=="object"&&a.value!=d?a.value:a;switch(a){case "alphanumeric":this._input.alphanumeric();break;case "alpha":this._input.alpha();break;case "numeric":this._input.numericParse()}},_textAlign:function(a){this._super(a,this._input)},_borderRadius:function(a,b){this._super.apply(this,arguments);this._setElementBorderRadius(a,this._input)},_maxChars:function(a){this._input.attr("maxlength",a)},_bg:function(a){this._super(a);
this._setElementBg(a,this._input)},getNewWidgetSize:function(){var a=this.base();WiziCore_Helper.isFirefox();var b=a.width(),a=a.height();return{width:b,height:a}},appendValueToDataObject:function(a,b,d){var c=this;return this._simpleDataObjectValue(a,d,function(a){if(c.mandatory()){var d=a=="";d&&(b[c.id()]=!0);a=d?null:a}return a})},getDataModel:function(){return this._valueDataModel()},isBindableToData:function(){return!0}}));f.onKeyUp="E#Text#onKeyUp";f.onKeyDown="E#Text#onKeyDown";f.onKeyPress=
"E#Text#onKeyPress";f.onChange="E#Text#onChange";f.onFocus="E#Text#onFocus";f.onBlur="E#Text#onBlur";f.actions=function(){var b={keyup:{alias:"widget_event_onkeyup",funcview:"onKeyUp",action:"AC.Widgets.WiziCore_UI_TextWidget.onKeyUp",params:"keyev, value",group:"widget_event_key"},keydown:{alias:"widget_event_onkeydown",funcview:"onKeyDown",action:"AC.Widgets.WiziCore_UI_TextWidget.onKeyDown",params:"keyev, value",group:"widget_event_key"},change:{alias:"widget_event_onchange",funcview:"onChange",
action:"AC.Widgets.WiziCore_UI_TextWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"},onFocus:{alias:"widget_event_onfocus",funcview:"onFocus",action:"AC.Widgets.WiziCore_UI_TextWidget.onFocus",params:"",group:"widget_event_general"},onBlur:{alias:"widget_event_onblur",funcview:"onBlur",action:"AC.Widgets.WiziCore_UI_TextWidget.onBlur",params:"",group:"widget_event_general"},dataLoaded:{alias:"widget_event_ondataloaded",funcview:"onDataLoaded",action:"AC.Widgets.Base.onDataLoaded",
params:"error, data",group:"widget_event_data",sweight:5},dataReset:{alias:"widget_event_ondatareset",funcview:"onDataReset",action:"AC.Widgets.Base.onDataReset",params:"",group:"widget_event_data"}},b=a.extend(AC.Widgets.Base.actions(),b);f.actions=function(){return b};return b};f.inlineEditPropName=function(){return"text"};var g=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.text,AC.Property.general.maxChars,AC.Property.general.placeholderText]},
{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataTypeText,AC.Property.database.isUnique,AC.Property.database.mandatory]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.pWidthHidden,AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.sizes,AC.Property.layout.minWidth,AC.Property.layout.maxWidth,AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.zindex,AC.Property.layout.tabindex,AC.Property.layout.tabStop,
AC.Property.layout.anchors,AC.Property.layout.alignInContainer,AC.Property.layout.repeat]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,AC.Property.behavior.resizing,AC.Property.behavior.visible,AC.Property.behavior.enable,AC.Property.behavior.readonly]},{name:AC.Property.group_names.data,props:[AC.Property.data.view,AC.Property.data.fields,AC.Property.data.groupby,AC.Property.data.orderby,AC.Property.data.filter,AC.Property.data.onview,AC.Property.data.applyview,
AC.Property.data.listenview,AC.Property.data.resetfilter,AC.Property.data.autoLoad]},{name:AC.Property.group_names.appearance,props:[AC.Property.appearance.textAlign]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle,AC.Property.style.shadow,AC.Property.style.font,AC.Property.style.fontColor,AC.Property.style.margin,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,
AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage]}];f.props=function(){return g};f.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"#000000",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0"}};f.defaultProps=function(){return{valName:"currText",text:"",x:"0",y:"0",pWidth:"",margin:"",alignInContainer:"left",width:"200",height:"22",zindex:"auto",readonly:!1,enable:!0,hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",anchors:{left:!0,
top:!0,bottom:!1,right:!1},visible:!0,name:"text1",widgetStyle:"default",opacity:1,textAlign:"Left",dragAndDrop:!1,resizing:!1,shadow:"",placeholderText:"",tabStop:!0,boxSizing:"border-box"}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a,b,c,d){var e=AC.Widgets.WiziCore_UI_ButtonWidget=AC.Widgets.Base.extend({_widgetClass:"WiziCore_UI_ButtonWidget",_input:null,_dataPropName:"label",init:function(){this._super.apply(this,arguments)},draw:function(){var b=this.base();this._link=a("<a></a>").css({"text-decoration":"none",display:"block",width:"100%",height:"100%"});this._input=a('<a href="javascript:void(0)" type="button" class="input clear-input-border" style="text-decoration: none; width: 100%; height:'+this.height()+'; border: 0px; " ></a>');
this._input.attr("data-ajax",!1);if(a.browser.msie)b.css({"vertical-align":"middle","text-align":"center"}),b.prepend(this._input);else{var c=a('<table style="width:100%; height:100%"></table>'),e=a("<tr></tr>"),h=a("<td style='vertical-align:middle; text-align:center;'></td>");h.append(this._input);e.append(h);c.append(e);this._link.append(c);b.prepend(this._link)}this.mode()==WiziCore_Visualizer.RUN_MODE&&b.css("cursor","pointer");b.css({overflow:"hidden","text-overflow":"ellipsis"});if(this._bindingEvents[AC.Widgets.Base.onClick]==
0||this._bindingEvents[AC.Widgets.Base.onClick]==d)this.eventsHandles()[AC.Widgets.Base.onClick]=AC.Widgets.Base.onClick,this.mode()==WiziCore_Visualizer.RUN_MODE&&this.bindEvent(AC.Widgets.Base.onClick);this.value()==d&&this.value(this[this._dataPropName]());this._super.apply(this,arguments)},_onSTUpdated:function(){this._label(this._project.label)},_onInitLanguage:function(){this.label(this.label())},initProps:function(){this._super();this.font=this.themeProperty("font",this._font);this.border=
this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.fontColor=this.themeProperty("fontColor",this._fontColor);this.bg=this.themeProperty("bgColor",this._bg);this.shadow=this.themeProperty("shadow",this._shadow);this.pageJump=this.normalProperty("pageJump");this.value=this.label=this.htmlLngPropertyBeforeSet("label",this._labelBefore,this._label);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",
this._tabindex);this.readonly=this.htmlProperty("readonly",this._readonly);this.link=this.normalProperty("link",this._updateLink)},initDomState:function(){this._super();this.initDomStatePos();this._bg(this.bg());this._font(this.font());this._fontColor(this.fontColor());this._borderRadius(this.borderRadius());this._border(this.border());this._label(this._project.label);this._shadow(this.shadow());this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._tabindex(this.tabindex());
this._updateReadonly()},_updateLayout:function(){this._super();this._input.height(this.height());this.tableBase().css("height",this.height());(this.pWidth()==d||this.pWidth()==""||this.parent().getLayoutType()=="absolute")&&this.tableBase().css("width",this.width())},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},_enable:function(a){this._super(a,this._input);a===!1?(this._input.addClass("ui-state-disabled"),this.base().css("cursor","default")):
(this._input.removeClass("ui-state-disabled"),this.base().css("cursor","pointer"));this.showEnableDiv(a)},_tabindex:function(a){this._super(a,this._input)},_tabStop:function(a){this._super(a,this._input)},_fontColor:function(a){this._super(a,this._input)},_bg:function(a){this._super(a);this._super(a,this._input)},_borderRadius:function(a){this._super(a);this._super(a,this._input)},_labelBefore:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var b=WiziCore_Helper.isLngToken(a),
d=b?a:"ac-"+this.id();b||this.form().addTokenToStringTable(this.id(),this.name(),d,a);return d}else return a},_label:function(a){this._input&&(a=this.getTrValueAddLngAttr(a,this._input),a===null&&(a=""),this._input.text(a))},_font:function(a){this._super(a,this._input)}});e.actions=function(){var a=jQuery.extend({},AC.Widgets.Base.actions(),{});e.actions=function(){return a};return a};e._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label]},
{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.pWidthHidden,AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.sizes,AC.Property.layout.minWidth,AC.Property.layout.maxWidth,AC.Property.layout.repeat,AC.Property.layout.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer,AC.Property.layout.tabindex,AC.Property.layout.tabStop]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,
AC.Property.behavior.resizing,AC.Property.behavior.visible,AC.Property.behavior.enable]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.shadow,AC.Property.style.font,AC.Property.style.fontColor,AC.Property.style.margin,AC.Property.style.bgColor,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];
e.props=function(){return e._props};e.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0",shadow:""}};e.inlineEditPropName=function(){return"label"};e.defaultProps=function(){return{x:"0",y:"0",width:"80",height:"26",zindex:"auto",label:"Button",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,opacity:1,name:"button1",margin:"",alignInContainer:"left",pWidth:"",hourglassImage:"Default",displayHourglassOver:"inherit",
customCssClasses:"",dragAndDrop:!1,resizing:!1,widgetStyle:"default",tabStop:!0,boxSizing:"border-box"}};e.isField=function(){return!0}})(jQuery,window,document);
(function(a){var b=AC.Widgets.WiziCore_UI_PanelContainerWidget=AC.Widgets.WiziCore_Widget_Container.extend(a.extend({},WiziCore_ContainerDataBind,WiziCore_WidgetAbstract_DataIntegrationContainer,{_widgetClass:"WiziCore_UI_PanelContainerWidget",init:function(){this._super.apply(this,arguments)},draw:function(){this._super.apply(this,arguments);this.base().addClass("ac-widget-overflow-border-radius");this.initAdaptiveLayout()},initAdaptiveLayout:function(){var a=this.adaptiveLayout();if(a&&a.length>
0)(this._adaptiveLayout=new AC.Ext.AdaptiveLayout(this)).initAdaptiveLayout()},onDestroy:function(){this._adaptiveLayout&&this._adaptiveLayout.unsetAdaptiveLayout()},_updateAdaptiveLayout:function(a){this._adaptiveLayout?this._adaptiveLayout.adaptiveLayout(a):this.initAdaptiveLayout()},initProps:function(){this._super();this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.bg=this.themeProperty("bgColor",this._bg);this.opacity=
this.themeProperty("opacity",this._opacity);this.readonly=this.htmlProperty("readonly",this._updateReadonly);this.shadow=this.themeProperty("shadow",this.checkShadowDocked);this.backgroundImage=this.themeProperty("backgroundImage",this._updateBackgroundImage);this.backgroundRepeat=this.themeProperty("backgroundRepeat",this._updateBackgroundImage);this.foreignAppWriting=this.normalProperty("foreignAppWriting");this.autoRelationships=this.normalProperty("autoRelationships");this.view=this.normalProperty("view");
this.fields=this.normalProperty("fields");this.groupby=this.normalProperty("groupby");this.orderby=this.normalProperty("orderby");this.filter=this.normalPropBeforeSet("filter",this._filterBefore);this.listenview=this.normalProperty("listenview");this.keyFields=this.normalProperty("keyFields");this.adaptiveLayout=this.normalProperty("adaptiveLayout",this._updateAdaptiveLayout);this.fixed=this.themeProperty("fixed",this._fixed)},checkShadowDocked:function(){this._shadow(this.prop("shadow"))},_applyFixed:function(){return this.mode()==
WiziCore_Visualizer.RUN_MODE&&this.form().runtimeMode()!=WiziCore_UI_FormRuntime.PREVIEW_MODE},_fixed:function(){},repeatPage:function(a){this._currRepPage=a;this._super.call(this,a);this.fixed();this._applyFixed()},initDomState:function(){this._super();this.checkShadowDocked();this._bg(this.bg());this._borderRadius(this.borderRadius());this._border(this.border());this._visible(this.visible());this._opacity(this.opacity());this._updateBackgroundImage();this._updateReadonly();this._updateEnable()}})),
c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.layout,AC.Property.general.adaptiveLayout]},{name:AC.Property.group_names.database,props:[AC.Property.database.foreignAppWriting,AC.Property.database.autoRelationships]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.pWidthHidden,AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.sizes,
AC.Property.layout.minWidth,AC.Property.layout.maxWidth,AC.Property.layout.maxHeight,AC.Property.layout.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer,AC.Property.layout.repeat,AC.Property.layout.scrolling]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,AC.Property.behavior.resizing,AC.Property.behavior.visible,AC.Property.behavior.readonly,AC.Property.behavior.enable]},{name:AC.Property.group_names.data,props:[AC.Property.data.view,AC.Property.data.fields,
AC.Property.data.groupby,AC.Property.data.orderby,AC.Property.data.filter,AC.Property.data.listenview,AC.Property.data.autoLoad,AC.Property.data.keyFields]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.shadow,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.margin,AC.Property.style.padding,AC.Property.style.bgColor,AC.Property.style.fixed,AC.Property.general.backgroundImage,AC.Property.general.backgroundRepeat,
AC.Property.general.displayHourglassOverParent,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];b.props=function(){return c};b.actions=WiziCore_Widget_Container.actions;b.capabilities=function(){return{defaultProps:{width:"200",height:"100",x:"0",y:"0",widgetClass:"WiziCore_UI_PanelContainerWidget",name:"PanelContainer1",opacity:1,zindex:"auto",enable:!0,visible:!0,widgetStyle:"default",anchors:{left:!0,top:!0,bottom:!1,right:!1},centered:!1,readonly:!1,
margin:"",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",pWidth:"",dragAndDrop:!1,resizing:!1,layout:"absolute",scrolling:"none",shadow:""},emptyProps:{bgColor:"#f7f7f7",border:"1px solid gray",borderRadius:"0"},props:b.props(),isField:!1,containerType:AC.Widgets.Base.CASE_TYPE_CONTAINER}}})(jQuery,window,document);
(function(a,b,c,d){var e=WiziCore_UI_FancyButton=AC.Widgets.FancyButton=AC.Widgets.WiziCore_UI_FancyButton=function(){this.init.apply(this,arguments)};AC.extend(e,AC.Widgets.Base);c=e.prototype;AC.copyExtension(c,WiziCore_Methods_Widget_ActionClick);c._widgetClass="FancyButton";c._cont=null;c._widgetDestroyed=!1;c._setPropTimeoutId=-1;c._isRendered=!1;c.init=function(){e._sc.init.apply(this,arguments)};c.onRemove=function(){a(b).unbind("orientationchange."+this.id())};c.onDestroy=function(){this._widgetDestroyed=
!0};c.onClick=function(b){var d=this,c=this.id(),e=d.pageJump(),f=this.form();setTimeout(function(){var g=new a.Event(AC.Widgets.WiziCore_Widget_Base.onClick);acDebugger.systemLog("triggerEvent",g,"self.id()",c);a(d).trigger(g,[b]);!g.isPropagationStopped()&&d.onActionClick(b,e,f)},0)};c.draw=function(){var d=this,c=this.form();a(b).bind("orientationchange."+this.id(),function(){setTimeout(function(){c&&!c.isDestroyed()&&d._setProperty()},400)});this._cont=a("<div style='width:100%;position: relative; overflow: hidden' />");
this._link=a('<a href="#"></a>');this._updateLink(this.link());this._cont.append(this._link);this.base().prepend(this._cont);e._sc.draw.apply(this,arguments)};c._updateLayout=function(){e._sc._updateLayout.apply(this,arguments);this._cont&&this._cont.height(this.height());var a=this.optFn();a.image&&this._fixImageSize();if(this.parent().getLayoutType()!="absolute"){if(!a.image&&this._cont){var b=this.tableBase(),d;switch(a.shape){case "circle":d=a=69;break;case "rounded":case "rectangle":a=84;d=37;
break;case "triangle-n":case "triangle-e":case "triangle-s":case "triangle-w":a=82;d=81;break;case "ios-w":case "ios-e":a=87;d=37;break;default:a=84,d=37}b.css({"min-width":a+"px","min-height":d+"px"});b.width()<a&&b.width(a+"px");b.height()<d&&b.height(d+"px");this._cont.height()<d&&this._cont.height(d+"px")}this._setProp()}};c.onContainerChangeLayout=function(a){a!=d&&this._setProp()};c._enable=function(a){this.showEnableDiv(a);this._zindex(2,this._enableDiv)};c._fixImageSize=function(){var a=0,
b,a=this.pWidth()==""||this.pWidth()===d?this.width():this.tableBase().width(),a=Math.max(this.base().width(),a);b=Math.max(this.base().height(),this.height());this._link.find("img").css({"max-width":a});this._link.find("img").css({"max-height":b})};c._setProp=function(){if(this.visible()||this.mode()==WiziCore_Visualizer.EDITOR_MODE)if(this.base().is(":visible"))this._setProperty();else if(this._setPropTimeoutId==-1){var a=this;this._setPropTimeoutId=setTimeout(function(){a._setProp()},10)}};c._setProperty=
function(){this._setPropTimeoutId!=-1&&clearTimeout(this._setPropTimeoutId);this._setPropTimeoutId=-1;var b=0,b=this.pWidth()==""||this.pWidth()===d?this.width():this.tableBase().width();this._link.fancy("destroy").fancy(a.extend({},{width:b-2},this.optFn()));this._fixImageSize();this._updateEnable();this._isRendered=!0};c.optFn=AC.Property.html("options",c._setProperty);c.link=AC.Property.html("link",c._updateLink);c.pageJump=AC.Property.normal("pageJump");c.width=AC.Property.html("width",c._setProperty);
c.opacity=AC.Property.theme("opacity",c._opacity);c._opacity=function(){this.mode()==WiziCore_Visualizer.EDITOR_MODE&&this._setProperty();e._sc._opacity.apply(this,arguments)};c._visible=function(a){e._sc._visible.apply(this,arguments);this._isRendered||this._setProp()};c.initDomState=function(){e._sc.initDomState.apply(this,arguments);this.optFn(this.optFn());this._updateEnable();this._visible(this.visible());this._opacity(this.opacity())};var f=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,
AC.Property.general.name,AC.Property.general.link,AC.Property.general.pageJump,{name:"options",type:"fancyDialog",set:"optFn",get:"optFn",alias:"Options"}]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.width,AC.Property.layout.height,AC.Property.layout.repeat,AC.Property.layout.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer,AC.Property.layout.tabindex,AC.Property.layout.tabStop]},{name:AC.Property.group_names.behavior,
props:[AC.Property.behavior.visible,AC.Property.behavior.enable]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.margin,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}],g={name:"FancyButton",value:1,enable:!0,pageJump:"none",link:"",options:{text:"Button",pushEffect:!0},x:"100",y:"100",zindex:"auto",width:84,height:37,dragAndDrop:!1,resizing:!1,tabStop:!0,margin:"",padding:"",alignInContainer:"left",anchors:{left:!0,top:!0,bottom:!1,right:!1},
visible:!0,opacity:1},i={click:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.Base.onClick",params:"mouseev",group:"widget_event_mouse"},dbclick:{alias:"widget_event_ondblclick",funcview:"onDbClick",action:"AC.Widgets.Base.onDbClick",params:"mouseev",group:"widget_event_mouse"},mousedown:{alias:"widget_event_onmousedown",funcview:"onMouseDown",action:"AC.Widgets.Base.onMouseDown",params:"mouseev",group:"widget_event_mouse"},mouseup:{alias:"widget_event_onmouseup",funcview:"onMouseUp",
action:"AC.Widgets.Base.onMouseUp",params:"mouseev",group:"widget_event_mouse"},mouseenter:{alias:"widget_event_onmouseenter",funcview:"onMouseEnter",action:"AC.Widgets.Base.onMouseEnter",params:"mouseev",group:"widget_event_mouse"},mouseleave:{alias:"widget_event_onmouseleave",funcview:"onMouseLeave",action:"AC.Widgets.Base.onMouseLeave",params:"mouseev",group:"widget_event_mouse"}},h={en:{}},j={};e.props=function(){return f};e.emptyProps=function(){return j};e.inlineEditPropName=function(){return"data"};
e.defaultProps=function(){return g};e.actions=function(){return i};e.langs=function(){return h}})(jQuery,window,document);
var WiziCore_UI_BaseWidget=jQuery.Class.create({_availableProps:{},_widgetId:0,_loggedTime:null,_visible:!0,_anchors:{left:!0,top:!0,bottom:!1,right:!1},_anchorHelper:null,_sizeAndPos:{width:0,height:0,left:0,right:0,top:0,bottom:0},_name:null,_widgetStyle:null,_borderWidth:null,_base:null,_widgetClass:"WiziCore_UI_BaseWidget",_dataPropName:"text",_initialObject:null,_mode:-1,_opacity:"",_borderRadius:"",_borderRadiusIEFixStyle:null,_bgColor:"",_font:"",_fontSize:"",_fontFamily:"",_fontColor:"",_textAlign:"",
_vtextAlign:"",_shadow:"",_modeObject:null,_buildWidget:null,_bindingEvents:null,_data:null,_listenview:!1,_applyview:!1,_resetfilter:!1,_onview:"",_request:null,_view:null,_isWidgetBuilt:null,_isApplyedProps:!1,_isWidgetAppended:!1,_app:null,_emptyProps:null,_mandatory:null,_isIncludedInSchema:null,_dataType:null,_requestSent:!1,_editMode:!1,_loadMode:!1,_availableMethods:null,init:function(a,b,c){if(this._availableProps!==void 0&&this._availableProps!==null)this._availableProps=jQuery.extend(this._availableProps,
this._addAvailableProps);if(a==void 0)throw new WiziCore_Api_Error("Need initial client api object",WiziCore_Api_Error.ERR_NEED_OBJECT);this._initialObject=a;this._bindingEvents={};this.getAvailableMethods();var d=null;a!=void 0?(d=a.prop("id"),$("#"+d).length!=0&&(d=AC.Widgets.Base.generateUniqueId()),(a.prop("zindex")==void 0||a.prop("zindex")=="auto")&&a.prop("zindex",10),a._project._dataPropName=this._dataPropName,a._dataPropName=this._dataPropName):d=AC.Widgets.Base.generateUniqueId();this._widgetId=
d;a=$("<div>");a.css("position","absolute");a.css("overflow","hidden");a.attr("id",d);a.css("z-index",10);this._base=a;this._buildWidget=!1;c!=void 0&&this.mode(c);b!=void 0&&this.appendTo(b)},app:function(a){if(a!=void 0){for(var b in this.children())this.children()[b]!==void 0&&typeof this.children()[b].app=="function"&&this.children()[b].app(a);this._app=a}return this._app},widgetEventId:function(){return"."+this.widgetId()},destroy:function(){var a=this.object(),b=this.widgetEventId();$(a).unbind(AC.Widgets.Base.refreshData);
$(a).unbind(WiziCore_Api_ClientBase.onAddEventHandler+b);$(a).unbind(WiziCore_Api_ClientBase.onRemoveEventHandler+b);$(a).unbind(WiziCore_Api_ClientBase.PROPERTY_CHANGE_EVENT+b);$(a).unbind(WiziCore_Api_ClientBase.onChangeParent+b);$(a.parent()).unbind(WiziCore_Api_ClientBase.PROPERTY_CHANGE_EVENT+b);$(a.page()).unbind(WiziCore_Api_ClientBase.PROPERTY_CHANGE_EVENT+b);$(a.page()).unbind(AC.Widgets.WiziCore_Api_Page.onPageBuild+b);for(var c in a.eventsHandles())this.unbindEvent(c,!0);this.destroyRequest(this._request);
this._anchorHelper!=null&&this._anchorHelper.remove()},getAvailableMethods:function(){if(this._availableMethods==null){var a=WiziCore_UI_BaseWidget.schema(this.widgetClass());if(a==void 0){var a=this.object().getAvailableProps(),b={};if(a[0]!=void 0&&a[0].props!=void 0)for(var c in a){var d=a[c];if(d.props!=void 0)for(var e in d.props){var f=d.props[e];if(f.name!=void 0){b[f.name]={};if(f.set!=void 0)b[f.name].set=f.set;if(f.get!=void 0)b[f.name].get=f.get}}}else b=this._availableProps;a=WiziCore_UI_BaseWidget.schema(this.widgetClass(),
b)}this._availableMethods=a}return this._availableMethods},destroyRequest:function(a){a!=void 0&&a.destroy()},handlerProp:function(a,b,c){this.prop(b,c)},handlerChangeParent:function(a,b){var c=b.prop("width");if(c==""||c==void 0)c=this.base().parent().width();var d=b.prop("height");if(d==""||d==void 0)d=this.base().parent().height();this.updatePosAndSize("width",c);this.updatePosAndSize("height",d)},handlerPropChange:function(a,b,c){this.updatePosAndSize(b,c)},handlerAddEvent:function(a,b){this.bindEvent(b)},
handlerRemoveEvent:function(a,b){this.unbindEvent(b)},logTime:function(a,b){var c=(new Date).getTime();acDebugger.systemLog("message",a,"time",c,"delta",c-b);return c},buildWidget:function(){var a=this.object(),b=this,c=b.widgetEventId();$(a).bind(WiziCore_Api_ClientBase.PROPERTY_CHANGE_EVENT+c,function(a,c,f){b.handlerProp(a,c,f)});$(a).bind(WiziCore_Api_ClientBase.onChangeParent+c,function(a,c){b.handlerChangeParent(a,c)});$(a.parent()).bind(WiziCore_Api_ClientBase.PROPERTY_CHANGE_EVENT+c,function(a,
c,f){b.handlerPropChange(a,c,f)});$(a).bind(WiziCore_Api_ClientBase.onRemoveEventHandler+c,function(a,c){b.handlerRemoveEvent(a,c)});$(a).bind(WiziCore_Api_ClientBase.onAddEventHandler+c,function(a,c){b.handlerAddEvent(a,c)});$(a).bind(WiziCore_Api_ClientBase.onChangeBaseValue+c,function(a,c){b.handlerChangeBaseValue(a,c)});$(a).bind(WiziCore_Api_ClientBase.onSetValue+c,function(a,c){b.handlerChangeBaseValue(a,c)});$(a.page()).bind(WiziCore_Api_ClientBase.PROPERTY_CHANGE_EVENT+c,function(a,c){(c==
"font"||c=="fontColor")&&b.useParentFont(a,c);c=="widgetStyle"&&(b.useParentFont(void 0,"font"),b.useParentFont(void 0,"fontColor"))});$(a.page()).bind(AC.Widgets.WiziCore_Api_Page.onPageBuild+c,function(){b.onPageBuild()});$(a).bind(AC.Widgets.Base.refreshData,function(){b.refreshData()});this._anchors={left:!0,top:!0,bottom:!1,right:!1};this._sizeAndPos={width:0,height:0,left:0,right:0,top:0,bottom:0};this._buildWidget=!0;this.base().addClass(this.widgetClass());this._isWidgetBuilt=!0},onSelManagerSelected:function(){},
onPageBuild:function(){},isWidgetBuild:function(){return this._isWidgetBuilt},showWidgetByParent:function(){},refreshData:function(){this.loadDataFromRequest(!0)},handlerChangeBaseValue:function(a,b){typeof this.value=="function"&&this.value(b)},useParentFont:function(a,b){var c=a!=void 0&&a.data!=void 0&&a.data.self!=void 0?a.data.self:this;if(b=="font"||b=="fontColor"){var d={compute:!1,usePage:!1},e=c.object().prop(b,void 0,d),f=null,g=null;if(e===""||e==null||d.usePage)switch(b){case "font":g=
c.font();f=c.getStyleValueByPropName(b,!0);g!==f&&c.font(f);break;case "fontColor":g=c.fontColor(),f=c.getStyleValueByPropName(b,!0),g!==f&&c.fontColor(f)}}},bindEvent:function(a){if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(this._bindingEvents[a]==void 0&&(this._bindingEvents[a]=0),this._bindingEvents[a]++,!(this._bindingEvents[a]>1)))switch(a){case AC.Widgets.Base.onClick:$(this._base).bind("click",{self:this},this.onClick);break;case AC.Widgets.Base.onDbClick:$(this._base).bind("dblclick",
{self:this},this.onDbClick);break;case AC.Widgets.Base.onMouseDown:$(this._base).bind("mousedown",{self:this},this.onMouseDown);break;case AC.Widgets.Base.onMouseUp:$(this._base).bind("mouseup",{self:this},this.onMouseUp);break;case AC.Widgets.Base.onMouseEnter:$(this._base).bind("mouseenter",{self:this},this.onMouseEnter);break;case AC.Widgets.Base.onMouseLeave:$(this._base).bind("mouseleave",{self:this},this.onMouseLeave)}},unbindEvent:function(a,b){this._bindingEvents[a]==void 0&&(this._bindingEvents[a]=
1);this._bindingEvents[a]--;this._bindingEvents[a]<0&&(this._bindingEvents[a]=0);if(!(this._bindingEvents[a]>0&&b!=!0))switch(b&&(this._bindingEvents[a]=0),a){case AC.Widgets.Base.onClick:$(this._base).unbind("click",this.onClick);break;case AC.Widgets.Base.onDbClick:$(this._base).unbind("dblclick",this.onDbClick);break;case AC.Widgets.Base.onMouseDown:$(this._base).unbind("mousedown",this.onMouseDown);break;case AC.Widgets.Base.onMouseUp:$(this._base).unbind("mouseup",this.onMouseUp);break;case AC.Widgets.Base.onMouseEnter:$(this._base).unbind("mouseenter",
this.onMouseEnter);break;case AC.Widgets.Base.onMouseLeave:$(this._base).unbind("mouseleave",this.onMouseLeave)}},updateCursorByAction:function(a){var b=this.object().form().actions().system,c=this.object().id(),d=this,e=!1,f=function(){a==!0&&(d.base().css("cursor","pointer"),d.base().find("*").css("cursor","pointer"),e=!0);a==!1&&(d.base().css("cursor",""),d.base().find("*").css("cursor",""))},g;for(g in b){var i=b[g];if(c==i.objectid)switch(i.actions.action){case "AC.Widgets.Base.onClick":case "AC.Widgets.Base.onDbClick":case "AC.Widgets.Base.onMouseDown":case "AC.Widgets.Base.onMouseUp":f()}}typeof this.action==
"function"&&this.action()!="none"&&e==!1&&f()},onClick:function(a){var b=a.data.self,c=new jQuery.Event(AC.Widgets.Base.onClick);$(b.object()).trigger(c,[a]);a.stopPropagation()},onDbClick:function(a){$(a.data.self.object()).trigger(AC.Widgets.Base.onDbClick,[a])},onMouseDown:function(a){var b=a.data.self,c=new jQuery.Event(AC.Widgets.Base.onMouseDown);$(b.object()).trigger(c,[a])},onMouseUp:function(a){var b=a.data.self,c=new jQuery.Event(AC.Widgets.Base.onMouseUp);$(b.object()).trigger(c,[a])},
onMouseEnter:function(a){var b=a.data.self,c=new jQuery.Event(AC.Widgets.Base.onMouseEnter);$(b.object()).trigger(c,[a])},onMouseLeave:function(a){var b=a.data.self,c=new jQuery.Event(AC.Widgets.Base.onMouseLeave);$(b.object()).trigger(c,[a])},appendTo:function(a){a!=void 0&&a.append(this.base());if(!this._buildWidget)this.buildWidget(),this.visible(this._visible),this.UpdateVisualizeMode(),this._isWidgetAppended=!0},isWidgetAppended:function(){return this._isWidgetAppended},isApplyedProps:function(){return this._isApplyedProps},
updatePosAndSize:function(a,b){if(parseInt(b)!==0){var c=0;a=="height"&&(this._anchors.bottom&&this._anchors.top&&this.object().prop("height",parseInt(this.base().css("height"))),this._anchors.bottom&&!this._anchors.top&&(c=parseInt(b)-this._sizeAndPos.bottom-this._sizeAndPos.height,this.object().prop("y",c)),!this._anchors.bottom&&!this._anchors.top&&(c=parseInt(b)*parseInt(this.base().css("top"))/100,this.object().prop("y",c)));a=="width"&&(this._anchors.right&&this._anchors.left&&this.object().prop("width",
parseInt(this.base().css("width"))),this._anchors.right&&!this._anchors.left&&(c=parseInt(b)-this._sizeAndPos.right-this._sizeAndPos.width,this.object().prop("x",c)),!this._anchors.right&&!this._anchors.left&&(c=parseInt(b)*parseInt(this.base().css("left"))/100,this.object().prop("x",c)))}},object:function(){return this._initialObject},widgetId:function(){return this._widgetId},mode:function(a){if(a!=void 0&&this._mode!=a)this._mode=a;return this._mode},loadDataFromRequest:function(a){this._request.json(jQuery.extend(!0,
{},this.getRequestStructByView(this.view())));this._request.loadData(a)},UpdateVisualizeMode:function(){try{if(this.mode()==WiziCore_Visualizer.RUN_MODE&&this._request!=null&&this._requestSent==!1)this._requestSent=!0,this.loadDataFromRequest();var a=this;if(this.mode()==WiziCore_Visualizer.RUN_MODE){this.updateWH!=void 0&&typeof this.updateWH=="function"&&$(a.base()).resize(function(){a.base().css("width")!=0&&a.base().css("height")!=0&&a.updateWH()});for(var b in this.object().eventsHandles())(this._bindingEvents[b]==
0||this._bindingEvents[b]==void 0)&&this.bindEvent(b)}if(!(this._modeObject==null&&this.mode()==WiziCore_Visualizer.RUN_MODE)){if(this._modeObject==null&&this.mode()==WiziCore_Visualizer.EDITOR_MODE){var c=$('<div style="width: 100%; height: 100%; position: absolute; left: 0px; top: 0px;" class="wiziRo">\r\n    <div class="wiziRoEditModeRo" ></div>\r\n    <div class="wiziRoEditMode" ><span class="button" data-lng="ac-editor_emedit"></span></div>\r\n</div>');c.find(".wiziRoEditModeRo").css("opacity",
"0");var d=c.find(".wiziRoEditMode");this.canEditWidgetInEditor()?d.click(function(){a.canEditWidgetInEditor(!a._editMode);var b={};b.enableKeyManager=!a._editMode;$(a.object()).trigger(AC.Widgets.Base.onEditModeChange,[b])}):d.hide();this._modeObject=c}this.mode()==WiziCore_Visualizer.EDITOR_MODE?(this._requestSent=!1,this.base().append(this._modeObject),this.base().css("-moz-user-select","none"),this.base().css("-khtml-user-select","none"),this.base().attr("unselectable","on"),a.widgetEventId()):
(this._modeObject!=null&&this._modeObject.remove(),this.base().removeAttr("unselectable"),this.base().css("-moz-user-select","text"),this.base().css("-khtml-user-select","text"));this.mode()==WiziCore_Visualizer.EDITOR_MODE&&this.tabindex("")}}catch(e){acDebugger.systemLog1("baseWidgetClass:UpdateVisualizeMode",e)}},editMode:function(a){this._editMode=a},canEditWidgetInEditor:function(){return!1},create:function(){},deleteChildWidget:function(a,b){var c=a.prop("id"),d=-1,e;for(e in b)if(b[e].object().prop("id")==
c){d=e;break}d!=-1&&(e=b[d],$(e).unbind(AC.Widgets.Base.onItemCreated),$(e).unbind(AC.Widgets.Base.onItemDeleted),e.destroy(),b[d].base().remove(),b.splice(d,1));return c},base:function(){return this._base},getAvailableProps:function(){return this._availableProps},getEmptyProps:function(){if(this._emptyProps==null)this._emptyProps=this.object().getEmptyProps();return this._emptyProps},applyPropsFromBaseObject:function(a){if(!(a==void 0||a==null)){var b=a.getAvailableProps();b[0]!=void 0&&b[0].props!=
void 0?this._newapplyPropsFromBaseObject(b,a):this._oldapplyPropsFromBaseObject(b,a);this._isWidgetBuilt=!0;this.setStyleProps();this.useParentFont(void 0,"font");this.useParentFont(void 0,"fontColor");this._isApplyedProps=!0}},_newapplyPropsFromBaseObject:function(a,b){for(var c in a){var d=a[c].props,e;for(e in d){var f=d[e],g=b.prop(f.name);g!=void 0&&this.prop(f.name,g)}}},_oldapplyPropsFromBaseObject:function(a,b){for(var c in a){var d=b.prop(c);d!=void 0&&this.prop(c,d)}},applyProps:function(a){if(!(a==
void 0||a==null))for(var b in a)this.prop(b,a[b])},prop:function(a,b){var c=this.getAvailableMethods();if(b!=void 0){var d=c[a];if(d)try{var e="";d.set!=void 0&&(e=d.set);d.setter!=void 0&&(e=d.setter.replace("this.",""));if(e!=""&&typeof this[e]=="function")return this[e](b)}catch(f){acDebugger.systemLog1("baseWidgetClass:prop",this.widgetClass(),a,b,f)}}if(c=c[a])try{if(d="",c.get!=void 0&&(d=c.get),c.getter!=void 0&&(d=c.getter.replace("this.","")),d!=""&&typeof this[d]=="function")return this[d]()}catch(g){acDebugger.systemLog("baseWidgetClass:prop ",
this.widgetClass(),a,g)}else return null},getLinesNum:function(){var a=0;if(this.isWidgetAppended()&&this.base().is(":visible")){var b=$(this.base()).clone();b.css({position:"absolute",left:"-"+parseInt(b.width())+10,top:"-"+parseInt(b.height())+10});var c=b.children().eq(0);$(this.base()).append(b);b.css("white-space","");var d=parseInt(c.height());b.css("white-space","nowrap");c=parseInt(c.height());c!=0&&(a=Math.round(d/c));b.remove()}return a},useAutoSize:function(a,b){if(this.isWidgetAppended()&&
this.base().is(":visible")){this.base().css("white-space","nowrap");var c=b.width(),d=b.height();this.base().css("white-space","");var e=b.height(),f=this.object().prop("width"),g=this.object().prop("height"),d=g/(d!=0?d:1);a==1&&(c>f&&(e>g-3||d<1.5)&&this.object().prop("width",c-0+3),e>g&&this.object().prop("height",b.height()-0+2));a>1&&(e>g&&this.object().prop("height",e-0+2),c>f&&this.object().prop("width",b.width()))}},mandatory:function(a){if(a!=void 0)this._mandatory=a;return this._mandatory},
mandatoryHighlight:function(a){a!=void 0&&(this.shadow(a),a==""&&(a=this.object().prop("shadow"),a!=null&&this.object().prop("shadow",a)))},font:function(a){if(a!=void 0)try{var b={font:a};a==""&&(b={"font-style":"","font-variant":"","font-weight":"","font-size":"","line-height":"","font-family":""});this.base().css(b);this.base().children().eq(0).css(b);this._font=a}catch(c){acDebugger.systemLog1("font set error",c)}return a=this._font},fontSize:function(a){if(a!=void 0)this.base().css("font-size",
a),this.base().children().eq(0).css("font-size",a),this._fontSize=a;return a=this._fontSize},fontFamily:function(a){if(a!=void 0)this.base().css("font-family",a),this._fontFamily=a;return a=this._fontFamily},fontColor:function(a){if(a!=void 0)this.base().css("color",a),this.base().children().eq(0).css("color",a),this._fontColor=a;return a=this._fontColor},width:function(a){if(a!=void 0)a==""&&(a=this.getStyleValueByPropName("width")),this._sizeAndPos.width=a!=""&&a!=null?parseInt(a):null,this.setSizeByAnchors(),
this.setRightByAnchors();return a=this._sizeAndPos.width},height:function(a){if(a!=void 0)a==""&&(a=this.getStyleValueByPropName("height")),this._sizeAndPos.height=a!=""&&a!=null?parseInt(a):null,this.setSizeByAnchors(),this.setBottomByAnchors();return a=this._sizeAndPos.height},top:function(a){if(a!=void 0)this._sizeAndPos.top=parseInt(a),this.setPosByAnchors();return a=this._sizeAndPos.top},left:function(a){if(a!=void 0)this._sizeAndPos.left=parseInt(a),this.setPosByAnchors();return a=this._sizeAndPos.left},
setSizeByAnchors:function(){this.base().css("width",this._sizeAndPos.width);this.base().css("height",this._sizeAndPos.height);this._anchors.left&&this._anchors.right&&this.base().css("width","");this._anchors.top&&this._anchors.bottom&&this.base().css("height","")},setRightByAnchors:function(){if(this.object().parent().prop){var a=this.base().parent().width(),a=a!=0?a:this.object().parent().prop("width");this._sizeAndPos.right=parseInt(a)-(parseInt(this._sizeAndPos.left)+parseInt(this._sizeAndPos.width));
this.setCssRightValue(this._anchors.right?this._sizeAndPos.right:"")}},setBottomByAnchors:function(){if(this.object().parent().prop){var a=this.base().parent().height(),a=a!=0?a:this.object().parent().prop("height");this._sizeAndPos.bottom=parseInt(a)-(parseInt(this._sizeAndPos.top)+parseInt(this._sizeAndPos.height));this._anchors.bottom?this.base().css("bottom",this._sizeAndPos.bottom):this.base().css("bottom","")}},setPosByAnchors:function(){var a=this._anchors;this.setRightByAnchors();var b=this.object().parent().prop("width");
if(b==""||b==void 0)b=this.base().parent().width();var c="";a.left?c=this._sizeAndPos.left:(c="",!a.right&&b!=0&&(c=this.base().parent().width(),c=this.getAnchorHelperValue(this._sizeAndPos.left,c!=0?c:b)));this.setCssLeftValue(c);b=this.object().parent().prop("height");if(b==""||b==void 0)b=this.base().parent().height();this.setBottomByAnchors();a.top?c=this._sizeAndPos.top:(c="",!a.bottom&&b!=0&&(a=this.base().parent().height(),c=this.getAnchorHelperValue(this._sizeAndPos.top,a!=0?a:b)));this.base().css("top",
c)},setCssLeftValue:function(a){this.base().css("left",a)},setCssRightValue:function(a){this.base().css("right",a)},getAnchorHelperValue:function(a,b){var c=parseInt(a)*100/parseInt(b);c<0&&(c=0);c+="%";return c},anchors:function(a){if(a!=void 0){if(typeof a=="string"){var b=a.toLowerCase();WiziCore_Helper.indexOf(b,"left")>-1?this._anchors.left=!0:this._anchors.left=!1;WiziCore_Helper.indexOf(b,"top")>-1?this._anchors.top=!0:this._anchors.top=!1;WiziCore_Helper.indexOf(b,"bottom")>-1?this._anchors.bottom=
!0:this._anchors.bottom=!1;WiziCore_Helper.indexOf(b,"right")>-1?this._anchors.right=!0:this._anchors.right=!1}if(typeof a=="object")this._anchors=jQuery.extend(!0,{},a);this.setPosByAnchors();this.setSizeByAnchors()}return a=this._anchors},anchorHelper:function(){var a=this._anchorHelper,b=this._anchors;a==null&&(a=$("<div>"),this.base().parent().append(a));var c=0,d=0;!b.left&&!b.right&&(c=this.base().parent().width(),c=c!=0?c:this.object().parent().prop("width"),c=Math.round((this.left()-0+parseInt(this.width()/
2))*100/c)+"%");!b.top&&!b.bottom&&(b=this.base().parent().height(),b=b!=0?b:this.object().parent().prop("height"),d=Math.round((this.top()-0+parseInt(this.height()/2))*100/b)+"%");a.css({position:"absolute",left:c,top:d});this._anchorHelper=a},bg:function(a){if(a!=void 0)this.base().css("background-color",a),this._bgColor=a;return a=this._bgColor},shadow:function(a){if(a!=void 0)this._shadow=a,this.base().css({"box-shadow":a,"-moz-box-shadow":a,"-webkit-box-shadow":a,"-khtml-box-shadow":a,"-icab-box-shadow":a,
"-o-box-shadow":a});return this._shadow},zindex:function(a){if(a!=void 0){var b=0;if(this.object()!=void 0&&this.object().form()!=void 0)b=this.object().form()._zIndex;this.base().css("z-index",b+a)}return a=this.base().css("z-index")},tabindex:function(a){a!=void 0&&(this.mode()!=WiziCore_Visualizer.EDITOR_MODE?this.base().attr("tabindex",a):this.mode()==WiziCore_Visualizer.EDITOR_MODE&&this.base().removeAttr("tabindex"));return a=this.base().attr("tabindex")},visible:function(a){if(a!=void 0)(this._visible=
a)?(this.mode()==WiziCore_Visualizer.EDITOR_MODE&&(this.opacity(this.opacity()),this.base().find(".wiziInvis").remove()),this.base().show()):this.mode()==WiziCore_Visualizer.EDITOR_MODE?(a=$("<div class='wiziInvis'>"),this.base().append(a),this.base().css("opacity",0.7)):this.mode()==WiziCore_Visualizer.RUN_MODE&&this.base().hide();return this._visible},widgetClass:function(){return this._widgetClass},children:function(){return[]},context:function(){var a=this.object(),b=null;a!=void 0&&a.form!=void 0&&
typeof a.form=="function"&&(b=a.form());return b},managerContext:function(){return WiziCore_ManagerContext.getInstance()},clientUrl:function(){return this.object().context().config().clientApi()},theme:function(){try{var a=this.object(),b=null;a!=void 0&&typeof a.form=="function"&&a.form()!=null&&a.form().widgetClass()=="WiziCore_Api_Form"&&(b=a.form().theme(),b==null&&typeof a.context=="function"&&typeof a.context().formThemeManager=="function"&&(b=a.context().formThemeManager().theme()));b==null&&
(b=WiziCore_ManagerContext.getInstance().appThemeManager.theme())}catch(c){acDebugger.systemLog1("baseWidgetClass:theme",c)}return b},opacity:function(a){if(a!=void 0)this.visible()&&(a!=1?this.base().css("opacity",a):this.base().css("opacity")),this._opacity=a;return a=this._opacity},widgetStyle:function(a){if(a!=void 0)this._widgetStyle=a,this.setStyleProps(),this.useParentFont(void 0,"font"),this.useParentFont(void 0,"fontColor");return a=this._widgetStyle},name:function(a){if(a!=void 0)this._name=
a;return this._name},border:function(a){if(a!=void 0)this.base().css("border",a),this._borderWidth=a;return a=this._borderWidth},borderRadius:function(a){if(a!=void 0){var b=a;a===""&&(b=this.getStyleValueByPropName("borderRadius"));var c=this.base().children().eq(0),d=this.base(),b={"-moz-border-radius":b,"-webkit-border-radius":b,"border-radius":b};c.css(b);d.css(b);this._borderRadius=a}return a=this._borderRadius},textAlign:function(a){if(a!=void 0)a=typeof a=="object"&&a.value!=void 0?a.value:
a,this.base().css("text-align",a),this._textAlign=a;return this._textAlign},vTextAlign:function(a){if(a!=void 0&&a.value!=void 0)this.base().css("vertical-align",a.value),this._vtextAlign=a;return this._vtextAlign},enable:function(a){var b=this.base().find("div");a!=void 0&&(a==!0?b.removeAttr("disabled"):b.attr("disabled","disabled"));return!b.attr("disabled")},listenview:function(a){if(a!=void 0)this._listenview=a;return this._listenview},applyview:function(a){if(a!=void 0)this._applyview=a;return this._applyview},
resetfilter:function(a){if(a!=void 0)this._resetfilter=a;return this._resetfilter},onview:function(a){if(a!=void 0)this._onview=a;return this._onview},createRequest:function(a){return a},onRequestResetFilterHandler:function(a){a.data.self.onRequestResetFilter()},onRequestResetFilter:function(){},onRequestReloadDataHandler:function(a){a.data.self.onRequestReloadData()},onRequestReloadData:function(){},onRequestDataReceived:function(a,b){var c=a.data.self;c.mode()==WiziCore_Visualizer.RUN_MODE&&c.applyDataFromQuery(b);
typeof c.loadMode=="function"&&c.loadMode(!1);this._requestSent=!1},onRequestDataReceivedError:function(a){a=a.data.self;typeof a.loadMode=="function"&&a.loadMode(!1);this._requestSent=!1},onRequestDataReceivedBegin:function(a){a=a.data.self;a._loggedTime=(new Date).getTime();typeof a.loadMode=="function"&&a.loadMode(!0);a.onRequestReceivedBegin()},onRequestReceivedBegin:function(){},loadMode:function(a,b,c,d,e){d=d==void 0?this.prop("bgColor"):d;if(a!=this._loadMode)this._loadMode=a,WiziCore_Helper.loadMode(this.base(),
a,b,c,d,e)},view:function(a){if(a!=void 0){this._view=a;var b=this.object();if(b==void 0)return a;if(typeof b.form!="function")return a;a=this.getRequestStructByView(a);if(a!=null)this._request=this.createRequest(this._request,a),this.isWidgetAppended()&&this.mode()==WiziCore_Visualizer.RUN_MODE&&this.loadDataFromRequest()}return this._view},getRequestStructByView:function(a){if(a!=void 0){var b=this.object();if(b==void 0)return null;if(typeof b.form!="function")return null;var c=b.form().view(a);
if(c!=null){var c=c.queryId(),d=b.prop("fields"),e=b.prop("groupby"),f=b.prop("orderby"),g=b.prop("filter"),i=new WiziReport_Request;i.viewId=a;i.queryId=c;i.outputs=d;i.inputs=g;if(b.prop("foreignAppWriting")!=!0)i.groupBy=e;i.orderBy=f;return i}}else return null},fields:function(a){if(a!=void 0)this._fields=a;return this._fields},orderby:function(a){if(a!=void 0)this._orderby=a;return this._orderby},groupby:function(a){if(a!=void 0)this._groupby=a;return this._groupby},filter:function(a){if(a!=
void 0)this._filter=a;return this._filter},applyDataFromQuery:function(a){if(a.length!=void 0&&a.length!=0)if(typeof this.transData=="function")try{this.transData(a)}catch(b){acDebugger.systemLog1("baseWidgetClass:applyDataFromQuery",b)}else acDebugger.systemLog("transData is not defined method in "+this.widgetClass())},transDataFromQuery:function(a,b,c){try{var d=a[0],e=a.length,f=[],g=[];if(e==1)return f;b.length==1&&(e=2);if(c==!0)e=a.length;for(var c=0,i="",h=1;h<e;h++){var g=[],j;for(j in b){var c=
0,k;for(k in d)if(d[k]==b[j]){c=k;break}i="";a[h][c]!=void 0&&(i=a[h][c]);g[g.length]=i}f[f.length]=g}return f}catch(l){acDebugger.systemLog1("baseWidgetClass:transDataFromQuery",l)}},onDataFieldValueChanged:function(a){a=a.data.self;typeof a.loadMode=="function"&&a.loadMode(!0)},isIncludedInSchema:function(a){if(a!=void 0)this._isIncludedInSchema=a;return this._isIncludedInSchema},dataType:function(a){if(a!=void 0)this._dataType=a;return this._dataType},isImplicitListType:function(){return!1},isImplicitObjectListType:function(){return!1},
setStyleProps:function(){var a=null;this.isWidgetBuild()==!0&&(a=this.widgetStyle());var b=this.object();if(b.context!=void 0&&typeof b.context=="function"&&a!=null){if(typeof a=="object")a=a.value;if(a!=void 0&&b.context().formThemeManager!=void 0){var b=b.context().formThemeManager(),c=this.widgetClass();if(b.themeContent(this.prop("theme"))[c]!=void 0&&(a=b.themeContent(this.prop("theme"))[c][a],a!=void 0)){var b=this.getAvailableMethods(),c=this.getEmptyProps(),d=this.getAvailableStyleProps(),
e;for(e in d){var f=d[e],g={compute:!1},i=this.object().prop(f,void 0,g),h=null,j=!1;if(i===""||i==null||g.compute){if(h=a[f],h==void 0||h===""||h==null)h=c[f],h=h==void 0||h===""||h==null?"":h}else h=i,g.compute||(j=!0);if(j==!1&&b[f]!=void 0){j="";b[f].setter!=void 0&&(j=b[f].setter.replace("this.",""));b[f].set!=void 0&&(j=b[f].set);try{if(j!=""&&typeof this[j]=="function")this[j](h)}catch(k){acDebugger.systemLog1("error execute style props",k)}}}}}}},getAvailableStyleProps:function(a){var a=a==
void 0?this.widgetClass():a,a=AC.Core.Widgets().getAvailableWidgetProperties(a),b=[],c;for(c in a)if(a[c].props!=void 0){var d=a[c].props,e;for(e in d){var f=d[e];f.name!="widgetStyle"&&(a[c].name==AC.Widgets.Base._STYLE_GROUP||f.inTheme==!0)&&b.push(f.name)}}return b},getStyleValueByPropName:function(a,b){var c=void 0,d=this.object(),e=null,e=this.widgetStyle();if(d.context!=void 0&&typeof d.context=="function"&&e!=null){if(typeof e=="object")e=e.value;if(e!=void 0&&d.context().formThemeManager!=
void 0)if(d=d.context().formThemeManager(),b==void 0||b==!1){var f=this.widgetClass(),g=d.themeContent(this.prop("theme"))[f],i=this.getEmptyProps();if(g==void 0)return c;d=d.themeContent(this.prop("theme"))[f][e];if(d==void 0)return c;d[a]!=void 0&&(d[a]===""?i[a]!=void 0&&(c=i[a]):c=d[a])}else if(e=this.object().page(),i=e.prop("widgetStyle"),f=e.prop("widgetClass"),g=this.prop("theme"),d.themeContent(g)[f]!=void 0&&d.themeContent(g)[f][i]!=void 0){var h=e.prop(a);if(h==""||h==null){if(d=d.themeContent(g)[f][i],
d[a]!=void 0)if(d[a]===""){if(d=e.getEmptyProps(),d[a]!=void 0)return d[a]}else c=d[a]}else return h}}return c},parentObject:function(){return this.object().parent()}});
WiziCore_UI_BaseWidget.actions=function(){return{click:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.Base.onClick",params:"mouseev",group:"widget_event_mouse"},dbclick:{alias:"widget_event_ondblclick",funcview:"onDbClick",action:"AC.Widgets.Base.onDbClick",params:"mouseev",group:"widget_event_mouse"},mousedown:{alias:"widget_event_onmousedown",funcview:"onMouseDown",action:"AC.Widgets.Base.onMouseDown",params:"mouseev",group:"widget_event_mouse"},mouseup:{alias:"widget_event_onmouseup",
funcview:"onMouseUp",action:"AC.Widgets.Base.onMouseUp",params:"mouseev",group:"widget_event_mouse"},mouseenter:{alias:"widget_event_onmouseenter",funcview:"onMouseEnter",action:"AC.Widgets.Base.onMouseEnter",params:"mouseev",group:"widget_event_mouse"},mouseleave:{alias:"widget_event_onmouseleave",funcview:"onMouseLeave",action:"AC.Widgets.Base.onMouseLeave",params:"mouseev",group:"widget_event_mouse"}}};
WiziCore_UI_BaseWidget.widgetClassProperty={type:"ro",group:AC.Property.group_names.general,alias:"widget_class"};WiziCore_UI_BaseWidget._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.name]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.width,AC.Property.layout.height,AC.Property.layout.repeat]}];WiziCore_UI_BaseWidget.props=function(){return WiziCore_UI_BaseWidget._props};
WiziCore_UI_BaseWidget.defaultProps=function(){return{width:100,height:100,x:0,y:0,name:"widget"}};WiziCore_UI_BaseWidget.widgetDataModel=function(){return[{name:"widget_label",value:"",uid:"labeluid"},{name:"widget_value",value:"",uid:"valueuid"}]};WiziCore_UI_BaseWidget.getData=function(a){if(a!=null&&typeof a.dataPropName=="function"){var b=a.dataPropName();return a.prop(b)}else return null};
WiziCore_UI_BaseWidget.setData=function(a,b){if(a!=null&&typeof a.dataPropName=="function"){var c=a.dataPropName();return a.prop(c,b)}else return null};WiziCore_UI_BaseWidget.getDataFromMap=function(a,b){var c="",d=b.value;d!=void 0&&(c=WiziCore_UI_BaseWidget.getDataItemWithMap(a[0],d));return c};WiziCore_UI_BaseWidget.getDataItemWithMap=function(a,b){typeof b!="object"&&(b=[b]);var c=a,d;for(d in b)if(c[b[d]]!==void 0)c=c[b[d]];else break;return c};WiziCore_UI_BaseWidget.availableMethods={};
WiziCore_UI_BaseWidget.schema=function(a,b){b!=void 0&&WiziCore_UI_BaseWidget.availableMethods[a]==void 0&&(WiziCore_UI_BaseWidget.availableMethods[a]=b);return WiziCore_UI_BaseWidget.availableMethods[a]};
var WiziCore_UI_WindowWidget=AC.Widgets.WiziCore_UI_WindowWidget=WiziCore_UI_BaseWidget.extend({_dlg:null,init:function(){this._super.apply(this,arguments);var a=arguments[0];a.prop("autoOpen")==void 0&&a.prop("autoOpen",!1);var b=a.prop("dlgtemplate"),c=b;this._dlg=c=b==void 0?$("<div>"):$(b);this.base().append(c);this.applyPropsFromBaseObject(a);a.prop("dialogClass","wa-system-dialog wa-system-style");c.dialog(a.project())},create:function(){},close:function(){acDebugger.systemLog("close dialog");
this._dlg.dialog("isOpen")&&(this._dlg.dialog("close"),this._dlg.dialog("destoy"))},open:function(){this._dlg.dialog("isOpen")||this._dlg.dialog("open")},toogle:function(){this._dlg.dialog("isOpen")?this.close():this.open()},width:function(a){a!=void 0&&$(this._dlg).dialog("option","width",a);return a=$(this._dlg).dialog("option","width")},height:function(a){a!=void 0&&$(this._dlg).dialog("option","height",a);return a=$(this._dlg).dialog("option","height")},resizable:function(a){a!=void 0&&$(this._dlg).dialog("option",
"resizable",a);return a=$(this._dlg).dialog("option","resizable")},zindex:function(a){a!=void 0&&$(this._dlg).dialog("option","zIndex",a);return a=$(this._dlg).dialog("option","zIndex")},title:function(a){a!=void 0&&$(this._dlg).dialog("option","title",a);return a=$(this._dlg).dialog("option","title")},modal:function(a){a!=void 0&&$(this._dlg).dialog("option","modal",a);return a=$(this._dlg).dialog("option","modal")},message:function(a){a!=void 0&&($(this._dlg).empty(),$(this._dlg).html(a));return a=
$(this._dlg).html()}});
WiziCore_UI_WindowWidget._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.modal]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.width,AC.Property.layout.height,AC.Property.layout.repeat,AC.Property.layout.zindex,AC.Property.layout.anchors]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.visible]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,
AC.Property.style.resizable,AC.Property.style.message,AC.Property.style.title]}];WiziCore_UI_WindowWidget.props=function(){return WiziCore_UI_WindowWidget._props};WiziCore_UI_WindowWidget.defaultProps=function(){return{title:"Some text",width:"200",height:"200",x:"100",y:"50",zindex:"auto",visible:!0}};
