(function(f){var g,j,i,d,c,a,b,h,e,k;g=document.namespaces;has_canvas=!!document.createElement("canvas").getContext;if(!has_canvas&&!g)f.fn.maphilight=function(){return this};else{has_canvas?(b=function(b){return Math.max(0,Math.min(parseInt(b,16),255))},h=function(a,h){return"rgba("+b(a.substr(0,2))+","+b(a.substr(2,2))+","+b(a.substr(4,2))+","+h+")"},j=function(b){b=f('<canvas style="width:'+b.width+"px;height:"+b.height+'px;"></canvas>').get(0);b.getContext("2d").clearRect(0,0,b.width,b.height);
return b},i=function(b,a,e,c){var k=b.getContext("2d");k.beginPath();if(a=="rect")k.rect(e[0],e[1],e[2]-e[0],e[3]-e[1]);else if(a=="poly"){k.moveTo(e[0],e[1]);for(a=2;a<e.length;a+=2)k.lineTo(e[a],e[a+1])}else a=="circ"&&k.arc(e[0],e[1],e[2],0,Math.PI*2,!1);k.closePath();if(c.fill)k.fillStyle=h(c.fillColor,c.fillOpacity),k.fill();if(c.stroke)k.strokeStyle=h(c.strokeColor,c.strokeOpacity),k.lineWidth=c.strokeWidth,k.stroke();c.fade&&f(b).css("opacity",0).animate({opacity:1},100)},d=function(b){b.getContext("2d").clearRect(0,
0,b.width,b.height)}):(j=function(b){return f('<var style="zoom:1;overflow:hidden;display:block;width:'+b.width+"px;height:"+b.height+'px;"></var>').get(0)},i=function(b,a,h,e,c){var k,d,o;k='<v:fill color="#'+e.fillColor+'" opacity="'+(e.fill?e.fillOpacity:0)+'" />';d=e.stroke?'strokeweight="'+e.strokeWidth+'" stroked="t" strokecolor="#'+e.strokeColor+'"':'stroked="f"';e='<v:stroke opacity="'+e.strokeOpacity+'"/>';a=="rect"?o=f('<v:rect name="'+c+'" filled="t" '+d+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+
h[0]+"px;top:"+h[1]+"px;width:"+(h[2]-h[0])+"px;height:"+(h[3]-h[1])+'px;"></v:rect>'):a=="poly"?o=f('<v:shape name="'+c+'" filled="t" '+d+' coordorigin="0,0" coordsize="'+b.width+","+b.height+'" path="m '+h[0]+","+h[1]+" l "+h.join(",")+' x e" style="zoom:1;margin:0;padding:0;display:block;position:absolute;top:0px;left:0px;width:'+b.width+"px;height:"+b.height+'px;"></v:shape>'):a=="circ"&&(o=f('<v:oval name="'+c+'" filled="t" '+d+' style="zoom:1;margin:0;padding:0;display:block;position:absolute;left:'+
(h[0]-h[2])+"px;top:"+(h[1]-h[2])+"px;width:"+h[2]*2+"px;height:"+h[2]*2+'px;"></v:oval>'));o.get(0).innerHTML=k+e;f(b).append(o)},d=function(b){f(b).find("[name=highlighted]").remove()});c=function(b){var a,h=b.getAttribute("coords").split(",");for(a=0;a<h.length;a++)h[a]=parseFloat(h[a]);return[b.getAttribute("shape").toLowerCase().substr(0,4),h]};k=function(b,a){var h=f(b);return f.extend({},a,f.metadata?h.metadata():!1,h.data("maphilight"))};e=function(b){return!b.complete?!1:typeof b.naturalWidth!=
"undefined"&&b.naturalWidth==0?!1:!0};a={position:"absolute",left:0,top:0,padding:0,border:0};var o=!1;f.fn.maphilight=function(b){typeof b=="string"&&(b={cmd:b});b=f.extend({},f.fn.maphilight.defaults,b);if(!has_canvas&&f.browser.msie&&!o){document.namespaces.add("v","urn:schemas-microsoft-com:vml");var h=document.createStyleSheet();f.each("shape,rect,oval,circ,fill,stroke,imagedata,group,textbox".split(","),function(){h.addRule("v\\:"+this,"behavior: url(#default#VML); antialias:true")});o=!0}return b.cmd!=
void 0&&b.cmd=="destroy"?this.each(function(){var b=f(this);if(b.hasClass("maphilighted")){var a=b.parent();a.find(":not(img)").remove();b.unwrap();b.css("opacity",1);var h=b.attr("usemap"),a=a.children('map[name="'+h.substr(1)+'"]');f(a).unbind(".maphilight");b.css({position:"",left:"",top:"",padding:""});b.removeClass("maphilighted")}}):this.each(function(){var h,o,g,p,q,n,u;h=f(this);if(!e(this))return window.setTimeout(function(){h.maphilight(b)},200);g=f.extend({},b,f.metadata?h.metadata():!1,
h.data("maphilight"));o=h.get(0).getAttribute("usemap");p=h.parent().children('map[name="'+o.substr(1)+'"]');if(h.is("img")&&o&&p.size()>0)h.hasClass("maphilighted")&&(o=h.parent(),h.insertBefore(o),o.remove(),f(p).unbind(".maphilight")),o=f("<div></div>").css({display:"block",background:'url("'+this.src+'")',position:"relative",padding:0,width:this.width,height:this.height}),g.wrapClass&&(g.wrapClass===!0?o.addClass(f(this).attr("class")):o.addClass(g.wrapClass)),h.before(o).css("opacity",0).css(a).remove(),
f.browser.msie&&h.css("filter","Alpha(opacity=0)"),o.append(h),q=j(this),f(q).css(a),q.height=this.height,q.width=this.width,u=function(b){var a,h;h=k(b,g);!h.neverOn&&!h.alwaysOn&&(a=c(b),i(q,a[0],a[1],h,"highlighted"),h.groupBy&&(/^[a-zA-Z][-a-zA-Z]+$/.test(h.groupBy)?p.find("area["+h.groupBy+'="'+f(b).attr(h.groupBy)+'"]'):p.find(h.groupBy)).each(function(){if(this!=b){var a=k(this,g);if(!a.neverOn&&!a.alwaysOn){var h=c(this);i(q,h[0],h[1],a,"highlighted")}}}),has_canvas||f(q).append("<v:rect></v:rect>"))},
f(p).bind("alwaysOn.maphilight",function(){n&&d(n);has_canvas||f(q).empty();f(p).find("area[coords]").each(function(){var b,e;e=k(this,g);if(e.alwaysOn){if(!n&&has_canvas)n=j(h.get()),f(n).css(a),n.width=h.width(),n.height=h.height(),h.before(n);e.fade=e.alwaysOnFade;b=c(this);has_canvas?i(n,b[0],b[1],e,""):i(q,b[0],b[1],e,"")}})}).bind("mouseover.maphilight",function(b){b.target&&b.target.tagName.toLowerCase()=="area"&&u(b.target)}).bind("mouseout.maphilight",function(b){b.target&&b.target.tagName.toLowerCase()==
"area"&&d(q)}),f(p).trigger("alwaysOn.maphilight"),h.before(q),h.addClass("maphilighted"),p.attr("name",p.attr("name"))})};f.fn.maphilight.defaults={fill:!0,fillColor:"000000",fillOpacity:0.2,stroke:!0,strokeColor:"ff0000",strokeOpacity:1,strokeWidth:1,fade:!0,alwaysOn:!1,neverOn:!1,groupBy:!1,wrapClass:!0}}})(jQuery);
var Hashtable=function(){function f(b){if(typeof b=="string")return b;else if(typeof b.hashCode==e)return b=b.hashCode(),typeof b=="string"?b:f(b);else if(typeof b.toString==e)return b.toString();else try{return String(b)}catch(a){return Object.prototype.toString.call(b)}}function g(b,a){return b.equals(a)}function j(b,a){return typeof a.equals==e?a.equals(b):b===a}function i(b){return function(a){if(a===null)throw Error("null is not a valid "+b);else if(typeof a=="undefined")throw Error(b+" must not be undefined");
}}function d(b,a,h,e){this[0]=b;this.entries=[];this.addEntry(a,h);if(e!==null)this.getEqualityFunction=function(){return e}}function c(b){return function(a){for(var h=this.entries.length,e,c=this.getEqualityFunction(a);h--;)if(e=this.entries[h],c(a,e[0]))switch(b){case p:return!0;case m:return e;case l:return[h,e[1]]}return!1}}function a(b){return function(a){for(var h=a.length,e=0,c=this.entries.length;e<c;++e)a[h+e]=this.entries[e][b]}}function b(b,a){var h=b[a];return h&&h instanceof d?h:null}
function h(a,c){var i=this,g=[],m={},j=typeof a==e?a:f,p=typeof c==e?c:null;this.put=function(a,h){o(a);t(h);var e=j(a),c,k=null;(c=b(m,e))?(e=c.getEntryForKey(a))?(k=e[1],e[1]=h):c.addEntry(a,h):(c=new d(e,a,h,p),g[g.length]=c,m[e]=c);return k};this.get=function(a){o(a);var h=j(a);if(h=b(m,h))if(a=h.getEntryForKey(a))return a[1];return null};this.containsKey=function(a){o(a);var h=j(a);return(h=b(m,h))?h.containsKey(a):!1};this.containsValue=function(b){t(b);for(var a=g.length;a--;)if(g[a].containsValue(b))return!0;
return!1};this.clear=function(){g.length=0;m={}};this.isEmpty=function(){return!g.length};var l=function(b){return function(){for(var a=[],h=g.length;h--;)g[h][b](a);return a}};this.keys=l("keys");this.values=l("values");this.entries=l("getEntries");this.remove=function(a){o(a);var h=j(a),e=null,c=b(m,h);if(c&&(e=c.removeEntryForKey(a),e!==null&&!c.entries.length)){a:{for(a=g.length;a--;)if(c=g[a],h===c[0])break a;a=null}k(g,a);delete m[h]}return e};this.size=function(){for(var b=0,a=g.length;a--;)b+=
g[a].entries.length;return b};this.each=function(b){for(var a=i.entries(),h=a.length,e;h--;)e=a[h],b(e[0],e[1])};this.putAll=function(b,a){for(var h=b.entries(),c,k,f,d=h.length,o=typeof a==e;d--;){c=h[d];k=c[0];c=c[1];if(o&&(f=i.get(k)))c=a(k,f,c);i.put(k,c)}};this.clone=function(){var b=new h(a,c);b.putAll(i);return b}}var e="function",k=typeof Array.prototype.splice==e?function(b,a){b.splice(a,1)}:function(b,a){var h,e,c;if(a===b.length-1)b.length=a;else{h=b.slice(a+1);b.length=a;for(e=0,c=h.length;e<
c;++e)b[a+e]=h[e]}},o=i("key"),t=i("value"),p=0,m=1,l=2;d.prototype={getEqualityFunction:function(b){return typeof b.equals==e?g:j},getEntryForKey:c(m),getEntryAndIndexForKey:c(l),removeEntryForKey:function(b){return(b=this.getEntryAndIndexForKey(b))?(k(this.entries,b[0]),b[1]):null},addEntry:function(b,a){this.entries[this.entries.length]=[b,a]},keys:a(0),values:a(1),getEntries:function(b){for(var a=b.length,h=0,e=this.entries.length;h<e;++h)b[a+h]=this.entries[h].slice(0)},containsKey:c(p),containsValue:function(b){for(var a=
this.entries.length;a--;)if(b===this.entries[a][1])return!0;return!1}};return h}();
(function(f){function g(a,b,h){this.dec=a;this.group=b;this.neg=h}function j(a){if(i.size()==0)for(var b in c){localeGroup=c[b];for(var h=0;h<localeGroup.length;h++)i.put(localeGroup[h],b)}b=".";h=",";if(a=i.get(a))if(a=d[a])b=a[0],h=a[1];return new g(b,h,"-")}var i=new Hashtable,d=[[".",","],[",","."],[","," "],[".","'"]],c=["ae,au,ca,cn,eg,gb,hk,il,in,jp,sk,th,tw,us".split(","),"at,br,de,dk,es,gr,it,nl,pt,tr,vn".split(","),"cz,fi,fr,ru,se,pl".split(","),["ch"]];f.fn.formatNumber=function(a,b,h){return this.each(function(){b==
null&&(b=!0);h==null&&(h=!0);var e;e=f(this).is(":input")?new String(f(this).val()):new String(f(this).text());e=f.formatNumber(e,a);b&&(f(this).is(":input")?f(this).val(e):f(this).text(e));if(h)return e})};f.formatNumber=function(a,b){b=f.extend({},f.fn.formatNumber.defaults,b);j(b.locale.toLowerCase());for(var h="",e=!1,c=0;c<b.format.length;c++)if("0#-,.".indexOf(b.format.charAt(c))==-1)h+=b.format.charAt(c);else if(c==0&&b.format.charAt(c)=="-")e=!0;else break;for(var d="",c=b.format.length-1;c>=
0;c--)if("0#-,.".indexOf(b.format.charAt(c))==-1)d=b.format.charAt(c)+d;else break;b.format=b.format.substring(h.length);b.format=b.format.substring(0,b.format.length-d.length);c=new Number(a);return f._formatNumber(c,b,d,h,e)};f._formatNumber=function(a,b,h,e,c){var b=f.extend({},f.fn.formatNumber.defaults,b),d=j(b.locale.toLowerCase()),i=d.dec,g=d.group,d=d.neg,m=!1;if(isNaN(a))if(b.nanForceZero==!0)a=0,m=!0;else return null;h=="%"&&(a*=100);var l="";if(b.format.indexOf(".")>-1){var r=i,s=b.format.substring(b.format.lastIndexOf(".")+
1);b.round==!0?a=new Number(a.toFixed(s.length)):(a=a.toString(),a=a.substring(0,a.lastIndexOf(".")+s.length+1),a=new Number(a));for(var q=new String((a%1).toFixed(s.length)),q=q.substring(q.lastIndexOf(".")+1),n=0;n<s.length;n++)if(s.charAt(n)=="#"&&q.charAt(n)!="0")r+=q.charAt(n);else if(s.charAt(n)=="#"&&q.charAt(n)=="0")if(q.substring(n).match("[1-9]"))r+=q.charAt(n);else break;else s.charAt(n)=="0"&&(r+=q.charAt(n));l+=r}else a=Math.round(a);s=Math.floor(a);a<0&&(s=Math.ceil(a));n="";n=b.format.indexOf(".")==
-1?b.format:b.format.substring(0,b.format.indexOf("."));r="";if(!(s==0&&n.substr(-1,1)=="#")||m){m=new String(Math.abs(s));s=9999;n.lastIndexOf(",")!=-1&&(s=n.length-n.lastIndexOf(",")-1);q=0;for(n=m.length-1;n>-1;n--)r=m.charAt(n)+r,q++,q==s&&n!=0&&(r=g+r,q=0)}l=r+l;a<0&&c&&e.length>0?e=d+e:a<0&&(l=d+l);b.decimalSeparatorAlwaysShown||l.lastIndexOf(i)==l.length-1&&(l=l.substring(0,l.length-1));return e+l+h};f.fn.parseNumber=function(a,b,h){b==null&&(b=!0);h==null&&(h=!0);var e;e=f(this).is(":input")?
new String(f(this).val()):new String(f(this).text());if(a=f.parseNumber(e,a))if(b&&(f(this).is(":input")?f(this).val(a.toString()):f(this).text(a.toString())),h)return a};f.parseNumber=function(a,b){for(var b=f.extend({},f.fn.parseNumber.defaults,b),h=j(b.locale.toLowerCase()),e=h.dec,c=h.group,h=h.neg;a.indexOf(c)>-1;)a=a.replace(c,"");a=a.replace(e,".").replace(h,"-");e="";c=!1;a.charAt(a.length-1)=="%"&&(c=!0);for(h=0;h<a.length;h++)"1234567890.-".indexOf(a.charAt(h))>-1&&(e+=a.charAt(h));h=new Number(e);
c&&(h/=100,h=h.toFixed(e.length-1));return h};f.fn.parseNumber.defaults={locale:"us",decimalSeparatorAlwaysShown:!1};f.fn.formatNumber.defaults={format:"#,###.00",locale:"us",decimalSeparatorAlwaysShown:!1,nanForceZero:!0,round:!0}})(jQuery);
(function(f,g){function j(i,d,c){var a={_data:null,_env:null,_div:null,_btn:null,_id:null,_enableDiv:null,_list:null,_input:null,_opt:null,_init:function(b,a,e){$(b[0])==void 0?this._error("Error :: There are undefined HTML Container for draw combo"):(this._div=$("<div class='simple-combo'><input class='simple-combo-input' type='text'><span class='simple-combo-btn'/><div class='simple-combo-container-list' ><div class='simple-combo-list'/></div></div>"),this._opt=typeof e=="object"?e:{},this._env=
{},this._enableDiv=$("<div class='simple-combo-disable'/>"),this._div.append(this._enableDiv),this._initContent(),this.setData(a),b.append(this._div),this.enable(this.enable()),this.readonly(this.readonly()))},_initContent:function(){function b(){d.width(g.listWidth()!=void 0?g.listWidth():g._div.width());c.css("max-height",g.listHeight()!=void 0?g.listHeight():"");d.css({top:"",bottom:"",left:g._div.offset().left});i.offset().top+i.height()-$(document).scrollTop()+d.height()>$(f).height()?d.css("top",
a.parent().offset().top-d.height()):d.css("top",a.height()+a.parent().offset().top)}var a=this._btn=this._div.children(".simple-combo-btn"),e=this._div,c=this._list=this._div.find(".simple-combo-list"),d=this._items=this._div.find(".simple-combo-container-list").attr("unselectable","on"),i=this._input=this._div.children(".simple-combo-input"),g=this;$(document.body).append(d);this._env.windowResize=function(){d!=void 0&&d.is(":visible")&&b()};$(f).bind("resize.simple-combo",this._env.windowResize);
a.click(function(){d.is(":hidden")?g.enable()&&g.canOpenSelect()&&(b(),g._selectItem(g._env.selIndex),d.show(),i.focus(),$(g).trigger(j.onDropDown)):g._onFocusOut()});var m=!0;c.mousedown(function(b){var a=g._getEventElem(b);a!=void 0&&g.enable()&&(a.hasClass("simple-combo-list")?(b.preventDefault(),b.stopPropagation(),m=!1,i.focus()):(a=a.closest(".combo-item"),b=a.data("index"),b!=void 0&&(g.selectItem(b),d.hide())));f.setTimeout(function(){m=!0},10)});var l=0;i.keypress(function(b){if(g.enable()){d.is(":hidden")&&
(a.click(),l=-1);$(g).trigger(j.onKeyPress,[b]);var e=function(){l=g.getData().length<l+1?0:l;l=l<0?g.getData().length-1:l};switch(b.keyCode){case 37:case 38:l--;e();g._selectItem(l);break;case 39:case 40:l++;e();g._selectItem(l);break;case 13:g.selectItem(l),d.hide()}g._log("keypress"+l)}});i.click(function(){g.readonly()&&a.click()});i.focus(function(){e.hasClass("simple-combo-focus")||(e.addClass("simple-combo-focus"),m&&g.enable()&&$(g).trigger(j.onFocusIn))});var r=!0;a.mousedown(function(){r=
!1});a.mouseup(function(){r=!0});i.focusout(function(){if(g.enable()){var b=$(this);m?r&&g._onFocusOut():b.focus();m=!0}})},_onFocusOut:function(){this._div.removeClass("simple-combo-focus");this._items.hide();$(this).trigger(j.onFocusOut)},_getEventElem:function(b){return $(b.originalEvent.target||b.originalEvent.srcElement)},clearSelection:function(){this.setText("");this._env.selIndex=void 0},selectItem:function(b,a){var e=this.getData();if(e[b]!=void 0)this._selectItem(b),this._input.val(e[b][0]),
this._env.selIndex=b,a!==!1&&$(this).trigger(j.onSelect,[e[b],b])},_selectItem:function(b){if(b!=void 0){var a=this._list;a.children(".combo-item-sel").removeClass("combo-item-sel");var e=a.children().eq(b).addClass("combo-item-sel");a.is(":visible")&&e[0]!=void 0&&(a.scrollTop(0),b=a.height()/2-e.height()/2,e=e.offset().top-a.offset().top,a.scrollTop(e-b))}},_log:function(){},_error:function(b){g&&g.error(b)},option:function(b,a){return a==void 0?this._opt[b]:this._opt[b]=a},readonly:function(b){if(b!=
void 0)this._opt.readonly=b,b===!0?this._input.prop("readOnly",!0):this._input.prop("readOnly",!1);return this._opt.readonly!==!1},enable:function(b){if(b!=void 0)this._opt.enable=b,b===!1?(this._enableDiv.show(),this._items.hide()):this._enableDiv.hide();return this._opt.enable!==!1},listWidth:function(b){b!=void 0&&(this._opt.listWidth=b);return this._opt.listWidth},listHeight:function(b){b!=void 0&&(this._opt.listHeight=isNaN(parseFloat(b))?void 0:parseFloat(b));return this._opt.listHeight},base:function(){return this._div},
setData:function(b){if($.isArray(b)){this._list.empty();for(var a=$("<div/>"),e=0,c=b.length;e<c;e++){var d=$("<span class='combo-item'>"+b[e][0]+"</span>").data("index",e);b[e][2]!=void 0&&b[e][2]==!0&&d.addClass("combo-item-sel");a.append(d)}this._list.append(a.children());this._data=b}},getData:function(){return this._data},getSelectedIndex:function(){return this._env.selIndex},getSelectedValue:function(){return this._env.selIndex!=void 0?this._data[this._env.selIndex][1]:void 0},getSelectedText:function(){return this._env.selIndex!=
void 0?this._data[this._env.selIndex][0]:void 0},setValue:function(b){for(var a=b,e=0,c=this._data.length;e<c;e++)if(this._data[e][1]==b){a=this._data[e][0];this.selectItem(e,!1);break}this.setText(a)},setText:function(b){this._input.val(b)},getText:function(){return this._input.val()},updateItem:function(b,a){this._data[b]=a;this._list.children().eq(b).html(a[0])},addItem:function(b){jQuery.isArray(b)&&this._data.push([b[0],b[1]])},clear:function(){this._data.length=0;this._data=void 0;this._data=
[];this._list.empty()},canOpenSelect:function(b){if(b!=void 0)this._env.canOpenSelect=b,this._items.hide();return this._env.canOpenSelect!==!1},closeList:function(){this._items.hide()},destroy:function(){this._env&&this._env.windowResize&&$(f).unbind("resize.simple-combo",this._env.windowResize);this._btn=void 0;this._items.remove();this._data=this._opt=this._list=this._input=void 0;this._div&&this._div.empty().remove();this._env=void 0;$(this).unbind()},itemsListContainer:function(){return this._list},
inputContainer:function(){return this._input},width:function(b){return this._div.width(b)},height:function(b){if(b!=void 0){var a=isNaN(parseFloat(b))?b:b+"px";this._input.height(b).css("right",a);jQuery.browser.msie&&this._input.css("line-height",a);this._btn.width(b).height(b)}return this._div.height(b)}};a._init(i,d,c);return a}j.onSelect="Event#jqSimpleCombo#onSelect";j.onFocusIn="Event#jqSimpleCombo#onFocusIn";j.onFocusOut="Event#jqSimpleCombo#onFocusOut";j.onDropDown="Event#jqSimpleCombo#onDropDown";
j.onKeyPress="Event#jqSimpleCombo#onKeyPress";f.jqSimpleCombo=j})(window,window.console);
(function(f,g){function j(i,d,c){var a={_data:null,_div:null,_nodesMap:null,_plugins:null,_contextDiv:null,_objectEnv:null,_id:null,_init:function(b,a){this._id=this._generateUniqueId();this._div=$("<table class='simple-right-menu' id='"+this._id+"'>").attr("unselectable","on");this._contextDiv=b;this._objectEnv={};this._dropData();this.setData(a);this._bindEvents()},id:function(){return this._id},setData:function(b){if(b!=void 0&&(this.clear(),this._generateUniqueId(),this._addNewNode(void 0,b,this._div)))this._data=
b},getData:function(){return jQuery.extend(!0,{},{val:this._data}).val},clear:function(){this._div.empty();this._dropData()},width:function(){return this._div.width()},height:function(){return this._div.height()},_log:function(b){g&&g.log(b)},_error:function(b){g&&g.error(b)},_dropData:function(){this._objectEnv={};this._nodesMap={};this._data={}},setItemIcon:function(b,a){var e=this._getNodesMap(b);if(e){e=e.divs.children(":not(:last)").find(".simple-right-menu-item-icon");if(e.length>0&&e[0].tagName.toLowerCase()==
"span"){var c=e.attr("class"),d=e.attr("style"),c=$("<img class='"+c+"' style='"+d+"'>");e.replaceWith(c);e=c}e.attr("src",a)}},setItemIconSize:function(b){b=typeof b=="string"?b:b+"px";this._objectEnv.iconStyle&&this._objectEnv.iconStyle.remove();this._objectEnv.iconStyle=$("<style> #"+this._id+".simple-right-menu-item-icon {width: "+b+"; height: "+b+";} </style>");this._div.prepend(this._objectEnv.iconStyle)},_onMenuClose:function(){var b=this;this._div.fadeOut(100,function(){var a=b._nodesMap,
e;for(e in a)a[e].nodesContainer&&a[e].nodesContainer.hide();$(b).trigger(j.onClose)})},_dropCloseTimeout:function(){this._objectEnv.timeIdLeave!=void 0&&clearTimeout(this._objectEnv.timeIdLeave)},_addNewNode:function(b,a,e,c){var d=$("<div>");d.data("id",b);var f=this._nodesMap,g=!0,i=this;this._traverseNodes(a,function(b,a){var h;b.id=b.id==void 0?i._generateUniqueId(f):b.id;if(f[b.id]!=void 0)return i._error("Error :: Detects duplicate ID in data"),g=!1;else{var e=b.enable===!1?"simple-right-menu-item-disable ":
"",c=(h=b.nodes!=void 0)&&b.nodes.length>0,k=b.icon?"simple-right-menu-icon-"+b.icon:"",e=b.separator?$("<tr class='simple-right-menu-item-separator'><td colspan='3'></td></tr>"):$("<tr class='"+e+"simple-right-menu-item "+(h?"simple-right-menu-folder":"simple-right-menu-child")+"'><td><span class='simple-right-menu-item-icon "+k+"'>&nbsp;</span></td><td><span class='simple-right-menu-title'>"+(b.title||"")+"</span></td><td><span class='simple-right-menu-expand "+(c?"simple-right-menu-has-child":
"")+"'>&nbsp;</span></td></tr>");(h=h?i._getNewContainerEl(b.id):void 0)&&h.hide();e.data({id:b.id});e.append($("<td>").append(h));b.userData=b.userData==void 0?{}:b.userData;f[b.id]={node:b,divs:e,nodesContainer:h,parentId:a.data("id")};a.append(e)}return h},d);g&&(c!=void 0&&c!=-1?(b=b==void 0?this._getFakeRootNode():this._getNodesMap(b),b.node.nodes.length>c?this._getNodesMap(b.node.nodes[c].id).divs.before(d.children()):e.append(d.children())):e.append(d.children()));return g},_getNewContainerEl:function(b){return $("<table class='simple-right-menu-container' style='display:none;'>").data("id",
b)},_generateUniqueId:function(b){for(var a=function(){for(var b="w",a=0;a<37;a++){var h=parseInt(37*Math.random());b+="abcdefghijklmnopqrstuvwxyz0123456789-".charAt(h)}return b},e;b&&b[e]||!e;)e=a();return e},traverseNodes:function(b,a){if(typeof b=="function")a=b,b=this._data;this._traverseNodes(b,a)},_traverseNodes:function(b,a,e){var c=b.nodes;$.isArray(b)?(c=b,b=e):b=a(b,e);if(c!=void 0&&b!==!1)for(var e=0,d=c.length;e<d;e++)this._traverseNodes(c[e],a,b)},_traverseParents:function(b,a){var e=
this.getParentNode(b);e!=void 0&&a(e)!=!1&&this._traverseParents(e.id,a)},_getNodesMap:function(b){return this._nodesMap[b]},_getFakeRootNode:function(){return $.isArray(this._data)?{node:{nodes:this._data},divs:$("<tr>"),nodesContainer:this._div,parentId:void 0}:this._getNodesMap(this._data.id)},addNode:function(b,a,e){typeof b!="string"&&(e=a,a=b,b=void 0);var c=typeof b!="string"?this._getFakeRootNode():this._getNodesMap(b),d=c.node,f=c.divs;if(d.nodes==void 0||d.nodes.length==0)d.nodes=[],f&&
f.addClass("simple-right-menu-folder").removeClass("simple-right-menu-child"),c.nodesContainer=c.nodesContainer?c.nodesContainer:this._getNewContainerEl(b),f&&f.children(":last").append(c.nodesContainer);if(this._addNewNode(b,a,c.nodesContainer,e)){if($.isArray(a)){if(a.length>0)d.nodes=d.nodes.concat(a)}else e!=void 0&&e!=-1?d.nodes.splice(e,0,a):d.nodes.push(a);d.nodes.length>0&&f&&f.children(":not(:last)").find(".simple-right-menu-expand").addClass("simple-right-menu-has-child");return a.id}},
moveNodeByPos:function(b,a,e,c){c.removeNode(b.id);return this.addNode(a,b,e)},removeNode:function(b){var a=this._getNodesMap(b),e=this;if(a){$(a.nodesContainer).empty().remove();a.divs.empty().remove();var c=a.parentId==void 0?this._getFakeRootNode():this._getNodesMap(a.parentId),d=c.node.nodes;if(d)for(var f=0,g=d.length;f<g;f++)if(d[f].id==b){this._traverseNodes(d[f],function(b){delete e._nodesMap[b.id]});d.splice(f,1);break}if(a.parentId!=void 0){if(d&&d.length==0)c.divs.children(":not(:last)").find(".simple-right-menu-expand").removeClass("simple-right-menu-has-child"),
c.nodesContainer.empty().remove(),c.nodesContainer=void 0}else $.isArray(this._data)||this._dropData()}else this._error("Error :: There are no node by ID = "+b)},removeChildren:function(b){if((b=this._getNodesMap(b))&&b.node.nodes!=void 0)for(var a=0,e=b.node.nodes.length;a<e;a++)this.removeNode(b.node.nodes[a].id)},getChildren:function(b){if((b=this._getNodesMap(b))&&b.node.nodes!=void 0)return b.node.nodes},_getEventElem:function(b){return $(b.originalEvent.target||b.originalEvent.srcElement)},
_getParentItemElement:function(b){return b.closest(".simple-right-menu-item")},_bindEvents:function(){$(this._contextDiv).unbind("contextmenu."+this._id).bind("contextmenu."+this._id,function(a){b.onContextMenu(a);return!1});var b=this;this._div.unbind("click dblclick contextmenu mouseover mouseenter mouseleave").bind("click",function(h){var e=b._getEventElem(h),e=b._getParentItemElement(e);e.length!=0&&(b._onSelect(e),$(a).trigger(j.onClick,[e.data("id")]));h.stopPropagation()}).bind("dblclick",
function(h){var e=b._getEventElem(h),e=b._getParentItemElement(e);e.length!=0&&$(a).trigger(j.onDblClick,[e.data("id")]);h.stopPropagation()}).bind("contextmenu",function(b){b.stopPropagation();b.preventDefault()}).bind("mouseover",function(a){var e=b._getEventElem(a),e=b._getParentItemElement(e),c=e.data("id");if(c!=void 0){b._dropCloseTimeout();var d=b._getNodesMap(c),g=b._getNodesMap(d.parentId),g=g==void 0?b._getFakeRootNode():g;if(g.node&&g.node.nodes)for(var g=g.node.nodes,i=0,m=g.length;i<
m;i++)if(c!=g[i].id&&g[i].separator!=!0){var j=b._getNodesMap(g[i].id);j.nodesContainer&&j.nodesContainer.is(":visible")&&j.nodesContainer.fadeOut(100)}if(d.nodesContainer)c=d.nodesContainer,d=$(f).height(),c.css({left:"",top:e.position().top}).fadeIn(100),b._fixPosition(d,c);a.stopPropagation();a.preventDefault()}}).bind("mouseleave",function(){b._dropCloseTimeout();b._objectEnv.timeIdLeave=setTimeout(function(){b._div&&b._onMenuClose()},1E3)}).bind("mouseenter",function(a){b._dropCloseTimeout();
a.stopPropagation();a.preventDefault()})},_onSelect:function(b,h){var e=b.data("id"),c=this._getNodesMap(e);if(c&&c.node.enable!==!1)typeof c.node.func=="function"&&c.node.func(),c=this._objectEnv.selectedNodeId,this._div.is(":visible")&&this._onMenuClose(),e=this._objectEnv.selectedNodeId=e,h!==!1&&$(a).trigger(j.onSelect,[e,c])},selectNode:function(b,a){var e=this._getNodesMap(b);e&&this._onSelect(e.divs,a)},isFolder:function(b){return(b=this._getNodesMap(b))&&b.node.nodes?!0:!1},getNode:function(b){return(b=
this._getNodesMap(b))?b.node:void 0},getParentNode:function(b){return(b=this._getNodesMap(b))?this.getNode(b.parentId):void 0},getParentNodeId:function(b){b=this.getParentNode(b);return b==void 0?void 0:b.id},setUserData:function(b,a,e){(b=this._getNodesMap(b))&&(b.node.userData[a]=e)},getUserData:function(b,a){var e=this._getNodesMap(b);return e?e.node.userData[a]:void 0},showNode:function(b){(b=this._getNodesMap(b))&&b.divs.show()},hideNode:function(b){(b=this._getNodesMap(b))&&b.divs.hide()},enableNode:function(b){if(b=
this._getNodesMap(b))b.divs.removeClass("simple-right-menu-item-disable"),b.node.enable=!0},disableNode:function(b){if(b=this._getNodesMap(b))b.divs.addClass("simple-right-menu-item-disable"),b.node.enable=!1},onContextMenu:function(b){var a=new jQuery.Event(j.onBeforeShow);b&&typeof b=="object"&&b.clientX&&b.clientY&&(this._objectEnv.pos={left:b.clientX-2,top:b.clientY-2});$(this).trigger(a,[b]);a.isPropagationStopped()||this.show()},show:function(b){var a=this,e=this._div,c=$(f).height();$(document.body).children("#"+
this._id).length==0&&$(document.body).append(e);b=b||this._objectEnv.pos;b=b==void 0?{left:0,top:0}:b;e.css({left:b.left-2,top:b.top-2}).fadeIn(100);this._dropCloseTimeout();this._objectEnv.timeIdLeave=setTimeout(function(){a._onMenuClose()},3E3);e.show();a._fixPosition(c,e,!0)},hide:function(){this._onMenuClose()},reDraw:function(){this.setData(this.getData());this._bindEvents()},base:function(){return this._div},_fixPosition:function(b,a,e){var c=a.height(),d=a.offset().top,f=parseInt(a.css("top")),
b=b<c+d?b-(c+d):0;a.css("top",(e?d+b:f+b)-5)},destroy:function(){this._dropCloseTimeout();if(this._data){var b=this._data.id;b!=void 0&&this.removeNode(b)}this._div&&this._div.unbind("click dblclick contextmenu mouseenter mouseleave click dblclick").empty().remove();if(this._contextDiv)this._contextDiv.unbind("contextmenu."+this._id),this._contextDiv=void 0;this._div=this._objectEnv=this._data=this._nodesMap=void 0;$(this).unbind()}};a._init(i,d,c);return a}j.onSelect="E#jqSimpleRightMenu#onSelect";
j.onBeforeShow="E#jqSimpleRightMenu#onBeforeShow";j.onClose="E#jqSimpleRightMenu#onClose";j.onClick="E#jqSimpleRightMenu#onClick";j.onDblClick="E#jqSimpleRightMenu#onDblClick";f.jqSimpleRightMenu=j})(window,window.console);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_RadioWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,{_widgetClass:"WiziCore_UI_RadioWidget",_input:null,_labelElement:null,_dataPropName:"checked",_valueDefaultPropName:"checked",_div:null,_group:null,init:function(){this._super.apply(this,arguments)},draw:function(){var a=f("<table style='width: 100%; height: "+this.height()+"; float:left; border-style:none; border-spacing:0px;'>");f.browser.msie&&a.css("border-collapse",
"collapse");var b=f("<td>").css({width:"1px","text-align":"center",padding:"2px 5px"}),h=f("<td>");a.append(f("<tr>").append(b,h));var e="radio_"+this.id(),c=f("<label>"),g=this._group!=null?f('<input type="radio" name="'+this._group+'"/>'):f('<input type="radio"/>');g.attr("id",e+"_input");c.append(g);a.bind("click",function(){var b=g.attr("disabled");if(!g.is(":checked")&&(b===i||b===!1))j._checked(!g.is(":checked")),g.change()});c.css({"vertical-align":"top"});this._labelElement=c;this._input=
g;b.append(g);h.append(c);this._div=a;this.base().prepend(a);this.base().css("overflow","hidden");var j=this;this._input.bind("change",function(){var b=f(this).attr("name");if(b!=i)f("input:radio[name="+b+"]").trigger(d.onCallByNames);else j.onChange()});this._input.bind(d.onCallByNames,function(){j.onChange()});this._super.apply(this,arguments)},_onInitLanguage:function(){this.label(this.label())},_onSTUpdated:function(){this._label(this._project.label)},initProps:function(){this._super();this.font=
this.themeProperty("font",this._font);this.label=this.htmlLngPropertyBeforeSet("label",this._beforeLabel,this._label);this.fontColor=this.themeProperty("fontColor",this._fontColor);this.bg=this.themeProperty("bgColor",this._bg);this.radioValue=this.htmlProperty("radioValue",this._radioValue);this.value=this.checked;this.opacity=this.themeProperty("opacity",this._opacity);this.verticalAlign=this.htmlProperty("verticalAlign",this._verticalAlign);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");this.tabindex=this.htmlProperty("tabindex",this._tabindex)},initDomState:function(){this._super();this.initDomStatePos();this._bg(this.bg());this._fontColor(this.fontColor());
this._font(this.font());this._label(this._project.label);this._checked(this.checked());this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._tabindex(this.tabindex());this._verticalAlign(this.verticalAlign())},applyDataFromRequest:function(a,b){if(a===!1&&b!=i&&b[1]!=i){var h=this.getMap(b);this.label(b[1][h.labeluid]);this.checked(b[1][h.valueuid]!==!1)}},onRemove:function(){this._div!=null&&this._div.unbind("click");this._input!=null&&(this._input.unbind("change"),
this._input.unbind(d.onCallByNames))},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},onChange:function(){var a=new f.Event(d.onChange),b=this.checked(),h=this._input.is(":checked");f(this).trigger(a,[h,b]);if(!a.isPropagationStopped())this._project.checked=h,this.sendDrillDown();return!a.isPropagationStopped()},group:function(a){this._group=a},_beforeLabel:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var b=WiziCore_Helper.isLngToken(a),
h=b?a:"ac-"+this.id();b||this.form().addTokenToStringTable(this.id(),this.name(),h,a);return h}else return a},_verticalAlign:function(a){this._div&&this.cssClassUpdate(this._div,"vertical-align-",!a||a=="center"?"middle":a)},_label:function(a){return this._labelElement.text(this.getTrValueAddLngAttr(a,this._labelElement))},_enable:function(a){this._super(a,this._input)},checked:function(a){var b=this.htmlProperyTemplate(this,i,this._checked,"checked",a,!1);a==i&&this._isDrawn&&b==i&&(b=this._checked());
return b},_checked:function(a){var b=this._input;a==!0||a=="checked"?b.attr("checked",!0):a==!1&&b.removeAttr("checked");return b.is(":checked")},_radioValue:function(a){return this._input.val(a)},_tabindex:function(a){this._super(a,this._input)},_tabStop:function(a){this._super(a,this._input)},_updateLayout:function(){this._super();this._div.height(this.height())},isBindableToData:function(){return!0}}));d.onChange="E#WiziCore_UI_RadioWidget#onChange";d.onCallByNames="E#WiziCore_UI_RadioWidget#onChangeCallByName";
d.inlineEditPropName=function(){return"label"};d.actions=function(){var a={onChange:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_RadioWidget.onChange",params:"newValue, oldValue",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"}},a=f.extend(AC.Widgets.Base.actions(),a);d.actions=function(){return a};return a};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.radioValue,AC.Property.general.checked]},{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.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]},{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.style,props:[AC.Property.behavior.opacity,AC.Property.style.font,AC.Property.style.fontColor,AC.Property.style.margin,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.verticalAlignCenter,AC.Property.style.customCssClasses,
AC.Property.style.widgetStyle]}];d.props=function(){return c};d.isField=function(){return!0};d.emptyProps=function(){return{bgColor:"",fontColor:"black",font:"normal 12px verdana"}};d.defaultProps=function(){return{pWidth:"",margin:"",alignInContainer:"left",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",x:"0",y:"0",width:"80",height:"16",zindex:"auto",label:"radio",enable:!0,checked:!0,opacity:1,dragAndDrop:!1,resizing:!1,radioValue:"radio",verticalAlign:"center",anchors:{left:!0,
top:!0,bottom:!1,right:!1},visible:!0,widgetStyle:"default",name:"radio1"}}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_CheckBoxWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationCheckbox,{_widgetClass:"WiziCore_UI_CheckBoxWidget",_input:null,_labelEl:null,_div:null,_dataPropName:"checked",_valueDefaultPropName:"checked",init:function(){this._super.apply(this,arguments)},draw:function(){var c=f("<table style='width: 100%; height: "+this.height()+"; float: left; border-style:none; border-spacing:0px;'>");jQuery.browser.msie&&c.css("border-collapse",
"collapse");var a=f("<td>").css({width:"1px","text-align":"center",padding:"2px 5px"}),b=f("<td>");c.append(f("<tr>").append(a,b));var h="checkbox_"+this.id();c.attr("id",h);var e=f('<input type="checkbox"/>'),k=this;e.attr("id",h+"_ch");h=f("<label>");c.bind("click",function(){var b=e.attr("disabled");if(b===i||b===!1)k._checked(!e.is(":checked")),e.change()});e.bind("click",function(b){b.stopPropagation()});this._input=e;this._labelEl=h;a.append(e);b.append(h);this._div=c;this.base().prepend(c);
this.base().css("overflow","hidden");this.bindEvent(d.onChange);this._super.apply(this,arguments)},_onSTUpdated:function(){this._label(this._project.label)},_onInitLanguage:function(){this.label(this.label())},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.isUnique=this.normalProperty("isUnique");this.mandatory=this.normalProperty("mandatory");this.font=this.themeProperty("font",this._font);this.label=this.htmlLngPropertyBeforeSet("label",
this._beforeLabel,this._label);this.fontColor=this.themeProperty("fontColor",this._fontColor);this.bg=this.themeProperty("bgColor",this._bg);this.value=this.checked=this.htmlProperty("checked",this._checked);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.verticalAlign=this.htmlProperty("verticalAlign",this._verticalAlign);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.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._fontColor(this.fontColor());this._font(this.font());this._label(this._project.label);
this._checked(this.checked());this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._tabindex(this.tabindex());this._verticalAlign(this.verticalAlign())},bindEvent:function(c){this._super(c);if(!(this._bindingEvents[c]>1||this.mode()==WiziCore_Visualizer.EDITOR_MODE)){var a=this;switch(c){case d.onChange:f(a._input).bind("change",{self:a},function(b){return a.onChange(b)})}}},unbindEvent:function(c,a){this._super(c,a);if(!(this._bindingEvents[c]>0&&a!=!0))switch(c){case d.onChange:f(this._input).unbind("change")}},
setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},_verticalAlign:function(c){this._div&&this.cssClassUpdate(this._div,"vertical-align-",!c||c=="center"?"middle":c)},_tabindex:function(c){this._super(c,this._input)},_tabStop:function(c){this._super(c,this._input)},onChange:function(c){var c=c.data.self,a=c.checked(),b=c._input.is(":checked"),h=new jQuery.Event(d.onChange);f(c).trigger(h,[b,a]);h.isPropagationStopped()||(c._project.checked=b);return!h.isPropagationStopped()},
onRemove:function(){this._div&&this._div.unbind("click");this._input&&this._input.unbind("click")},_beforeLabel:function(c){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var a=WiziCore_Helper.isLngToken(c),b=a?c:"ac-"+this.id();a||this.form().addTokenToStringTable(this.id(),this.name(),b,c);return b}else return c},_label:function(c){this._labelEl.text(this.getTrValueAddLngAttr(c,this._labelEl))},_enable:function(c){this._super(c,this._input)},_checked:function(c){var a=this._input;
c||c=="checked"?a.attr("checked",!0):c||a.removeAttr("checked");return a.is(":checked")},radioValue:function(c){return this._input.val(c)},calculateHeight:function(c){this._super(c);this._isDrawn&&this.height()},_updateLayout:function(){this._super();this._div.height(this.height());f.browser.msie&&this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute&&this.tableBase().css({"min-width":this.width(),width:""})},collectDataSchema:function(c){this._simpleConstDataSchema(AC.Widgets.WiziCore_Api_Form.Type.BOOLEAN,
c)},appendValueToDataObject:function(c,a,b){var h=this;return this._simpleDataObjectValue(c,b,function(b){if(h.mandatory()){var c=h._defaultValue==b;c&&(a[h.id()]=!0);b=c?null:b}return b})},isBindableToData:function(){return!0}}));d.onChange="E#CheckBox#onClick";d.actions=function(){var c={click:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_CheckBoxWidget.onChange",params:"newValue, oldValue",group:"widget_event_mouse"},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"}};return c=jQuery.extend(AC.Widgets.Base.actions(),c)};d._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.radioValue,AC.Property.general.checked]},
{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.isUnique,AC.Property.database.mandatory]},{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.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.style,props:[AC.Property.behavior.opacity,AC.Property.style.font,AC.Property.style.fontColor,AC.Property.style.margin,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.verticalAlignCenter,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return d._props};d.emptyProps=function(){return{bgColor:"",fontColor:"black",font:"normal 12px verdana"}};d.inlineEditPropName=
function(){return"label"};d.defaultProps=function(){return{pWidth:"",margin:"",alignInContainer:"left",x:"0",y:"0",width:"80",height:"16",zindex:"auto",label:"checkBox",enable:!0,checked:!1,radioValue:"checkBox",name:"checkbox1",verticalAlign:"center",anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",opacity:1,widgetStyle:"default",dragAndDrop:!1,resizing:!1,tabStop:!0}};d.isField=function(){return!0}})(jQuery,window,
document);
(function(f){var g=AC.Widgets.WiziCore_UI_LabelWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,WiziCore_Methods_Widget_ActionClick,{_labelDiv:null,_widgetClass:"WiziCore_UI_LabelWidget",_dataPropName:"label",init:function(){this._super.apply(this,arguments)},onClick:function(c){var a=new jQuery.Event(AC.Widgets.WiziCore_Widget_Base.onClick),b=this.pageJump(),h=this.form();acDebugger.systemLog("triggerEvent",a,"self.id()",this.id());f(this).trigger(a,[c]);!a.isPropagationStopped()&&
this.onActionClick(c,b,h)},draw:function(){this._link=f("<a></a>").css({"text-decoration":"none"});this._labelDiv=f("<div>").css({width:"100%",height:"100%"});this._link.append(this._labelDiv);this.base().prepend(this._link);this.mode()!=WiziCore_Visualizer.EDITOR_MODE?this.updateCursorByAction(!0):this._updateTextOverflow();this._super.apply(this,arguments)},_onSTUpdated:function(){this._label(this._project.label)},_onInitLanguage:function(){this.label(this.label())},_onLanguageChanged:function(){this._label(this._project.label)},
initProps:function(){this._super();var c=this;this.font=this.themeProperty("font",this._font);this.pageJump=this.normalProperty("pageJump");this.label=this.htmlLngPropertyBeforeSet("label",this._beforeLabel,this._label);this.htmlText=this.htmlLngPropertyBeforeSet("label",this._beforeLabel,this._label);this.value=this.label;this.link=this.normalProperty("link",this._updateLink);this.fontColor=this.themeProperty("fontColor",function(){c._fontColor.apply(c,arguments)});this.lineHeight=this.themeProperty("lineHeight",
this._lineHeight);this.letterSpacing=this.themeProperty("letterSpacing",this._letterSpacing);this.bg=this.themeProperty("bgColor",this._bg);this.hrefColor=this.themeProperty("hrefColor",this._hrefColor);this.paragraphSpacing=this.themeProperty("paragraphSpacing",this._paragraphSpacing);this.textShadow=this.themeProperty("textShadow",this._textShadow);this.opacity=this.themeProperty("opacity",this._opacity);this.textAlign=this.htmlProperty("textAlign",this._textAlign);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")},initDomState:function(){this._super();this.initDomStatePos();this._bg(this.bg());this._paragraphSpacing(this.paragraphSpacing());this._label(this._project.label);this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._font(this.font());
this._updateLink(this.link());this._fontColor(this.fontColor());this._lineHeight(this.lineHeight());this._letterSpacing(this.letterSpacing());this._textAlign(this.textAlign());this._textShadow(this.textShadow())},_updateLayout:function(){this._super();this._labelDiv.css("min-height",this.height());(!this.pWidth()||this.parent().getLayoutType()=="absolute")&&this.tableBase().css("width",this.width());this._updateTextOverflow()},_updateTextOverflow:function(){this._labelDiv&&(this.parent().getLayoutType()!=
"absolute"?this._labelDiv.css({overflow:"hidden","text-overflow":"ellipsis"}):this._labelDiv.css({overflow:"","text-overflow":""}))},_fontColor:function(c){this._super(c,this._labelDiv)},_textShadow:function(c){this.base().css({"text-shadow":c,"-moz-text-shadow":c,"-webkit-text-shadow":c,"-khtml-text-shadow":c,"-icab-text-shadow":c,"-o-text-shadow":c})},_textAlign:function(c){this._super(c,this._labelDiv)},_beforeLabel:function(c){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var a=
WiziCore_Helper.isLngToken(c),b=a?c:"ac-"+this.id();a||this.form().addTokenToStringTable(this.id(),this.name(),b,c);return b}else return c},_label:function(c){this._labelDiv&&(c=WiziCore_Helper.isLngToken(c)?this._getTranslatedValue(c):c,c===null&&(c=""),this._labelDiv.html(c),this._hrefColor(this.hrefColor()))},_enable:function(c){c===!1?this._labelDiv.addClass("ui-state-disabled"):this._labelDiv.removeClass("ui-state-disabled")},selectInlineProp:function(c){var a=c[0],c=c[1];return WiziCore_Helper.labelTextCheck(this[a]())==
this[c]()?a:c},_lineHeight:function(c){this._labelDiv.css("line-height",c==""?c:c+"px")},_letterSpacing:function(c){this._labelDiv.css("letter-spacing",c==""?c:c+"px")},getDataModel:function(){return this._labelDataModel()},isBindableToData:function(){return!0},appendValueToDataObject:function(c,a,b,h){return!h?void 0:this._simpleDataObjectValue(c,b)},isIncludedInSchema:function(){return!1}})),j=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,
AC.Property.general.labelText,AC.Property.general.htmlText,AC.Property.appearance.textAlign,AC.Property.general.autoSize,AC.Property.general.wrapping,AC.Property.general.link,AC.Property.general.pageJump]},{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.repeat,
AC.Property.layout.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,AC.Property.behavior.resizing,AC.Property.behavior.visible]},{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]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,
AC.Property.style.textShadow,AC.Property.style.hrefColor,AC.Property.style.paragraphSpacing,AC.Property.style.font,AC.Property.style.fontColor,AC.Property.style.margin,AC.Property.style.bgColor,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle,AC.Property.style.lineHeight,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.letterSpacing]}];g.props=function(){return j};var i={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"}},i=f.extend(AC.Widgets.Base.actions(),i);g.actions=function(){return i};var d={actions:g.actions(),defaultProps:{label:"Label ",width:70,height:15,x:"100",y:"50",zindex:"auto",pWidth:"",margin:"",anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,widgetStyle:"default",
opacity:1,name:"label1",alignInContainer:"left",textAlign:"Left",action:"none",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",relationId:null,addLink:"Add",dragAndDrop:!1,resizing:!1,target:"Same",textShadow:""},inlineEditPropName:{props:["label","htmlText"]},emptyProps:{bgColor:"",fontColor:"",font:"",letterSpacing:"",lineHeight:""},isField:!0,props:g.props(),containerType:AC.Widgets.Base.CASE_TYPE_ITEM};g.capabilities=function(){return d}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_TextAreaWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,AC.WidgetExt.Placeholder,{_widgetClass:"WiziCore_UI_TextAreaWidget",_input:null,_dataPropName:"text",_valueDefaultPropName:"text",_charsWidgets:null,init:function(){this._charsWidgets={};this._super.apply(this,arguments)},draw:function(){var a=f('<textarea class="textarea clear-input-border" style="width:100%; height:100%; outline: none; border: 0px"/>');
this.base().prepend(a);this._input=a;this.initCountCharsWidgets();f(a).bind("change.ta",{self:this},this.onChangeText);(this._bindingEvents[d.onKeyUp]==0||this._bindingEvents[d.onKeyUp]==i)&&this.bindEvent(d.onKeyUp);this._bindPlaceholderEvents(f(a));this._super.apply(this,arguments)},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.charsField=this.normalPropBeforeSet("charsField",this.getUidWidgetFromObjectChooser,this.initCountCharsWidgets);this.leftCharsField=this.normalPropBeforeSet("leftCharsField",this.getUidWidgetFromObjectChooser,this.initCountCharsWidgets);this.wordField=this.normalPropBeforeSet("wordField",this.getUidWidgetFromObjectChooser,this.initCountCharsWidgets);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=this.htmlProperty("text",this._text);this.opacity=this.themeProperty("opacity",this._opacity);this.readonly=this.htmlProperty("readonly",this._readonly);this.tabindex=this.htmlProperty("tabindex",this._tabindex);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._shadow(this.shadow());this._text(this.text());this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._updateReadonly();this._tabindex(this.tabindex());this._maxChars(this.maxChars());this._placeholderText(this._project.placeholderText)},_updateLayout:function(){this._super();this._input.height(this.height())},onContainerChangeLayout:function(){this.getContainerLayoutType()==
WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?this._input.width(this.width()):this._input.width("100%")},bindEvent:function(a){this._super(a);if(!(this._bindingEvents[a]>1||this.mode()==WiziCore_Visualizer.EDITOR_MODE))switch(a){case d.onKeyDown:f(this._input).bind("keydown",{self:this},this.onKeyDown);break;case d.onKeyUp:f(this._input).bind("keyup",{self:this},this.onKeyUp);break;case d.onKeyPress:f(this._input).bind("keypress",{self:this},this.onKeyPress);break;case d.onFocus:f(this._input).bind("focus",
{self:this},this.onFocus);break;case d.onBlur:f(this._input).bind("blur",{self:this},this.onBlur)}},unbindEvent:function(a,b){this._super(a,b);if(!(this._bindingEvents[a]>0&&b!=!0))switch(a){case d.onKeyDown:f(this._input).unbind("keydown",this.onKeyDown);break;case d.onKeyUp:f(this._input).unbind("keyup",this.onKeyUp);break;case d.onKeyPress:f(this._input).unbind("keypress",this.onKeyPress);break;case d.onFocus:f(this._input).unbind("focus",this.onFocus);break;case d.onBlur:f(this._input).unbind("blur",
this.onBlur)}},selectContents:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.select()},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},onFocus:function(a){var a=a.data.self,b=new jQuery.Event(d.onFocus);f(a).trigger(b)},onBlur:function(a){var a=a.data.self,b=new jQuery.Event(d.onBlur);f(a).trigger(b)},onKeyPress:function(a){var b=a.data.self,h=b._input.val(),e=new jQuery.Event(d.onKeyPress);f(b).trigger(e,[a],
h)},initCountCharsWidgets:function(){var a=this._charsWidgets,b=this.form();a.charsField=b.find(this.charsField());a.leftCharsField=b.find(this.leftCharsField());a.wordField=b.find(this.wordField())},setCountOfChars:function(){if(this._input!=null){var a=this._charsWidgets,b=a.charsField,h=this._input.val().length;b!=null&&b.setData(h+"");var b=a.leftCharsField,e=this.maxChars();b!=null&&e!=null&&b.setData(e-h+"");a=a.wordField;a!=null&&(h=this._input.val(),b=RegExp("[^\\s\\.,~`!@#$%^&*()+\\-=|\\\\'\\\";:\\?/<>\\[\\]\\{\\}]+",
"g"),h=h.match(b)!=null?h.match(b).length:0,a.setData(h+""))}},onKeyDown:function(a){var b=a.data.self,h=b._input.val(),e=new jQuery.Event(d.onKeyDown);f(b).trigger(e,[a,h])},onKeyUp:function(a){var b=a.data.self,h=b._input.val(),e=new jQuery.Event(d.onKeyUp);f(b).trigger(e,[a,h]);b.setCountOfChars()},onChangeText:function(a){var a=a.data.self,b=a._project.text,h=a._input.val(),e=new jQuery.Event(d.onChange);f(a).trigger(e,[h,b]);e.isPropagationStopped()?a._text(b):(a._project.text=h,a.sendDrillDown());
a._placeholderText(a._project.placeholderText)},_enable:function(a){this._super(a,this._input);a===!1?this._input.addClass("ui-state-disabled"):this._input.removeClass("ui-state-disabled")},_font:function(a){this._super(a,this._input)},_fontColor:function(a){this._super(a,this._input)},_tabindex:function(a){this._super(a,this._input)},_text:function(a){a===null&&(a="");a!==i&&(this._input.val(a),this._checkTextWithPlaceholder(a))},_readonly:function(a){this._super(a,this._input)},_maxChars:function(a){this._input.maxChars(a)},
_bg:function(a){this._super(a);this._super(a,this._input)},_borderRadius:function(a){this._super(a);this._super(a,this._input)},appendValueToDataObject:function(a,b,h){var e=this;return this._simpleDataObjectValue(a,h,function(a){if(e.mandatory()){var h=a=="";h&&(b[e.id()]=!0);a=h?null:a}return a})},getNewWidgetSize:function(){var a=this.base(),b=WiziCore_Helper.isFirefox(),h=a.width(),a=b?a.height():a.height()-3;return{width:h,height:a}},getDataModel:function(){return this._valueDataModel()},isBindableToData:function(){return!0}}));
d.inlineEditPropName=function(){return"text"};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.text,AC.Property.general.placeholderText]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,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,
AC.Property.behavior.maxChars,AC.Property.behavior.charsField,AC.Property.behavior.leftCharsField,AC.Property.behavior.wordField]},{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.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.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.onClick="ETextArea#onClick";d.onDbClick="ETextArea#onDbClick";d.onMouseDown="ETextArea#onMouseDown";d.onMouseUp="ETextArea#onMouseUp";
d.onMouseEnter="ETextArea#onMouseEnter";d.onMouseLeave="ETextArea#onMouseLeave";d.onKeyUp="ETextArea#onKeyUp";d.onKeyDown="ETextArea#onKeyDown";d.onKeyPress="ETextArea#onKeyPress";d.onChange="ETextArea#onChange";d.onFocus="ETextArea#onFocus";d.onBlur="ETextArea#onBlur";d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray"}};d.actions=function(){var a={keyup:{alias:"widget_event_onkeyup",funcview:"onKeyUp",action:"AC.Widgets.WiziCore_UI_TextAreaWidget.onKeyUp",
params:"keyev, value",group:"widget_event_key"},keydown:{alias:"widget_event_onkeydown",funcview:"onKeyDown",action:"AC.Widgets.WiziCore_UI_TextAreaWidget.onKeyDown",params:"keyev, value",group:"widget_event_key"},change:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_TextAreaWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"},onFocus:{alias:"widget_event_onfocus",funcview:"onFocus",action:"AC.Widgets.WiziCore_UI_TextAreaWidget.onFocus",params:"",
group:"widget_event_general"},onBlur:{alias:"widget_event_onblur",funcview:"onBlur",action:"AC.Widgets.WiziCore_UI_TextAreaWidget.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"}},a=jQuery.extend(AC.Widgets.Base.actions(),
a);d.actions=function(){return a};return a};d.defaultProps=function(){return{valName:"currText",text:"",x:"0",y:"0",width:"200",height:"70",pWidth:"",margin:"",alignInContainer:"left",zindex:"auto",readonly:!1,enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",visible:!0,opacity:1,widgetStyle:"default",name:"textArea1",dragAndDrop:!1,resizing:!1,tabStop:!0,placeholderText:"",shadow:"",boxSizing:"border-box"}};d.isField=
function(){return!0}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_ImgWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,WiziCore_Methods_Widget_ActionClick,{_widgetClass:"WiziCore_UI_ImgWidget",_image:null,_dataPropName:"img",_loading:null,_imgLoaded:!1,_mapArea:null,_divForNonIEBrowsers:null,_selectedAreasIndexes:null,_originImgSize:null,init:function(){this._selectedAreasIndexes=[];this._originImgSize={height:"100px",width:"100px",start:!0};this._super.apply(this,arguments);this._project.useMap=
this._project.useMap&&!!this._project.useMap},draw:function(){var b=this.base(),a="img_"+this.htmlId(),e=a+"_map";this._mapArea=f("<map name="+e+"><area shape='poly' coords='0,0,0,0'></map>");b.prepend();this._image=f("<img style='border:0;' usemap='#"+e+"'>");this._image.attr("id",a+"_image");this._link=f("<a style='display: block;text-decoration: none;'></a>");this._divForNonIEBrowsers=f("<div style='vertical-align:middle; display:table-cell;'></div>");this.pWidth()>0&&this._link.css("display",
"table");f.browser.msie?this._link.append(this._image,this._mapArea):(this._divForNonIEBrowsers.append(this._image,this._mapArea),this._link.append(this._divForNonIEBrowsers));b.prepend(this._link);this.bindAreas();b.css({"text-align":"center",overflow:"hidden"});this._loading=!1;this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.updateCursorByAction(!0);if(this._bindingEvents[AC.Widgets.Base.onClick]==0||this._bindingEvents[AC.Widgets.Base.onClick]==i)this.eventsHandles()[AC.Widgets.Base.onClick]=
AC.Widgets.Base.onClick,this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.bindEvent(AC.Widgets.Base.onClick);this._super.apply(this,arguments)},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.dataType=this.normalProperty("dataType");this.mandatory=this.normalProperty("mandatory");this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.image=
this.img=this.htmlLngPropertyBeforeSet("img",this._beforeImg,this._img);this.aspectRatio=this.htmlProperty("aspectRatio",this._updateImgSize);this.link=this.normalProperty("link",this._updateLink);this.pageJump=this.normalProperty("pageJump");this.boxSizing=this.themeProperty("boxSizing",this._updateImageBoxSizing);this.shadow=this.themeProperty("shadow",this._shadow);this.opacity=this.themeProperty("opacity",this._opacity);this.mapMultiSelect=this.htmlProperty("mapMultiSelect",this.fillMap);this.mapHighLight=
this.htmlProperty("mapHighLight",this.fillMap);this.mapHighLightColor=this.htmlProperty("mapHighLightColor",this.fillMap);this.mapHighLightOpacity=this.htmlProperty("mapHighLightOpacity",this.fillMap);this.mapHighLightOpacity=this.htmlProperty("mapHighLightOpacity",this.fillMap);this.mapOutline=this.htmlProperty("mapOutline",this.fillMap);this.mapOutlineWidth=this.htmlProperty("mapOutlineWidth",this.fillMap);this.mapOutlineColor=this.htmlProperty("mapOutlineColor",this.fillMap);this.mapOutlineOpacity=
this.htmlProperty("mapOutlineOpacity",this.fillMap);this.mapFade=this.htmlProperty("mapFade",this.fillMap);this.mapData=this.htmlProperty("mapData",function(){this.fillMap()});this.action=this.normalProperty("action");this.pageNum=this.normalProperty("pageNum");this.redirect=this.normalProperty("redirect");this.message=this.normalProperty("message");this.openUrl=this.normalProperty("openUrl");this.useMap=this.htmlProperty("useMap",this._useMap);this.aspectResize=this.htmlProperty("aspectResize",this._updateLayout);
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._updateEnable();
this._visible(this.visible());this._opacity(this.opacity());this._shadow(this.shadow());this._boxSizing(this.boxSizing());this._updateLayout();this._img(this._project.img,!0);this._borderRadius(this.borderRadius());this._border(this.border());this._updateLink(this.link())},_updateLayout:function(){this._super();this.checkResize();this.aspectRatio()=="aspect"&&this.aspectResize()&&this.relativeResize();this._updateImgSize();this._setPosEnableDiv()},_updateImageBoxSizing:function(b,a){this._boxSizing(b,
a);this._updateLayout()},relativeResize:function(){this._checkImgSize()},_checkImgSize:function(){if(this.aspectRatio()=="aspect"&&this.aspectResize()){this.checkResize();var b=this._divForNonIEBrowsers,a=this._link,e=this._image,c=e.height(),d=e.width(),f=this.tableBase().width(),g=this.tableBase().height(),i=g;if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE||f>0&&f<d&&i>0&&i<c||!(f==0||i==0)){var j=i/f,r=c&&d?c/d:this._resizeAspectRatio;if(this._resizeAspectRatio!=r&&c!=0&&d!=0&&!this._resizeAspectRatioImage)this._resizeAspectRatio=
this._resizeAspectRatioImage=r;c=this._resizeAspectRatioImage?this._resizeAspectRatioImage:r;!isNaN(c)&&!isNaN(j)&&c!=j&&(i=i*c/j);j=this.maxHeight();j>0&&i>j&&(i=j,this.border()&&this.boxSizing()=="border-box"&&(j=this.border(),j.indexOf("none")==-1&&(i-=2*parseInt(j))));i>g&&(i=g);f&&(a.height(g),b.height(g),e.height(i))}}},_updateImageMaintaintAspect:function(b,a,e,c,d){d.css({"max-height":a+"px","max-width":e+"px",height:"",width:"","vertical-align":""});b.css({width:e,height:a});c>0?(b.css({width:c+
"%","table-layout":""}),this._link.css({width:"100%",display:"table"}),this._divForNonIEBrowsers.css({width:"100%"}),d.css({"max-width":"100%"})):(this.border()&&this.boxSizing()=="border-box"&&(c=this.border(),c.indexOf("none")==-1&&(e-=2*parseInt(c))),b.css({width:e,height:a,"table-layout":""}),this._link.css({width:e,height:a,"table-layout":""}));this.aspectResize()&&d.css({height:a,"max-height":""});this._checkImgSize()},_updateImageFitAspect:function(b,a,e,c,d){f.browser.msie?d.css({height:a,
width:e,"max-height":"","max-width":""}):!c||c==""?d.css({height:a,width:e,"max-height":"","max-width":""}):d.css({height:"100%",width:"100%","max-height":"","max-width":""});d.css({"vertical-align":""});c>0?(b.css({width:c+"%",height:a,"table-layout":""}),this._divForNonIEBrowsers.css({width:"100%",display:""}),this._link.css({width:"100%",display:"block"})):(d.css({height:a,width:e}),b.css({width:e,height:a,"table-layout":""}),this._link.css({width:e,height:a,"table-layout":""}))},_updateImageOriginalAspect:function(b,
a,e,c){c.css({height:"",width:"","max-height":"","max-width":"","vertical-align":"top"});b.css({"min-width":e,"min-height":a,"table-layout":""});this._link.css({"min-width":c.width(),"min-height":c.height(),width:"100%",display:"table",height:"","table-layout":""})},_updateImgSize:function(b){var a=this.tableBase(),e=this.height(),c=this.width(),d=this.pWidth(),g=this._image,b=b?b:this.aspectRatio();this._link.css({width:c,height:e,display:"block"});this._divForNonIEBrowsers.css({width:c,height:e,
display:"table-cell"});switch(b){case "aspect":this._updateImageMaintaintAspect(a,e,c,d,g);break;case "fit":this.border()&&this.boxSizing()=="border-box"&&(b=this.border(),b.indexOf("none")==-1&&(c-=2*parseInt(b),e-=2*parseInt(b),this._divForNonIEBrowsers.css({width:c,height:e,display:"table-cell"})));this._updateImageFitAspect(a,e,c,d,g);break;case "origin":this._updateImageOriginalAspect(a,e,c,g)}f.browser.msie&&(a.css("table-layout","fixed"),this._link.css("table-layout","fixed"))},onResize:function(){var b=
this.base().width(),a=this.base().height(),e=this.aspectRatio();this.pWidth()>0&&(b="100%");e=="aspect"?this._image.css({"max-height":a,"max-width":b,height:"",width:""}):e=="fit"&&this._image.css({width:b,height:a});this._link.css({width:b,height:a});this._divForNonIEBrowsers.css({width:b,height:a})},onPageDrawn:function(){this._selectedAreasIndexes&&f.isArray(this._selectedAreasIndexes)&&this._selectedAreasIndexes.length>0&&this.selectAreasByValues(this._selectedAreasIndexes)},_useMap:function(b){b?
this.fillMap():(this.eventsHandles()[d.onAreaClick]>0&&delete this.eventsHandles()[d.onAreaClick],this.eventsHandles()[d.OnAreaMouseEnter]>0&&delete this.eventsHandles()[d.OnAreaMouseEnter],this.eventsHandles()[d.OnAreaMouseLeave]>0&&delete this.eventsHandles()[d.OnAreaMouseLeave],this._mapArea.empty(),this._image.maphilight("destroy"))},_borderRadius:function(b,a){this._super.apply(this,arguments);this._setElementBorderRadius(b,this._image)},_enable:function(b){this.showEnableDiv(b)},onClick:function(b){var a=
new jQuery.Event(AC.Widgets.Base.onClick),e=this.pageJump(),c=this.form();acDebugger.systemLog("triggerEvent",a,"self.id()",this.id());f(this).trigger(a,[b]);!a.isPropagationStopped()&&this.onActionClick(b,e,c);b.stopPropagation()},fillMapAreas:function(){var b=this._mapArea;b.empty();if(this.useMap()&&!(this.mode()!=WiziCore_Visualizer.RUN_MODE||this.enable()===!1)){var a=this.mapData();if(a!=i&&a.rows!=i)for(var e in a.rows){var c=a.rows[e],c=f("<area>").attr({shape:c.data[0],coords:c.data[1],title:c.data[2],
value:c.data[2],"data-index":c.id});b.append(c)}}},fillMap:function(){var b=this.mapData();this._image.maphilight("destroy");this.fillMapAreas();if(this.useMap()&&!(b==null||this.enable()===!1||this.mode()!=WiziCore_Visualizer.RUN_MODE)){if(this.eventsHandles()[d.onAreaClick]==i)this.eventsHandles()[d.onAreaClick]=d.onAreaClick;if(this.eventsHandles()[d.OnAreaMouseEnter]==i)this.eventsHandles()[d.OnAreaMouseEnter]=d.OnAreaMouseEnter;if(this.eventsHandles()[d.OnAreaMouseLeave]==i)this.eventsHandles()[d.OnAreaMouseLeave]=
d.OnAreaMouseLeave;var b=this.mapHighLightColor(),a=this.mapHighLightOpacity(),e=this.mapOutlineWidth(),c=this.mapOutlineColor(),f=this.mapOutlineOpacity(),g=this.mapHighLight(),j=this.mapOutline(),m=this.mapFade();this._image.maphilight({fill:g,stroke:j,fade:m,fillColor:b!=null&&b!=""?b.substr(1):"000000",fillOpacity:a!=null&&a!=""?a:0.2,strokeColor:c!=null&&c!=""?c.substr(1):"ff0000",strokeOpacity:f!=null&&f!=""?f:1,strokeWidth:e!=null&&e!=""?e:1});this._image.css("display","inline")}},bindAreas:function(){if(this.mode()!=
WiziCore_Visualizer.EDITOR_MODE){var b=this;this.eventsHandles()[d.onAreaClick]!==i&&this._mapArea.unbind("vclick.custom").bind("vclick.custom",function(a){if(a.target&&a.target.tagName.toLowerCase()=="area")b.onAreaClick(a)});this.eventsHandles()[d.OnAreaMouseEnter]!==i&&this._mapArea.unbind("mouseenter.custom").bind("mouseenter.custom",function(a){if(a.target&&a.target.tagName.toLowerCase()=="area")b.onMouseOverArea(a)});this.eventsHandles()[d.OnAreaMouseLeave]!==i&&this._mapArea.unbind("mouseleave.custom").bind("mouseleave.custom",
function(a){if(a.target&&a.target.tagName.toLowerCase()=="area")b.onMouseLeaveArea(a)})}},getDataFromAreaEvent:function(b,a){var c=this,d=f(b.target),g=f(d).attr("data-index"),j=c.mapData(),p="";if(j!=null){var m=c._mapArea;if(c.mapMultiSelect()){if(a){p=[];g=[];c._selectedAreasIndexes=[];var l=d.data("maphilight")||{};l.alwaysOn=!l.alwaysOn;d.data("maphilight",l);m.find("area").each(function(b,a){var a=f(a),h=a.data("maphilight"),d=a.attr("value"),j=a.attr("data-index");h!=i&&h.alwaysOn&&(g.push(j),
c._selectedAreasIndexes.push(d))})}for(var r in j.rows){var d=j.rows[r],s;for(s in g)d.id==g[s]&&(a?p.push(d.data[2]):p=d.data[2])}}else{var q=f(d).attr("data-index");m.find("area").each(function(b,d){var d=f(d),i=d.data("maphilight")||{},j=d.attr("data-index"),k=d.attr("value");if(a&&(i.alwaysOn=q==j,f(d).data("maphilight",i),i.alwaysOn))g=j,c._selectedAreasIndexes=[k]});for(r in j.rows)if(d=j.rows[r],d.id==g){p=d.data[2];break}}}return{mapData:j,ids:g,value:p}},onAreaClick:function(b){var a=this.getDataFromAreaEvent(b,
!0);a.mapData!=null&&this._mapArea.trigger("alwaysOn.maphilight");var c=new jQuery.Event(d.onAreaClick);acDebugger.systemLog("triggerEvent",c,"self.id()",this.id());f(this).trigger(c,[b,a.ids,a.value]);this.sendDrillDown()},onMouseOverArea:function(b){var a=this.getDataFromAreaEvent(b),c=new jQuery.Event(d.OnAreaMouseEnter);acDebugger.systemLog("triggerEvent",c,"self.id()",this.id());f(this).trigger(c,[b,a.ids,a.value])},onMouseLeaveArea:function(b){var a=this.getDataFromAreaEvent(b),c=new jQuery.Event(d.OnAreaMouseLeave);
acDebugger.systemLog("triggerEvent",c,"self.id()",this.id());f(this).trigger(c,[b,a.ids,a.value])},resetValue:function(){this._selectedAreasIndexes=[];this.selectAreasByValues([])},selectAreasByValues:function(b){jQuery.isArray(b)||(b=[b]);var a=this,c=this._mapArea;a.mapMultiSelect()!==!0&&(b=[b[0]]);a._selectedAreasIndexes=b;if(c!=null&&this._isDrawn)a._selectedAreasIndexes=[],c.find("area").each(function(c,e){var d=f(e),g=d.attr("value"),i=d.data("maphilight")||{};i.alwaysOn=!1;d.data("maphilight",
i);if(WiziCore_Helper.inArray(g,b))i.alwaysOn=!0,d.data("maphilight",i),a._selectedAreasIndexes.push(g)}),c.trigger("alwaysOn.maphilight");return a._selectedAreasIndexes},_beforeImg:function(b){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var a=WiziCore_Helper.isLngToken(b),c=a?b:"ac-"+this.id();a||this.form().addTokenToStringTable(this.id(),this.name(),c,b);return c}else return b},_onInitLanguage:function(){this.img(this.img())},_onSTUpdated:function(){this._onLanguageChanged()},
_onLanguageChanged:function(){this._img(this._project.img)},_img:function(b){if(this._image){var b=WiziCore_Helper.isLngToken(b)?this._getTranslatedValue(b):b,a=this._image,c=this;c.useMap()&&this._image.maphilight("destroy");this._updateImgSize();b!=null&&b!=""?(this.base().hasClass("wiziNoImage")&&this.base().removeClass("wiziNoImage"),a.attr("src",b).show(),c.useMap()&&c.fillMap()):(c.mode()==WiziCore_Visualizer.EDITOR_MODE&&this.base().addClass("wiziNoImage"),a.attr("src",null).hide());this._updateLayout();
this.aspectRatio()=="aspect"&&c.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(a.unbind("load.custom"),a.bind("load.custom",function(){c._resizeAspectRatioImage=i;c._resizeAspectRatio=i;a.css("height","");c._checkImgSize();c._image.unbind("load.custom")}))}},_aspectRatio:function(b){this.img()!=""&&this.img()!=i&&this._updateImgSize(b)},value:function(b){if(this.useMap())return b!==i&&this.selectAreasByValues(b),this._selectedAreasIndexes;else if(b!==i)this.img(b);else return this.img()},getDataModel:function(){return[{name:"src",
value:"",uid:"srcuid"}]},appendValueToDataObject:function(b,a,c){var d=this;return this._simpleDataObjectValue(b,c,function(b){if(d.mandatory()){var c=b=="";c&&(a[d.id()]=!0);b=c?null:b}return b})},isBindableToData:function(){return!0}}));d.onAreaClick="E#Img#onAreaClick";d.OnAreaMouseEnter="E#Img#OnAreaMouseEnter";d.OnAreaMouseLeave="E#Img#OnAreaMouseLeave";d.actions=function(){var b={onAreaClick:{alias:"widget_event_onareaclick",funcview:"onAreaClick",action:"AC.Widgets.WiziCore_UI_ImgWidget.onAreaClick",
params:"ev, id, value",group:"widget_event_mouse"},OnAreaMouseEnter:{alias:"widget_event_onareaover",funcview:"OnAreaMouseEnter",action:"AC.Widgets.WiziCore_UI_ImgWidget.OnAreaMouseEnter",params:"ev, id, value",group:"widget_event_mouse"},OnAreaMouseLeave:{alias:"widget_event_onarealeave",funcview:"OnAreaMouseLeave",action:"AC.Widgets.WiziCore_UI_ImgWidget.OnAreaMouseLeave",params:"ev, id, value",group:"widget_event_mouse"},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"}};return b=jQuery.extend(AC.Widgets.Base.actions(),b)};d.inlineEditPropName=function(){return"img"};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.aspectRatio,AC.Property.general.img,AC.Property.general.image,AC.Property.general.link,
AC.Property.general.pageJump]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,AC.Property.database.mandatory]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.aspectResize,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.repeat,AC.Property.layout.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer]},{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.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.imagemap,props:[AC.Property.imagemap.useMap,AC.Property.imagemap.mapData,AC.Property.imagemap.mapMultiSelect,AC.Property.imagemap.mapHighLight,AC.Property.imagemap.mapHighLightColor,AC.Property.imagemap.mapHighLightOpacity,AC.Property.imagemap.mapOutline,AC.Property.imagemap.mapOutlineWidth,AC.Property.imagemap.mapOutlineColor,AC.Property.imagemap.mapOutlineOpacity,AC.Property.imagemap.mapFade]},{name:AC.Property.group_names.style,
props:[AC.Property.behavior.opacity,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.margin,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.shadow,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.emptyProps=function(){return{border:""}};var a={x:"0",y:"0",width:"100",height:"100",zindex:"auto",enable:!0,img:null,anchors:{left:!0,top:!0,bottom:!1,right:!1},
visible:!0,name:"image1",aspectRatio:"aspect",action:"none",pageNum:1,widgetStyle:"default",relationId:null,addLink:"Add",target:"Same",hourglassImage:"Default",aspectResize:!1,displayHourglassOver:"inherit",customCssClasses:"",useMap:!1,mapFade:!0,mapOutline:!0,mapHighLight:!0,dragAndDrop:!1,resizing:!1,margin:"",alignInContainer:"left",opacity:1,shadow:"",boxSizing:"border-box"};d.defaultProps=function(){return a};d.isField=function(){return!0}})(jQuery,window,document);
(function(f,g,j,i){var j=AC.Widgets.WiziCore_UI_ImgQrCodeWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,WiziCore_Methods_Widget_ActionClick,{_widgetClass:"WiziCore_UI_ImgQrCodeWidget",_image:null,_div:null,_url:null,_dataPropName:"text",init:function(){this._originImgSize={height:"100px",width:"100px",start:!0};this._super.apply(this,arguments)},draw:function(){var b=this,a="img_"+this.htmlId();this._image=f("<img style=' border:0; align: center; top: 0px'>");
this._image.attr("id",a+"_image");this._link=f("<div  style='overflow:hidden; word-wrap: break-word; align: center; bottom: 0px'><a href='#'>link</a>");this.base().append(this._image).append(this._link);this._link.find("a").attr("data-ajax",!1);this.mode()==WiziCore_Visualizer.RUN_MODE&&(f(this._image).bind("vclick.custom",{self:this},function(a){b.onClick(a)}),this._link.find("a").bind("vclick.custom",{self:this},function(a){b.onClick(a)}).bind("click vclick",function(b){b.preventDefault()}));if(this._bindingEvents[AC.Widgets.Base.onClick]==
0||this._bindingEvents[AC.Widgets.Base.onClick]==i)this.eventsHandles()[AC.Widgets.Base.onClick]=AC.Widgets.Base.onClick,this.mode()==WiziCore_Visualizer.RUN_MODE&&this.bindEvent(AC.Widgets.Base.onClick);this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.updateCursorByAction(!0);this._super.apply(this,arguments)},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.font=this.themeProperty("font",this._font);this.hrefColor=
this.themeProperty("hrefColor",this._hrefColor);this.dataType=this.normalProperty("dataType");this.mandatory=this.normalProperty("mandatory");this.shadow=this.themeProperty("shadow",this._shadow);this.border=this.themeProperty("border",this._border);this.text=this.htmlLngPropertyBeforeSet("text",this._beforeText,this._checkShortUrl);this.formId=this.htmlLngPropertyBeforeSet("formId",this._beforeFormId,this._checkShortUrl);this.opacity=this.themeProperty("opacity",this._opacity);this.textAlign=this.htmlProperty("textAlign",
this._textAlign);this.showUrl=this.htmlProperty("showUrl",this._showUrl);this.urlMargin=this.htmlProperty("urlMargin",this._urlMargin);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")},_beforeFormId:function(b){return this._beforeLngProp(b,"formid")},_beforeLngProp:function(b,a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var c=WiziCore_Helper.isLngToken(b),d=c?b:"ac-"+this.id()+"_"+a;c||this.form().addTokenToStringTable(this.id(),this.name(),d,b);return d}else return b},_onInitLanguage:function(){this.text(this.text());this.formId(this.formId())},_onSTUpdated:function(){this._onLanguageChanged()},_onLanguageChanged:function(){this._checkShortUrl()},
_getPath:function(){var e;var b,a=this._project.formId;b=WiziCore_Helper.isLngToken(a)?this._getTranslatedValue(a,!0):a;a=a&&WiziCore_Helper.isLngToken(b);e=b&&!a?(a=this.context().forms().forms()[b])?a.getLiveUrl():this.context().config().clientApi()+"live.php?formId="+b:this._project.text,b=e;return b},_showUrl:function(b){var a=this.height(),c=this.width(),d=this._link;b==i||b==!0?(d.show(),d.css("height",""),b=d.height(),a-=b!=0?b:16):d.hide();this._image.css({width:c,"max-width":c,height:a})},
_urlMargin:function(b){this._link.css({margin:b});b=this._link;this._link.css({height:b.height()+parseInt(b.css("margin-top"))+parseInt(b.css("margin-bottom"))+"px"});this._showUrl(this.showUrl())},_checkShortUrl:function(){function b(b){f=c.text();c.formId()||(f=b)}var a=this._getPath(),a=WiziCore_Helper.isLngToken(a)?this._getTranslatedValue(a):a;if(a=="%SetCurrentAppQRCode%"||a=="")a=this._getCurrentAppQrCode();a&&a.indexOf("://")==-1&&(a=a.indexOf(".")==-1?this.context().config().clientApi()+
a:"http://"+a);this._url=a;var c=this,d=this._url,f=d;b(d);d.match(/\/\/acft\.ws\//gi)!=null||d.match(/\/\/qcrd\.co\//gi)!=null?this._setText(d,f):this.context().webClient().httpRequest("http://acft.ws/","GET",function(a,h){if(h===!1){var g=a.url;g!=i&&g!=""&&(b(g),c._setText(g,f))}else c._setText(d,f)},{json:"true",url:d},"json")},initDomState:function(){this._super();this.initDomStatePos();this._visible(this.visible());this._opacity(this.opacity());this._shadow(this.shadow());this._updateLayout();
this._checkShortUrl();this._border(this.border());this._font(this.font());this._urlMargin(this.urlMargin());this._textAlign(this.textAlign());this._updateEnable()},onPageDrawn:function(){this._showUrl(this.showUrl())},_updateLayout:function(){this._super();this._showUrl(this.showUrl())},_enable:function(b){b===!1?(this.base().addClass("ui-state-disabled"),this._link&&this._link.find("a").addClass("wa-disable-cursor")):(this.base().removeClass("ui-state-disabled"),this._link&&this._link.find("a").removeClass("wa-disable-cursor"));
this.updateCursorByAction(b===!0)},onClick:function(b){if(!(this.enable()===!1||this._isParentEnable()===!1)){var a=new jQuery.Event(AC.Widgets.Base.onClick);f(this).trigger(a,[b]);a.isPropagationStopped()||g.open(this._url);b.stopPropagation()}},_beforeText:function(b){return this._beforeLngProp(b,"text")},_setText:function(b,a){function c(){d._link.find("a").html(a).attr("href",b);d._hrefColor(d.hrefColor());var e=d.width();b="https://chart.googleapis.com/chart?chs="+e+"x"+(e-d._link.height())+
"&cht=qr&chl="+b+"&choe=UTF-8&chld=Q|0";d._image.attr("src",b)}var d=this;this.base();a=a==i?b:a;this._timeout&&clearTimeout(d._timeout);d.base().is(":visible")?c():this._timeout=setTimeout(function(){d.base().is(":visible")&&d.form()&&!d.form().isDestroyed()&&(c(),clearTimeout(d._timeout))},200)},_textAlign:function(a){var c=this._link;a!=i&&c.attr("align",a==="Center"?"middle":a==="Left"?"left":a==="Right"?"right":a)},_getCurrentAppQrCode:function(){var a=this.form().shortUrl();return a!=i&&a!=
""?a:this.form().getLiveUrl()},isBindableToData:function(){return!0},getDataModel:function(){return[{name:"src",value:"",uid:"srcuid"}]}})),d=AC.Widgets.Base.actions();j.actions=function(){return d};j.inlineEditPropName=function(){return"text"};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.text,AC.Property.general.formId,AC.Property.general.showUrl,AC.Property.general.urlMargin,AC.Property.style.textAlign]},{name:AC.Property.group_names.database,
props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,AC.Property.database.mandatory]},{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.repeat,AC.Property.layout.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer]},
{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.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.style,
props:[AC.Property.behavior.opacity,AC.Property.style.shadow,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.margin,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.font,AC.Property.style.hrefColor,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];j.props=function(){return c};j.emptyProps=function(){return{border:""}};var a={x:"0",y:"0",width:"200",height:"200",zindex:"auto",enable:!0,img:null,anchors:{left:!0,top:!0,
bottom:!1,right:!1},visible:!0,name:"QrCodeImg1",widgetStyle:"default",relationId:null,margin:"",alignInContainer:"left",urlMargin:"",opacity:1,customCssClasses:"",dragAndDrop:!1,resizing:!1,text:"%SetCurrentAppQRCode%",shadow:"",showUrl:!0,textAlign:"Center",boxSizing:"border-box"};j.defaultProps=function(){return a};j.isField=function(){return!0}})(jQuery,window,document);
(function(f){var g=AC.Widgets.WiziCore_UI_ShapeWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_Methods_Widget_ActionClick,{_widgetClass:"WiziCore_UI_ShapeWidget",_div:null,_dataPropName:"label",init:function(){this._super.apply(this,arguments)},draw:function(){this.object();this._div=f("<table><tr><td></td></tr></table>").css({width:"100%",height:"100%","float":"left","text-align":"center",border:"0px"});this.base().prepend(this._div);this._updateEnable();this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&
this.updateCursorByAction(!0);this._super.apply(this,arguments)},onClick:function(g){var d=new jQuery.Event(AC.Widgets.WiziCore_Widget_Base.onClick),c=this.pageJump(),a=this.form();acDebugger.systemLog("triggerEvent",d,"self.id()",this.id());f(this).trigger(d,[g]);!d.isPropagationStopped()&&this.onActionClick(g,c,a);g.stopPropagation()},_onInitLanguage:function(){this.label(this.label())},_onSTUpdated:function(){this._label(this._project.label)},initProps:function(){this._super();this.font=this.themeProperty("font",
this._font);this.fontColor=this.themeProperty("fontColor",this._fontColor);this.pageJump=this.normalProperty("pageJump");this.value=this.label=this.htmlLngPropertyBeforeSet("label",this._beforeLabel,this._label);this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.bg=this.themeProperty("bgColor",this._bg);this.shadow=this.themeProperty("shadow",this._shadow);this.opacity=this.themeProperty("opacity",this._opacity);this.enable=
this.htmlProperty("enable",this._enable)},initDomState:function(){this._super();this.initDomStatePos();this._label(this._project.label);this._shadow(this.shadow());this._bg(this.bg());this._border(this.border());this._borderRadius(this.borderRadius());this._font(this.font());this._fontColor(this.fontColor());this._updateEnable();this._visible(this.visible());this._opacity(this.opacity())},_updateLayout:function(){this._super();this._div.height(this.height());this.base().css("overflow","hidden")},
_enable:function(f){f===!1?this._div.addClass("ui-state-disabled"):this._div.removeClass("ui-state-disabled");this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.updateCursorByAction(f===!0)},_bg:function(f){this._super(f);this._super(f,this._div)},_beforeLabel:function(f){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var d=WiziCore_Helper.isLngToken(f),c=d?f:"ac-"+this.id();d||this.form().addTokenToStringTable(this.id(),this.name(),c,f);return c}else return f},_label:function(f){f=
this.getTrValueAddLngAttr(f,this._div.find("td"));f===null&&(f="");this._div.find("td").html(f)},_border:function(f){this._super(f,this._boxDiv)},_borderRadius:function(f){this._super(f);this._super(f,this._div)}})),j=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.pageJump]},{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]},{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.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];g.props=function(){return j};g.actions=function(){var i={},i=f.extend(AC.Widgets.Base.actions(),i);g.actions=function(){return i};return i};g.emptyProps=function(){return{border:"1px solid #000000"}};
g.inlineEditPropName=function(){return"label"};g.resizeProperties=function(){return{}};g.defaultProps=function(){return{width:100,height:70,x:"100",y:"50",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,dragAndDrop:!1,resizing:!1,shadow:"",displayHourglassOver:"inherit",customCssClasses:"",widgetStyle:"default",opacity:1,name:"shape1",pWidth:"",margin:"",alignInContainer:"left",hourglassImage:"Default",boxSizing:"border-box"}}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_NextButtonWidget=AC.Widgets.WiziCore_UI_ButtonWidget.extend(f.extend({},WiziCore_Methods_Widget_ActionClick,{_widgetClass:"WiziCore_UI_NextButtonWidget",_dataPropName:"label",init:function(){this._super.apply(this,arguments)},onClick:function(a){var b=new jQuery.Event(AC.Widgets.WiziCore_Widget_Base.onClick),c=this.pageJump(),e=this.form();acDebugger.systemLog("triggerEvent",b,"self.id()",this.id());f(this).trigger(b,[a]);!b.isPropagationStopped()&&
this.onActionClick(a,c,e);a.stopPropagation()},draw:function(){if(this._bindingEvents[AC.Widgets.Base.onClick]==0||this._bindingEvents[AC.Widgets.Base.onClick]==i)this.object().eventsHandles()[AC.Widgets.Base.onClick]=AC.Widgets.Base.onClick,this.mode()==WiziCore_Visualizer.RUN_MODE&&this.bindEvent(AC.Widgets.Base.onClick);this._super.apply(this,arguments)}}));d.inlineEditPropName=function(){return"label"};d.actions=function(){var a=AC.Widgets.Base.actions(),a=f.extend(!0,{},a);d.actions=function(){return a};
return a};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.link,AC.Property.general.pageJump]},{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.boxSizing,AC.Property.style.border,
AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0"}};d.defaultProps=function(){var a={x:"0",y:"0",width:"80",height:"26",zindex:"auto",label:"Button",enable:!0,anchors:{left:!0,top:!0,bottom:!1,
right:!1},name:"actionBtn1",visible:!0,widgetStyle:"default",opacity:1,pWidth:"",margin:"",alignInContainer:"left",tabStop:!0,hourglassImage:"Default",dragAndDrop:!1,resizing:!1,shadow:"",displayHourglassOver:"inherit",customCssClasses:"",isField:!1,boxSizing:"border-box"};d.defaultProps=function(){return a};return a}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_ResetButtonWidget=AC.Widgets.WiziCore_UI_ButtonWidget.extend({_widgetClass:"WiziCore_UI_ResetButtonWidget",_pageNum:null,_viewId:null,_dataPropName:"label",init:function(){this._super.apply(this,arguments)},draw:function(){this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&f(this._input).bind("vclick.custom",{self:this},this.onClick);this._super.apply(this,arguments)},initProps:function(){this._super();this.action=this.normalProperty("action");this.viewId=
this.normalProperty("viewId")},onDestroy:function(){f(this._input).unbind("click.custom")},onClick:function(a){var b=new jQuery.Event(AC.Widgets.Base.onClick);f(this.object()).trigger(b,[a]);b=this.viewId();if(b!=i){var c=this.prop("action");c=="Reload"||c=="reload"?this.form().reloadView(b):this.form().resetView(b)}a.stopPropagation()}});d.inlineEditPropName=function(){return"label"};d.actions=function(){var a={},a=f.extend(AC.Widgets.Base.actions(),a);d.actions=function(){return a};return a};var c=
[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.resetBtnAction,AC.Property.general.view]},{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.boxSizing,AC.Property.style.border,
AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0"}};d.isField=function(){return!1};d.defaultProps=function(){return{x:"0",y:"0",width:"80",height:"26",zindex:"auto",label:"Button",enable:!0,
visible:!0,opacity:1,anchors:{left:!0,top:!0,bottom:!1,right:!1},name:"actionBtn1",shadow:"",widgetStyle:"default",pWidth:"",margin:"",alignInContainer:"left",tabStop:!0,hourglassImage:"Default",dragAndDrop:!1,resizing:!1,displayHourglassOver:"inherit",customCssClasses:"",action:"reset",boxSizing:"border-box"}}})(jQuery,window,document);
(function(f){var g=AC.Widgets.WiziCore_UI_TextANumWidget=AC.Widgets.WiziCore_UI_TextWidget.extend({_widgetClass:"WiziCore_UI_TextANumWidget",init:function(){this._super.apply(this,arguments)}});g.inlineEditPropName=function(){return"text"};var j=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.text,AC.Property.general.typefield]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,
AC.Property.database.isUnique,AC.Property.database.mandatory]},{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.tabindex,AC.Property.layout.tabStop,AC.Property.layout.zindex,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:[]},
{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.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];g.props=function(){return j};g.actions=function(){var i={},i=f.extend(AC.Widgets.WiziCore_UI_TextWidget.actions(),
i);g.actions=function(){return i};return i};g.defaultProps=function(){return{text:"0",x:"0",y:"0",width:"200",height:"22",alignInContainer:"left",zindex:"auto",readonly:!1,enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,typefield:"alphanumeric",widgetStyle:"default",opacity:1,margin:"",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",name:"alphaNumeric1",shadow:"",dragAndDrop:!1,resizing:!1,tabStop:!0,boxSizing:"border-box"}};g.emptyProps=function(){var i=
{},i=f.extend(AC.Widgets.WiziCore_UI_TextWidget.emptyProps(),i);g.emptyProps=function(){return i};return i};g.isField=function(){return!0}})(jQuery,window,document);
(function(f){var g=AC.Widgets.WiziCore_UI_SubmitButtonWidget=AC.Widgets.WiziCore_UI_ButtonWidget.extend({_widgetClass:"WiziCore_UI_SubmitButtonWidget",init:function(){this._super.apply(this,arguments)},initProps:function(){this.action=this.normalProperty("action");this._super.apply(this,arguments)},onClick:function(g){var d=typeof this.action()=="object"?this.action().value:this.action();switch(d){case "submit_create":case "submit_save":this.form().submitCurrentInstance(d=="submit_create")}d=new f.Event(AC.Widgets.Base.onClick);
acDebugger.systemLog("triggerEvent",d,"this.id()",this.id());f(this).trigger(d,[g]);g.stopPropagation()}});g.inlineEditPropName=function(){return"label"};g.actions=function(){var i={},i=f.extend(AC.Widgets.Base.actions(),i);g.actions=function(){return i};return i};var j=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.submit_action]},{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.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];g.props=function(){return j};g.emptyProps=function(){return{bgColor:"#f7f7f7",
fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0"}};g.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},name:"submitBtn1",widgetStyle:"default",pWidth:"",margin:"",alignInContainer:"left",hourglassImage:"Default",action:"submit_create",shadow:"",displayHourglassOver:"inherit",customCssClasses:"",visible:!0,boxSizing:"border-box",opacity:1,dragAndDrop:!1,resizing:!1,
tabStop:!0}}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.UploadButton=function(){this.init.apply(this,arguments)};AC.extend(d,AC.Widgets.Base);g=d.prototype;AC.copyExtension(g,AC.WidgetExt.Upload);g._widgetClass="UploadButton";g.init=function(){d._sc.init.apply(this,arguments);this._fileName=null;this._state=AC.WidgetExt.UPLOAD_STATE.SELECT;this._requestId="req_"+WiziCore_Helper.generateId();var a="";try{a=this.context().config().uploadServerPath()}catch(b){a=""}this._desktopFormAction=a};g.draw=function(){this.base().css("overflow",
"hidden");this._drawForDesktop();d._sc.draw.apply(this,arguments)};g._drawForDesktop=function(){var a=this,b=a.htmlId(),c="target_"+b,e=a._requestId,h='<form method="post" enctype="multipart/form-data" action="" target="_self">';f.browser.msie&&(h+="</form>");h=f(h);h.attr({target:c,action:a._desktopFormAction});a._htmlForm=h;b=a._drawFileInput(b);a._fileInput=b;c=a._createIframe(c,e);a._iframe=c;var d=a._drawButton();a._button=d;var g=a.base();h.append(b);g.append(d,h,c);g.resize(function(){a._fileInput.css({"font-size":Math.max(g.width(),
g.height())})});a._bindGlobalUploadEvents(e,a._desktopFormAction)};g.initDomState=function(){d._sc.initDomState.apply(this);this.initDomStatePos();this._fileSizeLimit(this.fileSizeLimit());this._tabindex(this.tabindex());this._updateText();this._bg(this.bg());this._font(this.font());this._fontColor(this.fontColor());this._borderRadius(this.borderRadius());this._border(this.border());this._visible(this.visible());this._opacity(this.opacity());this._updateEnable()};g._drawButton=function(){var a=f('<button class="clear-input-border">');
a.css({border:"0px","text-decoration":"none","z-index":0,"text-align":"center",width:"100%",height:this.height(),cursor:this.mode()==WiziCore_Visualizer.RUN_MODE?"pointer":""});return a};g._changeState=function(a){var b=this;b._state=a;b._state!=AC.WidgetExt.UPLOAD_STATE.SELECT?b._fileInput.hide():b._fileInput.show();b._updateText();var c;switch(b._state){case AC.WidgetExt.UPLOAD_STATE.START:c=function(a){b.sendFile();a.stopPropagation()};break;case AC.WidgetExt.UPLOAD_STATE.STOP:c=function(a){b.stopUploading();
a.stopPropagation()}}typeof c=="function"&&b._button.unbind("click.custom").bind("click.custom",c)};g.collectDataSchema=function(a){this._simpleConstDataSchema(this.isAttachment()?AC.Widgets.WiziCore_Api_Form.Type.ATTACHMENT:AC.Widgets.WiziCore_Api_Form.Type.STRING,a)};g.value=function(a){if(a!==i)this._fileName=a;return this._fileName};g.reset=function(){var a=AC.WidgetExt.UPLOAD_STATE;if(this._state==a.SELECT)this._fileName=null;else if(this._state==a.START)this._fileName=null,this._changeState(a.SELECT);
else if(this._state==a.STOP)this.stopUploading(),this._fileName=null,this._changeState(a.SELECT)};g.startUpload=function(){this._state==AC.WidgetExt.UPLOAD_STATE.START&&this.sendFile()};g.stopUpload=function(){this._state==AC.WidgetExt.UPLOAD_STATE.STOP&&this.stopUploading()};g.select=function(){};g._beforeSelectText=function(a){return this._beforeText(a,"select")};g._beforeStartText=function(a){return this._beforeText(a,"start")};g._beforeStopText=function(a){return this._beforeText(a,"stop")};g._beforeText=
function(a,b){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var c=WiziCore_Helper.isLngToken(a),e=c?a:"ac-"+this.id()+"_"+b;c||this.form().addTokenToStringTable(this.id(),this.name(),e,a);return e}else return a};g._updateText=function(){var a=this._getCurrentText();this._updateDataLngAttr();this._button.text(a)};g._onInitLanguage=function(){this.selectFileText(this.selectFileText());this.startUploadText(this.startUploadText());this.stopUploadText(this.stopUploadText())};g._onSTUpdated=
function(){this._updateText()};g._updateDataLngAttr=function(){var a=AC.WidgetExt.UPLOAD_STATE,b;switch(this._state){case a.SELECT:b=this._project.selectFileText;break;case a.START:b=this._project.startUploadText;break;case a.STOP:b=this._project.stopUploadText}this._button.attr("data-lng",b)};g._enable=function(a){d._sc._enable.apply(this,[a,this._button]);a===!1?this._button.addClass("ui-state-disabled"):this._button.removeClass("ui-state-disabled")};g._tabindex=function(a){d._sc._tabindex.apply(this,
[a,this._button])};g._tabStop=function(a){d._sc._tabStop.apply(this,[a,this._button])};g._fontColor=function(a){d._sc._fontColor.apply(this,[a,this._button])};g._bg=function(a){d._sc._bg.apply(this,[a]);d._sc._bg.apply(this,[a,this._button])};g._borderRadius=function(a){d._sc._borderRadius.apply(this,[a]);d._sc._borderRadius.apply(this,[a,this._button])};g._font=function(a){d._sc._font.apply(this,[a,this._button])};g._updateLayout=function(){d._sc._updateLayout.apply(this);f.browser.msie&&this.base().css("position",
"relative");this._button.height(this.height())};var j=AC.Property,c=j.group_names,a=j.general,b=j.database,h=j.layout,e=j.behavior,k=j.style;g.fileSizeLimit=j.html("fileSizeLimit",g._fileSizeLimit);g.selectFileText=j.htmlLngPropBeforeSet("selectFileText",g._beforeSelectText,g._updateText);g.startUploadText=j.htmlLngPropBeforeSet("startUploadText",g._beforeStartText,g._updateText);g.stopUploadText=j.htmlLngPropBeforeSet("stopUploadText",g._beforeStopText,g._updateText);g.fileTypes=j.normal("fileTypes");
g.autoStart=j.normal("autoStart");g.isIncludedInSchema=j.normal("isIncludedInSchema",this._updateStorageFlag);g.isUnique=j.normal("isUnique");g.mandatory=j.normal("mandatory");g.isAttachment=j.normal("isAttachment");g.font=j.theme("font",g._font);g.border=j.theme("border",g._border);g.borderRadius=j.theme("borderRadius",g._borderRadius);g.fontColor=j.theme("fontColor",g._fontColor);g.bg=j.theme("bgColor",g._bg);g.tabindex=j.html("tabindex",g._tabindex);g.opacity=j.theme("opacity",g._opacity);var o=
[{name:c.general,props:[a.widgetClass,a.name,a.fileSizeLimit,a.selectFileText,a.startUploadText,a.stopUploadText,a.fileTypes,a.autoStart]},{name:c.database,props:[b.isIncludedInSchema,b.isUnique,b.mandatory,b.mandatoryHighlight,b.isAttachment]},{name:c.layout,props:[h.x,h.y,h.pWidthHidden,h.widthHidden,h.heightHidden,h.sizes,h.minWidth,h.maxWidth,h.repeat,h.zindex,h.tabindex,h.tabStop,h.anchors,h.alignInContainer]},{name:c.behavior,props:[e.dragAndDrop,e.resizing,e.visible,e.enable]},{name:c.style,
props:[e.opacity,k.font,k.fontColor,k.margin,k.bgColor,k.boxSizing,k.border,k.borderRadius,k.customCssClasses,k.widgetStyle]}];d.props=function(){return o};var t={name:"fileUpload1",selectFileText:"Select File",startUploadText:"Start Upload",stopUploadText:"Stop Upload",x:"0",y:"0",width:"120",height:"26",zindex:"auto",anchors:{left:!0,top:!0,bottom:!1,right:!1},alignInContainer:"left",dragAndDrop:!1,resizing:!1,visible:!0,enable:!0,opacity:1,pWidth:"",margin:"",icon:"none",iconPosition:"left",widgetStyle:"default",
customCssClass:"",boxSizing:"border-box"};d.defaultProps=function(){return t};d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0",shadow:""}};g.newOnSelectedEvent=function(){return new f.Event(d.onSelected)};g.newOnStartedEvent=function(){return new f.Event(d.onStarted)};g.newOnStoppedEvent=function(){return new f.Event(d.onStopped)};g.newOnUploadedEvent=function(){return new f.Event(d.onUploaded)};d.onSelected="E#UploadButton#onSelected";
d.onStarted="E#UploadButton#onStarted";d.onStopped="E#UploadButton#onStopped";d.onUploaded="E#UploadButton#onUploaded";var p={onSelected:{alias:"widget_event_onselected",funcview:"onSelected",action:"AC.Widgets.UploadButton.onSelected",params:"error, fileInfo",group:"widget_event_general"},onStarted:{alias:"widget_event_onstarted",funcview:"onStarted",action:"AC.Widgets.UploadButton.onStarted",params:"",group:"widget_event_general"},onStopped:{alias:"widget_event_onstopped",funcview:"onStopped",action:"AC.Widgets.UploadButton.onStopped",
params:"",group:"widget_event_general"},onUploaded:{alias:"widget_event_onuploaded",funcview:"onUploaded",action:"AC.Widgets.UploadButton.onUploaded",params:"error, url",group:"widget_event_general"}},p=f.extend({},AC.Widgets.Base.actions(),p);d.actions=function(){return p};d.isField=function(){return!0}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_NumericWidget=AC.Widgets.WiziCore_UI_TextWidget.extend({_widgetClass:"WiziCore_UI_NumericWidget",_oldText:null,init:function(){this._super.apply(this,arguments)},initProps:function(){this._super();this.numericFormat=this.htmlProperty("numericFormat",this._numericFormat);this.numericLocale=this.htmlProperty("numericLocale",this._numericFormat);this.dataType=this.normalProperty("dataType")},_text:function(a){a===null&&(a="");a!==i&&(this._input.val(a),
this._input.formatNumber({format:this.numericFormat(),locale:this.numericLocale()}));return this._input.parseNumber({format:this.numericFormat(),locale:this.numericLocale()},!1)},_numericFormat:function(){this._text(this._project.text)},onChangeText:function(a){var b=a.data.self;if(this!=b)return b.onChangeText.apply(b,arguments);this._super.apply(b,arguments);this._text(this._project.text)},collectDataSchema:function(a){return this._simpleConstDataSchema(this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.REAL,
a)}});d.inlineEditPropName=function(){return"text"};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.text,AC.Property.general.numericFormat,AC.Property.general.numericLocale]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataTypeNumeric,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.tabindex,AC.Property.layout.tabStop,AC.Property.layout.zindex,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.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,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.actions=function(){var a={},a=f.extend(AC.Widgets.WiziCore_UI_TextWidget.actions(),a);d.actions=function(){return a};return a};d.defaultProps=
function(){return{text:"0",x:"0",y:"0",width:"100",height:"22",zindex:"auto",readonly:!1,enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,widgetStyle:"default",opacity:1,name:"Numeric1",numericFormat:"#,###.00",numericLocale:"us",textAlign:"Right",pWidth:"",margin:"",alignInContainer:"left",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",tabStop:!0,shadow:"",dragAndDrop:!1,resizing:!1,dataType:AC.Widgets.WiziCore_Api_Form.Type.REAL,boxSizing:"border-box"}};
d.emptyProps=function(){var a={},a=f.extend(AC.Widgets.WiziCore_UI_TextWidget.emptyProps(),a);d.emptyProps=function(){return a};return a};d.isField=function(){return!0}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_TableLayoutWidget=AC.Widgets.WiziCore_Widget_Container.extend(f.extend({},WiziCore_ContainerDataBind,WiziCore_WidgetAbstract_DataIntegrationContainer,{_widgetClass:"WiziCore_UI_TableLayoutWidget",_table:null,_cells:null,isDraggable:!0,init:function(){this._allowChange=!0;this._cells=[];this._super.apply(this,arguments)},draw:function(){this._redrawTable();this._super.apply(this,arguments)},getWidgetColumnRow:function(a){var b={row:null,column:null};
this.rows();for(var c=this.columns(),e=0;e<this._children.length;e++)if(a._htmlId==this._children[e]._htmlId){b.row=Math.ceil((e+1)/c);b.column=e+1-(b.row-1)*c;break}return b},columns:function(a,b){if(a!==i){if(a<1)return this._project.columns;if(this._applyColumnChange(a,b))this._project.columns=a,this._redrawTable()}return this._project.columns},rows:function(a,b){if(a!==i){if(a<1)return this._project.rows;if(this._applyRowsChange(a,b))this._project.rows=a,this._redrawTable()}return this._project.rows},
_applyRowsChange:function(a,b){var c=this._project.rows,e=this._project.columns;if(a<c)return b!=i?this._processRowRemove(b):this._processRowsRemove(a);else{c*=e;for(var d=a*e;c<d;++c)b!=i?this._addContainerToChildren(e*b):this._addContainerToChildren()}return!0},_applyColumnChange:function(a,b){var c=this._project.columns;if(this._project.columns>a)return b!=i?this._processColumnRemove(b):this._processColumnsRemove(a);else for(var e=this.rows()-1;e>-1;--e)for(var d=c;d<a;++d)this._addContainerToChildren(e*
c+(b!=i?b:d));return!0},_processRowRemove:function(a){for(var b=!1,c=this._project.columns,e=this.children(),d=[],f=(a-1)*c;f<a*c;++f){if(e[f]&&e[f].children().length>0){b=!0;break}d.push(f)}if(b)return!1;else{for(a=0;a<d.length;++a)this._children[d[a]].remove();this._children.splice(d[0],d.length)}return!0},_processColumnRemove:function(a){var b=this.children(),c=this._project.columns,e=!1,d=[];for(a-=1;a<b.length;a+=c){if(b[a]&&b[a].children().length>0){e=!0;break}d.push(a)}if(e)return!1;else for(b=
d.length-1;b>-1;--b)this._children[d[b]].remove(),this._children.splice(d[b],1);return!0},_processRowsRemove:function(a){for(var b=!1,c=this._project.rows,e=this._project.columns,d=this.children(),f=a;f<c;++f)for(var g=0;g<e;++g){var i=f*e+g;if(d[i]&&d[i].children().length>0){b=!0;break}if(b)break}if(b)return!1;else{b=a*e;for(d=c*e;b<d;b++)this._children[g].remove();this._children.splice(a*e,c*e-a*e)}return!0},_processColumnsRemove:function(a){for(var b=this.children(),c=this._project.columns,e=!1,
d=[],f=0,g=this.rows();f<g;++f){for(var i=a;i<c;++i){var j=f*c+i;if(b[j]&&b[j].children().length>0){e=!0;break}d.push(j)}if(e)break}if(e)return!1;else for(a=d.length-1;a>-1;--a)this._children[d[a]].remove(),this._children.splice(d[a],1);return!0},_addContainerToChildren:function(a){var b=this.addNewWidget({widgetClass:"ContainerForTable",project:AC.Core.Widgets().getDefaultWidgetProperties("ContainerForTable"),posInChildren:a});this._setContainerProps(b);this._setWidgetPosition(b);b._pos=a;var c=
this;f(b).bind(AC.Widgets.ContainerForTable.onChangeProperty,function(a,b,d){c._onChildChangeProp(this._pos,b,d);return!1});return b},getContainerCoordsByPos:function(a){var b={row:null,col:null},c=this._project.columns;b.row=Math.round(a/c-0.5);b.col=a-b.row*c;return b},_appendChildren:function(){var a=this,b;this.mode();for(var c=0,e=this._cells.length;c<e;++c)if(b=this._children[c])if(f(b).bind(AC.Widgets.ContainerForTable.onChangeProperty,function(b,c,e){a._onChildChangeProp(this._pos,c,e);return!1}),
b._pos=c,b._isDrawn)b.base().appendTo(this._cells[c]);else if(this._drawChild(b,c),this._isDrawn)b.onPageDrawn()},_onChildChangeProp:function(a,b,c){if(this._allowChange){var a=this.getContainerCoordsByPos(a),e=this.cellsStyle();e[a.row]=e[a.row]||[];e[a.row][a.col]=e[a.row][a.col]||{};e[a.row][a.col][b]=c;this.cellsStyle(e)}},_setContainerProps:function(a){a.parent(this);a.isDraggable=this;a.isEditable=!1;a.isResizable=!1;a._manualDrawPosition=!1},_redrawTable:function(){this._cells.length=0;for(var a=
f("<table></table>").css({width:"100%",height:"100%"}),b=0,c=this.rows();b<c;++b){for(var e=f("<tr></tr>"),d=0,g=this.columns();d<g;++d){var i=f('<td class="waTableLayoutWidgetTd"></td>');WiziCore_Helper.checkForIE8()&&i.css("padding","1");e.append(i);this._cells.push(i)}f.browser.mozilla&&e.append('<td style="width:0px"><div style="position:relative;height:100%;display:table; width:0px"></div></td>');a.append(e)}this._appendChildren();this._applyCellSize(this.cellsSize());this._table&&this._table.empty().remove();
this._table=a;this._setChildrenInTable();this.base().append(a);this._applyCellStyle(this.cellsStyle());this._updateLayout()},_setWidgetPosition:function(a){var b=a.base();a._tableBase.css({position:"relative",height:"100%",width:"100%","float":"left"});a.padding&&b.css("padding",a.padding());b.css({"-ms-box-sizing":"border-box","-webkit-box-sizing":"border-box","-moz-box-sizing":"border-box","box-sizing":"border-box"})},_updateLayout:function(){var a=this;this._super();this._table.width("100%");setTimeout(function(){a._project&&
a._table.height(a.height())},0)},_drawChild:function(a,b){a._isDrawn?this._cells[b].append(a.tableBase()):a.draw(this._cells[b])},_setChildrenInTable:function(){for(var a=this.children(),b=0,c=this._cells.length;b<c;++b){var e=a[b];a[b]||(e=this._addContainerToChildren(b));this._setContainerProps(e)}},_setColumnWidth:function(a,b){if(!(a==i||b==i)){var c=this.cellsSize(),b=b.toString().match(/px|\%/)?b:b+"px";c.w[a-1]=b;this.cellsSize(c);this._applyCellSize(this.cellsSize())}},_setRowHeight:function(a,
b){if(!(a==i||b==i)){var c=this.cellsSize(),b=b==""?b:b.toString().match(/px|\%/)?b:b+"px";c.h[a-1]=b;this.cellsSize(c);this._applyCellSize(this.cellsSize())}},_applyCellStyle:function(a){if(!(a==i||a.length==0)){this._allowChange=!1;for(var b=this.columns(),c=this.rows(),e=0;e<c;++e)if(a[e])for(var d=0;d<b;++d){var f=a[e][d];if(f!=i){var g=e*b+d,j=this._backgroundImageProps(f.backgroundimage,f.backgroundrepeat);j["background-color"]=f.bgcolor;j.opacity=f.opacity;this._cells[g].css(j)}}this._allowChange=
!0}},_applyCellSize:function(a){var a=this._fixCellSize(a),b=this.columns(),c=this.rows(),e=f.browser.ie?"":"100%",d,g,i,j,m;for(d=0;d<c;++d){i=a.h[d]==""?e:a.h[d];for(g=0;g<b;++g)j=a.w[g],m=d*b+g,this._cells[m].css({width:j}),this._cells[m].parent().css({height:i}),this._children[m]&&this._setWidgetPosition(this._children[m])}},_fixCellSize:function(a){var b=this.columns(),c=this.rows(),e=!1;a==i&&(a={h:[],w:[]},e=!0);if(a.w.length<b)for(var e=!0,d=a.w.length;d<b;++d)a.w.push(Math.ceil(100/b)+"%");
else a.w.length>b&&(e=!0,a.w.splice(b,a.w.length-b));if(a.h.length<c){e=!0;for(b=a.h.length;b<c;++b)a.h.push("40px")}else a.h.length>c&&(e=!0,a.h.splice(c,a.h.length-c));e&&(this._project.cellsSize=a);return a},currentContainer:function(){return this.children()[0]},initProps:function(){this._super();this.name=this.normalProperty("name");this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.bg=this.themeProperty("bgColor",
this._bg);this.enable=this.htmlProperty("enable",this._updateEnable);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.readonly=this.htmlProperty("readonly",this._updateReadonly);this.cellsSize=this.htmlProperty("cellsSize",this._applyCellSize);this.cellsStyle=this.cellsStyleFunc();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")},cellsStyleFunc:function(){var a=this.htmlProperty("cellsStyle",
this._applyCellStyle);return function(){var b=a.apply(this,arguments);return b=b||[]}},initDomState:function(){this._super();this._bg(this.bg());this._borderRadius(this.borderRadius());this._border(this.border());this._updateReadonly();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._updateBackgroundImage()},tableAddRowBefore:function(a){a=this.getWidgetColumnRow(a);this.rows(this.rows()+1,a.row-1);this.sendTableLayoutProperty({rows:this.rows()})},tableAddRowAfter:function(a){a=
this.getWidgetColumnRow(a);this.rows(this.rows()+1,a.row);this.sendTableLayoutProperty({rows:this.rows()})},tableDeleteRow:function(a){a=this.getWidgetColumnRow(a);this.rows(this.rows()-1,a.row);this.sendTableLayoutProperty({rows:this.rows()})},tableAddColumnBefore:function(a){a=this.getWidgetColumnRow(a);this.columns(this.columns()+1,a.column-1);this.sendTableLayoutProperty({columns:this.columns()})},tableAddColumnAfter:function(a){a=this.getWidgetColumnRow(a);this.columns(this.columns()+1,a.column);
this.sendTableLayoutProperty({columns:this.columns()})},tableDeleteColumn:function(a){a=this.getWidgetColumnRow(a);this.columns(this.columns()-1,a.column);this.sendTableLayoutProperty({columns:this.columns()})},tableSetRowHeight:function(a){var b=this,c=this.getWidgetColumnRow(a),a=this.cellsSize();this.showEditDialog(AC.Core.lang().trText("widget_height"),a.h[c.row-1],function(a){b._setRowHeight(c.row,a)})},tableSetColumnWidth:function(a){var b=this,c=this.getWidgetColumnRow(a),a=this.cellsSize();
this.showEditDialog(AC.Core.lang().trText("widget_width"),a.w[c.column-1],function(a){b._setColumnWidth(c.column,a)})},showEditDialog:function(a,b,c){var e=AC.Core.lang().trText("widget_percent"),e="<div><table align='center' valign='middle' style='height: 100%'><tr><td style='align: center'><input type='text' style='align: right'></td></tr><tr><td><table align='center' valign='top'><tr><td><form><input type='radio' value='pixel' name='wiziSelect'> "+AC.Core.lang().trText("widget_pixel")+" <input type='radio' value='percent' name='wiziSelect'> "+
e+" </form></td></tr></table></td></tr></table><div>",d=f(e),e=AC.Core.lang().trText("dialog_button_save"),g=AC.Core.lang().trText("dialog_button_cancel"),i={};i[e]=function(){var a=f(this).find("input:checked").val(),b="",d=f(this).find("input:text").val();a=="pixel"?b="px":a=="percent"&&(b="%");b!=""&&(d=parseInt(d));c(d+b);f(this).dialog("close")};i[g]=function(){f(this).dialog("close")};a=jQuery.extend({modal:!0,height:180,width:200,resizable:!1,title:a,buttons:i,close:function(){f(this).dialog("destroy").remove()},
dialogClass:"wa-system-dialog wa-system-style"},{});d.dialog(a);d.find("input:text").val(b);d.find("input:radio").click(function(){var a=parseInt(d.find("input:text").val());this.value=="pixel"?d.find("input:text").val(a+"px"):d.find("input:text").val(a+"%")});d.parent().click(function(a){a.stopPropagation()})},sendTableLayoutProperty:function(a){var b={};b[this.id()]=a;a=new WiziCore_Api_FormDesignerApplyPropItemCommand(b);b=this.managerContext().editor;b.executor().execute(a);f(b).trigger(WiziCore_UI_FormDesigner.onModelStateChanged,
[WiziCore_UI_FormDesigner.onItemCreate])},_getDesignerRightMenuSub:function(a){if(a!=i){var b=this,c=AC.Core.lang().trText("editor_rclick_table_AddRowBefore"),d=AC.Core.lang().trText("editor_rclick_table_AddRowAfter"),f=AC.Core.lang().trText("editor_rclick_table_DeleteRow"),g=AC.Core.lang().trText("editor_rclick_table_AddColumnBefore"),j=AC.Core.lang().trText("editor_rclick_table_AddColumnAfter"),p=AC.Core.lang().trText("editor_rclick_table_DeleteColumn"),m=AC.Core.lang().trText("editor_rclick_table_SetRowHeight"),
l=AC.Core.lang().trText("editor_rclick_table_SetColumnWidth");return[{title:c,userData:{exclude:null,include:"all"},func:function(){b.tableAddRowBefore(a)}},{title:d,userData:{exclude:null,include:"all"},func:function(){b.tableAddRowAfter(a)}},{title:f,userData:{exclude:null,include:"all"},func:function(){b.tableDeleteRow(a)}},{title:g,userData:{exclude:null,include:"all"},func:function(){b.tableAddColumnBefore(a)}},{title:j,userData:{exclude:null,include:"all"},func:function(){b.tableAddColumnAfter(a)}},
{title:p,userData:{exclude:null,include:"all"},func:function(){b.tableDeleteColumn(a)}},{title:m,userData:{exclude:null,include:"all"},func:function(){b.tableSetRowHeight(a)}},{title:l,userData:{exclude:null,include:"all"},func:function(){b.tableSetColumnWidth(a)}}]}},hideRow:function(a){this._table!=i&&(a=this._table.find("tr").eq(a),a!=i&&a.hide())}})),c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name]},{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.zindex,AC.Property.layout.anchors,AC.Property.layout.alignInContainer,AC.Property.layout.rows,AC.Property.layout.columns,AC.Property.layout.cellsSize,
AC.Property.layout.cellsStyle,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.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.margin,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.backgroundImage,AC.Property.general.backgroundRepeat,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.actions=AC.Widgets.WiziCore_Widget_Container.actions;
d.capabilities=function(){return{defaultProps:{width:"200",height:"100",x:"0",y:"0",widgetClass:"WiziCore_UI_TableLayoutWidget",name:"tableLayout1",opacity:1,zindex:"auto",enable:!0,visible:!0,widgetStyle:"default",anchors:{left:!0,top:!0,bottom:!1,right:!1},centered:!1,columns:3,rows:1,readonly:!1,cellsSize:{w:["66","","66"],h:[""]},hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",pWidth:"",dragAndDrop:!1,resizing:!1,margin:"",alignInContainer:"left",cellsStyle:[],bgColor:"transparent",
border:"none",borderRadius:"0",boxSizing:"border-box"},emptyProps:{bgColor:"transparent",border:"none",borderRadius:"0"},props:d.props(),isField:!1,containerType:AC.Widgets.Base.CASE_TYPE_COMPOSITE_CONTAINER}}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_ComboBoxWidget=AC.Widgets.Base.extend(f.extend({},WiziCore_WidgetAbstract_DataIntegrationList,WiziCore_Source_Widget_PagingAPI,{_widgetClass:"WiziCore_UI_ComboBoxWidget",_comboBox:null,_dataPropName:"data",_reloadData:!1,init:function(){this._super.apply(this,arguments);"selectedIndex"in this._project||(this._project.selectedIndex=-1)},onRemove:function(){this._checkRepeatBeforeRemove()||this._comboBox&&this._comboBox.destroy()},draw:function(){this.htmlId();
var c=this;this._comboBox=new jqSimpleCombo(this.base(),[],{readonly:!0});f(this._comboBox).unbind(jqSimpleCombo.onSelect).bind(jqSimpleCombo.onSelect,function(){c.onChange()});this._bg(this.bg());this._font(this.font());this._fontColor(this.fontColor());this._tabindex(this.tabindex());this._super.apply(this,arguments)},_onSTUpdated:function(){this._onLanguageChanged()},_onInitLanguage:function(){this.data(this.data());this._isDrawn&&this.selectOption(this.getSelectedIndex())},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.fontColor=this.themeProperty("fontColor",this._fontColor);this.border=this.themeProperty("border",this._border);this.borderRadius=this.themeProperty("borderRadius",this._borderRadius);this.bg=this.themeProperty("bgColor",
this._bg);this.shadow=this.themeProperty("shadow",this._shadow);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.currPage=this.normalPropBeforeSet("currPage",this._currPage);this.elementsPerPage=this.normalPropBeforeSet("elementsPerPage",this._elementsPerPage);this.usePaging=this.normalProperty("usePaging",this._updateDataByPaging);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")},_updateLayout:function(){this._super();this._updateComboSize()},_updateComboSize:function(){this._comboBox&&this._comboBox.height(this.height())},dataWithValue:function(c){var a,b,d,e,f,g;if(c!=i){if(c.rows!==
i){d=[];e=-1;for(a=0,b=c.rows.length;a<b;++a)f=c.rows[a],d[a]=[f.data[0],f.data[1]],d[a].userData=f.data.userData,+f.data[2]&&e==-1&&(e=a);this.data(d);this._project.selectedIndex=e;this._isDrawn&&this.selectOption(e)}}else{c=this.data();e=this._project.selectedIndex;d=[];for(a=0,b=c.length;a<b;++a)f=c[a],d[a]=[f[0],f[1],a==e],d[a].userData={id:a};g=d}return g},_beforeData:function(c){var h;if(!f.isArray(c))return c;var a,b,d,e=this.form();a=e._showLngTokens;var g=e.language()!=null;e._showLngTokens=
!0;d=this.data();e._showLngTokens=a;for(a=0,b=c.length;a<b;a++){if(g&&!e._skipTokenCreation){var j=c[a].userData&&c[a].userData.id!=i?c[a].userData.id:null,t;WiziCore_Helper.isLngToken(c[a][0])||(h=(t=j!=null&&WiziCore_Helper.isLngToken(d[j][0]))?d[j][0]:WiziCore_Helper.generateId(10,"ac-"),j=h,this.form().addTokenToStringTable(this.id(),this.name(),j,c[a][0]),c[a][0]=j)}if(c[a].userData!=i)c[a].userData=i}return c},_afterGet:function(c){c=WiziCore_Helper.clone(c);if(f.isArray(c))for(var a=0,b=c.length;a<
b;a++)c[a][0]=this._getTranslatedValue(c[a][0]);return c},data:function(c){if(c!=i&&c.rows!==i){for(var a=[],b=0,d=c.rows.length;b<d;++b)a[b]=[c.rows[b].data[0],c.rows[b].data[1]],c.rows[b].data[2]!==i&&a[b].push(c.rows[b].data[2]);c=a}c=c===null?[]:c;return this.form()?this.htmlPropertyBeforeSetAfterGet("data",this._beforeData,this._data,this._afterGet).call(this,c):this.htmlProperty("data",this._data).call(this,c)},_onLanguageChanged:function(){this._data(this.data());this._isDrawn&&this.selectOption(this.getSelectedIndex())},
initDomState:function(){this._super();this.initDomStatePos();this._updateComboSize();this._data(this.data());this._borderRadius(this.borderRadius());this._border(this.border());this._visible(this.visible());this._opacity(this.opacity());this._shadow(this.shadow());this._updateEnable();this.selectOption(this._project.selectedIndex)},bindEvent:function(c){this._super(c);if(!(this._bindingEvents[c]>1||this.mode()==WiziCore_Visualizer.EDITOR_MODE)){var a=this;switch(c){case d.onBlur:f(a._comboBox).bind(jqSimpleCombo.onFocusOut,
function(){return a.onBlur()});break;case d.onKeyPress:f(a._comboBox).bind(jqSimpleCombo.onKeyPress,function(b,c){return a.onKeyPress(c)});break;case d.onSelectionChange:f(a._comboBox).bind(jqSimpleCombo.onSelect+".custom",function(){return a.onSelectionChange()})}}},unbindEvent:function(c,a){this._super(c,a);if(!(this._bindingEvents[c]>0&&a!=!0))switch(c){case d.onBlur:f(this._comboBox).unbind(jqSimpleCombo.onFocusOut);break;case d.onKeyPress:f(this._comboBox).unbind(jqSimpleCombo.onKeyPress);break;
case d.onSelectionChange:f(this._comboBox).unbind(jqSimpleCombo.onSelect+".custom")}},setFocus:function(){this.base().find(".simple-combo-input").focus()},selectContents:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().find(".simple-combo-input").select()},setListHeight:function(c){c!=i&&this._comboBox.listHeight(c)},setListWidth:function(c){this._comboBox.listWidth(c)},onChange:function(){var c=new jQuery.Event(d.onChange),a=this._project.selectedIndex,a=(a=this.data()[a])?
{value:a[1],label:a[0]}:null,b={value:this.getSelectedValue(),label:this.getSelectedText()};f(this).trigger(c,[b,a]);(c=c.isPropagationStopped())?this._project.selectedIndex==-1&&this._comboBox.setText(""):this._project.selectedIndex=this.getSelectedIndex();this.sendDrillDown();return c},onBlur:function(){var c=new jQuery.Event(d.onBlur);f(this).trigger(c);return!c.isPropagationStopped()},onKeyPress:function(c){var a=new jQuery.Event(d.onKeyPress);f(this).trigger(a,[c]);return!a.isPropagationStopped()},
onSelectionChange:function(){var c=new jQuery.Event(d.onSelectionChange);f(this).trigger(c);return!c.isPropagationStopped()},getSelectedIndex:function(){return this._comboBox.getSelectedIndex()},getSelectedValue:function(){return this._comboBox.getSelectedValue()},getSelectedText:function(){return this._comboBox.getSelectedText()},setComboValue:function(c){c!=i&&(acDebugger.systemLog("text",c),this._comboBox.setValue(c))},setComboText:function(c){this._comboBox.setText(c)},getComboText:function(){return this._comboBox.getText()},
updateOption:function(c,a,b){for(var d=this._comboBox.getData(),e=0,f=d.length;e<f;e++)if(d[e][1]==c){this._comboBox.updateItem(e,[b,a]);break}},_enable:function(c){this._comboBox!=null&&this._comboBox.enable(c===!1?!1:!0)},readonly:function(){},_tabindex:function(c){this._super(c,this.base().find(".simple-combo-input"))},_tabStop:function(c){this._super(c,this.base().find(".simple-combo-input"))},_font:function(c){this._data(this.data());this._super(c,this._comboBox.itemsListContainer());this._super(c,
this._comboBox.inputContainer())},_fontColor:function(c){this._super(c,this.base().find(".simple-combo-input"))},_data:function(c){var a=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this._comboBox&&this._comboBox.clear();if(f.isArray(c)){var b=[],d,e,g=0,j=c.length;if(this.usePaging()&&(d=this._getStartAndLength(j),g=d.i,j=d.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&c[g]==i))d=this._getDefaultStartAndLength(c.length),g=d.i,j=d.l;for(;g<j;++g)d=c[g][0],e=c[g][1],d=d&&d.replace?d.replace(/&lt;/g,"<").replace(/&gt;/g,
">").replace(/&amp;/g,"&"):d==null?"":d,WiziCore_Helper.isLngToken(d)&&(d=this._getTranslatedValue(d)),b.push([d,e]);this._comboBox&&this._comboBox.setData(b)}jQuery.fn.__useTr=a},addOption:function(c){this._comboBox.addItem(c)},onRequestResetFilter:function(){this._comboBox.setText("")},onRequestReloadData:function(){this._reloadData=this.getSelectedValue()},clear:function(){this._comboBox.clear();this._comboBox.setText("")},closeAll:function(){this._comboBox.closeList()},UpdateVisualizeMode:function(){this._super();
this.mode()==WiziCore_Visualizer.RUN_MODE&&this._query!=null&&this._query.loadData()},resetValue:function(){this.value(null)},getIndexByValue:function(c){var a=null,b=this.data();if(b!=i)for(var d=b.length,e=0;e<d;++e)if(b[e][1]==c){a=e;break}return a},getIndexByLabel:function(c){var a=null,b=this.data();if(b!=i)for(var d=b.length,e=0;e<d;++e)if(b[e][0]==c){a=e;break}return a},selectOption:function(c){c==-1?this._comboBox.clearSelection():this._comboBox.selectItem(c)},_applyValue:function(c){typeof c==
"string"&&(c={value:c});c===null&&(c={index:-1});var a=c.index,b=c.value,c=c.label,d=this.data();if(d!=i){d=d!=i?d.length:0;if(a!=i&&(a>=d||a<-1))a=-1;a==i&&b!=i&&(b=this.getIndexByValue(b),a=b!=null?b:a);a==i&&c!=i&&(b=this.getIndexByLabel(c),a=b!=null?b:a);if(a!=i)this._project.selectedIndex=a,this._isDrawn&&(a==-1&&this._comboBox.setText(""),this.selectOption(a))}},value:function(c){c=typeof c=="number"?c+"":c;c!==i&&(typeof c=="object"||typeof c=="string")&&this._applyValue(c);c=null;if(this._project.selectedIndex!=
null||this._project.selectedIndex!=-1){var a=this.data();a!=i&&(a=a[this._project.selectedIndex],a!=i&&(c={index:this._project.selectedIndex,value:a[1],label:a[0]}))}return c},collectDataSchema:function(c){if(!this.isIncludedInSchema())return i;var a=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,a={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT,structure:{value:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:a},label:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,
structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},unique:this.isUnique()};this.mandatory()&&(a.mandatory=!0);return c[this.id()]=a},appendValueToDataObject:function(c,a,b){var d=this;return this._simpleDataObjectValue(c,b,function(b){b!=null?b={value:b.value,label:b.label}:d.mandatory()&&(a[d.id()]=!0);return b})},setValueFromDataObject:function(c,a){this._setDataObjectValueSimple(c,function(a){typeof a=="object"&&"value"in a||(a={value:a});return a},a)},empty:function(){this.reset();this.setData([])},
getDataFromMap:function(c,a){for(var b=[],d=0,e=c.length;d<e;d++){var f=[],g;for(g in a){var j=a[g];j!=i&&(f[g]=AC.Widgets.Base.getDataItemWithMap(c[d],j))}b.push(f)}return b},_editable:function(c){this._comboBox!=null&&(this._comboBox.canOpenSelect(c),this._comboBox.readonly(!c))}}));d.onChange="E#ComboBox#onChange";d.onBlur="E#ComboBox#onBlur";d.onKeyPress="E#ComboBox#onKeyPress";d.onSelectionChange="E#ComboBox#onSelectionChange";d.actions=function(){var c={change:{alias:"widget_event_onchange",
funcview:"onChange",action:"AC.Widgets.WiziCore_UI_ComboBoxWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"},blur:{alias:"widget_event_onblur",funcview:"onBlur",action:"AC.Widgets.WiziCore_UI_ComboBoxWidget.onBlur",params:"",group:"widget_event_general"},keypress:{alias:"widget_event_onkeypress",funcview:"onKeyPress",action:"AC.Widgets.WiziCore_UI_ComboBoxWidget.onKeyPress",params:"key",group:"widget_event_key"},selectionchange:{alias:"widget_event_onselectionchange",funcview:"onSelectionChange",
action:"AC.Widgets.WiziCore_UI_ComboBoxWidget.onSelectionChange",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"}};return c=jQuery.extend(AC.Widgets.Base.actions(),c)};d.inlineEditPropName=function(){return"data"};
d._props=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.elementsPerPage,AC.Property.general.currPage,AC.Property.general.usePaging,AC.Property.general.dataWithValue]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,AC.Property.database.isUnique,AC.Property.database.mandatoryHighlight,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.tabindex,AC.Property.layout.tabStop,AC.Property.layout.zindex,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]},
{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.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.boxSizing,AC.Property.style.border,
AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return d._props};d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray"}};d.defaultProps=function(){return{valName:"selectedValue",x:"0",y:"0",height:"20",width:"120",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,
right:!1},visible:!0,data:[["Label","Value",""]],opacity:1,pWidth:"",dragAndDrop:!1,resizing:!1,margin:"",alignInContainer:"left",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",widgetStyle:"default",name:"DropDown1",tabStop:!0,currPage:1,shadow:"",boxSizing:"border-box",elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};d.schemaForTokens=function(){return[{name:"widget_label",value:"label"},{name:"widget_value",value:"value"}]};d.isField=
function(){return!0}})(jQuery,window,document);
(function(f,g,j,i){var d=AC.Widgets.WiziCore_UI_PageButtonWidget=AC.Widgets.WiziCore_UI_ButtonWidget.extend({_widgetClass:"WiziCore_UI_PageButtonWidget",_input:null,_dataPropName:"label",init:function(){this._super.apply(this,arguments)},draw:function(){var a=this;this._super.apply(this,arguments);f(this._input).bind("click.custom",function(b){a.onCustomClick(b)})},onCustomClick:function(){if(this.sourceWidget()!=null){var a=this.sourceWidget(),a=typeof a=="object"&&a.uid!=i?a.uid:a;this.form().find(a).fetchDataPage("next")}},
initProps:function(){this._super();this.sourceWidget=this.normalPropBeforeSet("sourceWidget",this._sourceWidgetBefore,this._sourceWidget)},onPageDrawn:function(){this._super();this._sourceWidget(this.sourceWidget())},updateNavigation:function(a,b){acDebugger.systemLog(a,b)},_sourceWidgetBefore:function(a){a=this.getUidWidgetFromObjectChooser(a);this.sourceWidget()!=null&&this.form().find(this.sourceWidget()).unregisterPaging(this.id());return a},_sourceWidget:function(a){a!=i&&(a=this.form().find(a),
a!=null&&a.registerPaging(this,this.updateNavigation))}}),c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.sourceWidget]},{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.boxSizing,
AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.bgColor,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return c};d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",borderRadius:"0"}};d.inlineEditPropName=function(){return"label"};d.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:"pageButton1",pWidth:"",margin:"",alignInContainer:"left",pageMode:d.MODE_NEXT,selPage:1,hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",isField:!0,shadow:"",dragAndDrop:!1,resizing:!1,widgetStyle:"default",tabStop:!0,boxSizing:"border-box"}}})(jQuery,window,document);
(function(f){var g=AC.Widgets.HTML=function(){this.init.apply(this,arguments)};AC.extend(g,AC.Widgets.Base);var j=g.prototype;AC.copyExtension(j,AC.WidgetExt.DataIntegration.Simple);j._widgetClass="HTML";j._dataPropName="source";j._cont=null;j.init=function(){g._sc.init.apply(this,arguments)};j.draw=function(){this._cont=f("<div style='width:100%; height: 100%; position: relative; overflow: hidden' />");this.base().prepend(this._cont);g._sc.draw.apply(this,arguments)};j.onDestroy=function(){if(this._cont)this._cont.remove(),
this._cont=null};j._updateLayout=function(){g._sc._updateLayout.apply(this,arguments);this._cont&&this._cont.css("height",this.height());(!this.pWidth()||this.parent().getLayoutType()=="absolute")&&this.tableBase().css("width",this.width())};j.initDomState=function(){g._sc.initDomState.call(this);this.initDomStatePos();this._bg(this.bg());this._source(this._project.source);this._border(this.border());this._visible(this.visible());this._opacity(this.opacity());this._updateEnable()};j._onSTUpdated=
function(){this._source(this._project.source)};j._onInitLanguage=function(){this.source(this.source())};j._onLanguageChanged=function(){this._source(this._project.source)};j._beforeSource=function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var c=WiziCore_Helper.isLngToken(a),d=c?a:"ac-"+this.id();c||this.form().addTokenToStringTable(this.id(),this.name(),d,a);return d}else return a};j._source=function(a){this._cont&&a&&this._cont.html(WiziCore_Helper.isLngToken(a)?this._getTranslatedValue(a):
a)};j._enable=function(a){g._sc._enable.apply(this,arguments);a===!1?this._cont.addClass("ui-state-disabled"):this._cont.removeClass("ui-state-disabled")};j.getDataModel=function(){return this._valueDataModel()};j.isBindableToData=function(){return!0};j.appendValueToDataObject=function(a,c,d){return this._simpleDataObjectValue(a,d)};j.isIncludedInSchema=function(){return!1};j.border=AC.Property.theme("border",j._border);j.bg=AC.Property.theme("bgColor",j._bg);j.opacity=AC.Property.theme("opacity",
j._opacity);j.source=AC.Property.htmlLngPropBeforeSet("source",j._beforeSource,j._source);j.value=j.source;j.view=AC.Property.normal("view");j.fields=AC.Property.normal("fields");j.groupby=AC.Property.normal("groupby");j.orderby=AC.Property.normal("orderby");j.filter=AC.Property.normalPropBeforeSet("filter",j._filterBefore);j.resetfilter=AC.Property.normal("resetfilter");j.listenview=AC.Property.normal("listenview");j.applyview=AC.Property.normal("applyview");j.onview=AC.Property.normal("onview");
g.actions=function(){return AC.Widgets.Base.actions()};var i=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,{name:"source",type:"htmlEditor",set:"source",get:"source",alias:"widget_html_source"}]},{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]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,AC.Property.behavior.resizing,AC.Property.behavior.visible]},{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]},{name:AC.Property.group_names.style,
props:[AC.Property.behavior.opacity,AC.Property.style.margin,AC.Property.style.boxSizing,AC.Property.style.border,AC.Property.style.bgColor,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}],d={width:"240",height:"160",x:"100",y:"100",zindex:"auto",margin:"",alignInContainer:"left",pWidth:"",anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,opacity:1,bgColor:"#ffffff",name:"HTML",enable:!0,resizing:!1,border:"1px solid gray",data:{},widgetStyle:"default",customCssClasses:"",
boxSizing:"border-box"},c={en:{widget_name_html:"HTML",widget_html_source:"Source"}},a={};g.props=function(){return i};g.emptyProps=function(){return a};g.inlineEditPropName=function(){return"source"};g.defaultProps=function(){return d};g.langs=function(){return c};AC.Core.lang().registerWidgetLang(c)})(jQuery,window,document);
