(function(a,d){function j(a){for(var k;a;){if((k=typeof a.className==="string"&&a.className+" ")&&k.indexOf("m-ui-btn ")>-1&&k.indexOf("m-ui-disabled ")<0)break;a=a.parentNode}return a}a.fn.buttonMarkup=function(f){for(var k=function(b,h){e.setAttribute("data-"+a.mobile.ns+b,h);c.jqmData(b,h)},f=f&&a.type(f)==="object"?f:{},b=0;b<this.length;b++){var c=this.eq(b),e=c[0],h=a.extend({},a.fn.buttonMarkup.defaults,{icon:f.icon!==d?f.icon:c.jqmData("icon"),iconpos:f.iconpos!==d?f.iconpos:c.jqmData("iconpos"),
theme:f.theme!==d?f.theme:c.jqmData("theme")||a.mobile.getInheritedTheme(c,"c"),mobilePerfomance:f.mobilePerfomance!==d?f.mobilePerfomance:c.jqmData("mobilePerfomance"),inline:f.inline!==d?f.inline:c.jqmData("inline"),shadow:f.shadow!==d?f.shadow:c.jqmData("shadow"),corners:f.corners!==d?f.corners:c.jqmData("corners"),iconshadow:f.iconshadow!==d?f.iconshadow:c.jqmData("iconshadow"),mini:f.mini!==d?f.mini:c.jqmData("mini")},f),r="m-ui-btn-inner",l,j,m,o,p,n;a.each(h,k);c.jqmData("rel")==="popup"&&
c.attr("href")&&(e.setAttribute("aria-haspopup",!0),e.setAttribute("aria-owns",e.getAttribute("href")));(n=a.data(e.tagName==="INPUT"||e.tagName==="BUTTON"?e.parentNode:e,"buttonElements"))?(e=n.outer,c=a(e),m=n.inner,o=n.text,a(n.icon).remove(),n.icon=null):(m=document.createElement(h.wrapperEls),o=document.createElement(h.wrapperEls));p=h.icon?document.createElement("span"):null;g&&!n&&!h.mobilePerfomance&&g();if(!h.theme)h.theme=a.mobile.getInheritedTheme(c,"c");l="m-ui-btn m-ui-btn-up-"+h.theme;
l+=h.shadow?" m-ui-shadow":"";l+=h.corners?" m-ui-btn-corner-all":"";h.mini!==d&&(l+=h.mini===!0?" m-ui-mini":" m-ui-fullsize");h.inline!==d&&(l+=h.inline===!0?" m-ui-btn-inline":" m-ui-btn-block");if(h.icon)h.icon="m-ui-icon-"+h.icon,h.iconpos=h.iconpos||"left",j="m-ui-icon "+h.icon,h.iconshadow&&(j+=" m-ui-icon-shadow");h.iconpos&&(l+=" m-ui-btn-icon-"+h.iconpos,h.iconpos==="notext"&&!c.attr("title")&&c.attr("title",c.getEncodedText()));r+=h.corners?" m-ui-btn-corner-all":"";h.iconpos&&h.iconpos===
"notext"&&!c.attr("title")&&c.attr("title",c.getEncodedText());n&&c.removeClass(n.bcls||"");c.removeClass("m-ui-link").addClass(l);m.className=r;o.className="m-ui-btn-text";n||m.appendChild(o);if(p&&(p.className=j,!n||!n.icon))p.innerHTML="&#160;",m.appendChild(p);for(;e.firstChild&&!n;)o.appendChild(e.firstChild);n||e.appendChild(m);n={bcls:l,outer:e,inner:m,text:o,icon:p};a.data(e,"buttonElements",n);a.data(m,"buttonElements",n);a.data(o,"buttonElements",n);p&&a.data(p,"buttonElements",n)}return this};
a.fn.buttonMarkup.defaults={corners:!0,shadow:!0,iconshadow:!0,inline:!1,wrapperEls:"span",mobilePerfomance:!1};var g=function(){var f=a.mobile.buttonMarkup.hoverDelay,k,b;a(document).bind({"vmousedown vmousecancel vmouseup vmouseover vmouseout focus blur scrollstart":function(c){var e,h=a(j(c.target)),g=c.originalEvent&&/^touch/.test(c.originalEvent.type),c=c.type;if(h.length&&h.attr("data-mobilespeed")!="true")if(e=h.attr("data-"+a.mobile.ns+"theme"),c==="vmousedown")g?k=setTimeout(function(){h.removeClass("m-ui-btn-up-"+
e).addClass("m-ui-btn-down-"+e)},f):h.removeClass("m-ui-btn-up-"+e).addClass("m-ui-btn-down-"+e);else if(c==="vmousecancel"||c==="vmouseup")h.removeClass("m-ui-btn-down-"+e).addClass("m-ui-btn-up-"+e);else if(c==="vmouseover"||c==="focus")g?b=setTimeout(function(){h.removeClass("m-ui-btn-up-"+e).addClass("m-ui-btn-hover-"+e)},f):h.removeClass("m-ui-btn-up-"+e).addClass("m-ui-btn-hover-"+e);else if(c==="vmouseout"||c==="blur"||c==="scrollstart")h.removeClass("m-ui-btn-hover-"+e+" m-ui-btn-down-"+e).addClass("m-ui-btn-up-"+
e),k&&clearTimeout(k),b&&clearTimeout(b)},"focusin focus":function(b){a(j(b.target)).addClass(a.mobile.focusClass)},"focusout blur":function(b){a(j(b.target)).removeClass(a.mobile.focusClass)}});g=null}})(jQuery);
(function(a,d){a.widget("mobile.widget",{_createWidget:function(){a.Widget.prototype._createWidget.apply(this,arguments);this._trigger("init")},_getCreateOptions:function(){var j=this.element,g={};a.each(this.options,function(a){var k=j.jqmData(a.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}));k!==d&&(g[a]=k)});return g},enhanceWithin:function(d,g){this.enhance(a(this.options.initSelector,a(d)),g)},enhance:function(d,g){var f,k=a(d),k=a.mobile.enhanceable(k);g&&k.length&&(f=(f=a.mobile.closestPageData(k))&&
f.keepNativeSelector()||"",k=k.not(f));k[this.widgetName]()},raise:function(a){throw"Widget ["+this.widgetName+"]: "+a;}})})(jQuery);
(function(a){a(window);var d=a("html");a.mobile.media=function(){var j={},g=a("<div id='jquery-mediatest'></div>"),f=a("<body>").append(g);return function(a){if(!(a in j)){var b=document.createElement("style"),c="@media "+a+" { #jquery-mediatest { position:absolute; } }";b.type="text/css";b.styleSheet?b.styleSheet.cssText=c:b.appendChild(document.createTextNode(c));d.prepend(f).prepend(b);j[a]=g.css("position")==="absolute";f.add(b).remove()}return j[a]}}()})(jQuery);
(function(a,d){function j(a){var e=a.charAt(0).toUpperCase()+a.substr(1),a=(a+" "+b.join(e+" ")+e).split(" "),c;for(c in a)if(k[a[c]]!==d)return!0}function g(a,e,c){for(var h=document.createElement("div"),f=function(b){var c="-"+b.charAt(0).toLowerCase()+b.substr(1)+"-"+a+": "+e+";",b=b.charAt(0).toUpperCase()+b.substr(1)+(a.charAt(0).toUpperCase()+a.substr(1));h.setAttribute("style",c);h.style[b]&&(k=!0)},c=c?[c]:b,k,g=0;g<c.length;g++)f(c[g]);return!!k}var f=a("<body>").prependTo("html"),k=f[0].style,
b=["Webkit","Moz","O"],c="palmGetResource"in window,e=window.opera,h=window.operamini&&{}.toString.call(window.operamini)==="[object OperaMini]",r=window.blackberry&&!j("-webkit-transform");a.extend(a.mobile,{browser:{}});a.mobile.browser.ie=function(){var a=3,b=document.createElement("div"),e=b.all||[];do b.innerHTML="<\!--[if gt IE "+ ++a+"]><br><![endif]--\>";while(e[0]);return a>4?a:!a}();a.extend(a.support,{cssTransitions:"WebKitTransitionEvent"in window||g("transition","height 100ms linear")&&
!e,pushState:"pushState"in history&&"replaceState"in history,mediaquery:a.mobile.media("only all"),cssPseudoElement:!!j("content"),touchOverflow:!!j("overflowScrolling"),cssTransform3d:g("perspective","10px","moz")||a.mobile.media("(-"+b.join("-transform-3d),(-")+"-transform-3d),(transform-3d)"),boxShadow:!!j("boxShadow")&&!r,scrollTop:("pageXOffset"in window||"scrollTop"in document.documentElement||"scrollTop"in f[0])&&!c&&!h,dynamicBaseTag:function(){var b=location.protocol+"//"+location.host+location.pathname+
"m-ui-dir/",e=a("head base"),c=null,h="",k;e.length?h=e.attr("href"):e=c=a("<base>",{href:b}).appendTo("head");k=a("<a href='testurl' />").prependTo(f)[0].href;e[0].href=h||location.pathname;c&&c.remove();return k.indexOf(b)===0}(),cssPointerEvents:function(){var a=document.createElement("x"),b=document.documentElement,e=window.getComputedStyle;if(!("pointerEvents"in a.style))return!1;a.style.pointerEvents="auto";a.style.pointerEvents="x";b.appendChild(a);e=e&&e(a,"").pointerEvents==="auto";b.removeChild(a);
return!!e}(),boundingRect:typeof document.createElement("div").getBoundingClientRect!=="undefined"});f.remove();c=function(){var a=window.navigator.userAgent;return a.indexOf("Nokia")>-1&&(a.indexOf("Symbian/3")>-1||a.indexOf("Series60/5")>-1)&&a.indexOf("AppleWebKit")>-1&&a.match(/(BrowserNG|NokiaBrowser)\/7\.[0-3]/)}();a.mobile.gradeA=function(){return(a.support.mediaquery||a.mobile.browser.ie&&a.mobile.browser.ie>=7)&&(a.support.boundingRect||a.fn.jquery.match(/1\.[0-7+]\.[0-9+]?/)!==null)};a.mobile.ajaxBlacklist=
window.blackberry&&!window.WebKitPoint||h||c;c&&a(function(){a("head link[rel='stylesheet']").attr("rel","alternate stylesheet").attr("rel","stylesheet")});a.support.boxShadow||a("html").addClass("m-ui-mobile-nosupport-boxshadow")})(jQuery);(function(a){a.extend(a.support,{orientation:"orientation"in window&&"onorientationchange"in window})})(jQuery);
(function(a){var d={touch:"ontouchend"in document};a.mobile=a.mobile||{};a.mobile.support=a.mobile.support||{};a.extend(a.support,d);a.extend(a.mobile.support,d)})(jQuery);
(function(a,d){function j(){var a=k();a!==b&&(b=a,g.trigger(f))}var g=a(d),f="orientationchange",k,b,c,e,h={0:!0,180:!0};if(a.support.orientation&&(c=d.innerWidth||a(d).width(),e=d.innerHeight||a(d).height(),c=c>e&&c-e>50,e=h[d.orientation],c&&e||!c&&!e))h={"-90":!0,90:!0};a.event.special.orientationchange=a.extend({},a.event.special.orientationchange,{setup:function(){if(a.support.orientation&&!a.event.special.orientationchange.disabled)return!1;b=k();g.bind("throttledresize",j)},teardown:function(){if(a.support.orientation&&
!a.event.special.orientationchange.disabled)return!1;g.unbind("throttledresize",j)},add:function(a){var b=a.handler;a.handler=function(a){a.orientation=k();return b.apply(this,arguments)}}});a.event.special.orientationchange.orientation=k=function(){var b=!0,b=document.documentElement;return(b=a.support.orientation?h[d.orientation]:b&&b.clientWidth/b.clientHeight<1.1)?"portrait":"landscape"};a.fn[f]=function(a){return a?this.bind(f,a):this.trigger(f)};a.attrFn&&(a.attrFn[f]=!0)})(jQuery,this);
(function(a){a.event.special.throttledresize={setup:function(){a(this).bind("resize",d)},teardown:function(){a(this).unbind("resize",d)}};var d=function(){f=(new Date).getTime();k=f-j;k>=250?(j=f,a(this).trigger("throttledresize")):(g&&clearTimeout(g),g=setTimeout(d,250-k))},j=0,g,f,k})(jQuery);
(function(a,d,j){function g(b,e,h){var f=h.type;h.type=e;a.event.handle.call(b,h);h.type=f}a.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(b,e){a.fn[e]=function(a){return a?this.bind(e,a):this.trigger(e)};a.attrFn&&(a.attrFn[e]=!0)});var f=(d=a.mobile.support.touch)?"touchstart":"mousedown",k=d?"touchend":"mouseup",b=d?"touchmove":"mousemove";a.event.special.scrollstart={enabled:!0,setup:function(){function b(a,c){h=c;g(e,h?
"scrollstart":"scrollstop",a)}var e=this,h,f;a(e).bind("touchmove scroll",function(e){a.event.special.scrollstart.enabled&&(h||b(e,!0),clearTimeout(f),f=setTimeout(function(){b(e,!1)},50))})}};a.event.special.tap={tapholdThreshold:750,setup:function(){var b=this,e=a(b);e.bind("vmousedown",function(h){function f(){clearTimeout(o)}function k(){f();e.unbind("vclick",d).unbind("vmouseup",f);a(document).unbind("vmousecancel",k)}function d(a){k();j===a.target&&g(b,"tap",a)}if(h.which&&h.which!==1)return!1;
var j=h.target,o;e.bind("vmouseup",f).bind("vclick",d);a(document).bind("vmousecancel",k);o=setTimeout(function(){g(b,"taphold",a.Event("taphold",{target:j}))},a.event.special.tap.tapholdThreshold)})}};a.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1E3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var c=a(this);c.bind(f,function(e){function h(b){if(g){var e=b.originalEvent.touches?b.originalEvent.touches[0]:b;d={time:(new Date).getTime(),coords:[e.pageX,
e.pageY]};Math.abs(g.coords[0]-d.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var f=e.originalEvent.touches?e.originalEvent.touches[0]:e,g={time:(new Date).getTime(),coords:[f.pageX,f.pageY],origin:a(e.target)},d;c.bind(b,h).one(k,function(){c.unbind(b,h);g&&d&&d.time-g.time<a.event.special.swipe.durationThreshold&&Math.abs(g.coords[0]-d.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(g.coords[1]-d.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&
g.origin.trigger("swipe").trigger(g.coords[0]>d.coords[0]?"swipeleft":"swiperight");g=d=j})})}};a.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(b,e){a.event.special[b]={setup:function(){a(this).bind(e,a.noop)}}})})(jQuery,this);
(function(a,d,j){var g={};a.mobile=a.extend({},{version:"1.2.0",ns:"",subPageUrlKey:"m-ui-page",activePageClass:"m-ui-page-active",activeBtnClass:"m-ui-btn-active",focusClass:"m-ui-focus",ajaxEnabled:!1,hashListeningEnabled:!1,linkBindingEnabled:!0,defaultPageTransition:"fade",maxTransitionWidth:!1,minScrollBack:250,touchOverflowEnabled:!1,defaultDialogTransition:"pop",pageLoadErrorMessage:"Error Loading Page",pageLoadErrorMessageTheme:"e",phonegapNavigationEnabled:!1,autoInitializePage:!1,pushStateEnabled:!0,
ignoreContentEnabled:!1,orientationChangeEnabled:!0,buttonMarkup:{hoverDelay:200},keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91},behaviors:{},silentScroll:function(b){if(a.type(b)!==
"number")b=a.mobile.defaultHomeScroll;a.event.special.scrollstart.enabled=!1;setTimeout(function(){d.scrollTo(0,b);a(document).trigger("silentscroll",{x:0,y:b})},20);setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},nsNormalizeDict:g,nsNormalize:function(b){return!b?void 0:g[b]||(g[b]=a.camelCase(a.mobile.ns+b))},getInheritedTheme:function(a,c){for(var e=a[0],h="",f=/m-ui-(bar|body|overlay)-([a-z])\b/,k,g;e;){if((k=e.className||"")&&(g=f.exec(k))&&(h=g[2]))break;e=e.parentNode}return h||
c||"a"},closestPageData:function(a){return a.closest(':jqmData(role="page"), :jqmData(role="dialog")').data("page")},enhanceable:function(a){return this.haveParents(a,"enhance")},hijackable:function(a){return this.haveParents(a,"ajax")},haveParents:function(b,c){if(!a.mobile.ignoreContentEnabled)return b;for(var e=b.length,h=a(),f,k,g,d=0;d<e;d++){k=b.eq(d);g=!1;for(f=b[d];f;){if((f.getAttribute?f.getAttribute("data-"+a.mobile.ns+c):"")==="false"){g=!0;break}f=f.parentNode}g||(h=h.add(k))}return h},
getScreenHeight:function(){return d.innerHeight||a(d).height()}},a.mobile);a.fn.jqmData=function(b,c){var e;typeof b!=="undefined"&&(b&&(b=a.mobile.nsNormalize(b)),e=arguments.length<2||c===j?this.data(b):this.data(b,c));return e};a.jqmData=function(b,c,e){var h;typeof c!=="undefined"&&(h=a.data(b,c?a.mobile.nsNormalize(c):c,e));return h};a.fn.jqmRemoveData=function(b){return this.removeData(a.mobile.nsNormalize(b))};a.jqmRemoveData=function(b,c){return a.removeData(b,a.mobile.nsNormalize(c))};a.fn.removeWithDependents=
function(){a.removeWithDependents(this)};a.removeWithDependents=function(b){b=a(b);(b.jqmData("dependents")||a()).remove();b.remove()};a.fn.addDependents=function(b){a.addDependents(a(this),b)};a.addDependents=function(b,c){var e=a(b).jqmData("dependents")||a();a(b).jqmData("dependents",a.merge(e,c))};a.fn.getEncodedText=function(){return a("<div/>").text(a(this).text()).html()};a.fn.jqmEnhanceable=function(){return a.mobile.enhanceable(this)};a.fn.jqmHijackable=function(){return a.mobile.hijackable(this)};
var f=a.find,k=/:jqmData\(([^)]*)\)/g;a.find=function(b,c,e,h){b=b.replace(k,"[data-"+(a.mobile.ns||"")+"$1]");return f.call(this,b,c,e,h)};a.extend(a.find,f);a.find.matches=function(b,c){return a.find(b,null,null,c)};a.find.matchesSelector=function(b,c){return a.find(c,null,null,[b]).length>0}})(jQuery,this);(function(a){a.mobile.behaviors.formReset={_handleFormReset:function(){this._on(this.element.closest("form"),{reset:function(){this._delay("_reset")}})}}})(jQuery);
(function(a,d){a.widget("mobile.mobileSlider",a.mobile.widget,{options:{theme:null,trackTheme:null,disabled:!1,initSelector:"input[type='range'], :jqmData(type='range'), :jqmData(role='slider')",mini:!1},_create:function(){var j=this,g=this.element,f=a.mobile.getInheritedTheme(g,"c"),k=this.options.theme||f,f=this.options.trackTheme||f,b=g[0].nodeName.toLowerCase(),c=b==="select"?"m-ui-slider-switch":"",e=g.attr("id"),h=a("[for='"+e+"']"),r=h.attr("id")||e+"-label",h=h.attr("id",r),l=function(){return b===
"input"?parseFloat(g.val()):g[0].selectedIndex},t=b==="input"?parseFloat(g.attr("min")):0,m=b==="input"?parseFloat(g.attr("max")):g.find("option").length-1,o=window.parseFloat(g.attr("step")||1),p=this.options.inline||g.jqmData("inline")===!0?" m-ui-slider-inline":"",n=this.options.mini||g.jqmData("mini")?" m-ui-slider-mini":"",q=document.createElement("a"),v=a(q),e=document.createElement("div"),s=a(e),u=this.options.highlight,y=g.jqmData("highlight")&&b!=="select"?function(){var b=document.createElement("div");
b.className="m-ui-slider-bg "+a.mobile.activeBtnClass+" m-ui-btn-corner-all";u&&a(b).css("background",u);return a(b).prependTo(s)}():!1;this._type=b;q.setAttribute("href","#");e.setAttribute("role","application");e.className=["m-ui-slider ",c," m-ui-btn-down-",f," m-ui-btn-corner-all",p,n].join("");q.className="m-ui-slider-handle";e.appendChild(q);v.buttonMarkup({corners:!0,theme:k,shadow:!0}).attr({role:"slider","aria-valuemin":t,"aria-valuemax":m,"aria-valuenow":l(),"aria-valuetext":l(),title:l(),
"aria-labelledby":r});a.extend(this,{slider:s,handle:v,valuebg:y,dragging:!1,beforeStart:null,userModified:!1,mouseMoved:!1});if(b==="select"){k=document.createElement("div");k.className="m-ui-slider-inneroffset";c=0;for(r=e.childNodes.length;c<r;c++)k.appendChild(e.childNodes[c]);e.appendChild(k);v.addClass("m-ui-slider-handle-snapping");k=g.find("option");e=0;for(c=k.length;e<c;e++)r=!e?"b":"a",p=!e?" m-ui-btn-down-"+f:" "+a.mobile.activeBtnClass,document.createElement("div"),n=document.createElement("span"),
n.className=["m-ui-slider-label m-ui-slider-label-",r,p," m-ui-btn-corner-all"].join(""),n.setAttribute("role","img"),n.appendChild(document.createTextNode(k[e].innerHTML)),a(n).prependTo(s);j._labels=a(".m-ui-slider-label",s)}h.addClass("m-ui-slider");g.addClass(b==="input"?"m-ui-slider-input":"m-ui-slider-switch").change(function(){j.mouseMoved||j.refresh(l(),!0)}).keyup(function(){j.refresh(l(),!0,!0)}).blur(function(){j.refresh(l(),!0)});this._preventDocumentDrag=function(a){if(j.dragging&&!j.options.disabled)return j.mouseMoved=
!0,b==="select"&&v.removeClass("m-ui-slider-handle-snapping"),j.refresh(a),j.userModified=j.beforeStart!==g[0].selectedIndex,!1};this._on(a(document),{vmousemove:this._preventDocumentDrag});g.bind("vmouseup",a.proxy(j._checkedRefresh,j));s.bind("vmousedown",function(a){if(j.options.disabled)return!1;j.dragging=!0;j.userModified=!1;j.mouseMoved=!1;if(b==="select")j.beforeStart=g[0].selectedIndex;j.refresh(a);j._trigger("start");return!1}).bind("vclick",!1);this._sliderMouseUp=function(){if(j.dragging)return j.dragging=
!1,b==="select"&&(v.addClass("m-ui-slider-handle-snapping"),j.mouseMoved?j.userModified?j.refresh(j.beforeStart===0?1:0):j.refresh(j.beforeStart):j.refresh(j.beforeStart===0?1:0)),j.mouseMoved=!1,j._trigger("stop"),!1};this._on(s.add(document),{vmouseup:this._sliderMouseUp});s.insertAfter(g);b==="select"&&this.handle.bind({focus:function(){s.addClass(a.mobile.focusClass)},blur:function(){s.removeClass(a.mobile.focusClass)}});this.handle.bind({vmousedown:function(){a(this).focus()},vclick:!1,keydown:function(b){var e=
l();if(!j.options.disabled){switch(b.keyCode){case a.mobile.keyCode.HOME:case a.mobile.keyCode.END:case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:if(b.preventDefault(),!j._keySliding)j._keySliding=!0,a(this).addClass("m-ui-state-active")}switch(b.keyCode){case a.mobile.keyCode.HOME:j.refresh(t);break;case a.mobile.keyCode.END:j.refresh(m);break;case a.mobile.keyCode.PAGE_UP:case a.mobile.keyCode.UP:case a.mobile.keyCode.RIGHT:j.refresh(e+
o);break;case a.mobile.keyCode.PAGE_DOWN:case a.mobile.keyCode.DOWN:case a.mobile.keyCode.LEFT:j.refresh(e-o)}}},keyup:function(){if(j._keySliding)j._keySliding=!1,a(this).removeClass("m-ui-state-active")}});this._handleFormReset&&this._handleFormReset();this.refresh(d,d,!0)},_checkedRefresh:function(){this.value!=this._value()&&this.refresh(this._value())},_value:function(){return this._type==="input"?parseFloat(this.element.val()):this.element[0].selectedIndex},_reset:function(){this.refresh(d,
!1,!0)},refresh:function(d,g,f){if(this.options.disabled||this.element.attr("disabled"))this.disable();else{this.value=this._value();var k=this.element,b,c=k[0].nodeName.toLowerCase(),e=c==="input"?parseFloat(k.attr("min")):0,h=c==="input"?parseFloat(k.attr("max")):k.find("option").length-1,r=c==="input"&&parseFloat(k.attr("step"))>0?parseFloat(k.attr("step")):1;if(typeof d==="object"){if(!this.dragging||d.pageX<this.slider.offset().left-8||d.pageX>this.slider.offset().left+this.slider.width()+8)return;
if(d.type!="vmousedown"||e!=0||h!=1||r!=1)b=Math.round((d.pageX-this.slider.offset().left)/this.slider.width()*100)}else d==null&&(d=c==="input"?parseFloat(k.val()||0):k[0].selectedIndex),b=(parseFloat(d)-e)/(h-e)*100;if(!isNaN(b)){b<0&&(b=0);b>100&&(b=100);var d=b/100*(h-e)+e,l=(d-e)%r;d-=l;Math.abs(l)*2>=r&&(d+=l>0?r:-r);d=parseFloat(d.toFixed(5));d<e&&(d=e);d>h&&(d=h);this.handle.css("left",b+"%");this.handle.attr({"aria-valuenow":c==="input"?d:k.find("option").eq(d).attr("value"),"aria-valuetext":c===
"input"?d:k.find("option").eq(d).getEncodedText(),title:c==="input"?d:k.find("option").eq(d).getEncodedText()});this.valuebg&&this.valuebg.css("width",b+"%");if(this._labels){var e=this.handle.width()/this.slider.width()*100,t=b&&e+(100-e)*b/100,m=b===100?0:Math.min(e+100-t,100);this._labels.each(function(){var b=a(this).is(".m-ui-slider-label-a");a(this).width((b?t:m)+"%")})}if(!f)f=!1,c==="input"?(f=k.val()!==d,k.val(d)):(f=k[0].selectedIndex!==d,k[0].selectedIndex=d),!g&&f&&k.trigger("change")}}},
enable:function(){this.element.attr("disabled",!1);this.slider.removeClass("m-ui-disabled").attr("aria-disabled",!1);return this._setOption("disabled",!1)},disable:function(){this.element.attr("disabled",!0);this.slider.addClass("m-ui-disabled").attr("aria-disabled",!0);return this._setOption("disabled",!0)}});a.widget("mobile.mobileSlider",a.mobile.mobileSlider,a.mobile.behaviors.formReset);a.widget("mobile.mobileSlider",a.mobile.mobileSlider,{widgetEventPrefix:"slide"})})(jQuery);
(function(a,d){a.widget("mobile.mobileButton",a.mobile.widget,{options:{theme:null,icon:null,iconpos:null,corners:!0,shadow:!0,iconshadow:!0,initSelector:"button, [type='button'], [type='submit'], [type='reset']"},_create:function(){var j=this.element,g,f=this.options,k;k=f.inline||j.jqmData("inline");var b=f.mini||j.jqmData("mini"),c="",e;if(j[0].tagName==="A")j.hasClass("m-ui-btn")||j.buttonMarkup({theme:f.theme,icon:f.icon,iconpos:f.iconpos,inline:k,corners:f.corners,shadow:f.shadow,iconshadow:f.iconshadow,
mobilePerfomance:f.mobilePerfomance,mini:b});else{if(!this.options.theme)this.options.theme=a.mobile.getInheritedTheme(this.element,"c");~j[0].className.indexOf("m-ui-btn-left")&&(c="m-ui-btn-left");~j[0].className.indexOf("m-ui-btn-right")&&(c="m-ui-btn-right");if(j.attr("type")==="submit"||j.attr("type")==="reset")c?c+=" m-ui-submit":c="m-ui-submit";a("label[for='"+j.attr("id")+"']").addClass("m-ui-submit");g=this.button=a("<div></div>")[j.html()?"html":"text"](j.html()||j.val()).insertBefore(j).buttonMarkup({theme:f.theme,
icon:f.icon,iconpos:f.iconpos,inline:k,corners:f.corners,shadow:f.shadow,iconshadow:f.iconshadow,mobilePerfomance:f.mobilePerfomance,mini:b}).addClass(c).append(j.addClass("m-ui-btn-hidden"));f=j.attr("type");k=j.attr("name");f!=="button"&&f!=="reset"&&k&&j.bind("vclick",function(){e===d&&(e=a("<input>",{type:"hidden",name:j.attr("name"),value:j.attr("value")}).insertBefore(j),a(document).one("submit",function(){e.remove();e=d}))});j.bind({focus:function(){g.addClass(a.mobile.focusClass)},blur:function(){g.removeClass(a.mobile.focusClass)}});
this.refresh()}},enable:function(){this.element.attr("disabled",!1);this.button&&this.button.removeClass("m-ui-disabled").attr("aria-disabled",!1);return this._setOption("disabled",!1)},disable:function(){this.element.attr("disabled",!0);this.button&&this.button.addClass("m-ui-disabled").attr("aria-disabled",!0);return this._setOption("disabled",!0)},refresh:function(){var d=this.element;d.prop("disabled")?this.disable():this.enable();this.button&&a(this.button.data("buttonElements").text)[d.html()?
"html":"text"](d.html()||d.val())}})})(jQuery);
(function(a,d){a.widget("mobile.checkboxradio",a.mobile.widget,{options:{theme:null,mini:!1,initSelector:"input[type='checkbox'],input[type='radio']"},_create:function(){var j=this,g=this.element,f=this.options,k=a(g).closest("label"),b=a(g).next("label"),k=k.length?k:b.length?b:a(g).closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog'),.ac-m-ui-checkbox-radio-container").find("label").filter("[for='"+g[0].id+"']").first(),c=g[0].type,b=g.jqmData("mini")||g.closest("form, fieldset").jqmData("mini")||
f.mini,e=c+"-on",h=c+"-off",r=g.parents(":jqmData(type='horizontal')").length?d:h,l=g.jqmData("iconpos")||g.closest("form, fieldset").jqmData("iconpos");if(!(c!=="checkbox"&&c!=="radio")){a.extend(this,{label:k,inputtype:c,checkedClass:"m-ui-"+e+(r?"":" "+a.mobile.activeBtnClass),uncheckedClass:"m-ui-"+h,checkedicon:"m-ui-icon-"+e,uncheckedicon:"m-ui-icon-"+h});if(!f.theme)f.theme=a.mobile.getInheritedTheme(this.element,"c");k.buttonMarkup({theme:f.theme,icon:r,shadow:!1,mobilePerfomance:f.mobilePerfomance,
mini:b,iconpos:l});f=document.createElement("div");f.className="m-ui-"+c;g.add(k).wrapAll(f);k.bind({vmouseover:function(b){a(this).parent().is(".m-ui-disabled")&&b.stopPropagation()},vclick:function(a){if(g.is(":disabled"))a.preventDefault();else return j._cacheVals(),g.prop("checked",c==="radio"&&!0||!g.prop("checked")),g.triggerHandler("click"),j._getInputSet().not(g).prop("checked",!1),j._updateAll(),!1}});g.bind({vmousedown:function(){j._cacheVals()},vclick:function(){var b=a(this);b.is(":checked")?
(b.prop("checked",!0),j._getInputSet().not(b).prop("checked",!1)):b.prop("checked",!1);j._updateAll()}});this._handleFormReset&&this._handleFormReset();this.refresh()}},_cacheVals:function(){this._getInputSet().each(function(){a(this).jqmData("cacheVal",this.checked)})},_getInputSet:function(){return this.inputtype==="checkbox"?this.element:this.element.closest("form, fieldset, :jqmData(role='page'), :jqmData(role='dialog')").find("input[name='"+this.element[0].name+"'][type='"+this.inputtype+"']")},
_updateAll:function(){var d=this;this._getInputSet().each(function(){var g=a(this);(this.checked||d.inputtype==="checkbox")&&g.trigger("change")}).checkboxradio("refresh")},_reset:function(){this.refresh()},refresh:function(){var a=this.element[0],g=this.label,f=g.find(".m-ui-icon");a.checked?(g.addClass(this.checkedClass).removeClass(this.uncheckedClass),f.addClass(this.checkedicon).removeClass(this.uncheckedicon)):(g.removeClass(this.checkedClass).addClass(this.uncheckedClass),f.removeClass(this.checkedicon).addClass(this.uncheckedicon));
a.disabled?this.disable():this.enable()},disable:function(){this.element.prop("disabled",!0).parent().addClass("m-ui-disabled")},enable:function(){this.element.prop("disabled",!1).parent().removeClass("m-ui-disabled")}});a.widget("mobile.checkboxradio",a.mobile.checkboxradio,a.mobile.behaviors.formReset)})(jQuery);
(function(a){a.widget("mobile.textinput",a.mobile.widget,{options:{theme:null,mini:!1,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"input[type='text'], input[type='search'], :jqmData(type='search'), input[type='number'], :jqmData(type='number'), input[type='password'], input[type='email'], input[type='url'], input[type='tel'], textarea, input[type='time'], input[type='date'], input[type='month'], input[type='week'], input[type='datetime'], input[type='datetime-local'], input[type='color'], input:not([type])",
clearSearchButtonText:"clear text",disabled:!1},_create:function(){function d(){setTimeout(function(){h.toggleClass("m-ui-input-clear-hidden",!g.val())},0)}var j=this,g=this.element,f=this.options,k=f.theme||a.mobile.getInheritedTheme(this.element,"c"),b=" m-ui-body-"+k,c=f.mini?" m-ui-mini":"",e,h;a("label[for='"+g.attr("id")+"']").addClass("m-ui-input-text");e=g.addClass("m-ui-input-text m-ui-body-"+k);typeof g[0].autocorrect!=="undefined"&&!a.support.touchOverflow&&(g[0].setAttribute("autocorrect",
"off"),g[0].setAttribute("autocomplete","off"));g.is("[type='search'],:jqmData(type='search')")?(e=g.wrap("<div class='m-ui-input-search m-ui-shadow-inset m-ui-btn-corner-all m-ui-btn-shadow m-ui-icon-searchfield"+b+c+"'></div>").parent(),h=a("<a href='#' class='m-ui-input-clear' title='"+f.clearSearchButtonText+"'>"+f.clearSearchButtonText+"</a>").bind("click",function(a){g.val("").focus().trigger("change");h.addClass("m-ui-input-clear-hidden");a.preventDefault()}).appendTo(e).buttonMarkup({icon:"delete",
iconpos:"notext",corners:!0,shadow:!0,mini:f.mini}),d(),g.bind("paste cut keyup focus change blur",d)):g.addClass("m-ui-corner-all m-ui-shadow-inset"+b+c);g.focus(function(){e.addClass(a.mobile.focusClass)}).blur(function(){e.removeClass(a.mobile.focusClass)}).bind("focus",function(){f.preventFocusZoom&&a.mobile.zoom.disable(!0)}).bind("blur",function(){f.preventFocusZoom&&a.mobile.zoom.enable(!0)});if(g.is("textarea")){var r;this._keyup=function(){var a=g[0].scrollHeight;g[0].clientHeight<a&&g.height(a+
15)};g.keyup(function(){clearTimeout(r);r=setTimeout(j._keyup,100)});this._on(a(document),{pagechange:"_keyup"});a.trim(g.val())&&this._on(a(window),{load:"_keyup"})}g.attr("disabled")&&this.disable()},disable:function(){(this.element.attr("disabled",!0).is("[type='search'], :jqmData(type='search')")?this.element.parent():this.element).addClass("m-ui-disabled");return this._setOption("disabled",!0)},enable:function(){(this.element.attr("disabled",!1).is("[type='search'], :jqmData(type='search')")?
this.element.parent():this.element).removeClass("m-ui-disabled");return this._setOption("disabled",!1)}})})(jQuery);
(function(a,d){var j=function(g){var f=g._destroy,k=g.selectID,b=g.label,c=g.select.closest(".m-ui-page"),e=g._selectOptions(),h=g.isMultiple=g.select[0].multiple,r=k+"-button",l=k+"-menu",j=a("<div data-"+a.mobile.ns+"role='dialog' data-"+a.mobile.ns+"theme='"+g.options.theme+"' data-"+a.mobile.ns+"overlay-theme='"+g.options.overlayTheme+"'><div data-"+a.mobile.ns+"role='header'><div class='m-ui-title'>"+b.getEncodedText()+"</div></div><div data-"+a.mobile.ns+"role='content'></div></div>"),m=a("<div>",
{"class":"m-ui-selectmenu"}).insertAfter(g.select).popup({theme:g.options.overlayTheme}),o=a("<ul>",{"class":"m-ui-selectmenu-list",id:l,role:"listbox","aria-labelledby":r}).attr("data-"+a.mobile.ns+"theme",g.options.theme).appendTo(m),p=a("<div>",{"class":"m-ui-header m-ui-bar-"+g.options.theme}).prependTo(m),n=a("<h1>",{"class":"m-ui-title"}).appendTo(p),q;g.isMultiple&&(q=a("<a>",{text:g.options.closeText,href:"#","class":"m-ui-btn-left"}).attr("data-"+a.mobile.ns+"iconpos","notext").attr("data-"+
a.mobile.ns+"icon","delete").appendTo(p).buttonMarkup());a.extend(g,{select:g.select,selectID:k,buttonId:r,menuId:l,thisPage:c,menuPage:j,label:b,selectOptions:e,isMultiple:h,theme:g.options.theme,listbox:m,list:o,header:p,headerTitle:n,headerClose:q,menuPageContent:void 0,menuPageClose:void 0,placeholder:"",build:function(){var b=this;b.refresh();if(b._origTabIndex===d&&(b._origTabIndex=b.select.attr("tabindex"),b._origTabIndex===d))b._origTabIndex=!1;b.select.attr("tabindex","-1").focus(function(){a(this).blur();
b.button.focus()});b.button.bind("vclick keydown",function(e){if(e.type==="vclick"||e.keyCode&&(e.keyCode===a.mobile.keyCode.ENTER||e.keyCode===a.mobile.keyCode.SPACE))b.open(),e.preventDefault()});b.list.attr("role","listbox").bind("focusin",function(b){a(b.target).attr("tabindex","0").trigger("vmouseover")}).bind("focusout",function(b){a(b.target).attr("tabindex","-1").trigger("vmouseout")}).delegate("li:not(.m-ui-disabled, .m-ui-li-divider)","vclick",function(e){var c=b.select[0].selectedIndex,
h=b.list.find("li:not(.m-ui-li-divider)").index(this),f=b._selectOptions().eq(h)[0];f.selected=b.isMultiple?!f.selected:!0;b.isMultiple&&a(this).find(".m-ui-icon").toggleClass("m-ui-icon-checkbox-on",f.selected).toggleClass("m-ui-icon-checkbox-off",!f.selected);(b.isMultiple||c!==h)&&b.select.trigger("change");b.isMultiple?b.list.find("li:not(.m-ui-li-divider)").eq(h).addClass("m-ui-btn-down-"+g.options.theme).find("a").first().focus():b.close();e.preventDefault()}).keydown(function(b){var e=a(b.target),
c=e.closest("li");switch(b.keyCode){case 38:return b=c.prev().not(".m-ui-selectmenu-placeholder"),b.is(".m-ui-li-divider")&&(b=b.prev()),b.length&&(e.blur().attr("tabindex","-1"),b.addClass("m-ui-btn-down-"+g.options.theme).find("a").first().focus()),!1;case 40:return b=c.next(),b.is(".m-ui-li-divider")&&(b=b.next()),b.length&&(e.blur().attr("tabindex","-1"),b.addClass("m-ui-btn-down-"+g.options.theme).find("a").first().focus()),!1;case 13:case 32:return e.trigger("click"),!1}});b.menuPage.bind("pagehide",
function(){b.list.appendTo(b.listbox);b._focusButton();a.mobile._bindPageRemove.call(b.thisPage)});b.listbox.bind("popupafterclose",function(){b.close()});b.isMultiple&&b.headerClose.click(function(){if(b.menuType==="overlay")return b.close(),!1});b.thisPage.addDependents(this.menuPage)},_isRebuildRequired:function(){var a=this.list.find("li");return this._selectOptions().text()!==a.text()},selected:function(){return this._selectOptions().filter(":selected:not( :jqmData(placeholder='true') )")},refresh:function(b){var e=
this,c;(b||this._isRebuildRequired())&&e._buildList();c=this.selectedIndices();e.setButtonText();e.setButtonCount();e.list.find("li:not(.m-ui-li-divider)").removeClass(a.mobile.activeBtnClass).attr("aria-selected",!1).each(function(b){a.inArray(b,c)>-1?(b=a(this),b.attr("aria-selected",!0),e.isMultiple?b.find(".m-ui-icon").removeClass("m-ui-icon-checkbox-off").addClass("m-ui-icon-checkbox-on"):b.is(".m-ui-selectmenu-placeholder")?b.next().addClass(a.mobile.activeBtnClass):b.addClass(a.mobile.activeBtnClass)):
b>-1&&(b=a(this),b.attr("aria-selected",!1),e.isMultiple?b.find(".m-ui-icon").removeClass("m-ui-icon-checkbox-on").addClass("m-ui-icon-checkbox-off"):b.removeClass(a.mobile.activeBtnClass))})},close:function(){this.options.disabled||!this.isOpen?this.select&&this.select.trigger("close"):(this.isOpen=!1,this.menuType==="page"?this.menuPage.is(":visible")&&a.mobile.hidePage(this.menuPage,{transition:a.mobile.defaultDialogTransition}):(this.listbox.popup("close"),this.list.appendTo(this.listbox),this._focusButton()),
this.isOpen=!1,this.select.trigger("close"))},open:function(){function b(){var c=e.list.find("."+a.mobile.activeBtnClass+" a");c.length===0&&(c=e.list.find("li.m-ui-btn:not( :jqmData(placeholder='true') ) a"));c.first().focus().closest("li").addClass("m-ui-btn-down-"+g.options.theme)}if(!this.options.disabled){var e=this,c=a(window),h=e.list.parent(),f=h.outerHeight();h.outerWidth();a("."+a.mobile.activePageClass);var h=c.scrollTop(),k=e.button.offset().top,d=c.height();c.width();e.button.addClass(a.mobile.activeBtnClass);
setTimeout(function(){e.button.removeClass(a.mobile.activeBtnClass)},300);if(f>d-80||!a.support.scrollTop){e.menuPage.appendTo(a.mobile.pageContainer).page();e.menuPageContent=j.find(".m-ui-content");e.menuPageClose=j.find(".m-ui-header a");e.thisPage.unbind("pagehide.remove");if(h===0&&k>d)e.thisPage.one("pagehide",function(){a(this).jqmData("lastScroll",k)});e.menuPage.one("pageshow",function(){b();e.isOpen=!0}).one("pagehide",function(){e.isOpen=!1});e.menuType="page";e.menuPageContent.append(e.list);
a.mobile.showPage(e.menuPage,{transition:a.mobile.defaultDialogTransition,dialog:!0});e.menuPage.one("pagehide",function(){e.close()})}else e.menuType="overlay",e.listbox.one("popupafteropen",b).popup("open",{x:e.button.offset().left+e.button.outerWidth()/2,y:e.button.offset().top+e.button.outerHeight()/2}),e.isOpen=!0}},_buildList:function(){var b=this.options,e=this.placeholder,c=!0,h=this.isMultiple?"checkbox-off":"false";this.list.empty().filter(".m-ui-listview").listview("destroy");var f=this.select.find("option"),
k=f.length,g=this.select[0],d="data-"+a.mobile.ns,r=d+"option-index",l=d+"icon",j=d+"role";d+="placeholder";for(var t=document.createDocumentFragment(),m=!1,q,o=0;o<k;o++,m=!1){var p=f[o],n=a(p),I=p.parentNode,L=n.text(),J=document.createElement("a"),w=[];J.setAttribute("href","#");J.appendChild(document.createTextNode(L));I!==g&&I.nodeName.toLowerCase()==="optgroup"&&(I=I.getAttribute("label"),I!==q&&(q=document.createElement("li"),q.setAttribute(j,"list-divider"),q.setAttribute("role","option"),
q.setAttribute("tabindex","-1"),q.appendChild(document.createTextNode(I)),t.appendChild(q),q=I));if(c&&(!p.getAttribute("value")||L.length===0||n.jqmData("placeholder"))){c=!1;m=!0;if(!p.hasAttribute(d))this._removePlaceholderAttr=!0;p.setAttribute(d,!0);b.hidePlaceholderMenuItems&&w.push("m-ui-selectmenu-placeholder");if(!e)e=this.placeholder=L}n=document.createElement("li");p.disabled&&(w.push("m-ui-disabled"),n.setAttribute("aria-disabled",!0));n.setAttribute(r,o);n.setAttribute(l,h);m&&n.setAttribute(d,
!0);n.className=w.join(" ");n.setAttribute("role","option");J.setAttribute("tabindex","-1");n.appendChild(J);t.appendChild(n)}this.list[0].appendChild(t);!this.isMultiple&&!e.length?this.header.hide():this.headerTitle.text(this.placeholder);this.list.listview()},_button:function(){return a("<a>",{href:"#",role:"button",id:this.buttonId,"aria-haspopup":"true","aria-owns":this.menuId})},_destroy:function(){this.close();this._origTabIndex!==d&&(this._origTabIndex!==!1?this.select.attr("tabindex",this._origTabIndex):
this.select.removeAttr("tabindex"));this._removePlaceholderAttr&&this._selectOptions().removeAttr("data-"+a.mobile.ns+"placeholder");this.listbox.remove();f.apply(this,arguments)}})};a(document).bind("selectmenubeforecreate",function(g){g=a(g.target).data("selectmenu");!g.options.nativeMenu&&g.element.parents(":jqmData(role='popup')").length===0&&j(g)})})(jQuery);
(function(a){a.widget("mobile.selectmenu",a.mobile.widget,{options:{theme:null,disabled:!1,icon:"arrow-d",iconpos:"right",inline:!1,corners:!0,shadow:!0,iconshadow:!0,overlayTheme:"a",hidePlaceholderMenuItems:!0,usePlaceholder:null,closeText:"Close",nativeMenu:!0,preventFocusZoom:/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1,initSelector:"select:not( :jqmData(role='slider') )",mini:!1},_button:function(){return a("<div/>")},_setDisabled:function(a){this.element.attr("disabled",
a);this.button.attr("aria-disabled",a);return this._setOption("disabled",a)},_focusButton:function(){var a=this;setTimeout(function(){a.button.focus()},40)},_selectOptions:function(){return this.select.find("option")},_preExtension:function(){var d="";~this.element[0].className.indexOf("m-ui-btn-left")&&(d=" m-ui-btn-left");~this.element[0].className.indexOf("m-ui-btn-right")&&(d=" m-ui-btn-right");this.select=this.element.wrap("<div class='m-ui-select"+d+"'>");this.selectID=this.select.attr("id");
this.label=a("label[for='"+this.selectID+"']").addClass("m-ui-select");this.isMultiple=this.select[0].multiple;if(!this.options.theme)this.options.theme=a.mobile.getInheritedTheme(this.select,"c")},_destroy:function(){var a=this.element.parents(".m-ui-select");a.length>0&&(this.element.insertAfter(a),a.remove())},_create:function(){this._preExtension();this._trigger("beforeCreate");this.button=this._button();var d=this,j=this.options,g=j.inline||this.select.jqmData("inline"),f=j.mini||this.select.jqmData("mini"),
k=j.icon?j.iconpos||this.select.jqmData("iconpos"):!1,b=this.select[0].selectedIndex===-1?0:this.select[0].selectedIndex,g=this.button.insertBefore(this.select).buttonMarkup({theme:j.theme,icon:j.icon,iconpos:k,inline:g,corners:j.corners,shadow:j.shadow,iconshadow:j.iconshadow,mobilePerfomance:j.mobilePerfomance,mini:f});this.placeholder=j.usePlaceholder||a(this.select[0].options.item(b)).text();this.setButtonText();j.nativeMenu&&window.opera&&window.opera.version&&g.addClass("m-ui-select-nativeonly");
if(this.isMultiple)this.buttonCount=a("<span>").addClass("m-ui-li-count m-ui-btn-up-c m-ui-btn-corner-all").hide().appendTo(g.addClass("m-ui-li-has-count"));(j.disabled||this.element.attr("disabled"))&&this.disable();this.select.change(function(){d.refresh()});d.options.preventFocusZoom&&this.select.blur(function(){d.refresh()});this._handleFormReset&&this._handleFormReset();this.build()},build:function(){var d=this;this.select.appendTo(d.button);this.options.mobilePerfomance!=!0&&this.select.bind("vmousedown",
function(){d.button.addClass(a.mobile.activeBtnClass)}).bind("focus",function(){d.button.addClass(a.mobile.focusClass)}).bind("blur",function(){d.button.removeClass(a.mobile.focusClass)}).bind("focus vmouseover",function(){d.button.trigger("vmouseover")}).bind("vmousemove",function(){d.button.removeClass(a.mobile.activeBtnClass)}).bind("change blur vmouseout",function(){d.button.trigger("vmouseout").removeClass(a.mobile.activeBtnClass)}).bind("change blur",function(){d.button.removeClass("m-ui-btn-down-"+
d.options.theme)});d.button.bind("vmousedown",function(){d.options.preventFocusZoom&&a.mobile.zoom.disable(!0)}).bind("mouseup",function(){d.options.preventFocusZoom&&setTimeout(function(){a.mobile.zoom.enable(!0)},0)})},selected:function(){return this._selectOptions().filter(":selected")},selectedIndices:function(){var a=this;return this.selected().map(function(){return a._selectOptions().index(this)}).get()},setButtonText:function(){var d=this,j=this.selected(),g=this.placeholder,f=a(document.createElement("span"));
this.button.find(".m-ui-btn-text").html(function(){g=j.length?j.map(function(){return a(this).text()}).get().join(", "):d.placeholder;return f.text(g).addClass(d.select.attr("class")).addClass(j.attr("class"))})},setButtonCount:function(){var a=this.selected();this.isMultiple&&this.buttonCount[a.length>1?"show":"hide"]().text(a.length)},_reset:function(){this.refresh()},refresh:function(){this.setButtonText();this.setButtonCount()},open:a.noop,close:a.noop,disable:function(){this._setDisabled(!0);
this.button.addClass("m-ui-disabled")},enable:function(){this._setDisabled(!1);this.button.removeClass("m-ui-disabled")}});a.widget("mobile.selectmenu",a.mobile.selectmenu,a.mobile.behaviors.formReset)})(jQuery);
(function(a){a.widget("mobile.mobileDialog",a.mobile.widget,{options:{closeBtnText:"Close",overlayTheme:"a",initSelector:":jqmData(role='dialog')"},_create:function(){var d=this,j=this.element,g=a("<a href='#' data-"+a.mobile.ns+"icon='delete' data-"+a.mobile.ns+"iconpos='notext'>"+this.options.closeBtnText+"</a>"),f=a("<div/>",{role:"dialog","class":"m-ui-dialog-contain m-ui-corner-all m-ui-overlay-shadow"});j.addClass("m-ui-dialog m-ui-overlay-"+this.options.overlayTheme);j.wrapInner(f).children().find(":jqmData(role='header')").prepend(g).end().children(":first-child").addClass("m-ui-corner-top").end().children(":last-child").addClass("m-ui-corner-bottom");
j.find("a").not(".m-ui-btn, .m-ui-link-inherit, :jqmData(role='none'), :jqmData(role='nojs')").addClass("m-ui-link").buttonMarkup({inline:!0,mobilePerfomance:this.options.mobilePerfomance}).bind("vclick",function(){d.close()});j.bind("vclick submit",function(f){var f=a(f.target).closest(f.type==="vclick"?"a":"form"),b;f.length&&!f.jqmData("transition")&&(b=a.mobile.urlHistory.getActive()||{},f.attr("data-"+a.mobile.ns+"transition",b.transition||a.mobile.defaultDialogTransition).attr("data-"+a.mobile.ns+
"direction","reverse"))}).bind("pagehide",function(){d._isClosed=!1;a(this).find("."+a.mobile.activeBtnClass).not(".m-ui-slider-bg").removeClass(a.mobile.activeBtnClass)}).bind("pagebeforeshow",function(){d._isCloseable=!0;d.options.overlayTheme&&d.element.page("removeContainerBackground").page("setContainerBackground",d.options.overlayTheme)})},close:function(){if(this._isCloseable)this._isCloseable=!1,a.mobile.hidePage(this.element,{transition:a.mobile.defaultDialogTransition})}});a(document).delegate(a.mobile.mobileDialog.prototype.options.initSelector,
"pagecreate",function(){a.mobile.mobileDialog.prototype.enhance(this)})})(jQuery,this);
(function(a){a.widget("mobile.page",a.mobile.widget,{options:{theme:"c",domCache:!1,keepNativeDefault:":jqmData(role='none'), :jqmData(role='nojs')"},_create:function(){var a=this;if(a._trigger("beforecreate")===!1)return!1;a.element.attr("tabindex","0").addClass("m-ui-page m-ui-body-"+a.options.theme).bind("pagebeforehide pagehide",function(){a.removeContainerBackground()}).bind("pagebeforeshow",function(){a.setContainerBackground()})},removeContainerBackground:function(){a.mobile.pageContainer.removeClass("m-ui-overlay-"+
a.mobile.getInheritedTheme(this.element.parent()))},setContainerBackground:function(d){this.options.theme&&a.mobile.pageContainer.addClass("m-ui-overlay-"+(d||this.options.theme))},keepNativeSelector:function(){var d=this.options;return d.keepNative&&a.trim(d.keepNative)&&d.keepNative!==d.keepNativeDefault?[d.keepNative,d.keepNativeDefault].join(", "):d.keepNativeDefault}})})(jQuery);
(function(a){a.mobile.page.prototype.options.backBtnText="Back";a.mobile.page.prototype.options.addBackBtn=!1;a.mobile.page.prototype.options.backBtnTheme=null;a.mobile.page.prototype.options.headerTheme="a";a.mobile.page.prototype.options.footerTheme="a";a.mobile.page.prototype.options.contentTheme=null;a(document).bind("pagecreate",function(d){var j=a(d.target),g=j.data("page").options,f=j.jqmData("role"),k=g.theme;f!="page"&&a(":jqmData(role='header'), :jqmData(role='footer'), :jqmData(role='content')",
j).jqmEnhanceable().each(function(){var b=a(this),c=b.jqmData("role"),e=b.jqmData("theme"),h=e||g.contentTheme||f==="dialog"&&k,d;b.addClass("m-ui-"+c);if(c==="header"||c==="footer"){var l=e||(c==="header"?g.headerTheme:g.footerTheme)||k;b.addClass("m-ui-bar-"+l).attr("role",c==="header"?"banner":"contentinfo");c==="header"&&(e=b.children("a, button"),d=e.hasClass("m-ui-btn-left"),h=e.hasClass("m-ui-btn-right"),d=d||e.eq(0).not(".m-ui-btn-right").addClass("m-ui-btn-left").length,h||e.eq(1).addClass("m-ui-btn-right"));
g.addBackBtn&&c==="header"&&a(".m-ui-page").length>1&&j.jqmData("url")!==a.mobile.path.stripHash(location.hash)&&!d&&a("<a href='javascript:void(0);' class='m-ui-btn-left' data-"+a.mobile.ns+"rel='back' data-"+a.mobile.ns+"icon='arrow-l'>"+g.backBtnText+"</a>").attr("data-"+a.mobile.ns+"theme",g.backBtnTheme||l).prependTo(b);b.children("h1, h2, h3, h4, h5, h6").addClass("m-ui-title").attr({role:"heading","aria-level":"1"})}else c==="content"&&(h&&b.addClass("m-ui-body-"+h),b.attr("role","main"))})})})(jQuery);
(function(a,d){function j(a,k,b,c){var e=c;return e=a<k?b+(a-k)/2:Math.min(Math.max(b,c-k/2),b+a-k)}function g(){var f=a(window);return{x:f.scrollLeft(),y:f.scrollTop(),cx:window.innerWidth||f.width(),cy:window.innerHeight||f.height()}}a.widget("mobile.popup",a.mobile.widget,{options:{theme:null,overlayTheme:null,shadow:!0,corners:!0,transition:"none",positionTo:"origin",tolerance:null,initSelector:":jqmData(role='popup')",closeLinkSelector:"a:jqmData(rel='back')",closeLinkEvents:"click.popup",navigateEvents:"navigate.popup",
closeEvents:"navigate.popup pagebeforechange.popup",history:!a.mobile.browser.ie},_eatEventAndClose:function(a){a.preventDefault();a.stopImmediatePropagation();this.close();return!1},_resizeScreen:function(){var a=this._ui.container.outerHeight(!0);this._ui.screen.removeAttr("style");a>this._ui.screen.height()&&this._ui.screen.height(a)},_handleWindowKeyUp:function(f){if(this._isOpen&&f.keyCode===a.mobile.keyCode.ESCAPE)return this._eatEventAndClose(f)},_expectResizeEvent:function(){var f=g();if(this._resizeData)if(f.x===
this._resizeData.winCoords.x&&f.y===this._resizeData.winCoords.y&&f.cx===this._resizeData.winCoords.cx&&f.cy===this._resizeData.winCoords.cy)return!1;else clearTimeout(this._resizeData.timeoutId);this._resizeData={timeoutId:setTimeout(a.proxy(this,"_resizeTimeout"),200),winCoords:f};return!0},_resizeTimeout:function(){if(this._isOpen){if(!this._expectResizeEvent())this._ui.container.hasClass("m-ui-popup-hidden")&&(this._trigger("beforeposition"),this._ui.container.offset(this._placementCoords(this._desiredCoords(d,
d,"window"))).removeClass("m-ui-popup-hidden")),this._resizeScreen(),this._resizeData=null,this._orientationchangeInProgress=!1}else this._resizeData=null,this._orientationchangeInProgress=!1},_handleWindowResize:function(){this._isOpen&&(this._expectResizeEvent()||this._orientationchangeInProgress)&&!this._ui.container.hasClass("m-ui-popup-hidden")&&this._ui.container.addClass("m-ui-popup-hidden").removeAttr("style")},_handleWindowOrientationchange:function(){if(!this._orientationchangeInProgress&&
this._isOpen)this._expectResizeEvent(),this._orientationchangeInProgress=!0},_create:function(){var f={screen:a("<div class='m-ui-screen-hidden m-ui-popup-screen'></div>"),placeholder:a("<div style='display: none;'><\!-- placeholder --\></div>"),container:a("<div class='m-ui-popup-container m-ui-popup-hidden'></div>")},k=this.element.closest(".m-ui-page"),b=this.element.attr("id"),c=this;this.options.history=this.options.history&&a.mobile.ajaxEnabled&&a.mobile.hashListeningEnabled;k.length===0&&(k=
a("body"));this.options.container=this.options.container||a.mobile.pageContainer;k.append(f.screen);f.container.insertAfter(f.screen);f.placeholder.insertAfter(this.element);b&&(f.screen.attr("id",b+"-screen"),f.container.attr("id",b+"-popup"),f.placeholder.html("<\!-- placeholder for "+b+" --\>"));f.container.append(this.element);this.element.addClass("m-ui-popup");a.extend(this,{_page:k,_ui:f,_fallbackTransition:"",_currentTransition:!1,_prereqs:null,_isOpen:!1,_tolerance:null,_resizeData:null,
_orientationchangeInProgress:!1,_globalHandlers:[{src:a(window),handler:{orientationchange:a.proxy(this,"_handleWindowOrientationchange"),resize:a.proxy(this,"_handleWindowResize"),keyup:a.proxy(this,"_handleWindowKeyUp")}}]});a.each(this.options,function(a,b){c.options[a]=d;c._setOption(a,b,!0)});f.screen.bind("vclick",a.proxy(this,"_eatEventAndClose"));a.each(this._globalHandlers,function(a,b){b.src.bind(b.handler)})},_applyTheme:function(a,k,b){for(var c=(a.attr("class")||"").split(" "),e=null,
h=String(k);c.length>0;)if(e=c.pop(),(e=RegExp("^m-ui-"+b+"-([a-z])$").exec(e))&&e.length>1){e=e[1];break}else e=null;k!==e&&(a.removeClass("m-ui-"+b+"-"+e),k===null||k==="none"||a.addClass("m-ui-"+b+"-"+h))},_setTheme:function(a){this._applyTheme(this.element,a,"body")},_setOverlayTheme:function(a){this._applyTheme(this._ui.screen,a,"overlay");this._isOpen&&this._ui.screen.addClass("in")},_setShadow:function(a){this.element.toggleClass("m-ui-overlay-shadow",a)},_setCorners:function(a){this.element.toggleClass("m-ui-corner-all",
a)},_applyTransition:function(f){this._ui.container.removeClass(this._fallbackTransition);if(f&&f!=="none"){this._fallbackTransition=a.mobile._maybeDegradeTransition(f);if(this._fallbackTransition==="none")this._fallbackTransition="";this._ui.container.addClass(this._fallbackTransition)}},_setTransition:function(a){this._currentTransition||this._applyTransition(a)},_setTolerance:function(f){var k={t:30,r:15,b:30,l:15};if(f){var b=String(f).split(",");a.each(b,function(a,e){b[a]=parseInt(e,10)});switch(b.length){case 1:if(!isNaN(b[0]))k.t=
k.r=k.b=k.l=b[0];break;case 2:if(!isNaN(b[0]))k.t=k.b=b[0];if(!isNaN(b[1]))k.l=k.r=b[1];break;case 4:if(!isNaN(b[0]))k.t=b[0];if(!isNaN(b[1]))k.r=b[1];if(!isNaN(b[2]))k.b=b[2];if(!isNaN(b[3]))k.l=b[3]}}this._tolerance=k},_setOption:function(f,k){var b="_set"+f.charAt(0).toUpperCase()+f.slice(1);if(this[b]!==d)this[b](k);a.mobile.widget.prototype._setOption.apply(this,arguments);a.inArray(f,"initSelector,closeLinkSelector,closeLinkEvents,navigateEvents,closeEvents,history,container".split(","))===
-1&&this.element.attr("data-"+(a.mobile.ns||"")+f.replace(/([A-Z])/,"-$1").toLowerCase(),k)},_placementCoords:function(a){var k,b,c;c=g();k=this._tolerance.l;var e=c.y+this._tolerance.t,h=c.cx-this._tolerance.l-this._tolerance.r,d=c.cy-this._tolerance.t-this._tolerance.b;this._ui.container.css("max-width",h);b=this._ui.container.outerWidth(!0);c=this._ui.container.outerHeight(!0);k=j(h,b,k,a.x);a=j(d,c,e,a.y);a=Math.max(0,a);e=document.documentElement;h=document.body;e=Math.max(e.clientHeight,h.scrollHeight,
h.offsetHeight,e.scrollHeight,e.offsetHeight);a-=Math.min(a,Math.max(0,a+c-e));return{left:k,top:a}},_createPrereqs:function(f,k,b){var c=this,e;e={screen:a.Deferred(),container:a.Deferred()};e.screen.then(function(){e===c._prereqs&&f()});e.container.then(function(){e===c._prereqs&&k()});a.when(e.screen,e.container).done(function(){if(e===c._prereqs)c._prereqs=null,b()});c._prereqs=e},_animate:function(f){this._ui.screen.removeClass(f.classToRemove).addClass(f.screenClassToAdd);f.prereqs.screen.resolve();
if(f.transition&&f.transition!=="none"&&(f.applyTransition&&this._applyTransition(f.transition),this._fallbackTransition)){this._ui.container.animationComplete(a.proxy(f.prereqs.container,"resolve")).addClass(f.containerClassToAdd).removeClass(f.classToRemove);return}this._ui.container.removeClass(f.classToRemove);f.prereqs.container.resolve()},_desiredCoords:function(f,k,b){var c=null,e=g();if(b&&b!=="origin")if(b==="window")f=e.cx/2+e.x,k=e.cy/2+e.y;else{try{c=a(b)}catch(h){c=null}c&&(c.filter(":visible"),
c.length===0&&(c=null))}c&&(k=c.offset(),f=k.left+c.outerWidth()/2,k=k.top+c.outerHeight()/2);if(a.type(f)!=="number"||isNaN(f))f=e.cx/2+e.x;if(a.type(k)!=="number"||isNaN(k))k=e.cy/2+e.y;return{x:f,y:k}},_openPrereqsComplete:function(){var a=this;a._ui.container.addClass("m-ui-popup-active");a._isOpen=!0;a._resizeScreen();setTimeout(function(){a._ui.container.attr("tabindex","0").focus();a._expectResizeEvent();a._trigger("afteropen")})},_open:function(f){var k,b=function(){var a=navigator.userAgent,
b=a.match(/AppleWebKit\/([0-9\.]+)/),b=!!b&&b[1],h=a.match(/Android (\d+(?:\.\d+))/),f=!!h&&h[1],a=a.indexOf("Chrome")>-1;return h!==null&&f==="4.0"&&b&&b>534.13&&!a?!0:!1}(),f=f||{};k=f.transition||this.options.transition;this._trigger("beforeposition");f=this._placementCoords(this._desiredCoords(f.x,f.y,f.positionTo||this.options.positionTo||"origin"));this._createPrereqs(a.noop,a.noop,a.proxy(this,"_openPrereqsComplete"));k?(this._currentTransition=k,this._applyTransition(k)):k=this.options.transition;
this.options.theme||this._setTheme(this._page.jqmData("theme")||a.mobile.getInheritedTheme(this._page,"c"));this._ui.screen.removeClass("m-ui-screen-hidden");this._ui.container.offset(f).removeClass("m-ui-popup-hidden");this.options.overlayTheme&&b&&this.element.closest(".m-ui-page").addClass("m-ui-popup-open");this._animate({additionalCondition:!0,transition:k,classToRemove:"",screenClassToAdd:"in",containerClassToAdd:"in",applyTransition:!1,prereqs:this._prereqs})},_closePrereqScreen:function(){this._ui.screen.removeClass("out").addClass("m-ui-screen-hidden")},
_closePrereqContainer:function(){this._ui.container.removeClass("reverse out").addClass("m-ui-popup-hidden").removeAttr("style")},_closePrereqsDone:function(){var f=this.options;this._ui.container.removeAttr("tabindex");f.container.unbind(f.closeEvents);this.element.undelegate(f.closeLinkSelector,f.closeLinkEvents);a.mobile.popup.active=d;this._trigger("afterclose")},_close:function(f){this._ui.container.removeClass("m-ui-popup-active");this._page.removeClass("m-ui-popup-open");this._isOpen=!1;this._createPrereqs(a.proxy(this,
"_closePrereqScreen"),a.proxy(this,"_closePrereqContainer"),a.proxy(this,"_closePrereqsDone"));this._animate({additionalCondition:this._ui.screen.hasClass("in"),transition:f?"none":this._currentTransition||this.options.transition,classToRemove:"in",screenClassToAdd:"out",containerClassToAdd:"reverse out",applyTransition:!0,prereqs:this._prereqs})},_unenhance:function(){this._setTheme("none");this.element.detach().insertAfter(this._ui.placeholder).removeClass("m-ui-popup m-ui-overlay-shadow m-ui-corner-all");
this._ui.screen.remove();this._ui.container.remove();this._ui.placeholder.remove();a.each(this._globalHandlers,function(f,k){a.each(k.handler,function(a,c){k.src.unbind(a,c)})})},_destroy:function(){a.mobile.popup.active===this?(this.element.one("popupafterclose",a.proxy(this,"_unenhance")),this.close()):this._unenhance()},_closePopup:function(f,k){var b;f.type==="pagebeforechange"&&k?(b=typeof k.toPage==="string"?k.toPage:k.toPage.jqmData("url"),b=a.mobile.path.parseUrl(b),b=b.pathname+b.search+
b.hash,this._myUrl!==b?(this.options.container.unbind(this.options.closeEvents),this._close(!0)):this._close()):this._close()},_bindContainerClose:function(){this.options.container.one(this.options.closeEvents,a.proxy(this,"_closePopup"))},open:function(f){var k=this,b=this.options,c,e,h,g,l;if(!a.mobile.popup.active)a.mobile.popup.active=this,b.history?(e=a.mobile.dialogHashKey,h=a.mobile.activePage.is(".m-ui-dialog"),this._myUrl=c=a.mobile.urlHistory.getActive().url,g=c.indexOf(e)>-1&&!h,l=a.mobile.urlHistory,
g?(k._open(f),k._bindContainerClose()):(c+=e,l.activeIndex===0&&c===l.initialDst&&(c+=e),b.container.one(b.navigateEvents,function(a){a.preventDefault();k._open(f);k._bindContainerClose()}),l.ignoreNextHashChange=h,l.addNew(c,d,d,d,"dialog"),a.mobile.path.set(c))):(k._open(f),k._bindContainerClose(),k.element.delegate(b.closeLinkSelector,b.closeLinkEvents,function(){k._close();return!1}))},close:function(){a.mobile.popup.active&&(this.options.history?a.mobile.back():this._close())}});a.mobile.popup.handleLink=
function(f){var g=f.closest(":jqmData(role='page')"),g=g.length===0?a("body"):g,g=a(a.mobile.path.parseUrl(f.attr("href")).hash,g[0]),b;g.data("popup")&&(b=f.offset(),g.popup("open",{x:b.left+f.outerWidth()/2,y:b.top+f.outerHeight()/2,transition:f.jqmData("transition"),positionTo:f.jqmData("position-to"),link:f}));setTimeout(function(){var b=f.parent().parent();b.hasClass("m-ui-li")&&(f=b.parent());f.removeClass(a.mobile.activeBtnClass)},300)};a(document).bind("pagebeforechange",function(f,g){g.options.role===
"popup"&&(a.mobile.popup.handleLink(g.options.link),f.preventDefault())});a(document).bind("pagecreate create",function(f){a.mobile.popup.prototype.enhanceWithin(f.target,!0)})})(jQuery);
(function(a){a.fn.grid=function(d){return this.each(function(){var j=a(this),g=a.extend({grid:null},d),f=j.children(),k={solo:1,a:2,b:3,c:4,d:5},g=g.grid;if(!g)if(f.length<=5)for(var b in k)k[b]===f.length&&(g=b);else g="a",j.addClass("m-ui-grid-duo");k=k[g];j.addClass("m-ui-grid-"+g);f.filter(":nth-child("+k+"n+1)").addClass("m-ui-block-a");k>1&&f.filter(":nth-child("+k+"n+2)").addClass("m-ui-block-b");k>2&&f.filter(":nth-child("+k+"n+3)").addClass("m-ui-block-c");k>3&&f.filter(":nth-child("+k+"n+4)").addClass("m-ui-block-d");
k>4&&f.filter(":nth-child("+k+"n+5)").addClass("m-ui-block-e")})}})(jQuery);
(function(a,d){a.widget("mobile.navbar",a.mobile.widget,{options:{iconpos:"top",grid:null,initSelector:":jqmData(role='navbar')",corners:!1},_create:function(){var j=this.element,g=j.find("a"),f=g.filter(":jqmData(icon)").length?this.options.iconpos:d,k=["m-ui-corner-left","m-ui-corner-right"];j.addClass("m-ui-navbar m-ui-mini").attr("role","navigation").find("ul").jqmEnhanceable().grid({grid:this.options.grid});f||j.addClass("m-ui-navbar-noicons");g.buttonMarkup({corners:!1,shadow:!1,inline:!0,iconpos:f,
theme:this.options.theme,mobilePerfomance:this.options.mobilePerfomance});f&&g.each(function(){var b=a(this),c=b.attr("data-userlink");c&&(b.addClass("m-ui-userlink"),b.find(".m-ui-icon").css({"background-image":"url("+c+")"}))});this.options.corners&&(f=function(a){a.removeClass("m-ui-btn-corner-all m-ui-shadow").eq(0).addClass(k[0]).end().filter(":last").addClass(k[1]).addClass("m-ui-controlgroup-last")},f(g),f(g.find(".m-ui-btn-inner")));j.closest(".m-ui-page").bind("pagebeforeshow",function(){g.filter(".m-ui-state-persist").addClass(a.mobile.activeBtnClass)})}})})(jQuery);
(function(a){var d={};a.widget("mobile.listview",a.mobile.widget,{options:{theme:null,countTheme:"c",headerTheme:"b",dividerTheme:"b",icon:"arrow-r",splitIcon:"arrow-r",splitTheme:"b",inset:!1,initSelector:":jqmData(role='listview')",wrap:!0,mobilePerfomance:!1},_create:function(){var a="";a+=this.options.inset?" m-ui-listview-inset m-ui-corner-all m-ui-shadow ":"";this.element.addClass(function(g,f){return f+" m-ui-listview "+a});this.refresh(!0)},_removeCorners:function(a,g){a=a.add(a.find(".m-ui-btn-inner, .m-ui-li-link-alt, .m-ui-li-thumb"));
g==="top"?a.removeClass("m-ui-corner-top m-ui-corner-tr m-ui-corner-tl"):g==="bottom"?a.removeClass("m-ui-corner-bottom m-ui-corner-br m-ui-corner-bl"):a.removeClass("m-ui-corner-top m-ui-corner-tr m-ui-corner-tl m-ui-corner-bottom m-ui-corner-br m-ui-corner-bl")},_refreshCorners:function(a){var g,f;g=this.element.children("li");f=a||g.filter(":visible").length===0?g.not(".m-ui-screen-hidden"):g.filter(":visible");g.filter(".m-ui-li-last").removeClass("m-ui-li-last");this.options.inset?(this._removeCorners(g),
g=f.first().addClass("m-ui-corner-top"),g.add(g.find(".m-ui-btn-inner").not(".m-ui-li-link-alt span:first-child")).addClass("m-ui-corner-top").end().find(".m-ui-li-link-alt, .m-ui-li-link-alt span:first-child").addClass("m-ui-corner-tr").end().find(".m-ui-li-thumb").not(".m-ui-li-icon").addClass("m-ui-corner-tl"),f=f.last().addClass("m-ui-corner-bottom m-ui-li-last"),f.add(f.find(".m-ui-btn-inner")).find(".m-ui-li-link-alt").addClass("m-ui-corner-br").end().find(".m-ui-li-thumb").not(".m-ui-li-icon").addClass("m-ui-corner-bl")):
f.last().addClass("m-ui-li-last");a||this.element.trigger("updatelayout")},_findFirstElementByTagName:function(a,g,f,k){var b={};for(b[f]=b[k]=!0;a;){if(b[a.nodeName])return a;a=a[g]}return null},_getChildrenByTagName:function(d,g,f){var k=[],b={};b[g]=b[f]=!0;for(d=d.firstChild;d;)b[d.nodeName]&&k.push(d),d=d.nextSibling;return a(k)},_addThumbClasses:function(d){var g,f,k=d.length;for(g=0;g<k;g++)f=a(this._findFirstElementByTagName(d[g].firstChild,"nextSibling","img","IMG")),f.length&&(f.addClass("m-ui-li-thumb"),
a(this._findFirstElementByTagName(f[0].parentNode,"parentNode","li","LI")).addClass(f.is(".m-ui-li-icon")?"m-ui-li-has-icon":"m-ui-li-has-thumb"))},refresh:function(d){this.parentPage=this.element.closest(".m-ui-page");this._createSubPages();var g=this.options,f=this.element,k=f.jqmData("dividertheme")||g.dividerTheme,b=f.jqmData("splittheme"),c=f.jqmData("spliticon"),e=f.jqmData("icon"),h=this._getChildrenByTagName(f[0],"li","LI"),r=!!a.nodeName(f[0],"ol"),l=!a.support.cssPseudoElement,t=f.attr("start"),
m={},o,p,n,q,v,s,u,y;r&&l&&f.find(".m-ui-li-dec").remove();r&&(t||t===0?l?s=parseFloat(t):(o=parseFloat(t)-1,f.css("counter-reset","listnumbering "+o)):l&&(s=1));if(!g.theme)g.theme=a.mobile.getInheritedTheme(this.element,"c");for(var A=0,B=h.length;A<B;A++){o=h.eq(A);p="m-ui-li";if(d||!o.hasClass("m-ui-li"))n=o.jqmData("theme")||g.theme,q=this._getChildrenByTagName(o[0],"a","A"),u=o.jqmData("role")==="list-divider",q.length&&!u?(u=o.jqmData("icon"),o.buttonMarkup({wrapperEls:"div",shadow:!1,corners:!1,
iconpos:"right",icon:q.length>1||u===!1?!1:u||e||g.icon,mobilePerfomance:g.mobilePerfomance,theme:n}),u!==!1&&q.length===1&&o.addClass("m-ui-li-has-arrow"),q.first().removeClass("m-ui-link").addClass("m-ui-link-inherit"),q.length>1&&(p+=" m-ui-li-has-alt",q=q.last(),v=b||q.jqmData("theme")||g.splitTheme,y=q.jqmData("icon"),q.appendTo(o).attr("title",q.getEncodedText()).addClass("m-ui-li-link-alt").empty().buttonMarkup({shadow:!1,corners:!1,theme:n,icon:!1,mobilePerfomance:g.mobilePerfomance,iconpos:"notext"}).find(".m-ui-btn-inner").append(a(document.createElement("span")).buttonMarkup({shadow:!0,
corners:!0,theme:v,iconpos:"notext",mobilePerfomance:g.mobilePerfomance,icon:y||u||c||g.splitIcon})))):u?(p+=" m-ui-li-divider m-ui-bar-"+k,o.attr("role","heading"),r&&(t||t===0?l?s=parseFloat(t):(n=parseFloat(t)-1,o.css("counter-reset","listnumbering "+n)):l&&(s=1))):p+=" m-ui-li-static m-ui-btn-up-"+n;r&&l&&p.indexOf("m-ui-li-divider")<0&&(n=p.indexOf("m-ui-li-static")>0?o:o.find(".m-ui-link-inherit"),n.addClass("m-ui-li-jsnumbering").prepend("<span class='m-ui-li-dec'>"+s++ +". </span>"));m[p]||
(m[p]=[]);m[p].push(o[0])}for(p in m)a(m[p]).addClass(p).children(".m-ui-btn-inner").addClass(p);f.find("h1, h2, h3, h4, h5, h6").addClass("m-ui-li-heading").end().find("p, dl").addClass("m-ui-li-desc").end().find(".m-ui-li-aside").each(function(){var b=a(this);b.prependTo(b.parent())}).end().find(".m-ui-li-count").each(function(){a(this).closest("li").addClass("m-ui-li-has-count")}).addClass("m-ui-btn-up-"+(f.jqmData("counttheme")||this.options.countTheme)+" m-ui-btn-corner-all");this.options.wrap&&
f&&f.find("h1, h2, h3, h4, h5, h6").addClass("m-ui-nowrap").end().find("p, dl").addClass("m-ui-nowrap").end();this._addThumbClasses(h);this._addThumbClasses(f.find(".m-ui-link-inherit"));this._refreshCorners(d);this._trigger("afterrefresh")},_idStringEscape:function(a){return a.replace(/[^a-zA-Z0-9]/g,"-")},_createSubPages:function(){var j=this.element,g=j.closest(".m-ui-page"),f=g.jqmData("url"),k=f||g[0][a.expando],b=j.attr("id"),c=this.options,e="data-"+a.mobile.ns,h=this,r=g.find(":jqmData(role='footer')").jqmData("id"),
l;typeof d[k]==="undefined"&&(d[k]=-1);b=b||++d[k];a(j.find("li>ul, li>ol").toArray().reverse()).each(function(h){var g=a(this),k=g.attr("id")||b+"-"+h,h=g.parent(),d=a(g.prevAll().toArray().reverse()),d=d.length?d:a("<span>"+a.trim(h.contents()[0].nodeValue)+"</span>"),n=d.first().getEncodedText(),k=(f||"")+"&"+a.mobile.subPageUrlKey+"="+k,q=g.jqmData("theme")||c.theme,v=g.jqmData("counttheme")||j.jqmData("counttheme")||c.countTheme;l=!0;g.detach().wrap("<div "+e+"role='page' "+e+"url='"+k+"' "+
e+"theme='"+q+"' "+e+"count-theme='"+v+"'><div "+e+"role='content'></div></div>").parent().before("<div "+e+"role='header' "+e+"theme='"+c.headerTheme+"'><div class='m-ui-title'>"+n+"</div></div>").after(r?a("<div "+e+"role='footer' "+e+"id='"+r+"'>"):"").parent().appendTo(a.mobile.pageContainer).page();g=h.find("a:first");g.length||(g=a("<a/>").html(d||n).prependTo(h.empty()));g.attr("href","#"+k)}).listview();l&&g.is(":jqmData(external-page='true')")&&g.data("page").options.domCache===!1&&g.unbind("pagehide.remove").bind("pagehide.remove",
function(b,e){var c=e.nextPage,k=new a.Event("pageremove");e.nextPage&&(c=c.jqmData("url"),c.indexOf(f+"&"+a.mobile.subPageUrlKey)!==0&&(h.childPages().remove(),g.trigger(k),k.isDefaultPrevented()||g.removeWithDependents()))})},childPages:function(){var d=this.parentPage.jqmData("url");return a(":jqmData(url^='"+d+"&"+a.mobile.subPageUrlKey+"')")}})})(jQuery);
(function(a){a.mobile.listview.prototype.options.filter=!1;a.mobile.listview.prototype.options.filterPlaceholder="Filter items...";a.mobile.listview.prototype.options.filterTheme="c";a.mobile.listview.prototype.options.filterData=!1;a.mobile.listview.prototype.options.filterDataCallback=null;a.mobile.listview.prototype.options.filterValue="";var d=function(a,g){return a.toString().toLowerCase().indexOf(g)===-1};a.mobile.listview.prototype.options.filterCallback=d;a(document).delegate("ul, ol","listviewcreate",
function(){var j=a(this),g=j.data("listview");if(g.options.filter){var f=a("<form>",{"class":"m-ui-listview-filter m-ui-bar-"+g.options.theme,role:"search"}).submit(function(a){a.preventDefault();k.blur()}),k=a("<input>",{placeholder:g.options.filterPlaceholder}).attr("data-"+a.mobile.ns+"type","search").jqmData("lastval","");k.val(g.options.filterValue);k.bind(g.options.filterData==!0?"change":"keyup change",function(b){var c=a(this),e=this.value.toLowerCase(),h=null,h=c.jqmData("lastval")+"",f=
!1,k="",k=g.options.filterCallback!==d;g._trigger("beforefilter","beforefilter",{input:this});if(g.options.filterData==!0)return typeof g.options.filterDataCallback=="function"&&g.options.filterDataCallback(e,g),b.stopPropagation(),b.preventDefault(),!1;c.jqmData("lastval",e);h=k||e.length<h.length||e.indexOf(h)!==0?j.children():j.children(":not(.m-ui-screen-hidden)");if(e){for(c=h.length-1;c>=0;c--)b=a(h[c]),k=b.jqmData("filtertext")||b.text(),b.is("li:jqmData(role=list-divider)")?(b.toggleClass("m-ui-filter-hidequeue",
!f),f=!1):g.options.filterCallback(k,e,b)?b.toggleClass("m-ui-filter-hidequeue",!0):f=!0;h.filter(":not(.m-ui-filter-hidequeue)").toggleClass("m-ui-screen-hidden",!1);h.filter(".m-ui-filter-hidequeue").toggleClass("m-ui-screen-hidden",!0).toggleClass("m-ui-filter-hidequeue",!1)}else h.toggleClass("m-ui-screen-hidden",!1);g._refreshCorners()}).appendTo(f).textinput();g.options.inset&&f.addClass("m-ui-listview-filter-inset");f.bind("submit",function(){return!1}).insertBefore(j)}})})(jQuery);
(function(a){a.mobile.listview.prototype.options.autodividers=!1;a.mobile.listview.prototype.options.autodividersSelector=function(d){d=a.trim(d.text())||null;return!d?null:d=d.slice(0,1).toUpperCase()};a(document).delegate("ul,ol","listviewcreate",function(){var d=a(this),j=d.data("listview");if(j&&j.options.autodividers){var g=function(){d.unbind("listviewafterrefresh",g);d.find("li:jqmData(role='list-divider')").remove();for(var f=d.find("li"),k=null,b,c,e=0;e<f.length;e++){b=f[e];if((c=j.options.autodividersSelector(a(b)))&&
k!==c)k=document.createElement("li"),k.appendChild(document.createTextNode(c)),k.setAttribute("data-"+a.mobile.ns+"role","list-divider"),b.parentNode.insertBefore(k,b);k=c}j.refresh();d.bind("listviewafterrefresh",g)};g()}})})(jQuery);
(function(a){a.fn.controlgroup=function(d){function j(a,f){a.removeClass("m-ui-btn-corner-all m-ui-corner-top m-ui-corner-bottom m-ui-corner-left m-ui-corner-right m-ui-controlgroup-last m-ui-shadow").eq(0).addClass(f[0]).end().last().addClass(f[1]).addClass("m-ui-controlgroup-last")}return this.each(function(){var g=a(this),f=a.extend({direction:g.jqmData("type")||"vertical",shadow:!1,excludeInvisible:!0,mini:g.jqmData("mini")},d),k=g.children("legend"),b=g.children(".m-ui-controlgroup-label"),c=
g.children(".m-ui-controlgroup-controls"),e=f.direction==="horizontal"?["m-ui-corner-left","m-ui-corner-right"]:["m-ui-corner-top","m-ui-corner-bottom"];g.find("input").first().attr("type");c.length&&c.contents().unwrap();g.wrapInner("<div class='m-ui-controlgroup-controls'></div>");k.length?(a("<div role='heading' class='m-ui-controlgroup-label'>"+k.html()+"</div>").insertBefore(g.children(0)),k.remove()):b.length&&g.prepend(b);g.addClass("m-ui-corner-all m-ui-controlgroup m-ui-controlgroup-"+f.direction);
j(g.find(".m-ui-btn"+(f.excludeInvisible?":visible":"")).not(".m-ui-slider-handle"),e);j(g.find(".m-ui-btn-inner"),e);f.shadow&&g.addClass("m-ui-shadow");f.mini&&g.addClass("m-ui-mini")})}})(jQuery);
(function(a){a.widget("mobile.fixedtoolbar",a.mobile.widget,{options:{visibleOnPageShow:!0,disablePageZoom:!0,transition:"slide",fullscreen:!1,tapToggle:!0,tapToggleBlacklist:"a, button, input, select, textarea, .m-ui-header-fixed, .m-ui-footer-fixed, .m-ui-popup",hideDuringFocus:"input, textarea, select",updatePagePadding:!0,trackPersistentToolbars:!0,supportBlacklist:function(){var a=window,j=navigator.userAgent,g=navigator.platform,f=j.match(/AppleWebKit\/([0-9]+)/),f=!!f&&f[1],k=j.match(/Fennec\/([0-9]+)/),
k=!!k&&k[1],b=j.match(/Opera Mobi\/([0-9]+)/),c=!!b&&b[1];return(g.indexOf("iPhone")>-1||g.indexOf("iPad")>-1||g.indexOf("iPod")>-1)&&f&&f<534||a.operamini&&{}.toString.call(a.operamini)==="[object OperaMini]"||b&&c<7458||j.indexOf("Android")>-1&&f&&f<533||k&&k<6||"palmGetResource"in window&&f&&f<534||j.indexOf("MeeGo")>-1&&j.indexOf("NokiaBrowser/8.5.0")>-1?!0:!1},initSelector:":jqmData(position='fixed')"},_create:function(){var a=this.options,j=this.element,g=j.is(":jqmData(role='header')")?"header":
"footer",f=j.closest(".m-ui-page");a.supportBlacklist()?this.destroy():(j.addClass("m-ui-"+g+"-fixed"),a.fullscreen?(j.addClass("m-ui-"+g+"-fullscreen"),f.addClass("m-ui-page-"+g+"-fullscreen")):f.addClass("m-ui-page-"+g+"-fixed"),this._addTransitionClass(),this._bindPageEvents(),this._bindToggleHandlers())},_addTransitionClass:function(){var a=this.options.transition;a&&a!=="none"&&(a==="slide"&&(a=this.element.is(".m-ui-header")?"slidedown":"slideup"),this.element.addClass(a))},_bindPageEvents:function(){var d=
this,j=d.options;d.element.closest(".m-ui-page").bind("pagebeforeshow",function(){j.disablePageZoom&&a.mobile.zoom.disable(!0);j.visibleOnPageShow||d.hide(!0)}).bind("webkitAnimationStart animationstart updatelayout",function(){j.updatePagePadding&&d.updatePagePadding(this)}).bind("pageshow",function(){var g=this;d.updatePagePadding(g);j.updatePagePadding&&a(window).bind("throttledresize."+d.widgetName,function(){d.updatePagePadding(g)})}).bind("pagebeforehide",function(g,f){j.disablePageZoom&&a.mobile.zoom.enable(!0);
j.updatePagePadding&&a(window).unbind("throttledresize."+d.widgetName);if(j.trackPersistentToolbars){var k=a(".m-ui-footer-fixed:jqmData(id)",this),b=a(".m-ui-header-fixed:jqmData(id)",this),c=k.length&&f.nextPage&&a(".m-ui-footer-fixed:jqmData(id='"+k.jqmData("id")+"')",f.nextPage)||a(),e=b.length&&f.nextPage&&a(".m-ui-header-fixed:jqmData(id='"+b.jqmData("id")+"')",f.nextPage)||a();if(c.length||e.length)c.add(e).appendTo(a.mobile.pageContainer),f.nextPage.one("pageshow",function(){c.add(e).appendTo(this)})}})},
_visible:!0,updatePagePadding:function(d){var j=this.element,g=j.is(".m-ui-header");this.options.fullscreen||(d=d||j.closest(".m-ui-page"),a(d).css("padding-"+(g?"top":"bottom"),j.outerHeight()))},_useTransition:function(d){var j=this.element,g=a(window).scrollTop(),f=j.height(),k=j.closest(".m-ui-page").height(),b=a.mobile.getScreenHeight(),j=j.is(":jqmData(role='header')")?"header":"footer";return!d&&(this.options.transition&&this.options.transition!=="none"&&(j==="header"&&!this.options.fullscreen&&
g>f||j==="footer"&&!this.options.fullscreen&&g+b<k-f)||this.options.fullscreen)},show:function(a){var j=this.element;this._useTransition(a)?j.removeClass("out m-ui-fixed-hidden").addClass("in"):j.removeClass("m-ui-fixed-hidden");this._visible=!0},hide:function(a){var j=this.element,g="out"+(this.options.transition==="slide"?" reverse":"");this._useTransition(a)?j.addClass(g).removeClass("in").animationComplete(function(){j.addClass("m-ui-fixed-hidden").removeClass(g)}):j.addClass("m-ui-fixed-hidden").removeClass(g);
this._visible=!1},toggle:function(){this[this._visible?"hide":"show"]()},_bindToggleHandlers:function(){var d=this,j=d.options;d.element.closest(".m-ui-page").bind("vclick",function(g){j.tapToggle&&!a(g.target).closest(j.tapToggleBlacklist).length&&d.toggle()}).bind("focusin focusout",function(g){if(screen.width<500&&a(g.target).is(j.hideDuringFocus)&&!a(g.target).closest(".m-ui-header-fixed, .m-ui-footer-fixed").length)d[g.type==="focusin"&&d._visible?"hide":"show"]()})},_destroy:function(){var a=
this.element,j=a.is(".m-ui-header");a.closest(".m-ui-page").css("padding-"+(j?"top":"bottom"),"");a.removeClass("m-ui-header-fixed m-ui-footer-fixed m-ui-header-fullscreen m-ui-footer-fullscreen in out fade slidedown slideup m-ui-fixed-hidden");a.closest(".m-ui-page").removeClass("m-ui-page-header-fixed m-ui-page-footer-fixed m-ui-page-header-fullscreen m-ui-page-footer-fullscreen")}});a(document).bind("pagecreate create",function(d){a(d.target).jqmData("fullscreen")&&a(a.mobile.fixedtoolbar.prototype.options.initSelector,
d.target).not(":jqmData(fullscreen)").jqmData("fullscreen",!0);a.mobile.fixedtoolbar.prototype.enhanceWithin(d.target)})})(jQuery);
(function(a,d){function j(){t&&t.closest("."+a.mobile.activePageClass);t=null}function g(){p=!1;o.length>0&&a.mobile.changePage.apply(null,o.pop())}function f(b,e,c,h){b&&b.data("page")._trigger("beforeshow",null,{prevPage:e||a("")});c=a.mobile._maybeDegradeTransition(c);c=(a.mobile.transitionHandlers[c||"default"]||a.mobile.defaultTransitionHandler)(c,h,b,e);c.done(function(){e&&e.data("page")._trigger("hide",null,{nextPage:b});b&&b.data("page")._trigger("show",null,{prevPage:e||a("")})});return c}
function k(){var b=a("."+a.mobile.activePageClass),e=parseFloat(b.css("padding-top")),c=parseFloat(b.css("padding-bottom")),h=parseFloat(b.css("border-top-width")),f=parseFloat(b.css("border-bottom-width"));b.css("min-height",y()-e-c-h-f)}function b(b,e){e&&b.attr("data-"+a.mobile.ns+"role",e);b.page()}function c(a){for(;a;){if(typeof a.nodeName==="string"&&a.nodeName.toLowerCase()==="a")break;a=a.parentNode}return a}function e(b){var b=a(b).closest(".m-ui-page").jqmData("url"),e=s.hrefNoHash;if(!b||
!l.isPath(b))b=e;return l.makeUrlAbsolute(b,e)}var h=a(window);a("html");var r=a("head"),l={urlParseRE:/^(((([^:\/#\?]+:)?(?:(\/\/)((?:(([^:@\/#\?]+)(?:\:([^:@\/#\?]+))?)@)?(([^:\/#\?\]\[]+|\[[^\/\]@#?]+\])(?:\:([0-9]+))?))?)?)?((\/?(?:[^\/\?#]+\/+)*)([^\?#]*)))?(\?[^#]+)?)(#.*)?/,getLocation:function(a){var b=a?this.parseUrl(a):location,a=this.parseUrl(a||location.href).hash;return b.protocol+"//"+b.host+b.pathname+b.search+(a==="#"?"":a)},parseLocation:function(){return this.parseUrl(this.getLocation())},
parseUrl:function(b){if(a.type(b)==="object")return b;b=l.urlParseRE.exec(b||"")||[];return{href:b[0]||"",hrefNoHash:b[1]||"",hrefNoSearch:b[2]||"",domain:b[3]||"",protocol:b[4]||"",doubleSlash:b[5]||"",authority:b[6]||"",username:b[8]||"",password:b[9]||"",host:b[10]||"",hostname:b[11]||"",port:b[12]||"",pathname:b[13]||"",directory:b[14]||"",filename:b[15]||"",search:b[16]||"",hash:b[17]||""}},makePathAbsolute:function(a,b){if(a&&a.charAt(0)==="/")return a;for(var a=a||"",e=(b=b?b.replace(/^\/|(\/[^\/]*|[^\/]+)$/g,
""):"")?b.split("/"):[],c=a.split("/"),h=0;h<c.length;h++){var f=c[h];switch(f){case ".":break;case "..":e.length&&e.pop();break;default:e.push(f)}}return"/"+e.join("/")},isSameDomain:function(a,b){return l.parseUrl(a).domain===l.parseUrl(b).domain},isRelativeUrl:function(a){return l.parseUrl(a).protocol===""},isAbsoluteUrl:function(a){return l.parseUrl(a).protocol!==""},makeUrlAbsolute:function(a,b){if(!l.isRelativeUrl(a))return a;b===d&&(b=s);var e=l.parseUrl(a),c=l.parseUrl(b),h=e.protocol||c.protocol,
f=e.protocol?e.doubleSlash:e.doubleSlash||c.doubleSlash,g=e.authority||c.authority,k=e.pathname!=="",r=l.makePathAbsolute(e.pathname||c.filename,c.pathname);return h+f+g+r+(e.search||!k&&c.search||"")+e.hash},addSearchParams:function(b,e){var c=l.parseUrl(b),h=typeof e==="object"?a.param(e):e,f=c.search||"?";return c.hrefNoSearch+f+(f.charAt(f.length-1)!=="?"?"&":"")+h+(c.hash||"")},convertUrlToDataUrl:function(a){var b=l.parseUrl(a);if(l.isEmbeddedPage(b))return b.hash.split(n)[0].replace(/^#/,"");
else if(l.isSameDomain(b,s))return b.hrefNoHash.replace(s.domain,"").split(n)[0];return window.decodeURIComponent(a)},get:function(a){if(a===d)a=l.parseLocation().hash;return l.stripHash(a).replace(/[^\/]*\.[^\/*]+$/,"")},getFilePath:function(b){var e="&"+a.mobile.subPageUrlKey;return b&&b.split(e)[0].split(n)[0]},set:function(a){location.hash=a},isPath:function(a){return/\//.test(a)},clean:function(a){return a.replace(s.domain,"")},stripHash:function(a){return a.replace(/^#/,"")},cleanHash:function(a){return l.stripHash(a.replace(/\?.*$/,
"").replace(n,""))},isHashValid:function(a){return/^#[^#]+$/.test(a)},isExternal:function(a){a=l.parseUrl(a);return a.protocol&&a.domain!==v.domain?!0:!1},hasProtocol:function(a){return/^(:?\w+:)/.test(a)},isFirstPageUrl:function(b){var b=l.parseUrl(l.makeUrlAbsolute(b,s)),e=a.mobile.firstPage,e=e&&e[0]?e[0].id:d;return(b.hrefNoHash===v.hrefNoHash||u&&b.hrefNoHash===s.hrefNoHash)&&(!b.hash||b.hash==="#"||e&&b.hash.replace(/^#/,"")===e)},isEmbeddedPage:function(a){a=l.parseUrl(a);return a.protocol!==
""?a.hash&&(a.hrefNoHash===v.hrefNoHash||u&&a.hrefNoHash===s.hrefNoHash):/^#/.test(a.href)},isPermittedCrossDomainRequest:function(b,e){return a.mobile.allowCrossDomainPages&&b.protocol==="file:"&&e.search(/^https?:/)!==-1}},t=null,m={stack:[],activeIndex:0,getActive:function(){return m.stack[m.activeIndex]},getPrev:function(){return m.stack[m.activeIndex-1]},getNext:function(){return m.stack[m.activeIndex+1]},addNew:function(a,b,e,c,h){m.getNext()&&m.clearForward();m.stack.push({url:a,transition:b,
title:e,pageUrl:c,role:h});m.activeIndex=m.stack.length-1},clearForward:function(){m.stack=m.stack.slice(0,m.activeIndex+1)},directHashChange:function(b){var e,c,h;this.getActive();a.each(m.stack,function(a,f){decodeURIComponent(b.currentUrl)===decodeURIComponent(f.url)&&(e=a<m.activeIndex,c=!e,h=a)});this.activeIndex=h!==d?h:this.activeIndex;e?(b.either||b.isBack)(!0):c&&(b.either||b.isForward)(!1)},ignoreNextHashChange:!1},o=[],p=!1,n="&m-ui-state=dialog",q=r.children("base"),v=l.parseLocation(),
s=q.length?l.parseUrl(l.makeUrlAbsolute(q.attr("href"),v.href)):v,u=v.hrefNoHash!==s.hrefNoHash,y=a.mobile.getScreenHeight,A=a.support.dynamicBaseTag?{element:q.length?q:a("<base>",{href:s.hrefNoHash}).prependTo(r),set:function(a){A.element.attr("href",l.makeUrlAbsolute(a,s))},reset:function(){A.element.attr("href",s.hrefNoHash)}}:d;a.mobile.back=function(){var a=window.navigator;this.phonegapNavigationEnabled&&a&&a.app&&a.app.backHistory?a.app.backHistory():window.history.back()};a.mobile.focusPage=
function(a){var b=a.find("[autofocus]"),e=a.find(".m-ui-title:eq(0)");b.length?b.focus():e.length?e.focus():a.focus()};var B=!0,C,D;C=function(){if(B){var b=a.mobile.urlHistory.getActive();if(b){var e=h.scrollTop();b.lastScroll=e<a.mobile.minScrollBack?a.mobile.defaultHomeScroll:e}}};D=function(){setTimeout(C,100)};h.bind(a.support.pushState?"popstate":"hashchange",function(){B=!1});h.one(a.support.pushState?"popstate":"hashchange",function(){B=!0});h.one("pagecontainercreate",function(){a.mobile.pageContainer.bind("pagechange",
function(){B=!0;h.unbind("scrollstop",D);h.bind("scrollstop",D)})});h.bind("scrollstop",D);a.mobile._maybeDegradeTransition=a.mobile._maybeDegradeTransition||function(a){return a};a.fn.animationComplete=function(b){return a.support.cssTransitions?a(this).one("webkitAnimationEnd animationend",b):(setTimeout(b,0),a(this))};a.mobile.path=l;a.mobile.base=A;a.mobile.urlHistory=m;a.mobile.dialogHashKey=n;a.mobile.allowCrossDomainPages=!1;a.mobile.getDocumentUrl=function(b){return b?a.extend({},v):v.href};
a.mobile.getDocumentBase=function(b){return b?a.extend({},s):s.href};a.mobile._bindPageRemove=function(){var b=a(this);b.data("page")&&!b.data("page").options.domCache&&b.is(":jqmData(external-page='true')")&&b.bind("pagehide.remove",function(){var b=a(this),e=new a.Event("pageremove");b.trigger(e);e.isDefaultPrevented()||b.removeWithDependents()})};a.mobile.loadPage=function(c,h){var f=a.Deferred(),g=a.extend({},a.mobile.loadPage.defaults,h),k=null,r=null,j=l.makeUrlAbsolute(c,a.mobile.activePage&&
e(a.mobile.activePage)||s.hrefNoHash);if(g.data&&g.type==="get")j=l.addSearchParams(j,g.data),g.data=d;if(g.data&&g.type==="post")g.reloadPage=!0;var t=l.getFilePath(j),m=l.convertUrlToDataUrl(j);g.pageContainer=g.pageContainer||a.mobile.pageContainer;k=g.pageContainer.children("[data-"+a.mobile.ns+"url='"+m+"']");k.length===0&&m&&!l.isPath(m)&&(k=g.pageContainer.children("#"+m).attr("data-"+a.mobile.ns+"url",m).jqmData("url",m));if(k.length===0)if(a.mobile.firstPage&&l.isFirstPageUrl(t))a.mobile.firstPage.parent().length&&
(k=a(a.mobile.firstPage));else if(l.isEmbeddedPage(t))return f.reject(j,h),f.promise();if(k.length){if(!g.reloadPage)return b(k,g.role),f.resolve(j,h,k),f.promise();r=k}var q=g.pageContainer,o=new a.Event("pagebeforeload"),p={url:c,absUrl:j,dataUrl:m,deferred:f,options:g};q.trigger(o,p);if(o.isDefaultPrevented())return f.promise();if(g.showLoadMsg)var n=setTimeout(function(){},g.loadMsgDelay);A&&A.reset();!a.mobile.allowCrossDomainPages&&!l.isSameDomain(v,j)?f.reject(j,h):a.ajax({url:t,type:g.type,
data:g.data,dataType:"html",success:function(e,d,q){var o=a("<div></div>"),v=e.match(/<title[^>]*>([^<]*)/)&&RegExp.$1,s=RegExp("\\bdata-"+a.mobile.ns+"url=[\"']?([^\"'>]*)[\"']?");RegExp("(<[^>]+\\bdata-"+a.mobile.ns+"role=[\"']?page[\"']?[^>]*>)").test(e)&&RegExp.$1&&s.test(RegExp.$1)&&RegExp.$1&&(c=t=l.getFilePath(a("<div>"+RegExp.$1+"</div>").text()));A&&A.set(t);o.get(0).innerHTML=e;k=o.find(":jqmData(role='page'), :jqmData(role='dialog')").first();k.length||(k=a("<div data-"+a.mobile.ns+"role='page'>"+
e.split(/<\/?body[^>]*>/gmi)[1]+"</div>"));v&&!k.jqmData("title")&&(~v.indexOf("&")&&(v=a("<div>"+v+"</div>").text()),k.jqmData("title",v));if(!a.support.dynamicBaseTag){var u=l.get(t);k.find("[src], link[href], a[rel='external'], :jqmData(ajax='false'), a[target]").each(function(){var b=a(this).is("[href]")?"href":a(this).is("[src]")?"src":"action",e=a(this).attr(b),e=e.replace(location.protocol+"//"+location.host+location.pathname,"");/^(\w+:|#|\/)/.test(e)||a(this).attr(b,u+e)})}k.attr("data-"+
a.mobile.ns+"url",l.convertUrlToDataUrl(t)).attr("data-"+a.mobile.ns+"external-page",!0).appendTo(g.pageContainer);k.one("pagecreate",a.mobile._bindPageRemove);b(k,g.role);j.indexOf("&"+a.mobile.subPageUrlKey)>-1&&(k=g.pageContainer.children("[data-"+a.mobile.ns+"url='"+m+"']"));g.showLoadMsg&&clearTimeout(n);p.xhr=q;p.textStatus=d;p.page=k;g.pageContainer.trigger("pageload",p);f.resolve(j,h,k,r)},error:function(b,e,c){A&&A.set(l.get());p.xhr=b;p.textStatus=e;p.errorThrown=c;b=new a.Event("pageloadfailed");
g.pageContainer.trigger(b,p);b.isDefaultPrevented()||(g.showLoadMsg&&(clearTimeout(n),setTimeout(a.mobile.hidePageLoadingMsg,1500)),f.reject(j,h))}});return f.promise()};a.mobile.loadPage.defaults={type:"get",data:d,reloadPage:!1,role:d,showLoadMsg:!1,pageContainer:d,loadMsgDelay:50};a.mobile.changePage=function(e,c){if(c.dialog)if(p)o.unshift(arguments);else{var h=a.extend({},a.mobile.changePage.defaults,c);h.pageContainer=h.pageContainer||a.mobile.pageContainer;h.fromPage=h.fromPage||a.mobile.activePage;
var k=h.pageContainer,r=new a.Event("pagebeforechange"),t={toPage:e,options:h};k.trigger(r,t);if(!r.isDefaultPrevented())if(e=t.toPage,p=!0,typeof e==="string")a.mobile.loadPage(e,h).done(function(b,e,c,h){p=!1;e.duplicateCachedPage=h;a.mobile.changePage(c,e)}).fail(function(){p=!1;j(!0);g();h.pageContainer.trigger("pagechangefailed",t)});else{if(e[0]===a.mobile.firstPage[0]&&!h.dataUrl)h.dataUrl=v.hrefNoHash;var r=h.fromPage,q=h.dataUrl&&l.convertUrlToDataUrl(h.dataUrl)||e.jqmData("url"),s=q;l.getFilePath(q);
var u=m.getActive(),A=m.activeIndex===0,y=0,B=document.title,w=h.role==="dialog"||e.jqmData("role")==="dialog";if(r&&r[0]===e[0]&&!h.allowSamePageTransition)p=!1,k.trigger("pagechange",t),h.fromHashChange&&m.directHashChange({currentUrl:q,isBack:function(){},isForward:function(){}});else{b(e,h.role);h.fromHashChange&&m.directHashChange({currentUrl:q,isBack:function(){y=-1},isForward:function(){y=1}});try{document.activeElement&&document.activeElement.nodeName.toLowerCase()!=="body"?a(document.activeElement).blur():
a("input:focus, textarea:focus, select:focus").blur()}catch(C){}var D=!1;if(w&&u){if(u.url.indexOf(n)>-1&&!a.mobile.activePage.is(".m-ui-dialog"))h.changeHash=!1,D=!0;q=(u.url||"")+(D?"":n);m.activeIndex===0&&q===m.initialDst&&(q+=n)}if(h.changeHash!==!1&&q)m.ignoreNextHashChange=!0,l.set(q);var x=!u?B:e.jqmData("title")||e.children(":jqmData(role='header')").find(".m-ui-title").getEncodedText();x&&B===document.title&&(B=x);e.jqmData("title")||e.jqmData("title",B);h.transition=h.transition||(y&&!A?
u.transition:d)||(w?a.mobile.defaultDialogTransition:a.mobile.defaultPageTransition);if(!y){if(D)m.activeIndex=Math.max(0,m.activeIndex-1);m.addNew(q,h.transition,B,s,h.role)}document.title=m.getActive().title;a.mobile.activePage=e;h.reverse=h.reverse||y<0;f(e,r,h.transition,h.reverse).done(function(b,c,f,d,r){j();h.duplicateCachedPage&&h.duplicateCachedPage.remove();r||a.mobile.focusPage(e);g();k.trigger("pagechange",t)})}}}};a.mobile.changePage.defaults={transition:d,reverse:!1,changeHash:!0,fromHashChange:!1,
role:d,duplicateCachedPage:d,pageContainer:d,showLoadMsg:!0,dataUrl:d,fromPage:d,allowSamePageTransition:!1};a.mobile.navreadyDeferred=a.Deferred();a.mobile._registerInternalEvents=function(){a(document).delegate("form","submit",function(b){var c=a(this);if(a.mobile.ajaxEnabled&&!c.is(":jqmData(ajax='false')")&&c.jqmHijackable().length){var h=c.attr("method"),f=c.attr("target"),g=c.attr("action");if(!g&&(g=e(c),g===s.hrefNoHash))g=v.hrefNoSearch;g=l.makeUrlAbsolute(g,e(c));l.isExternal(g)&&!l.isPermittedCrossDomainRequest(v,
g)||f||(a.mobile.changePage(g,{type:h&&h.length&&h.toLowerCase()||"get",data:c.serialize(),transition:c.jqmData("transition"),reverse:c.jqmData("direction")==="reverse",reloadPage:!0}),b.preventDefault())}});a(document).bind("vclick",function(b){if(!(b.which>1)&&a.mobile.linkBindingEnabled&&(b=c(b.target),a(b).jqmHijackable().length&&b&&l.parseUrl(b.getAttribute("href")||"#").hash!=="#"))j(!0),t=a(b).closest(".m-ui-btn").not(".m-ui-disabled")});a(document).bind("click",function(b){if(a.mobile.linkBindingEnabled){var h=
c(b.target),f=a(h),g;if(h&&!(b.which>1)&&f.jqmHijackable().length){g=function(){window.setTimeout(function(){j(!0)},200)};if(f.is(":jqmData(rel='back')"))return a.mobile.back(),!1;var k=e(f),h=l.makeUrlAbsolute(f.attr("href")||"#",k);if(!a.mobile.ajaxEnabled&&!l.isEmbeddedPage(h))g();else{if(h.search("#")!==-1)if(h=h.replace(/[^#]*#/,""))h=l.isPath(h)?l.makeUrlAbsolute(h,k):l.makeUrlAbsolute("#"+h,v.hrefNoHash);else{b.preventDefault();return}if(f.is("[rel='external']")||f.is(":jqmData(ajax='false')")||
f.is("[target]")||l.isExternal(h)&&!l.isPermittedCrossDomainRequest(v,h))g();else{g=f.jqmData("transition");var k=f.jqmData("direction")==="reverse"||f.jqmData("back"),r=f.attr("data-"+a.mobile.ns+"rel")||d;a.mobile.changePage(h,{transition:g,reverse:k,role:r,link:f});b.preventDefault()}}}}});a(document).delegate(".m-ui-page","pageshow.prefetch",function(){var b=[];a(this).find("a:jqmData(prefetch)").each(function(){var e=a(this),c=e.attr("href");c&&a.inArray(c,b)===-1&&(b.push(c),a.mobile.loadPage(c,
{role:e.attr("data-"+a.mobile.ns+"rel")}))})});a.mobile._handleHashChange=function(b){var e=l.stripHash(b),b=a.mobile.urlHistory.stack.length===0?"none":d,c=new a.Event("navigate"),h={transition:b,changeHash:!1,fromHashChange:!0};if(0===m.stack.length)m.initialDst=e;a.mobile.pageContainer.trigger(c);if(!c.isDefaultPrevented())if(!a.mobile.hashListeningEnabled||m.ignoreNextHashChange)m.ignoreNextHashChange=!1;else{if(m.stack.length>1&&e.indexOf(n)>-1&&m.initialDst!==e)if(a.mobile.activePage.is(".m-ui-dialog"))m.directHashChange({currentUrl:e,
either:function(b){var c=a.mobile.urlHistory.getActive();e=c.pageUrl;a.extend(h,{role:c.role,transition:c.transition,reverse:b})}});else{m.directHashChange({currentUrl:e,isBack:function(){a.mobile.back()},isForward:function(){window.history.forward()}});return}if(e){e=typeof e==="string"&&!l.isPath(e)?l.makeUrlAbsolute("#"+e,s):e;if(e===l.makeUrlAbsolute("#"+m.initialDst,s)&&m.stack.length&&m.stack[0].url!==m.initialDst.replace(n,""))e=a.mobile.firstPage;a.mobile.changePage(e,h)}else a.mobile.changePage(a.mobile.firstPage,
h)}};h.bind("hashchange",function(){a.mobile._handleHashChange(l.parseLocation().hash)});a(document).bind("pageshow",k);a(window).bind("throttledresize",k)};a.mobile.navreadyDeferred.done(function(){a.mobile._registerInternalEvents()});a.mobile.showPage=function(e,c){c=a.extend({},c);c.transition=c.transition||a.mobile.defaultPageTransition;b(e,c.role);f(e,null,c.transition,!1).done(function(){e.data("page")._trigger("show",null,{prevPage:a("")})})};a.mobile.hidePage=function(b,e){e=a.extend({},e);
e.transition=e.transition||a.mobile.defaultPageTransition;f(null,b,e.transition,!1)}})(jQuery);
(function(a,d,j){var g=function(f){f===j&&(f=!0);return function(b,c,e,h){var g=new a.Deferred,l=c?" reverse":"",j=a(d).scrollTop()||a.mobile.defaultHomeScroll,m=a.mobile.getScreenHeight(),o=a.mobile.maxTransitionWidth!==!1&&a(d).width()>a.mobile.maxTransitionWidth,p=!a.support.cssTransitions||o||!b||b==="none"||Math.max(a(d).scrollTop(),j)>a.mobile.getMaxScrollForTransition(),n=function(){a.mobile.pageContainer.toggleClass("m-ui-mobile-viewport-transitioning viewport-"+b)},q=function(){a.event.special.scrollstart.enabled=
!1;d.scrollTo(0,j);setTimeout(function(){a.event.special.scrollstart.enabled=!0},150)},v=function(){h&&h.removeClass(a.mobile.activePageClass+" out in reverse "+b).height("")},o=function(){h&&f&&v();e&&(e.css("z-index",-10),e.addClass(a.mobile.activePageClass+" m-ui-page-pre-in"),a.mobile.focusPage(e),e.height(m+j),q(),e.css("z-index",""));p||(e?e.animationComplete(s):s());e&&e.removeClass(" m-ui-page-pre-in").addClass(b+" in"+l);p&&s()},s=function(){f||h&&v();e&&e.removeClass("out in reverse "+b).height("");
n();a(d).scrollTop()!==j&&q();g.resolve(b,c,e,h,!0)};n();h&&!p?(f?h?h.animationComplete(o):o():o(),h&&h.height(m+a(d).scrollTop()).addClass(b+" out"+l)):o();return g.promise()}},f=g(),g=g(!1);a.mobile.defaultTransitionHandler=f;a.mobile.transitionHandlers={"default":a.mobile.defaultTransitionHandler,sequential:f,simultaneous:g};a.mobile.transitionFallbacks={};a.mobile._maybeDegradeTransition=function(f){f&&!a.support.cssTransform3d&&a.mobile.transitionFallbacks[f]&&(f=a.mobile.transitionFallbacks[f]);
return f};a.mobile.transitionFallbacks.flip="fade";a.mobile.transitionFallbacks.flow="fade";a.mobile.transitionFallbacks.pop="fade";a.mobile.transitionHandlers.slide=a.mobile.transitionHandlers.simultaneous;a.mobile.transitionFallbacks.slide="fade";a.mobile.transitionFallbacks.slidedown="fade";a.mobile.transitionFallbacks.slidefade="fade";a.mobile.transitionFallbacks.slideup="fade";a.mobile.transitionFallbacks.turn="fade";a.mobile.getMaxScrollForTransition=a.mobile.getMaxScrollForTransition||function(){return a.mobile.getScreenHeight()*
3}})(jQuery,this);(function(a){a.fn.fieldcontain=function(){return this.addClass("m-ui-field-contain m-ui-body m-ui-br").contents().filter(function(){return this.nodeType===3&&!/\S/.test(this.nodeValue)}).remove()}})(jQuery);
(function(a){var d=a("meta[name=viewport]"),j=d.attr("content"),g=j+",maximum-scale=1, user-scalable=no",f=j+",maximum-scale=10, user-scalable=yes",k=/(user-scalable[\s]*=[\s]*no)|(maximum-scale[\s]*=[\s]*1)[$,\s]/.test(j);a.mobile.zoom=a.extend({},{enabled:!k,locked:!1,disable:function(b){if(!k&&!a.mobile.zoom.locked)d.attr("content",g),a.mobile.zoom.enabled=!1,a.mobile.zoom.locked=b||!1},enable:function(b){if(!k&&(!a.mobile.zoom.locked||b===!0))d.attr("content",f),a.mobile.zoom.enabled=!0,a.mobile.zoom.locked=
!1},restore:function(){if(!k)d.attr("content",j),a.mobile.zoom.enabled=!0}})})(jQuery);
(function(a,d){if(/iPhone|iPad|iPod/.test(navigator.platform)&&navigator.userAgent.indexOf("AppleWebKit")>-1){var j=a.mobile.zoom,g,f,k,b,c;a(d).bind("orientationchange.iosorientationfix",j.enable).bind("devicemotion.iosorientationfix",function(a){g=a.originalEvent;c=g.accelerationIncludingGravity;f=Math.abs(c.x);k=Math.abs(c.y);b=Math.abs(c.z);!d.orientation&&(f>7||(b>6&&k<8||b<8&&k>6)&&f>5)?j.enabled&&j.disable():j.enabled||j.enable()})}})(jQuery,this);
(function(a,d){function j(){g.removeClass("m-ui-mobile-rendering")}var g=a("html");a("head");var f=a(d);a(d.document).trigger("mobileinit");if(a.mobile.gradeA()){if(a.mobile.ajaxBlacklist)a.mobile.ajaxEnabled=!1;g.addClass("m-ui-mobile");g.addClass("m-ui-disableresize");setTimeout(j,5E3);a.extend(a.mobile,{initializePage:function(){var g=a(":jqmData(role='page'), :jqmData(role='dialog')"),b=a.mobile.path.parseLocation().hash.replace("#",""),c=document.getElementById(b);g.length||(g=a("body").wrapInner("<div data-"+
a.mobile.ns+"role='page'></div>").children(0));g.each(function(){var b=a(this);b.jqmData("url")||b.attr("data-"+a.mobile.ns+"url",b.attr("id")||location.pathname+location.search)});a.mobile.firstPage=g.first();a.mobile.pageContainer=g.first().parent().addClass("m-ui-mobile-viewport");f.trigger("pagecontainercreate");j();if(!a.mobile.hashListeningEnabled||!a.mobile.path.isHashValid(location.hash)||!a(c).is(':jqmData(role="page")')&&!(a.mobile.path.isPath(b)||b===a.mobile.dialogHashKey)){if(a.mobile.path.isHashValid(location.hash))a.mobile.urlHistory.initialDst=
b.replace("#","");a.mobile.changePage(a.mobile.firstPage,{transition:"none",reverse:!0,changeHash:!1,fromHashChange:!0})}else f.trigger("hashchange",[!0])}});a.mobile.navreadyDeferred.resolve();a(function(){d.scrollTo(0,1);a.mobile.defaultHomeScroll=!a.support.scrollTop||a(d).scrollTop()===1?0:1;a.fn.controlgroup&&a(document).bind("pagecreate create",function(f){a(":jqmData(role='controlgroup')",f.target).jqmEnhanceable().controlgroup({excludeInvisible:!1})});f.load(a.mobile.silentScroll);a.support.cssPointerEvents||
a(document).delegate(".m-ui-disabled","vclick",function(a){a.preventDefault();a.stopImmediatePropagation()})})}})(jQuery,this);
(function(a){function d(b,d){function j(){var a=document.body,b=document.documentElement;return Math.max(a.scrollHeight,a.offsetHeight,b.clientHeight,b.scrollHeight,b.offsetHeight)}function m(b){r=a("li.dw-v",b).eq(0).index();l=a("li.dw-v",b).eq(-1).index();h=x.height;t=w}function u(a){var b=x.headerText;return b?"function"==typeof b?b.call(G,a):b.replace(/{value}/i,a):""}function B(){w.temp=M&&null!==w.val&&w.val!=b.val()||null===w.values?x.parseValue(b.val()?b.val():"",w):w.values.slice(0);w.setValue(!0)}
function D(b,e,c,h,f){x.validate.call(G,E,c);a(".dww ul",E).each(function(h){var g=a(this),k=a('li[data-val="'+w.temp[h]+'"]',g),g=k.index(),d=k,k=g;if(!d.hasClass("dw-v")){for(var r=d,l=0,j=0;r.prev().length&&!r.hasClass("dw-v");)r=r.prev(),l++;for(;d.next().length&&!d.hasClass("dw-v");)d=d.next(),j++;(j<l&&j&&1==!f||!l||!r.hasClass("dw-v")||1==f)&&d.hasClass("dw-v")?k+=j:(d=r,k-=l);w.temp[h]=d.data("val")}r=h==c||void 0===c;if(g!=k||r)w.scroll(a(this),k,r?b:0,e,h)});w.change(h)}function I(){var b=
0,e=0,c=a(window).width(),h=a(window).height(),f=a(window).scrollTop(),g=a(".dwo",E),k=a(".dw",E),d,r;a(".dwc",E).each(function(){d=a(this).outerWidth(!0);b+=d;e=d>e?d:e});d=b>c?e:b;k.width(d);d=k.outerWidth();r=k.outerHeight();k.css({left:(c-d)/2,top:f+(h-r)/2});g.height(0).height(j())}function L(a){var b=+a.data("pos")+1;k(a,b>l?r:b,1)}function J(a){var b=+a.data("pos")-1;k(a,b<r?l:b,2)}var w=this,G=b,b=a(G),O,x=a.extend({},H),Q,E,P={},R={},M=b.is("input"),N=!1;w.enable=function(){x.disabled=!1;
M&&b.prop("disabled",!1)};w.disable=function(){x.disabled=!0;M&&b.prop("disabled",!0)};w.scroll=function(a,b,e,c,h){var f=(Q-b)*x.height;a.attr("style",(e?A+"-transition:all "+e.toFixed(1)+"s ease-out;":"")+(y?A+"-transform:translate3d(0,"+f+"px,0);":"top:"+f+"px;"));if(e){var g=0;clearInterval(P[h]);P[h]=setInterval(function(){g+=0.1;a.data("pos",Math.round((b-c)*Math.sin(g/e*(Math.PI/2))+c));g>=e&&(clearInterval(P[h]),a.data("pos",b))},100);clearTimeout(R[h]);R[h]=setTimeout(function(){"mixed"==
x.mode&&!a.hasClass("dwa")&&a.closest(".dwwl").find(".dwwb").fadeIn("fast")},1E3*e)}else a.data("pos",b)};w.setValue=function(a,e,c){var h=x.formatResult(w.temp);w.val=h;w.values=w.temp.slice(0);N&&a&&D(c);e&&M&&b.val(h).trigger("change")};w.validate=function(a,b,e,c){D(a,b,e,!0,c)};w.change=function(b){var e=x.formatResult(w.temp);"inline"==x.display?w.setValue(!1,b):a(".dwv",E).html(u(e));b&&x.onChange.call(G,e,w)};w.hide=function(){if(!1===x.onClose.call(G,w.val,w))return!1;a(".dwtd").prop("disabled",
!1).removeClass("dwtd");b.blur();E&&E.remove();N=!1;a(window).unbind(".dw")};w.show=function(){if(x.disabled||N)return!1;var e=x.height,h=x.rows*e;B();for(var f='<div class="'+x.theme+'">'+("inline"==x.display?'<div class="dw dwbg dwi"><div class="dwwr">':'<div class="dwo"></div><div class="dw dwbg"><div class="dwwr">'+(x.headerText?'<div class="dwv"></div>':"")),d=0;d<x.wheels.length;d++){f+='<div class="dwc'+("scroller"!=x.mode?" dwpm":" dwsc")+(x.showLabel?"":" dwhl")+'"><div class="dwwc dwrc"><table cellpadding="0" cellspacing="0"><tr>';
for(var r in x.wheels[d]){f+='<td><div class="dwwl dwrc">'+("scroller"!=x.mode?'<div class="dwwb dwwbp" style="height:'+e+"px;line-height:"+e+'px;"><span>+</span></div><div class="dwwb dwwbm" style="height:'+e+"px;line-height:"+e+'px;"><span>&ndash;</span></div>':"")+'<div class="dwl">'+r+'</div><div class="dww dwrc" style="height:'+h+"px;min-width:"+x.width+'px;"><ul>';for(var l in x.wheels[d][r])f+='<li class="dw-v" data-val="'+l+'" style="height:'+e+"px;line-height:"+e+'px;">'+x.wheels[d][r][l]+
"</li>";f+='</ul><div class="dwwo"></div></div><div class="dwwol"></div></div></td>'}f+="</tr></table></div></div>"}f+=("inline"!=x.display?'<div class="dwbc"><span class="dwbw dwb-s"><a href="#" class="dwb">'+x.setText+'</a></span><span class="dwbw dwb-c"><a href="#" class="dwb">'+x.cancelText+"</a></span></div>":'<div class="dwcc"></div>')+"</div></div></div>";E=a(f);D();"inline"!=x.display?E.appendTo("body"):b.is("div")?b.html(E):E.insertAfter(b);N=!0;O.init(E,w);"inline"!=x.display&&(a(".dwb-s a",
E).click(function(){w.setValue(!1,!0);w.hide();x.onSelect.call(G,w.val,w);return!1}),a(".dwb-c a",E).click(function(){w.hide();x.onCancel.call(G,w.val,w);return!1}),a("input,select").each(function(){a(this).prop("disabled")||a(this).addClass("dwtd")}),a("input,select").prop("disabled",!0),I(),a(window).bind("resize.dw",I));E.delegate(".dwwl","DOMMouseScroll mousewheel",function(b){if(!x.readonly){b.preventDefault();var b=b.originalEvent,b=b.wheelDelta?b.wheelDelta/120:b.detail?-b.detail/3:0,e=a("ul",
this),c=+e.data("pos"),c=Math.round(c-b);m(e);k(e,c,b<0?1:2)}}).delegate(".dwb, .dwwb",C,function(){a(this).addClass("dwb-a")}).delegate(".dwwb",C,function(b){if(!x.readonly){b.preventDefault();b.stopPropagation();var e=a(this).closest(".dwwl").find("ul");func=a(this).hasClass("dwwbp")?L:J;m(e);clearInterval(c);c=setInterval(function(){func(e)},x.delay);func(e)}}).delegate(".dwwl",C,function(b){!o&&x.mode!="clickpick"&&!x.readonly&&(b.preventDefault(),o=!0,p=a("ul",this).addClass("dwa"),x.mode=="mixed"&&
a(".dwwb",this).fadeOut("fast"),s=+p.data("pos"),m(p),n=g(b),v=new Date,q=n,w.scroll(p,s))});x.onShow.call(G,E,w)};w.init=function(c){O=a.extend({defaults:{},init:e},a.scroller.themes[c.theme?c.theme:x.theme]);a.extend(x,O.defaults,d,c);w.settings=x;Q=Math.floor(x.rows/2);var h=a.scroller.presets[x.preset];b.unbind(".dw");h&&(h=h.call(G,w),a.extend(x,h,d,c),a.extend(F,h.methods));void 0!==b.data("dwro")&&(G.readOnly=f(b.data("dwro")));N&&w.hide();"inline"==x.display?w.show():(B(),M&&x.showOnFocus&&
(b.data("dwro",G.readOnly),G.readOnly=!0,b.bind("focus.dw",w.show)))};w.values=null;w.val=null;w.temp=null;w.init(d)}function j(a){for(var b in a)if(void 0!==u[a[b]])return!0;return!1}function g(a){return B?a.originalEvent?a.originalEvent.changedTouches[0].pageY:a.changedTouches[0].pageY:a.pageY}function f(a){return!0===a||"true"==a}function k(b,e,c,h,f){var g=b.closest(".dwwr").find("ul").index(b),e=e>l?l:e,e=e<r?r:e,b=a("li",b).eq(e);t.temp[g]=b.data("val");t.validate(h?e==f?0.1:Math.abs(0.1*(e-
f)):0,f,g,c)}var b={},c,e=function(){},h,r,l,t,m=(new Date).getTime(),o=!1,p=null,n,q,v,s,u=document.createElement(u).style,y=j(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"])&&"webkitPerspective"in document.documentElement.style,A=function(){var a=["Webkit","Moz","O","ms"],b;for(b in a)if(j([a[b]+"Transform"]))return"-"+a[b].toLowerCase();return""}(),B="ontouchstart"in window,C=B?"touchstart":"mousedown",D=B?"touchend":"mouseup",H={width:70,height:40,
rows:3,delay:300,disabled:!1,readonly:!1,showOnFocus:!0,showLabel:!0,wheels:[],theme:"",headerText:"{value}",display:"modal",mode:"scroller",preset:"",setText:"Set",cancelText:"Cancel",onShow:e,onClose:e,onSelect:e,onCancel:e,onChange:e,formatResult:function(a){for(var b="",e=0;e<a.length;e++)b+=(0<e?" ":"")+a[e];return b},parseValue:function(a,b){for(var e=b.settings.wheels,a=a.split(" "),c=[],h=0,f=0;f<e.length;f++)for(var g in e[f]){if(void 0!==e[f][g][a[h]])c.push(a[h]);else for(var k in e[f][g]){c.push(k);
break}h++}return c},validate:e},F={init:function(a){void 0===a&&(a={});return this.each(function(){this.id||(m+=1,this.id="scoller"+m);b[this.id]=new d(this,a)})},enable:function(){return this.each(function(){var a=b[this.id];a&&a.enable()})},disable:function(){return this.each(function(){var a=b[this.id];a&&a.disable()})},isDisabled:function(){var a=b[this[0].id];if(a)return a.settings.disabled},option:function(a,e){return this.each(function(){var c=b[this.id];if(c){var h={};"object"===typeof a?
h=a:h[a]=e;c.init(h)}})},setValue:function(a,e,c){return this.each(function(){var h=b[this.id];h&&(h.temp=a,h.setValue(!0,e,c))})},getInst:function(){return b[this[0].id]},getValue:function(){var a=b[this[0].id];if(a)return a.values},show:function(){var a=b[this[0].id];if(a)return a.show()},hide:function(){return this.each(function(){var a=b[this.id];a&&a.hide()})},destroy:function(){return this.each(function(){var e=b[this.id];e&&(e.hide(),a(this).unbind(".dw"),delete b[this.id],a(this).is("input")&&
(this.readOnly=f(a(this).data("dwro"))))})}};a(document).bind(B?"touchmove":"mousemove",function(a){o&&(a.preventDefault(),q=g(a),a=s+(n-q)/h,a=a>l+1?l+1:a,a=a<r-1?r-1:a,t.scroll(p,a))});a(document).bind(D,function(b){if(o){b.preventDefault();p.removeClass("dwa");var e=new Date-v,b=s+(n-q)/h,b=b>l+1?l+1:b,b=b<r-1?r-1:b;300>e?(e=(q-n)/e,e=e*e/0.0012,0>q-n&&(e=-e)):e=q-n;k(p,Math.round(s-e/h),0,!0,Math.round(b));o=!1;p=null}clearInterval(c);a(".dwb-a").removeClass("dwb-a")});a.fn.scroller=function(b){if(F[b])return F[b].apply(this,
Array.prototype.slice.call(arguments,1));if("object"===typeof b||!b)return F.init.apply(this,arguments);a.error("Unknown method")};a.scroller={setDefaults:function(b){a.extend(H,b)},presets:{},themes:{}}})(jQuery);
(function(a){a.scroller.themes.jqm={defaults:{jqmBody:"c",jqmHeader:"b",jqmWheel:"d",jqmClickPick:"c",jqmSet:"b",jqmCancel:"c"},init:function(d,j){var g=j.settings;a(".dw",d).removeClass("dwbg").addClass("ui-overlay-shadow ui-corner-all ui-body-a");a(".dwb-s a",d).attr("data-role","button").attr("data-theme",g.jqmSet);a(".dwb-c a",d).attr("data-role","button").attr("data-theme",g.jqmCancel);a(".dwwb",d).attr("data-role","button").attr("data-theme",g.jqmClickPick);a(".dwv",d).addClass("ui-header ui-bar-"+
g.jqmHeader);a(".dwwr",d).addClass("ui-body-"+g.jqmBody);a(".dwpm .dww",d).addClass("ui-body-"+g.jqmWheel);"inline"!=g.display&&a(".dw",d).addClass("pop in");d.trigger("create");a(".dwo",d).click(function(){j.hide()})}}})(jQuery);(function(a){a.scroller.themes.ios={defaults:{dateOrder:"MMdyy",rows:5,height:30,width:55,headerText:!1,showLabel:!1}}})(jQuery);
(function(a){var d={defaults:{dateOrder:"Mddyy",mode:"mixed",rows:5,width:70,showLabel:!1}};a.scroller.themes["android-ics"]=d;a.scroller.themes["android-ics light"]=d})(jQuery);(function(a){a.scroller.themes.android={defaults:{dateOrder:"Mddyy",mode:"clickpick",height:50}}})(jQuery);
(function(a){var d={inputClass:""};a.scroller.presets.select=function(j){var g=a.extend({},d,j.settings),f=a(this),k=this.id+"_dummy";a('label[for="'+this.id+'"]').attr("for",k);var b=a('label[for="'+k+'"]'),b=b.length?b.text():f.attr("name"),c=[],e=[{}];e[0][b]={};var h=e[0][b];a("option",f).each(function(){var b=a(this).attr("value");h["_"+b]=a(this).text();a(this).prop("disabled")&&c.push(b)});a("#"+k).remove();var r=a('<input type="text" id="'+k+'" value="'+h["_"+f.val()]+'" class="'+g.inputClass+
'" readonly />').insertBefore(f);g.showOnFocus&&r.focus(function(){j.show()});f.hide().closest(".ui-field-contain").trigger("create");return{width:200,wheels:e,headerText:!1,formatResult:function(a){return h[a[0]]},parseValue:function(){return["_"+f.val()]},validate:function(b){a.each(c,function(e,c){a('li[data-val="_'+c+'"]',b).removeClass("dw-v")})},onSelect:function(a,b){r.val(a);f.val(b.values[0].replace(/_/,"")).trigger("change")},onChange:function(a,b){"inline"==g.display&&(r.val(a),f.val(b.temp[0].replace(/_/,
"")).trigger("change"))},onClose:function(){r.blur()}}}})(jQuery);
(function(a){var d=new Date,j={dateFormat:"mm/dd/yy",dateOrder:"mmddy",timeWheels:"hhiiA",timeFormat:"hh:ii A",startYear:d.getFullYear()-100,endYear:d.getFullYear()+1,monthNames:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),monthNamesShort:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),dayNames:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),dayNamesShort:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),shortYearCutoff:"+10",
monthText:"Month",dayText:"Day",yearText:"Year",hourText:"Hours",minuteText:"Minutes",secText:"Seconds",ampmText:"&nbsp;",stepHour:1,stepMinute:1,stepSecond:1,separator:" "},d=function(g){function f(a,b,e){return void 0!==m[b]?+a[m[b]]:void 0!==e?e:A[o[b]]?A[o[b]]():o[b](A)}function k(a,b){return Math.floor(a/b)*b}function b(a){var b=f(a,"h",0);return new Date(f(a,"y"),f(a,"m"),f(a,"d"),f(a,"ap")?b+12:b,f(a,"i",0),f(a,"s",0))}var c=a(this),e;if(c.is("input")){switch(c.attr("type")){case "date":e=
"yy-mm-dd";break;case "datetime":e="yy-mm-ddTHH:ii:ssZ";break;case "datetime-local":e="yy-mm-ddTHH:ii:ss";break;case "month":e="yy-mm";j.dateOrder="mmyy";break;case "time":e="HH:ii:ss"}var h=c.attr("min"),c=c.attr("max");h&&(j.minDate=a.scroller.parseDate(e,h));c&&(j.maxDate=a.scroller.parseDate(e,c))}var d=a.extend({},j,g.settings),l=0,h=[],t=[],m={},o={y:"getFullYear",m:"getMonth",d:"getDate",h:function(a){a=a.getHours();a=u&&12<=a?a-12:a;return k(a,B)},i:function(a){return k(a.getMinutes(),C)},
s:function(a){return k(a.getSeconds(),D)},ap:function(a){return s&&11<a.getHours()?1:0}},p=d.preset,n=d.dateOrder,q=d.timeWheels,v=n.match(/D/),s=q.match(/a/i),u=q.match(/h/),y="datetime"==p?d.dateFormat+d.separator+d.timeFormat:"time"==p?d.timeFormat:d.dateFormat,A=new Date,B=d.stepHour,C=d.stepMinute,D=d.stepSecond,H=d.minDate,F=d.maxDate;e=e?e:y;if(p.match(/date/i)){a.each(["y","m","d"],function(a,b){a=n.search(RegExp(b,"i"));-1<a&&t.push({o:a,v:b})});t.sort(function(a,b){return a.o>b.o?1:-1});
a.each(t,function(a,b){m[b.v]=a});for(var c={},K=0;3>K;K++)if(K==m.y){l++;c[d.yearText]={};for(var z=H?H.getFullYear():d.startYear,S=F?F.getFullYear():d.endYear;z<=S;z++)c[d.yearText][z]=n.match(/yy/i)?z:(z+"").substr(2,2)}else if(K==m.m){l++;c[d.monthText]={};for(z=0;12>z;z++)c[d.monthText][z]=n.match(/MM/)?d.monthNames[z]:n.match(/M/)?d.monthNamesShort[z]:n.match(/mm/)&&9>z?"0"+(z+1):z+1}else if(K==m.d){l++;c[d.dayText]={};for(z=1;32>z;z++)c[d.dayText][z]=n.match(/dd/i)&&10>z?"0"+z:z}h.push(c)}if(p.match(/time/i)){c=
{};if(q.match(/h/i)){m.h=l++;c[d.hourText]={};for(z=0;z<(u?12:24);z+=B)c[d.hourText][z]=u&&0==z?12:q.match(/hh/i)&&10>z?"0"+z:z}if(q.match(/i/)){m.i=l++;c[d.minuteText]={};for(z=0;60>z;z+=C)c[d.minuteText][z]=q.match(/ii/)&&10>z?"0"+z:z}if(q.match(/s/)){m.s=l++;c[d.secText]={};for(z=0;60>z;z+=D)c[d.secText][z]=q.match(/ss/)&&10>z?"0"+z:z}s&&(m.ap=l++,l=q.match(/A/),c[d.ampmText]={0:l?"AM":"am",1:l?"PM":"pm"});h.push(c)}g.setDate=function(a,b,e){for(var c in m)this.temp[m[c]]=a[o[c]]?a[o[c]]():o[c](a);
this.setValue(!0,b,e)};g.getDate=function(a){return b(a)};return{wheels:h,headerText:function(){return a.scroller.formatDate(y,b(g.temp),d)},formatResult:function(c){return a.scroller.formatDate(e,b(c),d)},parseValue:function(b){var c=new Date,h=[];try{c=a.scroller.parseDate(e,b,d)}catch(f){}for(var g in m)h[m[g]]=c[o[g]]?c[o[g]]():o[g](c);return h},validate:function(b,e){var c=g.temp,h={m:0,d:1,h:0,i:0,s:0,ap:0},l={m:11,d:31,h:k(u?11:23,B),i:k(59,C),s:k(59,D),ap:1},j=!0,t=!0;a.each(H||F?"y,m,d,ap,h,i,s".split(","):
e==m.y||e==m.m||void 0===e?["d"]:[],function(e,g){if(void 0!==m[g]){var k=h[g],q=l[g],p=31,s=f(c,g),u=a("ul",b).eq(m[g]),A,y;"d"==g&&(A=f(c,"y"),y=f(c,"m"),q=p=32-(new Date(A,y,32)).getDate(),v&&a("li",u).each(function(){var b=a(this),e=b.data("val"),c=(new Date(A,y,e)).getDay();b.html(n.replace(/[my]/gi,"").replace(/dd/,10>e?"0"+e:e).replace(/d/,e).replace(/DD/,d.dayNames[c]).replace(/D/,d.dayNamesShort[c]))}));j&&H&&(k=H[o[g]]?H[o[g]]():o[g](H));t&&F&&(q=F[o[g]]?F[o[g]]():o[g](F));if("y"!=g){var B=
a('li[data-val="'+k+'"]',u).index(),z=a('li[data-val="'+q+'"]',u).index();a("li",u).removeClass("dw-v").slice(B,z+1).addClass("dw-v");"d"==g&&a("li",u).removeClass("dw-h").slice(p).addClass("dw-h");s<k&&(s=k);s>q&&(s=q)}j&&(j=s==k);t&&(t=s==q);if(d.invalid&&"d"==g){var C=[];d.invalid.dates&&a.each(d.invalid.dates,function(a,b){b.getFullYear()==A&&b.getMonth()==y&&C.push(b.getDate()-1)});if(d.invalid.daysOfWeek){var D=(new Date(A,y,1)).getDay();a.each(d.invalid.daysOfWeek,function(a,b){for(var e=b-
D;e<p;e+=7)e>=0&&C.push(e)})}d.invalid.daysOfMonth&&a.each(d.invalid.daysOfMonth,function(a,b){b=(b+"").split("/");b[1]?b[0]-1==y&&C.push(b[1]-1):C.push(b[0]-1)});a.each(C,function(b,e){a("li",u).eq(e).removeClass("dw-v")})}}})},methods:{getDate:function(b){var e=a(this).scroller("getInst");if(e)return e.getDate(b?e.temp:e.values)},setDate:function(b,e,c){void 0==e&&(e=!1);return this.each(function(){var h=a(this).scroller("getInst");h&&h.setDate(b,e,c)})}}}};a.scroller.presets.date=d;a.scroller.presets.datetime=
d;a.scroller.presets.time=d;a.scroller.formatDate=function(g,f,d){if(!f)return null;for(var d=a.extend({},j,d),b=function(a){for(var b=0;l+1<g.length&&g.charAt(l+1)==a;)b++,l++;return b},c=function(a,e,c){e=""+e;if(b(a))for(;e.length<c;)e="0"+e;return e},e=function(a,e,c,h){return b(a)?h[e]:c[e]},h="",r=!1,l=0;l<g.length;l++)if(r)"'"==g.charAt(l)&&!b("'")?r=!1:h+=g.charAt(l);else switch(g.charAt(l)){case "d":h+=c("d",f.getDate(),2);break;case "D":h+=e("D",f.getDay(),d.dayNamesShort,d.dayNames);break;
case "o":h+=c("o",(f.getTime()-(new Date(f.getFullYear(),0,0)).getTime())/864E5,3);break;case "m":h+=c("m",f.getMonth()+1,2);break;case "M":h+=e("M",f.getMonth(),d.monthNamesShort,d.monthNames);break;case "y":h+=b("y")?f.getFullYear():(10>f.getYear()%100?"0":"")+f.getYear()%100;break;case "h":var t=f.getHours();h+=c("h",12<t?t-12:0==t?12:t,2);break;case "H":h+=c("H",f.getHours(),2);break;case "i":h+=c("i",f.getMinutes(),2);break;case "s":h+=c("s",f.getSeconds(),2);break;case "a":h+=11<f.getHours()?
"pm":"am";break;case "A":h+=11<f.getHours()?"PM":"AM";break;case "'":b("'")?h+="'":r=!0;break;default:h+=g.charAt(l)}return h};a.scroller.parseDate=function(g,f,d){var b=new Date;if(!g||!f)return b;for(var f="object"==typeof f?f.toString():f+"",c=a.extend({},j,d),d=b.getFullYear(),e=b.getMonth()+1,h=b.getDate(),r=-1,l=b.getHours(),b=b.getMinutes(),t=0,m=-1,o=!1,p=function(a){(a=s+1<g.length&&g.charAt(s+1)==a)&&s++;return a},n=function(a){p(a);a=f.substr(v).match(RegExp("^\\d{1,"+("@"==a?14:"!"==a?
20:"y"==a?4:"o"==a?3:2)+"}"));if(!a)return 0;v+=a[0].length;return parseInt(a[0],10)},q=function(a,b,e){a=p(a)?e:b;for(b=0;b<a.length;b++)if(f.substr(v,a[b].length).toLowerCase()==a[b].toLowerCase())return v+=a[b].length,b+1;return 0},v=0,s=0;s<g.length;s++)if(o)"'"==g.charAt(s)&&!p("'")?o=!1:v++;else switch(g.charAt(s)){case "d":h=n("d");break;case "D":q("D",c.dayNamesShort,c.dayNames);break;case "o":r=n("o");break;case "m":e=n("m");break;case "M":e=q("M",c.monthNamesShort,c.monthNames);break;case "y":d=
n("y");break;case "H":l=n("H");break;case "h":l=n("h");break;case "i":b=n("i");break;case "s":t=n("s");break;case "a":m=q("a",["am","pm"],["am","pm"])-1;break;case "A":m=q("A",["am","pm"],["am","pm"])-1;break;case "'":p("'")?v++:o=!0;break;default:v++}100>d&&(d+=(new Date).getFullYear()-(new Date).getFullYear()%100+(d<=c.shortYearCutoff?0:-100));if(-1<r){e=1;h=r;do{c=32-(new Date(d,e-1,32)).getDate();if(h<=c)break;e++;h-=c}while(1)}l=new Date(d,e-1,h,-1==m?l:m&&12>l?l+12:!m&&12==l?0:l,b,t);if(l.getFullYear()!=
d||l.getMonth()+1!=e||l.getDate()!=h)throw"Invalid date";return l}})(jQuery);
(function(a,d,j,g){AC.Widgets.WiziCore_UI_BaseMobileWidget=AC.Widgets.Base.extend({initProps:function(){this._super();this._mobileThemeFunc=this.themeProperty("mobileTheme",this._redraw)},mobileTheme:function(){var a=this._mobileThemeFunc.apply(this,arguments);return a=a==""||a===g?"c":a},_redraw:function(){},isMobileWidget:function(){return!0},checkEmptyLabel:function(a){if(a==g||a.trim&&a.trim()=="")a="&nbsp;";return a},getUserIconResource:function(a){var d=!1;if(typeof a=="object"&&a.opt=="image-select"&&
a.val!=g)d=a.val;else if(a&&(a.indexOf("http:")==0||a.indexOf("https:")==0||a.indexOf(".")>=0))d=a;return d},_getJQMOptions:function(){var a={theme:this.mobileTheme()},g=WiziCore_Helper.isMobile();a.mobilePerfomance=g;return a},onPageDrawn:function(){this.mode()==WiziCore_Visualizer.RUN_MODE&&this.base().css("overflow","visible");this._super.apply(this,arguments);this._redraw()}})})(jQuery,window,document);
(function(){var a=AC.Widgets.WiziCore_UI_ContainerMobileWidget=AC.Widgets.WiziCore_UI_PanelContainerWidget.extend({_widgetClass:"WiziCore_UI_ContainerMobileWidget",_currPage:null,_cnt:null,draw:function(){this.base().css({"border-left":0,"border-right":0});this._super.apply(this,arguments)},initProps:function(){this._super();this.mobileTheme=this.themeProperty("mobileTheme",this._mobileTheme)},_redraw:function(){this._super.apply(this,arguments)},_mobileTheme:function(a){this.base().removeClass(function(a,
f){return(f.match(/m-ui-bar-\w/g)||[]).join(" ")}).addClass("m-ui-bar-"+a)},_getJQMOptions:function(){return{theme:this.mobileTheme()}},initDomState:function(){this._super();this._mobileTheme(this.mobileTheme())},onPageDrawn:function(){this.mode()==WiziCore_Visualizer.RUN_MODE&&(this.base().css("overflow","hidden"),this._updateScrolling());this._super.apply(this,arguments)}}),d=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.layout]},
{name:AC.Property.group_names.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.repeat,
AC.Property.layout.scrolling]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,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.boxSizing,AC.Property.style.border,AC.Property.style.borderRadius,AC.Property.style.margin,AC.Property.style.mobileTheme,AC.Property.style.fixed,AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];a.props=function(){return d};a.capabilities=function(){return{defaultProps:{width:"320",height:"30",x:"0",y:"0",widgetClass:"WiziCore_UI_ContainerMobileWidget",name:"MobileToolbar",opacity:1,zindex:"auto",
enable:!0,visible:!0,widgetStyle:"default",anchors:{left:!0,top:!0,bottom:!1,right:!1},centered:!1,readonly:!1,margin:"",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",pWidth:"100",dragAndDrop:!1,layout:"absolute",mobileTheme:"a",scrolling:"none",boxSizing:"border-box"},emptyProps:{borderRadius:"0"},props:a.props(),isField:!1,containerType:AC.Widgets.Base.CASE_TYPE_CONTAINER}}})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationList,WiziCore_Source_Widget_PagingAPI,{_widgetClass:"WiziCore_UI_SingleSelectMobileWidget",_div:null,_btnDiv:null,_reloadData:!1,_lineSpaceStyle:null,_dataPropName:"data",init:function(){this._super.apply(this,arguments)},draw:function(){this._super.apply(this,arguments)},_onInitLanguage:function(){this.label(this.label());this.data(this._project.data)},
_onSTUpdated:function(){this._redraw()},_onLanguageChanged:function(){this._redraw()},getDataFromMap:function(a,c){for(var e=[],h=0,f=a.length;h<f;h++){var d=[],k;for(k in c){var j=c[k];j!=g&&(d[k]=AC.Widgets.Base.getDataItemWithMap(a[h],j))}e.push(d)}return e},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.enable=this.htmlProperty("enable",this._enable);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.label=this.htmlLngPropertyBeforeSet("label",this._beforeLabel,this._label);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.normalProperty("filter");this.resetfilter=this.normalProperty("resetfilter");this.listenview=this.normalProperty("listenview");this.applyview=this.normalProperty("applyview");this.onview=this.normalProperty("onview")},data:function(a){if(a!=g){if(a.rows!==g){for(var c=[],e=0,h=a.rows.length;e<
h;++e)c[e]=[a.rows[e].data[0],a.rows[e].data[1]];a=c}this._stopDropIndices||(this._project.selectedIndex=-1)}return this.htmlPropertyBeforeSetAfterGet("data",this._beforeData,this._data,this._afterGet).call(this,a)},_beforeData:function(b){var l;if(!a.isArray(b))return b;var c,e,h;c=this.form();e=c._showLngTokens;if(c.language()!=null&&!c._skipTokenCreation){c._showLngTokens=!0;h=this.data();c._showLngTokens=e;for(c=0,e=b.length;c<e;c++){var f=b[c].userData&&b[c].userData.id!=g?b[c].userData.id:null,
d;WiziCore_Helper.isLngToken(b[c][0])||(l=(d=f!=null&&h&&WiziCore_Helper.isLngToken(h[f][0]))?h[f][0]:WiziCore_Helper.generateId(10,"ac-"),f=l,this.form().addTokenToStringTable(this.id(),this.name(),f,b[c][0]),b[c][0]=f);if(b[c].userData!=g)b[c].userData=g}}return b},_afterGet:function(b){b=WiziCore_Helper.clone(b);if(a.isArray(b))for(var c=0,e=b.length;c<e;c++)b[c][0]=this._getTranslatedValue(b[c][0]);return b},initDomState:function(){this._super();this.initDomStatePos();this._updateEnable();this._visible(this.visible());
this._opacity(this.opacity())},_data:function(){},_beforeLabel:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var c=WiziCore_Helper.isLngToken(a),e=c?a:"ac-"+this.id();c||this.form().addTokenToStringTable(this.id(),this.name(),e,a);return e}else return a},_label:function(){this._redraw()},_enable:function(a){this._select&&(a=a===!0?"enable":"disable",this._select.data("selectmenu")&&this._select.selectmenu(a))},_refresh:function(){var a=this._getJQMOptions();a.nativeMenu=
WiziCore_Helper.isMobile();this._select.selectmenu(a);this._select.data("selectmenu").listbox&&this._select.data("selectmenu").listbox.popup({transition:"none",theme:"a"});this._btnDiv=WiziCore_Helper.isMobile()?this._div.find(".m-ui-btn"):this.base().find("a");this._updateEnable();WiziCore_Helper.pageChangingHook(this.form(),this._select,this.id(),this,{disabled:!0})},_shadow:function(a,c){this._super(a,c||this._btnDiv)},_getJQMOptions:function(){var a=this._super();if(this.placeholder)a.usePlaceholder=
this.placeholder;return a},onRemove:function(){if(!this._checkRepeatBeforeRemove()){if(this._select){var b=this._select;b.data("selectmenu")&&b.selectmenu("close");a("#select-"+this.htmlId()+"-menu").parent().trigger("closed");b.data("selectmenu")&&b.selectmenu("destroy")}WiziCore_Helper.removePageChangingHook(this.form(),this.id())}},onChange:function(b){var b=b.data.self,c=new a.Event(f.onChange);a(b).trigger(c,[0])},_redraw:function(){this._stopDropIndices=!0;this._data(this._project.data);this._stopDropIndices=
!1},addEvents:function(a){if(this._select!=null)switch(a){case f.onChange:this._select.bind(WiziCore_Helper.isMobile()?"change":"close",{self:this},this.onChange)}},removeEvents:function(a){if(this._select!=null)switch(a){case f.onChange:this._select.unbind("change",this.onChange)}},getDataModel:function(){return[{name:"widget_label",value:"",uid:"labeluid"},{name:"widget_value",value:"",uid:"valueuid"}]},dataWithValue:function(a){var c,e,h,f,d,k;if(a!=g){if(a.rows!==g){h=[];f=-1;for(c=0,e=a.rows.length;c<
e;++c)d=a.rows[c],h[c]=[d.data[0],d.data[1]],h[c].userData=d.data.userData,+d.data[2]&&f==-1&&(f=c);this._project.selectedIndex=f;this._stopDropIndices=!0;this.data(h);this._stopDropIndices=!1}}else{a=this.data();f=this._project.selectedIndex;h=[];if(a)for(c=0,e=a.length;c<e;++c)d=a[c],h[c]=[d[0],d[1],c==f],h[c].userData={id:c};k=h}return k}}));f.inlineEditPropName=function(){return"data"};var k=[{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.dataWithValueRadioBox]},{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]},{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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};f.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",
font:"normal 12px verdana",border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdan",selectedColor:"silver"}};f.defaultProps=function(){return{valName:"selectedItems",x:"0",y:"0",height:"120",width:"150",zindex:"auto",enable:!0,margin:"",alignInContainer:"left",pWidth:"",anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,data:[["Label","Value",!0]],name:"popupDropdown",border:"",label:"Label",selectedIndex:0,labelDisabled:!1,displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,
widgetStyle:"default",customCssClasses:"",currPage:1,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};f.onSelectValue="E#SingleSelectMobile#onSelectValue";f.onChange="E#SingleSelectMobile#onChange";f.actions=function(){return{onChange:{alias:"widget_event_onselectionchange",funcview:"onSelectionChange",action:"AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.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"}}};f.valuePropName=g;f.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){var d=AC.Widgets.WiziCore_UI_PopupDropdownMobileWidget=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.extend({_widgetClass:"WiziCore_UI_PopupDropdownMobileWidget",_oldVal:null,_selected:!1,init:function(){this._super.apply(this,arguments);this._project.selectedIndex=this._project.selectedIndex!=g?this._project.selectedIndex:-1;var a=this._project.data,b=this._project.selectedIndex;if((this._defaultData=a)&&a[b])this._defaultValue=a[b][1]},draw:function(){this._mainCnt=a("<div style='width:100%; height:100%'></div>");
this.base().append(this._mainCnt);this._super.apply(this,arguments);"selectedIndex"in this._project||(this._project.selectedIndex=-1);if(this._project.selectedIndex!=-1&&this._project.selectedIndex!=null)this._selected=!0},selectElemId:function(){return"select-"+this.htmlId()},_data:function(f){if(this._mainCnt){var b=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this.removeEvents(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange);if(this._select!=g){var c=this._select.data("selectmenu");c&&c.menuType==
"page"&&c.menuPage&&c.menuPage.remove()}this._div!=g&&(this._div.empty(),this._div.remove());this._div=a("<div/>");this._div.attr("id","selectDiv-"+this.htmlId());var c=WiziCore_Helper.isMobile(),e=a('<label class="select" for="'+d+'"></label>'),h=this._div,d=this.selectElemId(),d=a('<select name="'+d+'" id="'+d+'"/>'),l=0,j=f?f.length:0;e.text(this.label());e.hide();c||d.append(a("<option>"+this.label()+"</option>"));this.placeholder=this.label();d.data("native-menu",c);if(f){if(this.usePaging()&&
(j=this._getStartAndLength(j),l=j.i,j=j.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&f[l]==g))j=this._getDefaultStartAndLength(f.length),l=j.i,j=j.l;for(;l<j;++l){var m=f[l][0]?f[l][0].replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&"):"";if(m==""||m==" ")m="&nbsp;";m=WiziCore_Helper.isLngToken(m)?this._getTranslatedValue(m):m;m=a("<option>").attr({value:l}).html(""+m);d.append(m)}}this._select=d;this._oldVal=null;this._stopDropIndices||(this._project.selectedIndex=!c?-1:0);this.selectOption(this._project.selectedIndex);
h.append(e);h.append(d);this.addEvents(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange);this._mainCnt.append(this._div);this._isDrawn&&this._refresh();this._super();jQuery.fn.__useTr=b}},_visible:function(a){this._super.apply(this,arguments);if(a!==!1&&WiziCore_Helper.isAndroid()){var b=j.createElement("div");b.setAttribute("style","width:0px;height:0px;");b.innerHTML="&nbsp;";j.body.appendChild(b);setTimeout(function(){j.body.removeChild(b)},100)}},onPageDrawn:function(){this._super.apply(this,
arguments);this._tabindex(this.tabindex())},_tabindex:function(a){this._super(a,this._btnDiv)},_tabStop:function(a){this._super(a,this._btnDiv)},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._btnDiv.focus()},addEvents:function(a){if(this._select!=null)switch(a){case AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange:this._select.bind("change",{self:this},this.onChange)}},onChange:function(f){var f=f.data.self,b=new a.Event(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange),
c=f._select.val(),e=f.data(),h=f._oldVal,e=c!=null&&e?{label:e[c][0],value:e[c][1],index:c}:null;if(!e||!h||!(e.label==h.label&&e.value==h.value&&e.index==h.index))f._oldVal=e,f._project.selectedIndex=c,f._selected=!0,a(f).trigger(b,[e,h]),b.isPropagationStopped()||f.sendDrillDown()},selectOption:function(a){if(this._select&&a>=0)this._selected=!0,this._select.children("option[value="+a+"]").attr("selected",!0)},getIndexByValue:function(a){var b=this.data(),c=null;if(b&&b.length>0)for(var e=0,h=b.length;e<
h;e++)if(b[e][1]==a){c=e;break}return c},getIndexByLabel:function(a){var b=null,c=this.data();if(c!=g)for(var e=c.length,h=0;h<e;++h)if(c[h][0]==a){b=h;break}return b},_applyValue:function(a){typeof a=="string"&&(a={value:a});a===null&&(a={index:-1});var b=a.index,c=a.value,e=a.label,a=this.data();if(a!=g){var h=a!=g?a.length:0;if(b!=g&&(b>=h||b<-1))b=-1;b==g&&c!=g&&(c=this.getIndexByValue(c),b=c!=null?c:b);b==g&&e!=g&&(c=this.getIndexByLabel(e),b=c!=null?c:b);if(b!=g&&(this._selected=!0,this._project.selectedIndex=
b,this._oldVal=b!=null&&a?{label:a[b][0],value:a[b][1],index:b}:null,this._isDrawn))this._stopDropIndices=!0,this._data(this._project.data),this._stopDropIndices=!1}},value:function(a){if(a===null)a=this._defaultValue;a=typeof a=="number"?a+"":a;a!==g&&(typeof a=="object"||typeof a=="string")&&this._applyValue(a);var a={index:null,value:null,label:null},b=this._project.selectedIndex,c=this.data();if(b!=null&&b!=-1&&c!=g&&this._selected&&(c=c[b],c!=g))a.index=b,a.value=c[1],a.label=c[0];return a},
collectDataSchema:function(a){if(!this.isIncludedInSchema())return g;var b=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,b={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT,structure:{value:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:b},label:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},unique:this.isUnique()};this.mandatory()&&(b.mandatory=!0);return a[this.id()]=b},appendValueToDataObject:function(a,
b,c){var e=this;return this._simpleDataObjectValue(a,c,function(a){a!=null?a={value:a.value,label:a.label}:e.mandatory()&&(b[e.id()]=!0);return a})},setValueFromDataObject:function(a,b){this._setDataObjectValueSimple(a,function(a){typeof a=="object"&&"value"in a||(a={value:a});return a},b)},getDataFromMap:function(a,b){for(var c=[],e=a.length,h=0;h<e;h++){var f={},d;for(d in b){var j=b[d];j!=g&&(f[d]=AC.Widgets.Base.getDataItemWithMap(a[h],j))}c.push(f)}return c}}),f=[{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.dataWithValueRadioBox,AC.Property.general.label]},{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]},{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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.emptyProps=
function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdan",selectedColor:"silver"}};d.defaultProps=function(){return{valName:"selectedItems",x:"0",y:"0",height:"45",width:"150",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,data:[["Label","Value",!0]],name:"popupDropdown1",border:"",label:"Label",selectedIndex:0,displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,
widgetStyle:"default",opacity:1,currPage:1,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};d.inlineEditPropName=function(){return"data"};d.props=function(){return f};d.actions=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.actions;d.valuePropName=g;d.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){d=AC.Widgets.WiziCore_UI_PopupListboxMobileWidget=AC.Widgets.WiziCore_UI_PopupDropdownMobileWidget.extend({_widgetClass:"WiziCore_UI_PopupListboxMobileWidget",_select:null,_oldVal:null,init:function(){this._super.apply(this,arguments);"selectedIndices"in this._project||(this._project.selectedIndices={})},onPageDrawn:function(){this._super.apply(this,arguments);this._tabindex(this.tabindex())},_data:function(f){if(this._mainCnt){var b=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this.removeEvents(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange);
this._div!=g&&this._div.empty().remove();this._div=a("<div/>");this._div.attr("id","selectDiv-"+this.htmlId());var c=this._div,e=this.selectElemId(),h=a('<label class="select">');h.attr("for",e);h.text(this.label());h.hide();var d=a('<select multiple="multiple"></select>');d.attr("name",e);d.attr("id",e);WiziCore_Helper.isMobile()||d.append(a("<option>"+this.label()+"</option>"));this.placeholder=this.label();var e=0,l=f?f.length:0;if(f){if(this.usePaging()&&(l=this._getStartAndLength(l),e=l.i,l=
l.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&f[e]==g))l=this._getDefaultStartAndLength(f.length),e=l.i,l=l.l;for(;e<l;e++){WiziCore_Helper.escapeHTMLtags(""+f[e][1]);var j=(f[e][0]||"").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&"),j=WiziCore_Helper.isLngToken(j)?this._getTranslatedValue(j):j,j=a("<option>").attr({value:e}).text(""+j).attr("data-index",e);d.append(j)}}c.append(h);c.append(d);this._select=d;this.selectOptions(this._project.selectedIndices);this._mainCnt.append(this._div);
this._isDrawn&&this._refresh();this.addEvents(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange);jQuery.fn.__useTr=b}},addEvents:function(a){if(this._select!=null)switch(a){case AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange:this._select.bind(WiziCore_Helper.isMobile()?"change":"close",{self:this},this.onChange)}},onChange:function(f){var f=f.data.self,b=new jQuery.Event(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange),c=[],e=f.data(),h=f._select.val(),h=h==null||!a.isArray(h)?
[]:h,g=f._oldVal;f._project.selectedIndices={};if(e)for(var d=0,j=h.length;d<j;d++)f._project.selectedIndices[h[d]]=!0,c.push({value:e[h[d]][1],label:e[h[d]][0],index:h[d]});if(!(c.length==0&&(g==null||g.length==0))){if(a.isArray(g)&&c.length==g.length){d=0;for(j=c.length;d<j;d++)if(e=c[d],h=g[d],e.value==h.value&&e.label==h.label&&e.index==h.index)return}f._oldVal=c;a(f).trigger(b,[c,g]);!b.isPropagationStopped()&&f.sendDrillDown()}},value:function(a){var b=this.data();if(b==g)return g;var c=b.length,
e;if(a!==g){var a=typeof a=="number"?a+"":a,a=typeof a=="string"?[{value:a}]:a,a=a===null?[]:a,a=jQuery.isArray(a)?a:[a],h={},f={},d={};for(e=0;e<a.length;++e){var j=a[e].index,j=j==g?j:j,m=a[e].value,o=a[e].label;j!=g?h[j]=!0:m!=g?f[m]=!0:o!=g&&(d[o]=!0)}for(e=0;e<c;++e)a=b[e],j=a[0],f[a[1]]&&(h[e]=!0),d[j]&&(h[e]=!0);this.selectOptions(h);this._project.selectedIndices=h}c=[];if(this._project.selectedIndices!=null)for(e in this._project.selectedIndices)this._project.selectedIndices[e]&&(h=b[e],h!=
g&&c.push({index:e,value:h[1],label:h[0]}));return c=c.length==0?null:c},multiSelect:function(){return!0},_tabindex:function(a){this._super(a,this._btnDiv)},_tabStop:function(a){this._super(a,this._btnDiv)},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._btnDiv.focus()},dataWithValue:function(a){var b,c,e,h,f,d;if(a!=g){if(a.rows!==g){e=[];h={};for(b=0,c=a.rows.length;b<c;++b)f=a.rows[b],e[b]=[f.data[0],f.data[1]],e[b].userData=f.data.userData,+f.data[2]&&(h[b]=
!0);this._project.selectedIndices=h;this.data(e)}}else{a=this.data();h=this._project.selectedIndices;e=[];if(a)for(b=0,c=a.length;b<c;++b)f=a[b],e[b]=[f[0],f[1],!!h[b]],e[b].userData={id:b};d=e}return d},selectOptions:function(f){this._isDrawn&&(this._select.find("option").removeAttr("selected").each(function(b,c){f[a(c).attr("data-index")]&&a(c).attr("selected",!0)}),this._select.data("selectmenu")&&this._select.selectmenu("refresh"))},collectDataSchema:function(a){if(!this.isIncludedInSchema())return g;
var b=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,b={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT_LIST,structure:{value:{label:"value",type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:b},label:{label:"label",type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},unique:this.isUnique()};this.mandatory()&&(b.mandatory=!0);return a[this.id()]=b},appendValueToDataObject:function(a,b,c){if(!c&&!this.isIncludedInSchema())return g;
var c=this.data(),e={columns:["value","label"],rows:[]};if(c)for(var h in this._project.selectedIndices)if(this._project.selectedIndices){var f=c[h];f!=g&&e.rows.push({data:[f[1],f[0]]})}if(this.mandatory()&&(e==null||e.rows.length==0))b[this.id()]=!0;e!==g&&(a[this.id()]=e);return!0},setValueFromDataObject:function(f,b){if(this.isIncludedInSchema()||b){var c=this._getValueFromDataObject(f);if(c===null)this.resetValue();else if(c!==g){var e={},h,d;if(c.columns!=g&&c.rows!=g)for(h=0,d=c.rows.length;h<
d;++h)c.rows[h].data?e[c.rows[h].data[0]]=!0:e[c.rows[h][0]]=!0;else if(typeof c=="object"&&"value"in c)e[c.value]=!0;else if(a.isArray(c))for(h=0,d=c.length;h<d;++h)e[c[h]]=!0;else e[c]=!0;var c=this.data(),l={};if(c)for(h=0,d=c.length;h<d;++h)e[c[h][1]]&&(l[h]=!0);this.selectOptions(l);this._project.selectedIndices=l}}}});d.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdan",selectedColor:"silver"}};
d.defaultProps=function(){return{valName:"selectedItems",x:"0",y:"0",height:"45",width:"150",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,data:[["Label","Value",""]],name:"popupListbox1",border:"",label:"Label",widgetStyle:"default",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,alignInContainer:"left",opacity:1,customCssClasses:"",currPage:1,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};d.inlineEditPropName=
function(){return"data"};var f=[{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,AC.Property.general.label]},{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]},{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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,
AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return f};d.actions=AC.Widgets.WiziCore_UI_PopupDropdownMobileWidget.actions;d.valuePropName=g;d.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){d=AC.Widgets.WiziCore_UI_ExpandedRadioMobileWidget=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.extend({_widgetClass:"WiziCore_UI_ExpandedRadioMobileWidget",_radioInputs:null,_oldVal:null,init:function(){this._radioInputs=[];this._super.apply(this,arguments);"selectedIndex"in this._project||(this._project.selectedIndex=-1)},draw:function(){this._mainCnt=a("<div style='width:100%; height:100%'></div>");this.base().append(this._mainCnt);this._super.apply(this,arguments)},expandedRadioId:function(){return"ExpandedRadio-"+
this.htmlId()},getRadioIdByNum:function(a){return this.expandedRadioId()+"-radio-choice-"+a},_data:function(){this._redraw()},_dataRedraw:function(f){this.removeEvent(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange);this._div!=g&&this._div.empty().remove();var d=this.expandedRadioId(),b=a("<div />");b.attr("id",d);this._div=b;this._controlGroup=b=a("<div data-role='controlgroup' style='width:100%'/>");var c="";this._radioInputs=[];if(f){var e=0,h=f.length;if(this.usePaging()&&(h=this._getStartAndLength(h),
e=h.i,h=h.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&f[e]==g))h=this._getDefaultStartAndLength(f.length),e=h.i,h=h.l;for(;e<h;++e){var j=f[e][0]?""+f[e][0].replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&"):"",j=WiziCore_Helper.isLngToken(j)?this._getTranslatedValue(j):j,l=WiziCore_Helper.escapeHTMLtags(""+f[e][1]),t=e+1,m=a("<input>"),t=d+"-radio-choice-"+t;m.attr("id",t);m.attr("type","radio");e==0&&(c=t);m.attr("name",c);m.attr("value",l);m.attr("data-index",e);l=a("<label>");
l.html(this.checkEmptyLabel(j));l.attr("for",t);b.append(m);b.append(l);this._radioInputs.push(m)}}this.selectOption(this._project.selectedIndex);this._div.append(b);this._mainCnt.append(this._div);this.addEvent(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange)},updateRadioInputs:function(a){for(var d=[],b=0;b<a.length;++b){var c=this._getHtmlElemById(this.getRadioIdByNum(b+1));d.push(c)}return d},_redraw:function(){if(this._mainCnt){var a=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this._dataRedraw(this._project.data);
var d=this._getJQMOptions();d.excludeInvisible=!1;this._controlGroup.find("input").checkboxradio(d);this._controlGroup.controlgroup(d);this._updateEnable();jQuery.fn.__useTr=a}},onPageDrawn:function(){this._super.apply(this,arguments);this._tabindex(this.tabindex())},onChange:function(f){var d=f.data.self,b=new a.Event(AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange),c=d._oldVal,e=a(this).val();d._oldVal=e;d._project.selectedIndex=a(this).attr("data-index");setTimeout(function(){a(d).trigger(b,
[e,c])},1)},addEvent:function(a){switch(a){case AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange:this._mainCnt.find("input").bind("change.expRadio",{self:this},this.onChange)}},removeEvent:function(a){switch(a){case AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.onChange:this._mainCnt&&this._mainCnt.find("input").unbind("change.expRadio")}},getSelectedOption:function(){var a=this._div.find(".m-ui-btn-active"),d=this._div.find("#"+a.attr("for"));return{text:a.text(),value:d.val()}},value:function(a){var d=
this.data();if(d==g)return g;var b=d.length;if(a!==g){var c=a.index,c=c==g?c:c,e=a.value,a=a.label;for(i=0;i<b;++i){var h=d[i],j=h[0];e==h[1]&&(c=i);a==j&&(c=i)}this._project.selectedIndex=c;this._isDrawn&&this.selectOption(c)}b=null;c=this._project.selectedIndex;c==-1&&(c=0);d=d[c];d!=g&&(b={index:c,value:d[1],label:d[0]});return b},selectOption:function(d){var k=this._radioInputs;k[d]!=g?k[d].attr("checked",!0):k[0]!=g&&k[0].attr("checked",!0);if(this._isDrawn)for(var b=0,c=k.length;b<c;b++)d=a(k[b]),
d.data("checkboxradio")&&d.checkboxradio("refresh")},_shadow:function(a){this._super(a,this._controlGroup)},collectDataSchema:function(a){if(!this.isIncludedInSchema())return g;var d=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,d={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT,structure:{value:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:d},label:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},
unique:this.isUnique()};this.mandatory()&&(d.mandatory=!0);return a[this.id()]=d},appendValueToDataObject:function(a,d,b){var c=this;return this._simpleDataObjectValue(a,b,function(a){a!=null?a={value:a.value,label:a.label}:c.mandatory()&&(d[c.id()]=!0);return a})},setValueFromDataObject:function(a,d){this._setDataObjectValueSimple(a,function(a){typeof a=="object"&&"value"in a||(a={value:a});return a},d)},_enable:function(a){if(this._controlGroup){var a=a===!0?"enable":"disable",d=this._controlGroup.find("input");
d.data("checkboxradio")&&d.checkboxradio(a)}},_tabindex:function(a){this._super(a,this.base().find("input"))},_tabStop:function(){this._super(value,this.base().find("input"))},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().find("input").first().focus()},getDataFromMap:function(a,d){for(var b=[],c=0,e=a.length;c<e;c++){var h=[],j;for(j in d){var l=d[j];l!=g&&(h[j]=AC.Widgets.Base.getDataItemWithMap(a[c],l))}b.push(h)}return b}});d.emptyProps=function(){return{bgColor:"#f7f7f7",
fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdan",selectedColor:"silver"}};d.defaultProps=function(){return{valName:"selectedItems",x:"0",y:"0",height:"45",width:"150",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,data:[["Label","Value",!0]],name:"RadioButtonGroup1",border:"",dragAndDrop:!1,resizing:!1,displayHourglassOver:"inherit",label:"Label",widgetStyle:"default",mobileTheme:"c",currPage:1,
selectedIndex:0,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};d.inlineEditPropName=function(){return"data"};d.props=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.props;d.actions=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.actions;d.valuePropName=g;d.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_CheckBoxMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,{_widgetClass:"WiziCore_UI_CheckBoxMobileWidget",_input:null,_labelObj:null,_div:null,_dataPropName:"checked",_valueDefaultPropName:"checked",init:function(){this._super.apply(this,arguments)},draw:function(){this._cnt=a('<div class="ac-m-ui-checkbox-radio-container">');this.base().append(this._cnt);this._super.apply(this,arguments)},
_redraw:function(){if(this._cnt){var b=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this._super();this._cnt.empty();this._div=a("<div data-role='fieldcontain' />");var c=this.htmlId(),e=a('<input type="checkbox" />');e.attr("id",c+"_ch");e.attr("name",c+"_ch");e.attr("checked",this.checked());c=a("<label>");c.attr("for",e.attr("id"));c.text(this.checkEmptyLabel(this.label()));this._input=e;this._labelObj=c;this._div.append(a("<legend>"));this._div.append(e);this._div.append(c);this._cnt.prepend(this._div);
this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&(this._input.bind("change",{self:this},this.onChange),this._input.bind("vclick",{self:this},this.onClick));this._input.checkboxradio(this._getJQMOptions());this._updateEnable();jQuery.fn.__useTr=b}},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.isUnique=this.normalProperty("isUnique");this.mandatory=this.normalProperty("mandatory");this.label=this.htmlLngPropertyBeforeSet("content",
this._beforeLabel,this._redraw);this.enable=this.htmlProperty("enable",this._enable);this.value=this.checked=this.htmlProperty("checked",this._checked);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.view=this.normalProperty("view");this.fields=this.normalProperty("fields");this.groupby=this.normalProperty("groupby");this.orderby=this.normalProperty("orderby");this.filter=
this.normalProperty("filter");this.resetfilter=this.normalProperty("resetfilter");this.listenview=this.normalProperty("listenview");this.applyview=this.normalProperty("applyview");this.onview=this.normalProperty("onview")},_beforeLabel:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var c=WiziCore_Helper.isLngToken(a),e=c?a:"ac-"+this.id();c||this.form().addTokenToStringTable(this.id(),this.name(),e,a);return e}else return a},_onInitLanguage:function(){this.label(this.label())},
_onSTUpdated:function(){this._redraw()},_onLanguageChanged:function(){this._redraw()},initDomState:function(){this._super();this.initDomStatePos();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._tabindex(this.tabindex())},onChange:function(b){var b=b.data.self,c=b.checked(),e=b._checked();b._project.checked=e;var h=new jQuery.Event(f.onChange);a(b).trigger(h,[e,c]);(e=h.isPropagationStopped())?b._project.checked=c:b.sendDrillDown();return!e},onClick:function(){var b=
new jQuery.Event(f.onClick);a(this).trigger(b);return!b.isPropagationStopped()},onDestroy:function(){this._input&&a(this._input).unbind()},_shadow:function(a){this._super(a,this._labelObj)},_checked:function(a){var c=this._input;a===g&&c.data("checkboxradio")&&c.checkboxradio("refresh");this._isDrawn&&c&&(c.attr("checked",a),c.data("checkboxradio")&&c.checkboxradio("refresh"));return c.is(":checked")},_enable:function(a){this._input&&(a=a===!0?"enable":"disable",this._input.data("checkboxradio")&&
this._input.checkboxradio(a))},_tabindex:function(a){this._super(a,this._input)},_tabStop:function(a){this._super(a,this._input)},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},getDataModel:function(){return[{name:"widget_label",value:"",uid:"labeluid"},{name:"widget_value",value:"",uid:"valueuid"}]},collectDataSchema:function(a){this._simpleConstDataSchema(AC.Widgets.WiziCore_Api_Form.Type.BOOLEAN,a)},isBindableToData:function(){return!0}}));
f.onChange="E#CheckBoxMobile#onChange";f.onClick="E#WCheckBoxMobile#onClick";f.actions=function(){return{onChange:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_CheckBoxMobileWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"}}};var k=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,AC.Property.general.checked]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,
AC.Property.database.isUnique,AC.Property.database.mandatoryHighlight,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.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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};f.emptyProps=function(){return{bgColor:"",fontColor:"black",font:"normal 12px verdana"}};f.inlineEditPropName=function(){return"label"};f.defaultProps=function(){return{x:"0",y:"0",width:"150",height:"36",zindex:"auto",content:"checkBox",enable:!0,checked:!1,name:"checkbox1",
anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,opacity:1,widgetStyle:"default",customCssClasses:"",displayHourglassOver:"inherit",margin:"",pWidth:"",dragAndDrop:!1,resizing:!1,alignInContainer:"left",mobileTheme:"c"}};f.isField=function(){return!0};f.valuePropName="checked"})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_ButtonMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend({_widgetClass:"WiziCore_UI_ButtonMobileWidget",_input:null,_dataPropName:"label",_theme:"b",_div:null,init:function(){this._super.apply(this,arguments);var a=this.getUserIconResource(this._project.icon);a&&(this._project.icon=a)},_updateLayout:function(){this._super.apply(this,arguments);this._updateButtonStyle(this.height())},_updateButtonViewOnClick:function(){if(WiziCore_Helper.isMobile()||
WiziCore_Helper.isNative()){var a=this.base().find("a"),b=this.mobileTheme();a.addClass("m-ui-btn-active-"+b);setTimeout(function(){a.removeClass("m-ui-btn-active-"+b)},400)}},onResize:function(){this._updateButtonStyle(this.base().height())},onWidgetMovedByCommand:function(){var a=this.height();this.parent()&&this.parent().widgetClass()=="WiziCore_UI_ContainerMobileWidget"&&a=="55"&&(this._project.height="46")},_updateButtonStyle:function(d,b){typeof d=="string"&&(d*=1);var c=this._cnt.find(">.m-ui-btn");
if(c.length!=0)if(d<47&&(!this._cnt.hasClass("m-ui-footer")||b))this._cnt.addClass("m-ui-footer"),c.css("width","100%"),this._cnt.css("padding","3px 5px 3px 3px"),a.browser.mozilla?this._cnt.css("-moz-box-sizing","border-box"):this._cnt.css("box-sizing","border-box");else if(d>=47&&(this._cnt.hasClass("m-ui-footer")||b))this._cnt.removeClass("m-ui-footer"),c.css("width",""),this._cnt.css("padding","")},draw:function(){this._cnt=a("<div>");this.base().append(this._cnt);this.value()==g&&this.value(this._project.label);
this._super.apply(this,arguments)},_redraw:function(){if(this._cnt){var d=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this._super();this._cnt.empty();var b=a("<a href='javascript:void(0);'/>");b.html(this.checkEmptyLabel(this.label()));var c=this.icon(),e;if(c&&c!="none"){var h=this.getUserIconResource(c);h&&(e=h,c="user-icon");b.data("icon",c);b.data("iconpos",this.iconPosition())}AC.Widgets.Base.prototype._tabindex.call(this,this.tabindex(),b);this._cnt.prepend(b);b.mobileButton(this._getJQMOptions());
e&&(c=this._cnt.find(".m-ui-btn"),c.addClass("m-ui-userlink"),c.find(".m-ui-icon").css({"background-image":"url("+e+")"}));if(this._bindingEvents[AC.Widgets.Base.onClick]==0||this._bindingEvents[AC.Widgets.Base.onClick]==g)this.eventsHandles()[AC.Widgets.Base.onClick]=AC.Widgets.Base.onClick,this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.bindEvent(AC.Widgets.Base.onClick);this._input=b;this._updateButtonStyle(this.height(),!0);this._updateEnable();this._link=this._cnt.find("a");this._updateLink(this.link());
jQuery.fn.__useTr=d}},_enable:function(a){this._input&&(a=a===!0?"enable":"disable",this._input.data("mobileButton")&&this._input.mobileButton(a))},_shadow:function(a,b){this._super(a,b||this._input)},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},_beforeLabel:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var b=WiziCore_Helper.isLngToken(a),c=b?a:"ac-"+this.id();b||this.form().addTokenToStringTable(this.id(),this.name(),
c,a);return c}else return a},_onInitLanguage:function(){this.label(this.label())},_onSTUpdated:function(){this._redraw()},_onLanguageChanged:function(){this._redraw()},initProps:function(){this._super();this.value=this.label=this.htmlLngPropertyBeforeSet("content",this._beforeLabel,this._redraw);this.enable=this.htmlProperty("enable",this._enable);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",
this._redraw);this.icon=this.themeProperty("icon",this._redraw);this.iconPosition=this.themeProperty("iconPosition",this._redraw);this.link=this.normalProperty("link",this._updateLink)},initDomState:function(){this._super();this.initDomStatePos();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity())}});f.actions=function(){var d=a.extend({},AC.Widgets.Base.actions(),{});f.actions=function(){return d};return d};f.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",
font:"normal 12px verdana",borderRadius:"0"}};f.inlineEditPropName=function(){return"label"};f.defaultProps=function(){return{x:"0",y:"0",width:"150",height:"55",zindex:"auto",content:"Button",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,opacity:1,name:"button1",dragAndDrop:!1,resizing:!1,widgetStyle:"default",customCssClasses:"",alignInContainer:"left",mobileTheme:"a"}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a){var d=AC.Widgets.WiziCore_UI_ActionButtonMobileWidget=AC.Widgets.WiziCore_UI_ButtonMobileWidget.extend(a.extend({},WiziCore_Methods_Widget_ActionClick,{_widgetClass:"WiziCore_UI_ActionButtonMobileWidget",_theme:"c",init:function(){this._super.apply(this,arguments)},draw:function(){this._super.apply(this,arguments)},initProps:function(){this._super();this.pageJump=this.normalProperty("pageJump")},onClick:function(d){if(this.enable()&&this._isParentEnable()){this._updateButtonViewOnClick();
var f=this,j=this.pageJump(),b=this.form();d.stopPropagation();setTimeout(function(){var c=new a.Event(AC.Widgets.Base.onClick);a(f).trigger(c,[d]);if(!c.isDefaultPrevented())f.onActionClick(d,j,b)},30)}}}));d.inlineEditPropName=function(){return"label"};d.actions=function(){var g={};a.extend(g,AC.Widgets.Base.actions());d.actions=function(){return g};return g};var j=[{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.tabindex,AC.Property.layout.tabStop,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.margin,AC.Property.style.mobileTheme,AC.Property.style.mobileButtonIcon,AC.Property.style.mobileButtonIconPos,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return j};d.defaultProps=function(){return{x:"0",
y:"0",width:"150",height:"55",zindex:"auto",content:"Button",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},name:"actionBtn1",visible:!0,widgetStyle:"default",customCssClasses:"",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,opacity:1,isField:!1,pWidth:"",margin:"",alignInContainer:"left",mobileTheme:"c",icon:"none",iconPosition:"left"}}})(jQuery,window,document);
(function(a,d,j,g){function f(a){return!this._input?a:this._input.val()}var k=AC.Widgets.WiziCore_UI_TextAreaMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,AC.WidgetExt.Placeholder,{_widgetClass:"WiziCore_UI_TextAreaMobileWidget",_input:null,_dataPropName:"text",_valueDefaultPropName:"text",_div:null,_charsWidgets:null,init:function(){this._charsWidgets={};this._super.apply(this,arguments)},draw:function(){this._cnt=a("<div>");
this.base().append(this._cnt);this.initCountCharsWidgets();this._super.apply(this,arguments)},_redraw:function(){this._cnt.empty();this.initEditorLayer();var b=this.htmlId(),e=a("<div>"),h=a('<textarea style="width: 100%; height:100%; box-sizing: border-box; -moz-box-sizing: border-box;"/>');h.attr("id",b+"_text");AC.Widgets.Base.prototype._tabindex.call(this,this.tabindex(),h);h.attr("name",b+"_text");h.val(this.text());e.append(h);this._cnt.prepend(e);this._input=h;a(h).bind("change.ta",{self:this},
this.onChangeText);this.bindEventCustom();this._input.textinput(this._getJQMOptions());this._updateSize();this._updateEnable();this._updateReadonly();this._updateWidthOfInput();this._font(this.font());this._maxChars(this.maxChars());this._placeholderText(this._project.placeholderText)},_updateSize:function(){var a=this._input;a&&a.css("height",this.height())},_updateWidthOfInput:function(){var a=this._input;a&&(this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?a.width(this.width()):
a.width("100%"))},onContainerChangeLayout:function(){this._updateWidthOfInput()},_updateLayout:function(){this._super.apply(this,arguments);this._updateSize()},_shadow:function(a){this._super(a,this._input)},_font:function(a){this._super(a,this._input)},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()},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.value=
this.text=AC.Property.htmlBeforeSetAfterGet("text",g,this._text,f);this.enable=this.htmlProperty("enable",this._enable);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.readonly=this.htmlProperty("readonly",this._readonly);this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.textAlign=this.htmlProperty("textAlign",this._textAlign);this.maxChars=this.htmlProperty("maxChars",this._maxChars);this.view=this.normalProperty("view");
this.fields=this.normalProperty("fields");this.groupby=this.normalProperty("groupby");this.orderby=this.normalProperty("orderby");this.filter=this.normalProperty("filter");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._updateReadonly();this._tabindex(this.tabindex());this._textAlign(this.textAlign());this._maxChars(this.maxChars())},bindEventCustom:function(){var a=this._input;a.bind("keydown",{self:this},this.onKeyDown);a.bind("keyup",{self:this},this.onKeyUp);a.bind("keypress",{self:this},this.onKeyPress);a.bind("focus",{self:this},this.onFocus);a.bind("blur",{self:this},this.onBlur);this._bindPlaceholderEvents(a)},unbindEventCustom:function(){var a=this._input;a.unbind("keydown",this.onKeyDown);a.unbind("keyup",
this.onKeyUp);a.unbind("keypress",this.onKeyPress);a.unbind("focus",this.onFocus);a.unbind("blur",this.onBlur);this._unbindPlaceholderEvents(a)},onFocus:function(b){var b=b.data.self,e=new a.Event(k.onFocus);a(b).trigger(e)},onBlur:function(b){var b=b.data.self,e=new a.Event(k.onBlur);a(b).trigger(e)},onKeyPress:function(b){var e=b.data.self,h=new a.Event(k.onKeyPress);a(e).trigger(h,[b])},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,d=this.maxChars();b!=null&&d!=null&&b.setData(d-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(b){var e=
b.data.self,h=new a.Event(k.onKeyDown),d=e._input.val();a(e).trigger(h,[b,d])},onKeyUp:function(b){var e=b.data.self,h=new a.Event(k.onKeyUp),d=e._input.val();a(e).trigger(h,[b,d]);e.setCountOfChars()},onChangeText:function(b){var b=b.data.self,e=b._project.text,h=b._input.val(),d=new a.Event(k.onChange);b._project.text=h;a(b).trigger(d,[h,e]);d.isPropagationStopped()?(b._project.text=e,b._text(e)):(b._project.text=h,b.sendDrillDown());b._placeholderText(b.placeholderText())},_tabindex:function(a){this._input&&
this._super(a,this._input)},_tabStop:function(a){this._input&&this._super(a,this._input)},_text:function(a){a===null&&(a="");a!==g&&(this._input.val(a),this._checkTextWithPlaceholder(a))},_enable:function(a){this._input&&this._input.textinput(a===!0?"enable":"disable")},_readonly:function(a){this._super(a,this._input)},_maxChars:function(a){this._input&&this._input.maxChars(a)},charsField:function(a){if(a!=g)a=this.getUidWidgetFromObjectChoiser(a),this._project.charsField=a,this.sendExecutor({charsField:a});
return this._project.charsField},leftCharsField:function(a){if(a!=g)a=this.getUidWidgetFromObjectChoiser(a),this._project.leftCharsField=a,this.sendExecutor({leftCharsField:a});return this._project.leftCharsField},wordField:function(a){if(a!=g)a=this.getUidWidgetFromObjectChoiser(a),this._project.wordField=a,this.sendExecutor({wordField:a});return this._project.wordField},appendValueToDataObject:function(a,b,h){var d=this;return this._simpleDataObjectValue(a,h,function(a){if(d.mandatory()){var c=
a=="";c&&(b[d.id()]=!0);a=c?null:a}return a})},getDataModel:function(){return[{name:"value",value:"",uid:"valueuid"}]},isBindableToData:function(){return!0}}));k.inlineEditPropName=function(){return"text"};var b=[{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.font,AC.Property.style.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];k.props=function(){return b};k.onClick="E#TextAreaMobile#onClick";k.onDbClick="E#TextAreaMobile#onDbClick";k.onMouseDown="E#TextAreaMobile#onMouseDown";k.onMouseUp=
"E#TextAreaMobile#onMouseUp";k.onMouseEnter="E#TextAreaMobile#onMouseEnter";k.onMouseLeave="E#TextAreaMobile#onMouseLeave";k.onKeyUp="E#TextAreaMobile#onKeyUp";k.onKeyDown="E#TextAreaMobile#onKeyDown";k.onKeyPress="E#TextAreaMobile#onKeyPress";k.onChange="E#TextAreaMobile#onChange";k.onFocus="E#TextAreaMobile#onFocus";k.onBlur="E#TextAreaMobile#onBlur";k.emptyProps=function(){return{font:"normal 12px verdana"}};k.actions=function(){var b={keyup:{alias:"widget_event_onkeyup",funcview:"onKeyUp",action:"AC.Widgets.WiziCore_UI_TextAreaMobileWidget.onKeyUp",
params:"keyev, value",group:"widget_event_key"},keydown:{alias:"widget_event_onkeydown",funcview:"onKeyDown",action:"AC.Widgets.WiziCore_UI_TextAreaMobileWidget.onKeyDown",params:"keyev, value",group:"widget_event_key"},change:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_TextAreaMobileWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"},onFocus:{alias:"widget_event_onfocus",funcview:"onFocus",action:"AC.Widgets.WiziCore_UI_TextAreaMobileWidget.onFocus",
params:"",group:"widget_event_general"},onBlur:{alias:"widget_event_onblur",funcview:"onBlur",action:"AC.Widgets.WiziCore_UI_TextAreaMobileWidget.onBlur",params:"",group:"widget_event_general"}},b=a.extend(AC.Widgets.Base.actions(),b);k.actions=function(){return b};return b};k.defaultProps=function(){return{valName:"currText",text:"",x:"0",y:"0",width:"225",height:"80",zindex:"auto",label:"Label",labelDisabled:!1,readonly:!1,enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,widgetStyle:"default",
name:"textArea1",customCssClasses:"",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,pWidth:"",margin:"",alignInContainer:"left",mobileTheme:"c",placeholderText:""}};k.isField=function(){return!0}})(jQuery,window,document);
(function(a){var d=AC.Widgets.WiziCore_UI_SubmitButtonMobileWidget=AC.Widgets.WiziCore_UI_ButtonMobileWidget.extend({_widgetClass:"WiziCore_UI_SubmitButtonMobileWidget",init:function(){this._super.apply(this,arguments)},initProps:function(){this.action=this.normalProperty("action");this._super.apply(this,arguments)},onClick:function(d){this._updateButtonViewOnClick();var f=this;setTimeout(function(){var j=new jQuery.Event(AC.Widgets.Base.onClick);debuger.systemLog("triggerEvent",j,"self.id()",f.id());
a(f).trigger(j,[d]);if(!j.isPropagationStopped()){j=f.action();j=typeof j=="object"?j.value:j;switch(j){case "submit_create":case "submit_save":f.form().submitCurrentInstance(j=="submit_create")}d.stopPropagation()}},30)}});d.inlineEditPropName=function(){return"label"};d.actions=function(){var g={},g=a.extend(AC.Widgets.Base.actions(),g);d.actions=function(){return g};return g};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.tabindex,AC.Property.layout.tabStop,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.margin,AC.Property.style.mobileTheme,AC.Property.style.mobileButtonIcon,AC.Property.style.mobileButtonIconPos,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];d.props=function(){return j};d.defaultProps=function(){return{x:"0",
y:"0",width:"150",height:"55",zindex:"auto",content:"Button",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},name:"submitBtn",widgetStyle:"default",action:"submit_create",visible:!0,opacity:1,displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,customCssClasses:"",pWidth:"",margin:"",alignInContainer:"left",mobileTheme:"b",icon:"none",iconPosition:"left"}}})(jQuery,window,document);
(function(a,d,j,g){function f(){return{library:!0,image:!0,video:!0,audio:!0}}function k(a){var b,e;for(e in a)if(a[e])if(b==null)b=e;else{b=g;break}return b}var b=AC.Widgets.MobileUploadButton=function(){this.init.apply(this,arguments)};AC.extend(b,AC.Widgets.WiziCore_UI_BaseMobileWidget);j=b.prototype;AC.copyExtension(j,AC.WidgetExt.Upload);j._widgetClass="MobileUploadButton";j.init=function(){b._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(e){a=""}this._desktopFormAction=a;this._isNative=WiziCore_Helper.isNative();this.fileSources()||this.fileSources(f())};j.draw=function(){this._container=a("<div>");this._isNative?this.base().append(this._container):this._drawForDesktop(this._container);b._sc.draw.apply(this,arguments)};j.onPageDrawn=function(){b._sc.onPageDrawn.apply(this,arguments)};j._drawForDesktop=function(b){var e=this,c=e.htmlId(),
h="target_"+c,d=e._requestId;b.css({"z-index":0});var f='<form method="post" enctype="multipart/form-data" action="" target="_self">';a.browser.msie&&(f+="</form>");f=a(f);f.attr({target:h,action:e._desktopFormAction});e._htmlForm=f;c=e._drawFileInput(c);e._fileInput=c;h=e._createIframe(h,d);e._iframe=h;var g=e.base(),j=a("<div style='position:absolute; top:0px; left: 0px; width:100%; height: 100%; overflow: hidden'></div>");j.append(f);f.append(c);g.append(b,j,h);g.resize(function(){e._fileInput.css({"font-size":Math.max(g.width(),
g.height())})});e._bindGlobalUploadEvents(d,e._desktopFormAction)};j.initDomState=function(){b._sc.initDomState.apply(this);this.initDomStatePos();this._fileSizeLimit(this.fileSizeLimit());this._tabindex(this.tabindex());this._redraw();this._visible(this.visible());this._opacity(this.opacity());this._updateEnable()};j._onInitLanguage=function(){this.selectFileText(this.selectFileText());this.startUploadText(this.startUploadText());this.stopUploadText(this.stopUploadText())};j._onSTUpdated=function(){this._redraw()};
j._onLanguageChanged=function(){this._redraw()};j._beforeText=function(a,b){if(this.form().language()!=null&&this.form()._skipTokenCreation){var e=WiziCore_Helper.isLngToken(a),c=e?a:"ac-"+this.id()+"_"+b;e||this.form().addTokenToStringTable(this.id(),this.name(),c,a);return c}else return a};j._beforeSelectFileText=function(a){return this._beforeText(a,"select")};j._beforestartUploadText=function(a){return this._beforeText(a,"start")};j._beforestopUploadText=function(a){return this._beforeText(a,
"stop")};j._changeState=function(a){this._state=a;this._redraw()};j._redraw=function(){if(this._container){var e=a.fn.__useTr;a.fn.__useTr=!1;var c=this;c._input=null;c._nativeSelect=null;c._singleSource=null;b._sc._redraw.apply(c);c._container.empty();var h=function(){},d=!0;if(c._isNative)if(c._state==AC.WidgetExt.UPLOAD_STATE.SELECT){var f=c.fileSources(),g=k(f);if(g!=null){var j={library:c._selectFromLibrary,image:c._captureImage,video:c._captureVideo,audio:c._captureAudio}[g];c._singleSource=
g;h=function(){j.apply(c,[])}}else d=!1,c._drawDropdownForNative(f)}else c._state==AC.WidgetExt.UPLOAD_STATE.START&&(h=function(){c._uploadCapturedFile()});else{switch(c._state){case AC.WidgetExt.UPLOAD_STATE.START:h=function(a){c.sendFile();a.stopPropagation()};break;case AC.WidgetExt.UPLOAD_STATE.STOP:h=function(a){c.stopUploading();a.stopPropagation()}}c._state!=AC.WidgetExt.UPLOAD_STATE.SELECT?c._fileInput.hide():c._fileInput.show()}c.onClick=h;d&&(c._drawMobileButton(h),c._isNative&&c._state==
AC.WidgetExt.UPLOAD_STATE.STOP&&c._input.mobileButton("disable"));c._updateButtonStyle(c.height());c._updateEnable();a.fn.__useTr=e}};j._drawDropdownForNative=function(b){var e=this,c=a('<select data-native-menu="true">'),h=a('<option value="choose">');h.text(e.selectFileText());c.append(h);c.css({width:"100%",height:"100%"});for(var d=[{value:"library",lng:"widget_upload_existing"},{value:"image",lng:"widget_upload_image"},{value:"video",lng:"widget_upload_video"},{value:"audio",lng:"widget_upload_audio"}],
h=0,f=d.length;h<f;++h){var g=d[h],j=g.value;b[j]&&(g=a('<option value="'+j+'" data-lng="'+g.lng+'">'+AC.Core.lang().trText(g.lng)+"</option>"),c.append(g))}e._tabindex(e.tabindex(),c);e._container.append(c);c.selectmenu(e._getJQMOptions());h=c.parent();b=h.find('span[class*="m-ui-icon"]');h=h.find('span[class*="m-ui-btn-inner"]');if(this.icon()=="none")b.hide(),h.css({"padding-right":"20px"});else{var d=this.icon(),f=this.getUserIconResource(d),l;f&&(l=f,d="user-icon");b.show();h.css({"padding-right":""});
f=b.attr("class").split(" ");g=[];for(h=0;h<f.length;h++)f[h]!="m-ui-icon"&&f[h]!="m-ui-icon-shadow"||g.push(f[h]);g.push("m-ui-icon-"+d);b.attr("class",g.join(" "));l&&b.css({"background-image":"url("+l+")"})}c.bind("change",function(){switch(c.val()){case "library":e._selectFromLibrary();break;case "image":e._captureImage();break;case "video":e._captureVideo();break;case "audio":e._captureAudio()}c.val("choose");c.selectmenu("refresh")});e._nativeSelect=c};j._drawMobileButton=function(){var b=a('<button value=""/>');
b.val(this._getCurrentText());b.css({width:"100%",height:"100%"});var e=this.icon(),c;if(typeof e=="string"&&e!="none"){var h=this.getUserIconResource(e);h&&(c=h,e="user-icon");b.data({icon:e,iconpos:this.iconPosition()})}this._tabindex(this.tabindex(),b);this._container.prepend(b);this._input=b;b.mobileButton(this._getJQMOptions());c&&(b=this.base().find(".m-ui-btn"),b.addClass("m-ui-userlink"),b.find(".m-ui-icon").css({"background-image":"url("+c+")"}))};j._shadow=function(a){this._input?b._sc._shadow.call(this,
a,this._input.parent()):this._nativeSelect&&b._sc._shadow.call(this,a,this._nativeSelect.parent())};j._enable=function(a){this._input&&this._input.mobileButton(a===!0?"enable":"disable")};j.onClick=function(){};j._updateLayout=function(){b._sc._updateLayout.apply(this);this._updateButtonStyle(this.height())};j.onResize=function(){this._updateButtonStyle(this.base().height())};j._updateButtonStyle=function(a){var b=this._container.find(".m-ui-btn");b.length!=0&&(a<47?(this._container.addClass("m-ui-footer"),
this._container.css("padding",3),b.css({width:"100%"}),this._container.css("box-sizing","border-box")):a>=47&&this._container.hasClass("m-ui-footer")&&(this._container.removeClass("m-ui-footer"),b.css({width:""}),this._container.css("padding","")))};j.fileSources=function(a){if(a!==g)this._project.fileSources=a,this.sendExecutor({fileSources:a}),this._isDrawn&&this._redraw();a=this._project.fileSources;a==g&&(a=f());return a};j._afterSelectedOnNative=function(){this.autoStart()?this._uploadCapturedFile():
this._changeState(AC.WidgetExt.UPLOAD_STATE.START)};j._selectFromLibrary=function(){var e=this;navigator.camera.getPicture(function(c){a(e).trigger(new a.Event(b.onSelected),[!1,{path:c}]);e._nativeFileInfo={path:c};e._afterSelectedOnNative()},function(c){c!="Selection cancelled."&&c!="no image selected"?(a(e).trigger(new a.Event(b.onSelected),[!0]),WiziCore_Helper.showError(AC.Core.lang().trText("widget_upload_mobile_error_selecting_library"))):a(e).trigger(new a.Event(b.onSelected),[!1])},{destinationType:Camera.DestinationType.FILE_URI,
sourceType:Camera.PictureSourceType.PHOTOLIBRARY,mediaType:Camera.MediaType.ALLMEDIA})};j._captureImage=function(){var a=this;navigator.device.capture.captureImage(function(){a._onCaptureSuccess.apply(a,arguments)},function(){a._onCaptureError.apply(a,arguments)})};j._captureVideo=function(){var a=this;navigator.device.capture.captureVideo(function(){a._onCaptureSuccess.apply(a,arguments)},function(){a._onCaptureError.apply(a,arguments)})};j._captureAudio=function(){var a=this;navigator.device.capture.captureAudio(function(){a._onCaptureSuccess.apply(a,
arguments)},function(){a._onCaptureError.apply(a,arguments)})};j._onCaptureSuccess=function(e){e.length==0?a(this).trigger(new a.Event(b.onSelected),[!1]):(e=e[0],this._nativeFileInfo={path:e.fullPath,name:e.name,type:e.type},a(this).trigger(new a.Event(b.onSelected),[!1,this._nativeFileInfo]),this._afterSelectedOnNative())};j._onCaptureError=function(e){e=="Canceled."||typeof e=="object"&&e!=null&&e.code==3?a(this).trigger(new a.Event(b.onSelected),[!1]):(a(this).trigger(new a.Event(b.onSelected),
[!0]),WiziCore_Helper.showError(AC.Core.lang().trText("widget_upload_mobile_error_capturing")))};j.onUploadFail=function(){a(this).trigger(new a.Event(b.onUploaded),[!0]);WiziCore_Helper.showError(AC.Core.lang().trText("widget_upload_error_uploading"));this._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)};j.offlineUpload=function(e){var c=this,h=function(){c.onUploadFail()};e.search("file://localhost")<0&&(e="file://localhost"+e);d.requestFileSystem(LocalFileSystem.PERSISTENT,0,function(f){f.root.getDirectory(b.PERSISTENT_FS_DIRECTORY_NAME,
{create:!0},function(f){d.resolveLocalFileSystemURI(e,function(d){var g=WiziCore_Helper.generateId(),j=e.split("."),l=j.length;l>1&&(g+="."+j[l-1]);d.copyTo(f,g,function(e){c._fileName=e.fullPath;a(c).trigger(new a.Event(b.onUploaded),[!1,c._fileName]);c._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)},h)},h)},h)},h)};j._uploadCapturedFile=function(){var e=this._nativeFileInfo;if(e!=null){var c=e.name,h=e.path,e=e.type;c==null&&(c=h.substr(h.lastIndexOf("/")+1));e==null&&(e="image/jpeg");var d=this.context().config().uploadServerDirectPath(),
f={formId:this.form().id()},g=this;g._changeState(AC.WidgetExt.UPLOAD_STATE.STOP);a(g).trigger(new a.Event(b.onStarted),[]);g.context().offlineMode()?g.offlineUpload(h,e,c):this.context().accounts().uploadForNative(h,d,c,f,e,function(e){e=JSON.parse(decodeURIComponent(e.response));e.error?(a(g).trigger(new a.Event(b.onUploaded),[!0]),WiziCore_Helper.showError(AC.Core.lang().trText("widget_upload_error_uploading"))):(g._fileName=e.url,a(g).trigger(new a.Event(b.onUploaded),[!1,e.url]));g._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)},
function(){g.onUploadFail()})}};j.collectDataSchema=function(a){this._simpleConstDataSchema(this.isAttachment()?AC.Widgets.WiziCore_Api_Form.Type.ATTACHMENT:AC.Widgets.WiziCore_Api_Form.Type.STRING,a)};j.value=function(a){if(a!==g)this._fileName=a;return this._fileName};j.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(AC.WidgetExt.UPLOAD_STATE.SELECT);else if(this._state==a.STOP&&!this._isNative)this.stopUploading(),
this._fileName=null,this._changeState(AC.WidgetExt.UPLOAD_STATE.SELECT)};j.startUpload=function(){this._state==AC.WidgetExt.UPLOAD_STATE.START&&(this._isNative?this._uploadCapturedFile():this.sendFile())};j.stopUpload=function(){this._state==AC.WidgetExt.UPLOAD_STATE.STOP&&(this._isNative||this.stopUploading())};j.select=function(a){if(this._state==AC.WidgetExt.UPLOAD_STATE.SELECT&&this._isNative){if(!a)a=this._singleSource;a&&(a={library:this._selectFromLibrary,image:this._captureImage,video:this._captureVideo,
audio:this._captureAudio}[a],typeof a=="function"&&a.apply(this,[]))}};var c=AC.Property,e=c.group_names,h=c.general,r=c.database,l=c.layout,t=c.behavior,m=c.style;j.fileSizeLimit=c.html("fileSizeLimit",j._fileSizeLimit);j.selectFileText=c.htmlLngPropBeforeSet("selectFileText",j._beforeSelectFileText,j._redraw);j.startUploadText=c.htmlLngPropBeforeSet("startUploadText",j._beforestartUploadText,j._redraw);j.stopUploadText=c.htmlLngPropBeforeSet("stopUploadText",j._beforestopUploadText,j._redraw);j.fileTypes=
c.normal("fileTypes");j.autoStart=c.normal("autoStart");j.isIncludedInSchema=c.normal("isIncludedInSchema",j._updateStorageFlag);j.isUnique=c.normal("isUnique");j.mandatory=c.normal("mandatory");j.isAttachment=c.normal("isAttachment");j.tabindex=c.html("tabindex",j._redraw);j.icon=c.html("icon",j._redraw);j.iconPosition=c.html("iconPosition",j._redraw);j.opacity=c.theme("opacity",j._opacity);var o=[{name:e.general,props:[h.widgetClass,h.name,h.fileSizeLimit,h.selectFileText,h.startUploadText,h.stopUploadText,
h.fileTypes,h.fileSources,h.autoStart]},{name:e.database,props:[r.isIncludedInSchema,r.isUnique,r.mandatory,r.mandatoryHighlight,r.isAttachment]},{name:e.layout,props:[l.x,l.y,l.pWidthHidden,l.widthHidden,l.heightHidden,l.sizes,l.minWidth,l.maxWidth,l.repeat,l.zindex,l.tabindex,l.tabStop,l.anchors,l.alignInContainer]},{name:e.behavior,props:[t.dragAndDrop,t.resizing,t.visible,t.enable]},{name:e.style,props:[t.opacity,m.customCssClasses,m.margin,m.mobileTheme,m.mobileButtonIcon,m.mobileButtonIconPos,
m.widgetStyle]}];b.props=function(){return o};var p={name:"fileUpload1",selectFileText:"Select File",startUploadText:"Start Upload",stopUploadText:"Stop Upload",x:"0",y:"0",width:"200",height:"55",zindex:"auto",anchors:{left:!0,top:!0,bottom:!1,right:!1},alignInContainer:"left",fileSources:f(),dragAndDrop:!1,resizing:!1,visible:!0,enable:!0,opacity:1,margin:"",mobileTheme:"c",icon:"none",iconPosition:"left",customCssClass:"",widgetStyle:"default"};b.defaultProps=function(){return p};j.newOnSelectedEvent=
function(){return new a.Event(b.onSelected)};j.newOnStartedEvent=function(){return new a.Event(b.onStarted)};j.newOnStoppedEvent=function(){return new a.Event(b.onStopped)};j.newOnUploadedEvent=function(){return new a.Event(b.onUploaded)};b.onSelected="E#MobileUploadButton#onSelected";b.onStarted="E#MobileUploadButton#onStarted";b.onStopped="E#MobileUploadButton#onStopped";b.onUploaded="E#MobileUploadButton#onUploaded";b.PERSISTENT_FS_DIRECTORY_NAME="acDev_AttachmentCache";var n={onSelected:{alias:"widget_event_onselected",
funcview:"onSelected",action:"AC.Widgets.MobileUploadButton.onSelected",params:"error, fileInfo",group:"widget_event_general"},onStarted:{alias:"widget_event_onstarted",funcview:"onStarted",action:"AC.Widgets.MobileUploadButton.onStarted",params:"",group:"widget_event_general"},onStopped:{alias:"widget_event_onstopped",funcview:"onStopped",action:"AC.Widgets.MobileUploadButton.onStopped",params:"",group:"widget_event_general"},onUploaded:{alias:"widget_event_onuploaded",funcview:"onUploaded",action:"AC.Widgets.MobileUploadButton.onUploaded",
params:"error, url",group:"widget_event_general"}},n=a.extend({},AC.Widgets.Base.actions(),n);b.actions=function(){return n};b.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){var f=WiziCore_UI_TextMobileWidget=AC.Widgets.WiziCore_UI_TextMobileWidget=AC.Widgets.WiziCore_UI_TextMobileWidget=AC.Widgets.TextMobile=function(){this.init.apply(this,arguments)};AC.extend(f,AC.Widgets.WiziCore_UI_BaseMobileWidget);d=f.prototype;AC.copyExtension(d,WiziCore_WidgetAbstract_DataIntegrationSimple);AC.copyExtension(d,AC.WidgetExt.Placeholder);d._widgetClass="TextMobile";d._input=null;d._dataPropName="text";d._valueDefaultPropName="text";d.init=function(){f._sc.init.apply(this,
arguments)};d.draw=function(){var b=a("<div>");this.base().append(b);this._cnt=b;f._sc.draw.apply(this,arguments)};d._redraw=function(){this._input&&this.unbindEventCustom.call(this);this._cnt.empty();var b=a("<div data-role='fieldcontain'/>");this._div=b;var c=this.htmlId(),e=a("<input type='"+this._getTextType(this.mobileTextType())+"'/>");e.attr("id",c+"_text");e.attr("name",c+"_text");f._sc._tabindex.call(this,this.tabindex(),e);WiziCore_Helper.isAndroid()||e.css("width","100%");c=this.text();
e.val(c);c=a("<div>");e.css("margin","0 auto");c.append(e);b.append(c);this._cnt.prepend(b);e.bind("change.custom",{self:this},this.onChangeText);e.textinput(this._getJQMOptions());(this._input=e)&&this.bindEventCustom.call(this);this._updateEnable();this._updateReadonly();this._updateWidthOfInput();this._placeholderText(this._project.placeholderText);this._maxChars(this.maxChars());this._textAlign(this.textAlign())};d._updateWidthOfInput=function(){var a=this._input;a&&(this.getContainerLayoutType()==
WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?a.width(this.width()):a.width("100%"))};d.onContainerChangeLayout=function(){this._updateWidthOfInput()};d.onPageDrawn=function(){f._sc.onPageDrawn.apply(this,arguments);this._updateSize()};d._updateSize=function(){};d.onDestroy=function(){this._input&&a(this._input).unbind()};d.initDomState=function(){f._sc.initDomState.call(this);this.initDomStatePos();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._tabindex(this.tabindex());
this._updateReadonly()};d._getTextType=function(a){return a};d._mobileTextType=function(a){this._input&&this._input.prop("type",this._getTextType(a));this._maxChars(this.maxChars())};d._shadow=function(a,c){f._sc._shadow.call(this,a,c||this._input)};d.bindEventCustom=function(){var a=this._input;a.bind("keydown",{self:this},this.onKeyDown);a.bind("keyup",{self:this},this.onKeyUp);a.bind("keypress",{self:this},this.onKeyPress);a.bind("focus",{self:this},this.onFocus);a.bind("blur",{self:this},this.onBlur);
this._bindPlaceholderEvents(a)};d.unbindEventCustom=function(){var a=this._input;a.unbind("keydown",this.onKeyDown);a.unbind("keyup",this.onKeyUp);a.unbind("keypress",this.onKeyPress);a.unbind("focus",this.onFocus);a.unbind("blur",this.onBlur);this._unbindPlaceholderEvents(a)};d.onFocus=function(b){var b=b.data.self,c=new a.Event(f.onFocus);a(b).trigger(c)};d.onBlur=function(b){var b=b.data.self,c=new a.Event(f.onBlur);a(b).trigger(c)};d.onKeyPress=function(b){var c=b.data.self,e=new a.Event(f.onKeyPress);
a(c).trigger(e,[b])};d.onKeyDown=function(b){var c=b.data.self,e=new a.Event(f.onKeyDown),h=c._input.val();a(c).trigger(e,[b,h])};d.onKeyUp=function(b){var c=b.data.self,e=new a.Event(f.onKeyUp),h=c._input.val();a(c).trigger(e,[b,h])};d.onChangeText=function(b){var b=b.data.self,c=new a.Event(f.onChange),e=b._project.text,h=b._text();b._project.text=h;a(b).trigger(c,[h,e]);c.isPropagationStopped()?(b._project.text=e,b._text(e)):(b._project.text=h,b.sendDrillDown());b._placeholderText(b.placeholderText())};
d._text=function(a){a!==g&&this._input&&(this._input.val(a),this._checkTextWithPlaceholder(a));var c;this._input&&(c=this._input.val());return c=this._updateTextWithPlaceholder(c)};d._readonly=function(a){f._sc._readonly.call(this,a,this._input)};d._tabindex=function(a){this._input&&f._sc._tabindex.call(this,a,this._input)};d._tabStop=function(a){this._input&&f._sc._tabStop.call(this,a,this._input)};d.setFocus=function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this._input.focus()};
d._enable=function(a){this._input&&(a=a===!0?"enable":"disable",this._input.data("textinput")&&this._input.textinput(a))};d._textAlign=function(a){f._sc._textAlign.call(this,a,this._input)};d._maxChars=function(b){if(this._input){var c=WiziCore_Helper.isAndroid4(),e=this._input,h=[],d=[];e.removeAttr("pattern");e.unbind(".maxlen");this.mobileTextType()=="number"&&(e.attr("pattern","[0-9.]*"),h="1,2,3,4,5,6,7,8,9,0,.".split(","),d=["."],c||(d.push(","),h.push(",")));var f=function(b){var e=0,c=0,h=
"";b.setSelectionRange?(c=b.selectionStart,e=b.selectionEnd):j.selection&&j.selection.createRange&&(e=j.selection.createRange(),c=0-e.duplicate().moveStart("character",-1E5),e=c+e.text.length);h=a(b).val().substring(c,e);return{length:e-c,text:h}};e.bind("blur.maxlen keyup.maxlen",function(){var e=a(this).val();b&&e&&e.length>b&&a(this).val(e.substring(0,b))}).bind("keypress.maxlen",function(e){var c=a(this).val(),j=e.charCode!==g?e.charCode:e.which,k=[0,8];j&&a.inArray(j,k)==-1&&(c+=String.fromCharCode(j));
var j=h,k=c,n=!0;if(j.length>0)for(var q=0,v=k.length;q<v;q++)a.inArray(k.charAt(q),j)==-1&&(n=!1);var j=n,k=c,n=!0,s=f(this).text,u=0;if(d.length>0){for(q=0,v=k.length;q<v;q++)a.inArray(k.charAt(q),d)>=0&&u++;for(q=0,v=d.length;q<v;q++)s.indexOf(d[q])>=0&&u--;u>1&&(n=!1)}!j||!n?e.preventDefault():f(this).length==0&&b&&c&&c.length>b&&e.preventDefault()})}};d.appendValueToDataObject=function(a,c,e){var h=this;return this._simpleDataObjectValue(a,e,function(a){if(h.mandatory()){var b=a=="";b&&(c[h.id()]=
!0);a=b?null:a}return a})};d.getDataModel=function(){return[{name:"value",value:"",uid:"valueuid"}]};d.isBindableToData=function(){return!0};d.isIncludedInSchema=AC.Property.normal("isIncludedInSchema",d._updateStorageFlag);d.dataType=AC.Property.normal("dataType");d.isUnique=AC.Property.normal("isUnique");d.mandatory=AC.Property.normal("mandatory");d.mobileTextType=AC.Property.html("mobileTextType",d._mobileTextType);d.text=AC.Property.htmlBeforeSetAfterGet("text",g,d._text,function(a){return!this._input?
a:this._input.val()});d.value=d.text;d.enable=AC.Property.html("enable",d._enable);d.visible=AC.Property.html("visible",d._visible);d.opacity=AC.Property.theme("opacity",d._opacity);d.tabindex=AC.Property.html("tabindex",d._tabindex);d.readonly=AC.Property.html("readonly",d._readonly);d.textAlign=AC.Property.html("textAlign",d._textAlign);d.maxChars=AC.Property.html("maxChars",d._maxChars);d.view=AC.Property.normal("view");d.fields=AC.Property.normal("fields");d.groupby=AC.Property.normal("groupby");
d.orderby=AC.Property.normal("orderby");d.filter=AC.Property.normal("filter");d.resetfilter=AC.Property.normal("resetfilter");d.listenview=AC.Property.normal("listenview");d.applyview=AC.Property.normal("applyview");d.onview=AC.Property.normal("onview");f.onKeyUp="E#TextMobile#onKeyUp";f.onKeyDown="E#TextMobile#onKeyDown";f.onKeyPress="E#TextMobile#onKeyPress";f.onChange="E#TextMobile#onChange";f.onFocus="E#TextMobile#onFocus";f.onBlur="E#TextMobile#onBlur";f.actions=function(){var b={keyup:{alias:"widget_event_onkeyup",
funcview:"onKeyUp",action:"AC.Widgets.WiziCore_UI_TextMobileWidget.onKeyUp",params:"keyev, value",group:"widget_event_key"},keydown:{alias:"widget_event_onkeydown",funcview:"onKeyDown",action:"AC.Widgets.WiziCore_UI_TextMobileWidget.onKeyDown",params:"keyev, value",group:"widget_event_key"},change:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_TextMobileWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"},onFocus:{alias:"widget_event_onfocus",
funcview:"onFocus",action:"AC.Widgets.WiziCore_UI_TextMobileWidget.onFocus",params:"",group:"widget_event_general"},onBlur:{alias:"widget_event_onblur",funcview:"onBlur",action:"AC.Widgets.WiziCore_UI_TextMobileWidget.onBlur",params:"",group:"widget_event_general"}};return b=a.extend(AC.Widgets.Base.actions(),b)};f.inlineEditPropName=function(){return"text"};var k=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.mobileTextType,
AC.Property.general.text,AC.Property.general.maxChars,AC.Property.general.placeholderText]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.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]},{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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};
f.emptyProps=function(){return{}};f.defaultProps=function(){return{valName:"currText",text:"",x:"0",y:"0",width:"210",height:"35",zindex:"auto",readonly:!1,enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,name:"text1",opacity:1,customCssClasses:"",textAlign:"Left",label:"Label",mobileTextType:"text",placeholderText:"",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,alignInContainer:"left",mobileTheme:"c",margin:""}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_SliderMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,{_widgetClass:"WiziCore_UI_SliderMobileWidget",_slider:null,_div:null,_labelObj:null,_dataPropName:"value",_oldVal:null,init:function(){this._super.apply(this,arguments)},draw:function(){this._cnt=a("<div>");this.base().append(this._cnt);this._super.apply(this,arguments)},_redraw:function(){if(this._cnt){this._cnt.empty();var b=
this,c=this.htmlId();this._div=a("<div style='padding: 5px; min-width:230px;'/>");this._div.attr("id",c);this._slider=a('<input data-role="slider" type="number" value="'+this.value()+'" min="'+this.min()+'" max="'+this.max()+'"/>');this._slider.attr("id","slider"+c);this.step()!=g&&this._slider.attr("step",this.step());this._div.append(this._slider);this._cnt.prepend(this._div);this._slider.bind("change",{self:b},b.onSlide);this._slider.bind("blur",{self:b},b.onChange);this._slider.bind("keydown",
{self:b},function(a){a.keyCode===13&&b.onChange(a)});this._super.apply(this,arguments);this._div.bind("resize",{self:b},b._updateSlider);c=this._getJQMOptions();c.highlight=this.activeStateBg();this._slider.mobileSlider(c);c=this.base().find(".m-ui-slider");this._updateEnable();c.unbind("mousedown.custom").bind("mousedown.custom",{self:b},b.onStart);c.unbind("touchstart.custom").bind("touchstart.custom",{self:b},b.onStart)}},onDestroy:function(){this._slider&&(this._slider.unbind(),this.base().find(".ui-slider").unbind());
var b=this.htmlId();a(j).unbind("mouseup."+b);a(j).unbind("touchend."+b)},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.dataType=this.normalProperty("dataType");this.isUnique=this.normalProperty("isUnique");this.enable=this.htmlProperty("enable",this._enable);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",this._tabindex);
this.activeStateBg=this.themeProperty("activeStateBg",this._redraw);this.max=this.checkedPropTemplate("max");this.min=this.checkedPropTemplate("min");this.step=this.htmlProperty("step",this._step);this.value=this.htmlProperty("mobileSliderValue",this._value);this.view=this.normalProperty("view");this.fields=this.normalProperty("fields");this.groupby=this.normalProperty("groupby");this.orderby=this.normalProperty("orderby");this.filter=this.normalProperty("filter");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")},checkProps:function(b){var c=b.min,e=b.max,b=b.value,b=a.isArray(b)?[b[0],b[1]]:b,h=!1,d=!1;c>e&&(d=c,c=e,e=d,d=!0);a.isArray(b)||(b=[b],h=!0);b[0]>=c&&b[0]<=e||(b=isNaN(b[0])?c:Math.min(e,Math.max(c,b[0])),h=!0);var f={};h&&(f.values=b);if(d)f.min=c,f.max=e;return h||d?f:g},checkedPropTemplate:function(a){return function(c){if(c!==
g){for(var e=["max","min"],h={},d=0;d<e.length;++d){var f=e[d];h[f]=this._project[f]}h[a]=c;h=this.checkProps(h);e={};e[a]=c;this._project[a]=c;if(h!=g)for(var j in h)e[j]=h[j],this._project[j]=h[j];this.sendExecutor(e);if(this._isDrawn)for(var k in e)switch(c=e[k],k){case "max":this._max(c);break;case "min":this._min(c)}}return this._project[a]}},_updateLayout:function(){this._super();this._updateSlider()},_shadow:function(a){this._super(a,this._div)},_updateSlider:function(a){var c=this;if(a!=g)c=
a.data.self;c._div&&c._div.find(".m-ui-slider").length>0&&(a=Math.floor((c._div.width()-c._slider.width()*1.5-20-c._div.width()*0.02)/c._div.width()*100),c._div.find(".m-ui-slider").css({width:a+"%"}))},initDomState:function(){this._super();this.initDomStatePos();this._max(this.max());this._min(this.min());this._visible(this.visible());this._opacity(this.opacity());this._value(this.value())},onPageDrawn:function(){this._super.apply(this,arguments);this._updateSlider();this._tabindex(this.tabindex())},
_enable:function(a){this._slider&&this._slider.data("mobileSlider")&&(a?this._slider.mobileSlider("enable"):this._slider.mobileSlider("disable"))},onChange:function(b){b=b.data.self;if(b.enable()){var c=new jQuery.Event(f.onChange),e=b._oldVal,h=b._slider.val();b._project.mobileSliderValue=h;b._oldVal=h;a(b).trigger(c,[h,e])}},onStart:function(b){b=b.data.self;if(b.enable()){var c=b.htmlId();a(j).unbind("mouseup."+c).bind("mouseup."+c,{self:b},b.onStop);a(j).unbind("touchend."+c).bind("touchend."+
c,{self:b},b.onStop);var c=new jQuery.Event(f.onStart),e=b._slider.val();a(b).trigger(c,[e])}},onStop:function(b){var c=b.data.self;if(c.enable()){var e=c.htmlId();a(j).unbind("mouseup."+e);a(j).unbind("touchend."+e);var e=new jQuery.Event(f.onStop),h=c._slider.val();a(c).trigger(e,[h]);c.onChange(b)}},onSlide:function(b){b=b.data.self;if(b.enable()){var c=new jQuery.Event(f.onSlide),e=b._slider.val();a(b).trigger(c,[e])}},_label:function(a){this._labelObj.text(a)},_enable:function(a){this._slider&&
(a=a===!0?"enable":"disable",this._slider.data("mobileSlider")&&this._slider.mobileSlider(a))},reDraw:function(){this._slider&&this._slider.data("mobileSlider")&&this._slider.mobileSlider("refresh")},_max:function(a){this._isDrawn&&(this._slider.attr("max",a),this.reDraw())},_step:function(a){this._isDrawn&&a&&(this._slider.attr("step",a),this.reDraw())},_min:function(a){this._isDrawn&&(this._slider.attr("min",a),this.reDraw())},_value:function(a){this._isDrawn&&(this._slider.val(a),this.reDraw())},
transData:function(a){var c=[],c=this.transDataFromQuery(a,["valueuid"]);c[0]!=g&&this.value(c[0])},collectDataSchema:function(a){return!this.isIncludedInSchema()?g:this._simpleDataSchema(a)},getDataModel:function(){return[{name:"value",value:"",uid:"valueuid"}]},_tabindex:function(a){this._super(a,this.base().find("input, a"))},_tabStop:function(a){this._super(a,this.base().find("input, a"))},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().find("input").focus()},
isBindableToData:function(){return!0}})),k=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.max,AC.Property.general.min,{name:"step",type:"_1to500",get:"step",set:"step",alias:"widget_step"},AC.Property.general.mobileSliderValue]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,AC.Property.database.isUnique]},{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]},
{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.margin,{name:"activeStateBg",type:"color",get:"activeStateBg",set:"activeStateBg",alias:"widget_slider_active_state"},
AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};f.onChange="E#Mobile#onChange";f.onStop="E#Mobile#onStop";f.onStart="E#Mobile#onStart";f.onSlide="E#Mobile#onSlide";f.emptyProps=function(){return{}};f.actions=function(){var b={onChange:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_SliderMobileWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"},
onStop:{alias:"widget_event_onstop",funcview:"onStop",action:"AC.Widgets.WiziCore_UI_SliderMobileWidget.onStop",params:"value",group:"widget_event_general"},onStart:{alias:"widget_event_onstart",funcview:"onStart",action:"AC.Widgets.WiziCore_UI_SliderMobileWidget.onStart",params:"value",group:"widget_event_general"},onSlide:{alias:"widget_event_onslide",funcview:"onSlide",action:"AC.Widgets.WiziCore_UI_SliderMobileWidget.onSlide",params:"value",group:"widget_event_general"}},b=a.extend({},AC.Widgets.Base.actions(),
b);f.actions=function(){return b};return b};f.defaultProps=function(){return{valName:"currVal",width:240,height:32,x:"100",y:"50",zindex:"auto",anchors:{left:!0,top:!0,bottom:!1,right:!1},enable:!0,visible:!0,max:100,min:0,widgetStyle:"default",displayHourglassOver:"inherit",name:"mobileSlider1",opacity:1,customCssClasses:"",mobileSliderValue:10,dragAndDrop:!1,resizing:!1,label:"Label",alignInContainer:"left",mobileTheme:"c"}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_FlipToggleSwitchMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,{_widgetClass:"WiziCore_UI_FlipToggleSwitchMobileWidget",_slider:null,_div:null,_labelObj:null,_dataPropName:"checked",init:function(){this._super.apply(this,arguments);this._project.checked===g&&(this._project.checked=!1);this._defaultValue=this._project.checked},draw:function(){this._cnt=a("<div>");this.base().append(this._cnt);
this._super.apply(this,arguments)},_redraw:function(){if(this._cnt){var b=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this._cnt.empty();this._div=a("<div class='flip-toggle' data-role='fieldcontain'/>");var c=this.htmlId();this._slider=a('<select data-role="slider"><option value="off">'+this.labelOff()+'</option><option value="on">'+this.labelOn()+"</option></select>");this._slider.attr("id","slider"+c);this._div.append(this._slider);this._cnt.prepend(this._div);this._slider.mobileSlider(this._getJQMOptions());
var e=this;this._slider.unbind("change").bind("change",function(){var b=e.value(),c=a(this).val();if(b!=(c=="on"))e.onChange(c)});this.base().find(".m-ui-slider").off("vclick").on("vclick",function(){return!1}).parent().bind("mouseup",function(){e.base().click()});e._checked(e.checked());this._updateEnable();jQuery.fn.__useTr=b}},_enable:function(a){this._slider&&(a=a===!0?"enable":"disable",this._slider.data("mobileSlider")&&this._slider.mobileSlider(a))},onPageDrawn:function(){this._super();this._tabindex(this.tabindex())},
onDestroy:function(){this.base()&&this.base().find(".m-ui-slider").off("vclick");this._slider&&a(this._slider).unbind("change")},onChange:function(b){var c=this._project.value,b=b=="on";this._project.value=b;this._project.checked=b;c=new jQuery.Event(f.onChange,[b,c]);a(this).trigger(c,[b])},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.dataType=this.normalProperty("dataType");this.isUnique=this.normalProperty("isUnique");
this.enable=this.htmlProperty("enable",this._enable);this.visible=this.htmlProperty("visible",this._visible);this.opacity=this.themeProperty("opacity",this._opacity);this.tabindex=this.htmlProperty("tabindex",this._tabindex);this.checkedInt=this.htmlProperty("checked",this._checked);this.labelOn=this.htmlLngPropertyBeforeSet("labelOn",this._beforeLabelOn,this._labelOn);this.labelOff=this.htmlLngPropertyBeforeSet("labelOff",this._beforeLabelOff,this._labelOff);this.checked=this.value;this.view=this.normalProperty("view");
this.fields=this.normalProperty("fields");this.groupby=this.normalProperty("groupby");this.orderby=this.normalProperty("orderby");this.filter=this.normalProperty("filter");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")},value:function(a){a===null&&(a=!1);return this.checkedInt(a)},initDomState:function(){this._super();
this.initDomStatePos();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._checked(this.checked())},_checked:function(a){this.base().find("option").removeAttr("selected");a?this.base().find("option[value='on']").attr("selected",!0):this.base().find("option[value='off']").attr("selected",!1);this.refresh()},_shadow:function(a){this._super(a,this._slider.next())},_onInitLanguage:function(){this.labelOn(this.labelOn());this.labelOff(this.labelOff())},_onSTUpdated:function(){this._redraw()},
_onLanguageChanged:function(){this._redraw()},_beforeLngProp:function(a,c){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var e=WiziCore_Helper.isLngToken(a),h=e?a:"ac-"+this.id()+"_"+c;e||this.form().addTokenToStringTable(this.id(),this.name(),h,a);return h}else return a},_beforeLabelOn:function(a){return this._beforeLngProp(a,"on")},_labelOn:function(){this._redraw()},_beforeLabelOff:function(a){return this._beforeLngProp(a,"off")},_labelOff:function(){this._redraw()},getDataModel:function(){return[{name:"widget_value",
value:"",uid:"valueuid"}]},collectDataSchema:function(a){this._simpleConstDataSchema(AC.Widgets.WiziCore_Api_Form.Type.BOOLEAN,a)},_tabindex:function(a){this._super(a,this.base().find("a"))},_tabStop:function(a){this._super(a,this.base().find("a"))},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().find("a").focus()},refresh:function(){this._isDrawn&&this._slider.data("mobileSlider")&&this._slider.mobileSlider("refresh")},isBindableToData:function(){return!0}})),
k=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.checked,AC.Property.general.labelOn,AC.Property.general.labelOff]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,AC.Property.database.isUnique]},{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]},{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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};f.emptyProps=
function(){return{}};f.onChange="E#FlipToggleSwitchMobile#onChange";f.actions=function(){var a={click:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.Base.onClick",params:"mouseev",group:"widget_event_mouse",disable:!0},mouseenter:{alias:"widget_event_onmouseenter",funcview:"onMouseEnter",action:"AC.Widgets.Base.onMouseEnter",params:"mouseev",group:"widget_event_mouse"},mouseleave:{alias:"widget_event_onmouseleave",funcview:"onMouseLeave",action:"AC.Widgets.Base.onMouseLeave",
params:"mouseev",group:"widget_event_mouse"},dragstart:{alias:"widget_event_ondragstart",funcview:"onDragStart",action:"AC.Widgets.Base.onDragStart",params:"",group:"widget_event_mouse"},dragstop:{alias:"widget_event_ondragstop",funcview:"onDragStop",action:"AC.Widgets.Base.onDragStop",params:"",group:"widget_event_mouse"},resizestart:{alias:"widget_event_onresizestart",funcview:"onResizeStart",action:"AC.Widgets.Base.onResizeStart",params:"",group:"widget_event_mouse"},resizestop:{alias:"widget_event_onresizestop",
funcview:"onResizeStop",action:"AC.Widgets.Base.onResizeStop",params:"",group:"widget_event_mouse"},change:{alias:"widget_event_onchange",funcview:"onChange",action:"AC.Widgets.WiziCore_UI_FlipToggleSwitchMobileWidget.onChange",params:"newValue, oldValue",group:"widget_event_general"}};f.actions=function(){return a};return a};f.defaultProps=function(){return{valName:"currVal",width:100,height:40,x:"15",y:"15",zindex:"auto",anchors:{left:!0,top:!0,bottom:!1,right:!1},enable:!0,visible:!0,checked:!1,
name:"flipToggleSwitch1",opacity:1,customCssClasses:"",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,margin:"",alignInContainer:"left",labelOn:"On",labelOff:"Off",mobileTheme:"c"}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_CheckBoxGroupMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationList,WiziCore_Source_Widget_PagingAPI,{_widgetClass:"WiziCore_UI_CheckBoxGroupMobileWidget",_div:null,_mainCnt:null,_labelObj:null,_dataPropName:"data",_fieldset:null,init:function(){this._super.apply(this,arguments);"selectedIndices"in this._project||(this._project.selectedIndices={})},draw:function(){this._mainCnt=a("<div style='width:100%; height:100%'></div>");
this.base().append(this._mainCnt);this._super.apply(this,arguments)},data:function(a){if(a!=g){if(a.rows!==g){for(var c=[],e=0,h=a.rows.length;e<h;++e)c[e]=[a.rows[e].data[0],a.rows[e].data[1]];a=c}this._stopDropIndices||(this._project.selectedIndices={})}a=a===null?[]:a;return this.htmlPropertyBeforeSetAfterGet("data",this._beforeData,this._data,this._afterGet).call(this,a)},_removeFieldContain:function(){this._div.empty().remove()},_data:function(){this._redraw()},_dataRedraw:function(b){this.removeEvent(f.onChange);
this.removeEvent(AC.Widgets.WiziCore_Widget_Base.onClick);this._div&&this._removeFieldContain();this._div=a("<div></div>");this._div.attr("id",this.htmlId());this._fieldset=a('<div data-role="controlgroup" style="width:100%"/>');if(b){var c=0,e=b.length;if(this.usePaging()&&(e=this._getStartAndLength(e),c=e.i,e=e.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&b[c]==g))e=this._getDefaultStartAndLength(b.length),c=e.i,e=e.l;for(;c<e;c++){var h=WiziCore_Helper.escapeHTMLtags(""+b[c][1]),d=this.htmlId()+
c,j=a('<input type="checkbox" id="'+d+'" name="'+d+'"/>');j.attr("data-value",h);j.attr("data-index",c);h=WiziCore_Helper.isLngToken(b[c][0])?this._getTranslatedValue(b[c][0]):b[c][0];d=a('<label for="'+d+'">'+this.checkEmptyLabel(h)+" </label>");this._fieldset.append(j);this._fieldset.append(d)}}this._div.append(this._fieldset);this._mainCnt.append(this._div);this.addEvent(f.onChange);this.addEvent(AC.Widgets.WiziCore_Widget_Base.onClick)},_redraw:function(){if(this._mainCnt){var a=jQuery.fn.__useTr;
jQuery.fn.__useTr=!1;this._dataRedraw(this._project.data);this._selectItemsByIndexesSet();var c=this._getJQMOptions();c.excludeInvisible=!1;this._fieldset.find("input").checkboxradio(c);this._fieldset.controlgroup(c);this._updateEnable();jQuery.fn.__useTr=a}},_shadow:function(a){this._super(a,this._fieldset)},addEvent:function(a){var c=this;switch(a){case f.onChange:this._mainCnt.find("input").bind("change.ac",{self:this},this.onChange);break;case AC.Widgets.WiziCore_Widget_Base.onClick:this._mainCnt.find("input").bind("click.ac",
function(a){c.onClick(a)})}},removeEvent:function(a){switch(a){case f.onChange:this._mainCnt&&this._mainCnt.find("input").unbind("change.ac");break;case AC.Widgets.WiziCore_Widget_Base.onClick:this._mainCnt&&this._mainCnt.find("input").unbind("click.ac")}},initProps:function(){this._super();this.isIncludedInSchema=this.normalProperty("isIncludedInSchema",this._updateStorageFlag);this.dataType=this.normalProperty("dataType");this.isUnique=this.normalProperty("isUnique");this.enable=this.htmlProperty("enable",
this._enable);this.visible=this.htmlProperty("visible",this._visible);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.normalProperty("filter");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._updateEnable();this._visible(this.visible());this._opacity(this.opacity());
this._tabindex(this.tabindex())},value:function(b){var c=this.data();if(c==g)return g;var e=c.length;if(b!==g){for(var b=b===null?[]:b,b=a.isArray(b)?b:[b],h={},d={},f={},j=0;j<b.length;++j){var k=b[j].index,k=k==g?k:k,o=b[j].value,p=b[j].label;k!=g?h[k]=!0:o!=g?d[o]=!0:p!=g&&(f[p]=!0)}for(j=0;j<e;++j)b=c[j],k=b[0],d[b[1]]&&(h[j]=!0),f[k]&&(h[j]=!0);this._project.selectedIndices=h;this._isDrawn&&this._selectItemsByIndexesSet()}e=[];if(this._project.selectedIndices)for(var n in this._project.selectedIndices)h=
c[n],h!=g&&this._project.selectedIndices[n]&&e.push({index:n,value:h[1],label:h[0]});return e=e.length==0?null:e},dataWithValue:function(a){var c,e,h,d,f,j;if(a!=g){if(a.rows!==g){h=[];d={};for(c=0,e=a.rows.length;c<e;++c)f=a.rows[c],h[c]=[f.data[0],f.data[1]],h[c].userData=f.data.userData,+f.data[2]&&(d[c]=!0);this._project.selectedIndices=d;this._stopDropIndices=!0;this.data(h);this._stopDropIndices=!1;this._isDrawn&&this._selectItemsByIndexesSet()}}else{a=this.data();d=this._project.selectedIndices;
h=[];for(c=0,e=a.length;c<e;++c)f=a[c],h[c]=[f[0],f[1],!!d[c]],h[c].userData={id:c};j=h}return j},_onInitLanguage:function(){this.data(this._project.data)},_onSTUpdated:function(){this._redraw()},_onLanguageChanged:function(){this._redraw()},_beforeData:function(b){var l;if(!a.isArray(b))return b;var c,e,h;c=this.form();e=c._showLngTokens;if(c.language()!=null&&!c._skipTokenCreation){c._showLngTokens=!0;h=this.data();c._showLngTokens=e;for(c=0,e=b.length;c<e;c++){var d=b[c].userData&&b[c].userData.id!=
g?b[c].userData.id:null,f;WiziCore_Helper.isLngToken(b[c][0])||(l=(f=d!=null&&WiziCore_Helper.isLngToken(h[d][0]))?h[d][0]:WiziCore_Helper.generateId(10,"ac-"),d=l,this.form().addTokenToStringTable(this.id(),this.name(),d,b[c][0]),b[c][0]=d);if(b[c].userData!=g)b[c].userData=g}}return b},_afterGet:function(b){b=WiziCore_Helper.clone(b);if(a.isArray(b))for(var c=0,e=b.length;c<e;c++)b[c][0]=this._getTranslatedValue(b[c][0]);return b},multiSelect:function(){return!0},_selectItemsByIndexesSet:function(){var b=
this;this.base().find('input[type="checkbox"]').each(function(){var c=a(this);b._project.selectedIndices[+c.attr("data-index")]?c.attr("checked",!0):c.removeAttr("checked");c.data("checkboxradio")&&c.checkboxradio("refresh")})},onChange:function(b){var b=b.data.self,c=new a.Event(f.onChange),e=b.value(),h=a(this).attr("checked"),d=a(this).attr("data-index");h?b._project.selectedIndices[d]=!0:delete b._project.selectedIndices[d];a(b).trigger(c,[b.value(),e])},collectDataSchema:function(a){if(!this.isIncludedInSchema())return g;
var c=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,c={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT_LIST,structure:{value:{label:"value",type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:c},label:{label:"label",type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},unique:this.isUnique()};this.mandatory()&&(c.mandatory=!0);return a[this.id()]=c},appendValueToDataObject:function(a,c,e){if(!e&&!this.isIncludedInSchema())return g;
var e=this.data(),h={columns:["value","label"],rows:[]},d;for(d in this._project.selectedIndices)if(this._project.selectedIndices){var f=e[d];f!=g&&h.rows.push({data:[f[1],f[0]]})}if(this.mandatory()&&(h==null||h.rows.length==0))c[this.id()]=!0;h!==g&&(a[this.id()]=h);return!0},setValueFromDataObject:function(b,c){if(c||this.isIncludedInSchema()){var e=this._getValueFromDataObject(b);if(e===null)this.resetValue();else if(e!==g){var h={},d,f;if(e.columns!=g&&e.rows!=g)for(d=0,f=e.rows.length;d<f;++d)h[e.rows[d].data[0]]=
!0;else if(typeof e=="object"&&"value"in e)h[e.value]=!0;else if(a.isArray(e))for(d=0,f=e.length;d<f;++d)h[e[d]]=!0;else h[e]=!0;var e=this.data(),j={};if(e!=g)for(d=0,f=e.length;d<f;++d)h[e[d][1]]&&(j[d]=!0);this._project.selectedIndices=j;this._isDrawn&&this._selectItemsByIndexesSet()}}},getDataModel:function(){return[{name:"widget_label",value:"",uid:"labeluid"},{name:"widget_value",value:"",uid:"valueuid"}]},_enable:function(a){if(this._fieldset){var a=a===!0?"enable":"disable",c=this._fieldset.find("input");
c.data("checkboxradio")&&c.checkboxradio(a)}},_tabindex:function(a){this._super(a,this.base().find("input"))},_tabStop:function(){this._super(value,this.base().find("input"))},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().find("input").first().focus()},getDataFromMap:function(a,c){for(var e=[],h=0,d=a.length;h<d;h++){var f=[],j;for(j in c){var k=c[j];k!=g&&(f[j]=AC.Widgets.Base.getDataItemWithMap(a[h],k))}e.push(f)}return e}})),k=[{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.dataWithValueListBox]},{name:AC.Property.group_names.database,props:[AC.Property.database.isIncludedInSchema,AC.Property.database.dataType,AC.Property.database.isUnique]},{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]},{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.margin,AC.Property.style.mobileTheme,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};f.onChange=
"E#CheckBoxGroupMobile#onChange";f.emptyProps=function(){return{}};f.actions=function(){var b={onChange:{alias:"widget_event_onselectionchange",funcview:"onSelectionChange",action:"AC.Widgets.WiziCore_UI_CheckBoxGroupMobileWidget.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"}};return b=a.extend(AC.Widgets.Base.actions(),b)};
f.defaultProps=function(){return{valName:"currVal",width:150,height:50,x:"15",y:"15",margin:"",zindex:"auto",alignInContainer:"left",anchors:{left:!0,top:!0,bottom:!1,right:!1},enable:!0,visible:!0,name:"CheckBoxGroup1",displayHourglassOver:"inherit",customCssClasses:"",opacity:1,dragAndDrop:!1,resizing:!1,mobileTheme:"c",data:[["Label","Value",""]],currPage:1,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){function f(b){var c=a(b.target).closest(".ac-list-item");if(c.length>0){var d=c.data("widget");d&&d.enable()!==!1&&d._isParentEnable()!==!1&&d.onItemSelected.call(d,c,b)}}function k(){a(j).bind("vclick",f);k=null}var b=AC.Widgets.WiziCore_UI_ListMobileWidget=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.extend(a.extend({},WiziCore_Methods_Widget_ActionClick,WiziCore_WidgetAbstract_DataIntegrationAssocArrayWithFiltering,{_widgetClass:"WiziCore_UI_ListMobileWidget",_select:null,
_needUpdateSelection:!0,_filterVal:"",draw:function(){this._mainCnt=a("<div style='width:100%; height:100%;'></div>");this.base().append(this._mainCnt);this._super.apply(this,arguments)},initProps:function(){this._super();this.imageAsThumbnail=this.themeProperty("imageAsThumbnail",this._redraw);this.useImage=this.themeProperty("useImage",this._redraw);this.htmlLabel=this.themeProperty("htmlLabel",this._redraw);this.inset=this.themeProperty("inset",this._redraw);this.useCount=this.themeProperty("useCount",
this._redraw);this.useFilter=this.themeProperty("useFilter",this._redraw);this.numbered=this.themeProperty("numbered",this._redraw);this.readOnlyList=this.themeProperty("readOnlyList",this._redraw);this.useAside=this.themeProperty("useAside",this._redraw);this.dividerTheme=this.themeProperty("dividerTheme",this._redraw);this.splitTheme=this.themeProperty("splitTheme",this._redraw);this.countTheme=this.themeProperty("countTheme",this._redraw);this.highlightSelected=this.normalProperty("highlightSelected");
this.filterData=this.normalProperty("filterData");this.filterPlaceholder=this.htmlLngPropertyBeforeSet("filterPlaceholder",this._filterPlaceholderBefore,this._filterPlaceholderAfter);this.value=this.htmlPropertyBeforeSetAfterGet("value",this._filterValue,this._value,this._valueAfter);this.wrap=this.htmlProperty("wrap",this._redraw)},_onInitLanguage:function(){this._super.apply(this,arguments);this.filterPlaceholder(this.filterPlaceholder())},_filterPlaceholderBefore:function(a){if(this.form().language()!=
null&&!this.form()._skipTokenCreation){var b=WiziCore_Helper.isLngToken(a),c=b?a:"ac-"+this.id()+"-ph";b||this.form().addTokenToStringTable(this.id(),this.name(),c,a);return c}else return a},_filterPlaceholderAfter:function(){this._select&&this._redraw()},_redraw:function(){this._data(this._project.data)},selectElemId:function(){return"select-"+this.htmlId()},_beforeData:function(b){if(!a.isArray(b))return b;var c,d,f;c=this.form();d=c._showLngTokens;if(c.language()!=null&&!c._skipTokenCreation){c._showLngTokens=
!0;f=this.data();c._showLngTokens=d;for(c=0,d=b.length;c<d;c++){var j=b[c].userData&&b[c].userData.id!=g?b[c].userData.id:null;this._processRowValue(j,c,b,f,"label");this._processRowValue(j,c,b,f,"aside");this._processRowValue(j,c,b,f,"image");if(b[c].userData!=g)b[c].userData=g}}return b},_processRowValue:function(a,b,c,d,f){var e;var g;WiziCore_Helper.isLngToken(c[b][f])||(e=(g=a!=null&&d&&d[a]&&WiziCore_Helper.isLngToken(d[a][f]))?d[a][f]:WiziCore_Helper.generateId(10,"ac-"),a=e,this.form().addTokenToStringTable(this.id(),
this.name(),a,c[b][f]),c[b][f]=a)},_afterGet:function(b){b=WiziCore_Helper.clone(b);if(a.isArray(b))for(var c=0,d=b.length;c<d;c++)b[c].userData={id:c},b[c].label=this._getTranslatedValue(b[c].label),b[c].aside=this._getTranslatedValue(b[c].aside),b[c].image=this._getTranslatedValue(b[c].image);return b},_data:function(b){if(this._mainCnt){var c=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;b&&(b=WiziCore_Helper.clone(b));this._div!=g&&this._div.empty().remove();this._div=a("<div/>");this._div.attr("id",
"selectDiv-"+this.htmlId());var d=this._div,f=this.numbered()?"ol":"ul",j=this.selectElemId(),m=a('<label class="select">'),f=a("<"+f+' data-role="listview" data-theme="c" data-insert="true"></'+f+">"),o=this.useImage(),p=this.imageAsThumbnail(),n=this.useCount(),q=this.readOnlyList(),v=this.useAside(),s=this;m.attr("for",j);f.attr("name",j);f.attr("id",j);f.data("divider-theme",this.dividerTheme());f.data("count-theme",this.countTheme());f.data("split-theme",this.splitTheme());if(b&&this.filterData()&&
this.view()==g){for(var u=[],y,j=0;j<b.length;j++)if(y=b[j],y.label.toLowerCase().indexOf(this._filterVal)!=-1)y.userData=g,u.push(b[j]);b=u}if(b){j=0;u=b.length;if(this.usePaging()&&(u=this._getStartAndLength(u),j=u.i,u=u.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&b[j]==g))u=this._getDefaultStartAndLength(b.length),j=u.i,u=u.l;for(;j<u;j++){y=b[j];var A=WiziCore_Helper.isLngToken(y.label)?this._getTranslatedValue(y.label):y.label,B=this.htmlLabel()?A:WiziCore_Helper.escapeHTMLtags(""+A),A=a("<li>"),
C=y.divider===!0||y.divider=="1";y.image&&WiziCore_Helper.isLngToken(y.image)&&(y.image=this._getTranslatedValue(y.image));y.aside=WiziCore_Helper.isLngToken(y.aside)?this._getTranslatedValue(y.aside):y.aside;f.append(A);B=this.checkEmptyLabel(B);q||C?A.append(B||""):(B=a("<a>"+B+"</a>"),A.append(B),A=B);C?A.data("role","list-divider"):(o&&y.image&&(C=a("<img />").attr("src",y.image),p&&(C.addClass("m-ui-li-icon"),C.css("max-width","25px")),A.prepend(C)),n&&A.append('<p class="m-ui-li-count">'+y.count+
"</p>"),v&&A.append('<p class="m-ui-li-aside">'+y.aside+"</p>"),A.data("optionValue",y),A.data("pos",j),A.data("widget",this),A.addClass("ac-list-item"))}}if(this.useFilter())f.data("filter","true"),b=this._project.filterPlaceholder,b=WiziCore_Helper.isLngToken(b)?this._getTranslatedValue(b):b,f.data("filterPlaceholder",b);f.data("filterDataCallback",function(a){var b="%"+a+"%";if(s.view()!=g){if(s._request!==null){var e=s.fields()[0].value;e.match(/\w+\([^)]*\)/)==null&&e.match(/^\s*{/)==null&&e.match(/}\s*$/)==
null&&(e="{"+e+"}");s._filterData="(UPPER("+e+")) LIKE (UPPER('"+b+"'))";s._filterVal=a;s.reloadDataIntegrationData()}}else s._filterVal=a,s.updateFilterData(a)});this.filterData()==!0&&(f.data("filterData",!0),f.data("filterValue",this._filterVal));d.append(m);d.append(f);this._mainCnt.append(this._div);this._select=f;this._isDrawn&&this._refresh();this.$itemsWithoutDivider=this._select.find('li:not(li[role="heading"])');d=this.value();d!==g&&this._value(d);k&&k();this.unhighlightWidget();this._updateEnable();
this._super();jQuery.fn.__useTr=c}},unhighlightWidget:function(){this._updateSelection()},_filterValue:function(a){a!==null&&!(a&&a.value!==g)&&(a=null);return a},_value:function(a){a===null?this._updateSelection(null):a!=null&&this.selectItemValue(a.value)},_valueAfter:function(b){var c=null,d=this.data();if(a.isArray(d)&&b&&b.value!=g)for(var f=0,j=d.length;f<j;f++)if(d[f].value==b.value&&(d[f].divider==!1||d[f].divider==null)){c=d[f];break}return c},_shadow:function(a){this._super(a,this._select)},
onItemSelected:function(b,c){var d=b.attr("data-"+a.mobile.ns+"theme"),f=b.data("optionValue"),j=b.data("pos"),k=this.value();this._needUpdateSelection=!1;this.value(f);this._needUpdateSelection=!0;b.removeClass("m-ui-btn-up-"+d).addClass("m-ui-btn-down-"+d);this.onItemClick.call(this,f,j)?(k===g&&(k=null),this.value(k,!0)):(f.action&&this.onActionClick(c,f.action,this.form()),this._updateSelection(j));setTimeout(function(){b.removeClass("m-ui-btn-down-"+d).addClass("m-ui-btn-up-"+d)},200);c.stopPropagation()},
_updateSelection:function(a){if(this.highlightSelected()&&this._needUpdateSelection){var b=this.mobileTheme(),c="m-ui-btn-up-"+b+"  m-ui-btn-active-"+b;this.$itemsWithoutDivider.removeClass(c).addClass("m-ui-btn-up-"+b);a!=null&&this._select.find("li:eq("+a+")").removeClass(c).addClass("m-ui-btn-active-"+b)}},selectItemValue:function(b){var c,d,f=this.data();if(a.isArray(f))for(c=0,d=f.length;c<d;++c)if(f[c].value==b&&(f[c].divider==!1||f[c].divider==null)){this._updateSelection(c);break}},selectItemPosition:function(a){var b=
this.data();b&&this.value(b[a])},onItemClick:function(e,c){var d=new a.Event(b.onClick);a(this).trigger(d,[e,c]);d=d.isPropagationStopped();!d&&this.sendDrillDown(e);return d},onPageDrawn:function(){this._super.apply(this,arguments);this._tabindex(this.tabindex())},_refresh:function(){var a=this._getJQMOptions();a.inset=this.inset();a.wrap=this.wrap();a.mobilePerfomance=WiziCore_Helper.isMobile();this._div.find("ol,ul").listview(a);a.inset||this._div.find(".m-ui-listview-filter").css({margin:"0px"});
this._updateEnable()},value:function(){return null},_label:function(){this._isDrawn&&this._data(this.data())},updateFilterData:function(){var a=this;this._isDrawn&&(this.loadMode(!0),setTimeout(function(){a._data(a.data());a.loadMode(!1)},0))},_enable:function(a){if(this._div){var b=this._div.find(".m-ui-input-search > input"),c=a===!0?"enable":"disable";this._div.find("ol,ul").data("listview")&&this._div.find("ol,ul").listview(c);a!==!0?this._div.find("li").addClass("wa-disable-cursor"):this._div.find("li").removeClass("wa-disable-cursor");
this.useFilter()&&b.length!=0&&b.textinput(c)}},initDomState:function(){this._super()},getDataModel:function(){return[{name:"widget_label",uid:"label",direct:!0},{name:"widget_Count",uid:"count",direct:!0},{name:"widget_value",uid:"value",direct:!0},{name:"widget_Aside",uid:"aside",direct:!0},{name:"widget_Image",uid:"image",direct:!0},{name:"widget_Divider",uid:"divider",direct:!0}]},getDataFromMap:function(a,b){for(var c=[],d=a.length,f=0;f<d;f++){var j={},k;for(k in b){var p=b[k];p!=g&&(j[k]=AC.Widgets.Base.getDataItemWithMap(a[f],
p))}c.push(j)}return c},_tabindex:function(a){this._super(a,this.base().find("a"))},_tabStop:function(a){this._super(a,this.base().find("a"))},setFocus:function(){this._isDrawn&&this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().find("a").first().focus()},filterListData:function(){if(this.filterData()==!0){var a=this.filter(),b=[];typeof this._filterData=="string"&&b.push(this._filterData);if(a)for(var c=0;c<a.length;c++)b.push(a[c]);return b}else return this.filter()},collectDataSchema:function(a){if(!this.isIncludedInSchema())return g;
var b=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,b={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT,structure:{value:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:b},label:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},unique:this.isUnique()};this.mandatory()&&(b.mandatory=!0);return a[this.id()]=b}}));b.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",
border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdan",selectedColor:"silver"}};b.defaultProps=function(){return{valName:"selectedItems",x:"0",y:"0",height:"70",width:"200",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,data:[{value:"l1",label:"Label1",image:"",count:"1",aside:"aside",divider:!1},{value:"l2",label:"Label2",image:"",count:"1",aside:"aside",divider:!1}],name:"MobileList",border:"",label:"Label",dragAndDrop:!1,resizing:!1,displayHourglassOver:"inherit",
widgetStyle:"default",alignInContainer:"left",inset:!0,htmlLabel:!1,mobileTheme:"c",countTheme:"c",dividerTheme:"b",selectionTheme:"a",highlightSelected:!1,customCssClasses:"",currPage:1,opacity:1,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1,wrap:!1,filterPlaceholder:"Filter items..."}};b.inlineEditPropName=function(){return"data"};var c=[{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.assocData,{name:"highlightSelected",type:"boolean",set:"highlightSelected",get:"highlightSelected",alias:"widget_highlightSelected"},{name:"filterPlaceholder",type:"text",set:"filterPlaceholder",get:"filterPlaceholder",alias:"widget_filterPlaceholder"}]},{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.repeat,AC.Property.layout.zindex,AC.Property.layout.tabindex,AC.Property.layout.tabStop,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:"filterData",type:"boolean",set:"filterData",get:"filterData",alias:"widget_filter_data"}]},{name:AC.Property.group_names.style,
props:[AC.Property.behavior.opacity,AC.Property.style.imageAsThumbnail,AC.Property.style.useImage,AC.Property.style.useCount,{name:"inset",type:"boolean",set:"inset",get:"inset",alias:"widget_inset"},{name:"htmlLabel",type:"boolean",set:"htmlLabel",get:"htmlLabel",alias:"widget_htmlLabel"},{name:"wrap",type:"boolean",set:"wrap",get:"wrap",alias:"widget_wrap"},AC.Property.style.useFilter,AC.Property.style.numbered,AC.Property.style.readOnlyList,AC.Property.style.useAside,AC.Property.style.margin,AC.Property.style.mobileTheme,
{name:"dividerTheme",type:"mobileThemeExt",set:"dividerTheme",get:"dividerTheme",alias:"widget_dividerTheme"},{name:"countTheme",type:"mobileTheme",set:"countTheme",get:"countTheme",alias:"widget_countTheme"},AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];b.props=function(){return c};b.onClick="Event#ListMobile#onClick";b.actions=function(){return{onClick:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.WiziCore_UI_ListMobileWidget.onClick",
params:"value, pos",group:"widget_event_general"},dataLoaded:{alias:"widget_event_ondataloaded",funcview:"onDataLoaded",action:"AC.Widgets.Base.onDataLoaded",params:"error, data",group:"widget_event_data"}}};b.valuePropName=g;b.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){function f(b){var c=a(b.target).closest(".ac-navbar-item");if(c.length>0){var d=c.data("widget");d&&d.enable()!==!1&&d._isParentEnable()!==!1&&d._itemClickCallback.call(d,b,c.data("optionValue"),c.data("label"),c.data("position"))}}function k(){a(j).bind("vclick",f);k=null}var b=AC.Widgets.WiziCore_UI_NavBarMobileWidget=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.extend(a.extend({},WiziCore_Methods_Widget_ActionClick,{_widgetClass:"WiziCore_UI_NavBarMobileWidget",_select:null,
_selectedIndex:null,init:function(){this._super.apply(this,arguments);var b=this._project.data,c,d;if(b&&a.isArray(b))for(var f=0,g=b.length;f<g;f++)if(c=b[f],c.icon)(d=this.getUserIconResource(c.icon))&&(c.icon=d)},_itemClickCallback:function(a,b,c,d){this._setButtonActiveState(a);var f=this,g=this.form();setTimeout(function(){if(g&&!g.isDestroyed()){var j=f.onItemClick.call(f,c,d);if(b.action&&j!==!1)f.onActionClick(a,b.action,g)}a.stopPropagation()},100)},_setButtonActiveState:function(b){var b=
a(b.target).closest("a"),c=this.mobileTheme();b.hasClass("m-ui-disabled")||(this._mainCnt.find("a").removeClass(a.mobile.activeBtnClass+" m-ui-btn-active-"+c),b.addClass(a.mobile.activeBtnClass+" m-ui-btn-active-"+c))},draw:function(){this._super.apply(this,arguments);var b=this;a(this.form()).bind(AC.Widgets.WiziCore_Api_Form.PageChanging.onShow+"."+this.id(),function(a,c){b.updateActiveBtnByPage(c)})},onRemove:function(){a(this.form()).unbind(AC.Widgets.WiziCore_Api_Form.PageChanging.onShow+"."+
this.id())},initProps:function(){this._super();this.useImage=this.themeProperty("useImage",this._redraw);this.iconPosition=this.themeProperty("iconPosition",this._redraw);this.inset=this.themeProperty("inset",this._redraw);this.customImageStyle=this.themeProperty("customImageStyle",this._updateUserImages)},_redraw:function(){this._data(this._project.data)},selectElemId:function(){return"select-"+this.htmlId()},_beforeData:function(b){if(!a.isArray(b))return b;var c,d,f;c=this.form();d=c._showLngTokens;
if(c.language()!=null&&!c._skipTokenCreation){c._showLngTokens=!0;f=this.data();c._showLngTokens=d;for(c=0,d=b.length;c<d;c++)if(this._processRowValue(b[c].userData&&b[c].userData.id!=g?b[c].userData.id:null,c,b,f,"label"),b[c].userData!=g)b[c].userData=g}return b},_processRowValue:function(a,b,c,d,f){var e;var g;WiziCore_Helper.isLngToken(c[b][f])||(e=(g=a!=null&&d&&WiziCore_Helper.isLngToken(d[a][f]))?d[a][f]:WiziCore_Helper.generateId(10,"ac-"),a=e,this.form().addTokenToStringTable(this.id(),this.name(),
a,c[b][f]),c[b][f]=a)},_afterGet:function(b){b=WiziCore_Helper.clone(b);if(a.isArray(b))for(var c=0,d=b.length;c<d;c++)b[c].userData={id:c},b[c].label=this._getTranslatedValue(b[c].label);return b},_data:function(b){var c=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;this._mainCnt!=g&&this._mainCnt.empty().remove();this._mainCnt=a("<div style='width:100%; height:100%;'></div>");this.base().append(this._mainCnt);var d=a('<div data-role="navbar"></div>'),f=a("<ul>"),j=this.useImage();this.inset()||(d.addClass("m-ui-bar-"+
this.mobileTheme()),d.css("border","0"));d.append(f);if(b)for(var m=0,o=b.length;m<o;m++){var p=b[m];if(p.visible!=!1){var n=p.icon,q=WiziCore_Helper.isLngToken(p.label)?this._getTranslatedValue(p.label):p.label,v=a("<li>"),s=a("<a>"+q+"</a>"),u=this._checkCurrentPage(p.action);if(j&&n&&n!="local"&&n!="none"){var y=n;if(n=this.getUserIconResource(n))y="user-icon",s.attr("data-userlink",n);s.attr("data-icon",y)}u&&s.addClass("m-ui-btn-active");s.data("widget",this);s.data("optionValue",p);s.data("label",
q);s.data("position",m);s.addClass("ac-navbar-item");v.append(s);f.append(v)}}k&&k();this._mainCnt.append(d);this._isDrawn&&this._refresh();this._super();jQuery.fn.__useTr=c},updateActiveBtnByPage:function(a){if(a!==g&&this._mainCnt){var b=this.data();if(b)for(var c=0,d=b.length;c<d;++c)if(this._checkCurrentPage(b[c].action,a)){this.selectByPos(c);break}}},selectByPos:function(a){var b="m-ui-btn-active-"+this.mobileTheme();this._mainCnt.find("a").removeClass(b+" m-ui-btn-active");this._mainCnt.find("a:eq("+
a+")").addClass(b);this._selectedIndex=a},selectByPage:function(a){var b=a;typeof a=="string"&&(b={name:function(){return a},id:function(){return a}});this.updateActiveBtnByPage(b)},_checkCurrentPage:function(a,b){return a&&(b=b?b:this.page())&&(b.name()==a||b.id()==a)?!0:!1},onItemClick:function(c,d){var f=new a.Event(b.onClick);a(this).trigger(f,[c,d]);(f=f.isPropagationStopped())||this.sendDrillDown(c.value);return!f},onPageDrawn:function(){this._super.apply(this,arguments);this._refresh()},_refresh:function(){var a=
this._getJQMOptions(),b=this.inset()===!0;a.iconpos=this.iconPosition();a.shadow=b;a.corners=b;this._mainCnt.find(":jqmData(role='navbar')").navbar(a);this._updateEnable();this._updateUserImages()},_updateUserImages:function(){var b=this.customImageStyle(),c=this,d=this._mainCnt.find('a[data-icon!="user-icon"]').length>0;if(this._mainCnt.find('a[data-icon="user-icon"]').length>0){if(d&&b.height)b.height=Math.round(b.height),b.height=b.height<18?18:b.height}else this.cssClassUpdate(this.base(),"ac-icon-padding-top-",
"");this._mainCnt.find('a[data-icon="user-icon"]').each(function(){var d=a(this);if(d.attr("data-icon")=="user-icon")if(b){d.addClass("ac-custom-images");if(b.width){var f=Math.round(b.width/2),g=Math.round(b.width);c.cssClassUpdate(d,"ac-icon-width-",g);c.cssClassUpdate(d,"ac-icon-margin-left-",f)}else c.cssClassUpdate(d,"ac-icon-width-",""),c.cssClassUpdate(d,"ac-icon-margin-left-","");b.height?(f=Math.round(b.height),c.cssClassUpdate(d,"ac-icon-height-",f),c.cssClassUpdate(c.base(),"ac-icon-padding-top-",
f-18+33)):(c.cssClassUpdate(d,"ac-icon-height-",""),c.cssClassUpdate(c.base(),"ac-icon-padding-top-",""))}else d.removeClass("ac-custom-images"),c.cssClassUpdate(c.base(),"ac-icon-padding-top-",""),c.cssClassUpdate(d,"ac-icon-height-",""),c.cssClassUpdate(d,"ac-icon-width-",""),c.cssClassUpdate(d,"ac-icon-margin-left-","")})},_enable:function(a){if(this._mainCnt){var b=a===!0?"enable":"disable",c=this._mainCnt.find(":jqmData(role='navbar')");c.data("navbar")&&c.navbar(b);a!==!0?this._mainCnt.find(".ac-navbar-item").addClass("wa-disable-cursor"):
this._mainCnt.find(".ac-navbar-item").removeClass("wa-disable-cursor")}},value:function(a){a!==g&&this.selectByPos(a);return this._selectedIndex},itemVisibility:function(b,c){var d=null,f=this.data();if(a.isArray(f)){var j=f[b];if(j){if(c!=g&&j.visible!=c)j.visible=c,this.data(f);d=j.visible}}return d},initDomState:function(){this._super()},getDataModel:function(){return[{name:"widget_label",uid:"label"},{name:"widget_icon",uid:"icon"},{name:"widget_action",uid:"action"},{name:"widget_visible",uid:"action"}]},
getDataFromMap:function(a,b){for(var c=[],d=a.length,f=0;f<d;f++){var j={},k;for(k in b){var p=b[k];p!=g&&(j[k]=AC.Widgets.Base.getDataItemWithMap(a[f],p))}c.push(j)}return c}}));b.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdana",selectedColor:"silver"}};b.defaultProps=function(){return{valName:"selectedItems",x:"0",y:"0",height:"30",width:"320",zindex:"auto",enable:!0,anchors:{left:!0,
top:!0,bottom:!1,right:!1},visible:!0,data:[{label:"Page1",image:""},{label:"Page2",image:""}],name:"NavBar",border:"",customImageStyle:{},dragAndDrop:!1,displayHourglassOver:"inherit",widgetStyle:"default",alignInContainer:"left",customCssClasses:"",htmlLabel:!1,mobileTheme:"a",iconPosition:"top",pWidth:100,inset:!1}};b.inlineEditPropName=function(){return"data"};var c=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,{name:"data",type:"navbarData",
set:"data",get:"data",alias:"widget_records"}]},{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.repeat,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]},{name:AC.Property.group_names.behavior,
props:[AC.Property.behavior.dragAndDrop,AC.Property.behavior.visible,AC.Property.behavior.enable]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.useImage,AC.Property.style.margin,AC.Property.style.mobileTheme,AC.Property.style.mobileButtonIconPos,{name:"inset",type:"boolean",set:"inset",get:"inset",alias:"widget_inset"},{name:"customImageStyle",type:"imgsizes",set:"customImageStyle",get:"customImageStyle",alias:"widget_custom_image_style"},AC.Property.general.displayHourglassOver,
AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];b.props=function(){return c};b.onClick="Event#NavBarMobile#onClick";b.actions=function(){return{onClick:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.WiziCore_UI_NavBarMobileWidget.onClick",params:"label, pos",group:"widget_event_general"}}};b.valuePropName=g;b.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){function f(c){var e=a(c.target).closest(".ac-widget-item"),d;if(e.length>0)for(var e=e.data("widget"),f=0,g=b.length;f<g;f++)(d=b[f])&&typeof d.checkClickEvent=="function"&&d.checkClickEvent(c,e)}function k(){a(j).bind("vclick",f);k=null}var b=[],c=AC.Widgets.WiziCore_UI_ContextMenuMobileWidget=AC.Widgets.WiziCore_UI_SingleSelectMobileWidget.extend({_widgetClass:"WiziCore_UI_ContextMenuMobileWidget",_oldVal:null,_popup:null,_select:null,_isContextMenuOpened:!1,_mainCnt:null,init:function(){this._super.apply(this,
arguments)},canBeAligned:function(){return!1},initProps:function(){this._super();this.wparent=this.normalProperty("wparent")},onRemove:function(){if(!this._checkRepeatBeforeRemove()){for(var c=0,e=b.length;c<e;c++){var d=b[c];if(d&&this.id()==d.id()){b.splice(c,1);break}}a(this.repeatCompatiblePage()).unbind(AC.Widgets.WiziCore_Api_Page.onPageLeft+"."+this.htmlId());if(this._popup)this._popup.unbind("popupafterclose."+this.htmlId()),this._popup.data("popup")&&this._popup.popup("close"),this._popup.remove(),
this._popup=null;if(this._select)this._select.remove(),this._select=null;if(this._mainCnt)this._mainCnt.remove(),this._mainCnt=null;this._isContextMenuOpened=!1}},checkClickEvent:function(a,b){var c=this.wparent();if(c&&(!c.uid?c:c.uid)==b.id())this.openMenu(),a.preventDefault(),a.stopImmediatePropagation()},draw:function(){var c=this;k&&k();this._mainCnt=a("<div style='width:100%; height:100%; position: relative;'></div>");this.base().append(this._mainCnt);this._super.apply(this,arguments);this.mode()==
WiziCore_Visualizer.EDITOR_MODE?this.base().css({display:"block","text-align":"center"}).text(AC.Core.lang().trText("m_widget_name_contextmenu")+" : "+this.name()):(b.push(this),a(this.repeatCompatiblePage()).bind(AC.Widgets.WiziCore_Api_Page.onPageLeft+"."+c.htmlId(),function(){if(c._isContextMenuOpened)c._isContextMenuOpened=!1,c._popup&&self._popup.data("popup")&&c._popup.popup("close")}))},openMenu:function(){if(this._isContextMenuOpened!=!0&&this.enable()&&(this.onPreShow(),this._popup))this._popup.data("popup")&&
this._popup.popup("open"),this._isContextMenuOpened=!0},_data:function(b){if(this.mode()!=WiziCore_Visualizer.EDITOR_MODE){this._popup!=g&&(this._popup.unbind("popupafterclose."+this.htmlId()),this._popup.data("popup")&&this._popup.popup("close"),this._popup.empty(),this._popup.remove());this._popup=a('<div data-role="popup"/>');var c=0,e=b?b.length:0,d=this;this._select=a("<ul data-inset='true'/>");this._popup.append(this._select);this._popup.bind("popupafterclose."+this.htmlId(),function(){d._isContextMenuOpened=
!1});if(b){if(this.usePaging()&&(e=this._getStartAndLength(e),c=e.i,e=e.l,this.mode()==WiziCore_Visualizer.EDITOR_MODE&&b[c]==g))e=this._getDefaultStartAndLength(b.length),c=e.i,e=e.l;for(;c<e;++c){var f=b[c][0]?b[c][0].replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&"):"";if(f==""||f==" ")f="&nbsp;";f=a("<li data-icon='false'><a href='#'>"+f+"</a></li>");f.data("optionValue",b[c]);f.data("pos",c);f.data("widget",this);this._select.append(f)}}this._select.delegate("li","vclick",function(b){var b=
a(b.currentTarget),c=b.data("widget");c&&c.enable()!==!1&&c.onItemSelected.call(c,b)});this._mainCnt.append(this._popup);this._isDrawn&&this._refresh();this.mode()!=WiziCore_Visualizer.EDITOR_MODE&&this.base().css({display:"none"})}},_refresh:function(){var a=this._getJQMOptions();this._popup.popup({transition:"none"});this._select.listview(a);this._updateEnable()},onPageDrawn:function(){this._super.apply(this,arguments);this._tabindex(this.tabindex())},onPreShow:function(){var b=new jQuery.Event(c.onPreShow);
a(this).trigger(b)},onItemSelected:function(b){var e=new jQuery.Event(c.onClick),d=this._isContextMenuOpened,b=b.data("pos");this._project.selectedIndex=b;this._popup&&this._popup.data("popup")&&this._popup.popup("close");this._isContextMenuOpened=!1;b!==""&&d===!0&&(d=this.data(),d=b!=null?{label:d[b][0],value:d[b][1],index:b}:null,a(this).trigger(e,[d]))},selectOption:function(){},getIndexByValue:function(a){var b=this.data(),c=null;if(b&&b.length>0)for(var e=0,d=b.length;e<d;e++)if(b[e][1]==a){c=
e;break}return c},getIndexByLabel:function(a){var b=null,c=this.data();if(c!=g)for(var e=c.length,d=0;d<e;++d)if(c[d][0]==a){b=d;break}return b},_applyValue:function(a){typeof a=="string"&&(a={value:a});a===null&&(a={index:-1});var b=a.index,c=a.value,a=a.label,e=this.data();if(e!=g){e=e!=g?e.length:0;if(b!=g&&(b>=e||b<-1))b=-1;b==g&&c!=g&&(c=this.getIndexByValue(c),b=c!=null?c:b);b==g&&a!=g&&(c=this.getIndexByLabel(a),b=c!=null?c:b);if(b!=g)this._project.selectedIndex=b,this._isDrawn&&this._data(this.data())}},
value:function(a){a=typeof a=="number"?a+"":a;a!==g&&(typeof a=="object"||typeof a=="string")&&this._applyValue(a);var a=null,b=this._project.selectedIndex,c=this.data();if(b==-1||b==null)b=0;c!=g&&(c=c[b],c!=g&&(a={index:b,value:c[1],label:c[0]}));return a},_label:function(){this._isDrawn&&this._data(this.data())},collectDataSchema:function(a){if(!this.isIncludedInSchema())return g;var b=this.dataType()||AC.Widgets.WiziCore_Api_Form.Type.STRING,b={label:this.name(),type:AC.Widgets.WiziCore_Api_Form.Kind.OBJECT,
structure:{value:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:b},label:{label:null,type:AC.Widgets.WiziCore_Api_Form.Kind.SIMPLE,structure:AC.Widgets.WiziCore_Api_Form.Type.STRING}},unique:this.isUnique()};this.mandatory()&&(b.mandatory=!0);return a[this.id()]=b},appendValueToDataObject:function(a,b,c){var e=this;return this._simpleDataObjectValue(a,c,function(a){a!=null?a={value:a.value,label:a.label}:e.mandatory()&&(b[e.id()]=!0);return a})},setValueFromDataObject:function(a,
b){this._setDataObjectValueSimple(a,function(a){typeof a=="object"&&"value"in a||(a={value:a});return a},b)},getDataFromMap:function(a,b){for(var c=[],e=a.length,d=0;d<e;d++){var f={},j;for(j in b){var k=b[j];k!=g&&(f[j]=AC.Widgets.Base.getDataItemWithMap(a[d],k))}c.push(f)}return c}});c.emptyProps=function(){return{bgColor:"#f7f7f7",fontColor:"black",font:"normal 12px verdana",border:"1px solid gray",selectedBg:"gray",selectedFont:"normal 12px verdan",selectedColor:"silver"}};c.defaultProps=function(){return{valName:"selectedItems",
x:"0",y:"0",pWidth:"100",height:"30px",width:"250px",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,data:[["Label","Value",""]],name:"contextMenu1",border:"",label:"Label",dragAndDrop:!1,resizing:!1,widgetStyle:"default",customCssClasses:"",opacity:1,currPage:1,elementsPerPage:WiziCore_Source_Widget_PagingAPI.DEFAULT_ELEMENTS_PER_PAGE,usePaging:!1}};c.inlineEditPropName=function(){return"data"};var e=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,
AC.Property.general.name,AC.Property.general.dataWithValue,{name:"action",type:"idwidgetlist",set:"wparent",get:"wparent",alias:"widget_parent"}]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.enable]},{name:AC.Property.group_names.style,props:[AC.Property.style.mobileTheme,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];c.props=function(){return e};c.valuePropName=g;c.isField=function(){return!0};c.onClick="E#WiziCore_UI_ContextMenuMobileWidget#onClick";c.onPreShow=
"E#WiziCore_UI_ContextMenuMobileWidget#onPreShow";c.actions=function(){return{onClick:{alias:"widget_event_onclick",funcview:"onClick",action:"AC.Widgets.WiziCore_UI_ContextMenuMobileWidget.onClick",params:"value",group:"widget_event_general"},onPreShow:{alias:"widget_event_onpreshow",funcview:"onPreShow",action:"AC.Widgets.WiziCore_UI_ContextMenuMobileWidget.onPreShow",params:"",group:"widget_event_general"}}}})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.WiziCore_UI_CollapsibleMobileWidget=AC.Widgets.WiziCore_UI_PanelContainerWidget.extend({_widgetClass:"WiziCore_UI_CollapsibleMobileWidget",_childrenDiv:null,_template:'<div data-collapsed="true" class="m-ui-collapsible-contain">\n    <h3 class="m-ui-collapsible-heading">\n        <a class="m-ui-collapsible-heading-toggle m-ui-btn m-ui-btn-icon-left m-ui-shadow m-ui-corner-all m-ui-btn-up-c ac-collapsible-theme" href="javascript:void(0)">\n            <span class="m-ui-btn-inner m-ui-corner-all">\n                <span class="m-ui-btn-text ac-collapsible-heading"></span>\n                <span class="m-ui-btn m-ui-btn-up-d m-ui-btn-icon-left m-ui-btn-corner-all m-ui-shadow ac-collapsible-buttontheme">\n                    <span class="m-ui-btn-inner m-ui-btn-corner-all m-ui-corner-all">\n                        <span class="m-ui-btn-text"></span>\n                        <span class="m-ui-icon m-ui-icon-shadow m-ui-icon-minus ac-collapsible-icon" ></span>\n                    </span>\n                </span>\n            </span>\n        </a>\n    </h3>\n\n    <div class="m-ui-collapsible-content ac-collapsible-content" aria-hidden="false">\n\n    </div>\n</div>',
init:function(){this._super.apply(this,arguments);var a=this.children();a.length!=0?a=a[0]:(a=this.addNewWidget({widgetClass:"WiziCore_Widget_Container",project:AC.Core.Widgets().getDefaultWidgetProperties("WiziCore_Widget_Container")}),a.prop({width:10,pWidth:100,height:100,x:0,y:0,layout:"vertical"}));a.isDraggable=this;a.isEditable=!1},_updateLayout:function(){this._super.apply(this,arguments);this._tableBase.css("min-height","47px");this._tableBase.css("padding-right","3px")},layoutEx:function(){return"vertical"},
createChild:function(){var a=this._super.apply(this,arguments);a.isDraggable=this;a.isEditable=!1;a.isResizable=!0;a._manualDrawPosition=!1;return a},initProps:function(){this._super();this.mobileTheme=this.themeProperty("mobileTheme",this._mobileTheme);this.highlightExpanded=this.themeProperty("highlightExpanded",this._highlightExpanded);this.title=this.htmlLngPropertyBeforeSet("title",this._beforeTitle,this._title);this.open=this.htmlProperty("open",this._open)},_onInitLanguage:function(){this.title(this.title())},
_onSTUpdated:function(){this._title(this._project.title)},draw:function(){var b=a("<div></div>");b.append(this._template);this._headingObj=b.find(".ac-collapsible-heading");this._content=b.find(".ac-collapsible-content");this._theme=b.find(".ac-collapsible-theme");this._collapsibleHeading=b.find(".m-ui-collapsible-heading");this._collapsibleContain=b.find(".m-ui-collapsible-contain");this._childrenDiv=b;this.base().append(b);this._attachEvents();this._super.apply(this,arguments)},_attachEvents:function(){var b=
this,c=this.mode()==WiziCore_Visualizer.EDITOR_MODE?"click":"vclick";this._collapsibleContain.bind("collapse",function(c){!c.isDefaultPrevented()&&a(c.target).closest(".m-ui-collapsible-contain").is(b._collapsibleContain)&&(c.preventDefault(),b._collapsibleHeading.addClass("m-ui-collapsible-heading-collapsed").find(".m-ui-collapsible-heading-status").end().find(".m-ui-icon").removeClass("m-ui-icon-minus").addClass("m-ui-icon-plus"),b._content.addClass("m-ui-collapsible-content-collapsed").attr("aria-hidden",
!0),b._collapsibleContain.jqmData("collapsible-last")&&b._collapsibleHeading.find("a:eq(0), .ui-btn-inner").addClass("ui-corner-bottom"),b._highlightExpanded(b.highlightExpanded()));if(b.children().length!=0)b.children()[0].onParentVisibleChanged(!1);b._project.open=!1}).bind("expand",function(a){if(!a.isDefaultPrevented()){a.preventDefault();b._collapsibleHeading.removeClass("m-ui-collapsible-heading-collapsed").find(".m-ui-collapsible-heading-status");b._collapsibleHeading.find(".m-ui-icon").removeClass("m-ui-icon-plus").addClass("m-ui-icon-minus");
b._content.removeClass("m-ui-collapsible-content-collapsed").attr("aria-hidden",!1);b._collapsibleContain.jqmData("collapsible-last")&&b._collapsibleHeading.find("a:eq(0), .m-ui-btn-inner").removeClass("m-ui-corner-bottom");b._highlightExpanded(b.highlightExpanded());if(b.children().length!=0)b.children()[0].onParentVisibleChanged(!0);b._project.open=!0}}).trigger(!this.open()?"collapse":"expand");b._collapsibleHeading.bind(c,function(c){if(!a(this).hasClass("ui-state-disabled")){var d=b._collapsibleHeading.is(".m-ui-collapsible-heading-collapsed")?
"expand":"collapse";b.onStateChange(d=="expand")!==!1&&(b._collapsibleContain.trigger(d),c.preventDefault())}})},_enable:function(a){this._collapsibleHeading&&(a===!1?(this._collapsibleHeading.addClass("ui-state-disabled"),this._collapsibleHeading.find(".m-ui-btn").css("cursor","default")):(this._collapsibleHeading.removeClass("ui-state-disabled"),this._collapsibleHeading.find(".m-ui-btn").css("cursor","")))},_highlightExpanded:function(a){var c=this.mobileTheme(),e="m-ui-btn-up-"+c,c="m-ui-btn-active-"+
c;this._theme.removeClass(e+" "+c);a&&!this._collapsibleHeading.is(".m-ui-collapsible-heading-collapsed")?this._theme.addClass(c):this._theme.addClass(e)},onStateChange:function(b){var c=new a.Event(f.onStateChange);a(this).trigger(c,[b]);return!c.isPropagationStopped()},_redraw:function(){this._super.apply(this,arguments)},_mobileTheme:function(a){this._theme.removeClass(function(a,b){return(b.match(/m-ui-btn-(up|active)-\w/g)||[]).join(" ")}).addClass("m-ui-btn-up-"+a);this._highlightExpanded(this.highlightExpanded())},
_beforeTitle:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var c=WiziCore_Helper.isLngToken(a),e=c?a:"ac-"+this.id();c||this.form().addTokenToStringTable(this.id(),this.name(),e,a);return e}else return a},checkEmptyLabel:function(a){if(a==g||a.trim&&a.trim()=="")a="&nbsp;";return a},_title:function(a){this._headingObj.html(this.checkEmptyLabel(this.getTrValueAddLngAttr(a,this._headingObj)))},_open:function(a){this._collapsibleContain.trigger(!a?"collapse":"expand")},
drawChildren:function(){for(var a=this.children(),c=0,e=a.length;c<e;c++)a[c].draw(this._content)},_getJQMOptions:function(){return{theme:this.mobileTheme()}},initDomState:function(){this._super();this._mobileTheme(this.mobileTheme());this._title(this._project.title)},onPageDrawn:function(){this.mode()==WiziCore_Visualizer.RUN_MODE&&this.base().css("overflow","visible");this._super.apply(this,arguments)},currentContainer:function(){return this.children()[0]}}),k=[{name:AC.Property.group_names.general,
props:[AC.Property.general.widgetClass,AC.Property.general.name,{name:"title",type:"text",set:"title",get:"title",alias:"widget_title"},{name:"open",type:"boolean",set:"open",get:"open",alias:"widget_open"}]},{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.alignInContainer,AC.Property.layout.repeat]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,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.mobileTheme,{name:"highlightExpanded",type:"boolean",set:"highlightExpanded",get:"highlightExpanded",alias:"widget_highlightExpanded"},AC.Property.general.displayHourglassOver,AC.Property.general.hourglassImage,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};
f.onStateChange="E#SingleSelectMobile#onChange";f.actions=function(){return{onStateChange:{alias:"widget_event_onstatechange",funcview:"onStateChange",action:"AC.Widgets.WiziCore_UI_CollapsibleMobileWidget.onStateChange",params:"isExpanded",group:"widget_event_general"}}};f.capabilities=function(){return{defaultProps:{width:"250",height:"47",x:"0",y:"0",widgetClass:"WiziCore_UI_CollapsibleMobileWidget",name:"Collapsible",opacity:1,zindex:"auto",enable:!0,visible:!0,widgetStyle:"default",anchors:{left:!0,
top:!0,bottom:!1,right:!1},centered:!1,readonly:!1,margin:"",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",dragAndDrop:!1,layout:"absolute",mobileTheme:"a",title:"Heading",open:!1,highlightExpanded:!1},emptyProps:{borderRadius:"0"},props:f.props(),isField:!1,containerType:AC.Widgets.Base.CASE_TYPE_COMPOSITE_CONTAINER}}})(jQuery,window,document);
(function(a){var d=AC.Widgets.WiziCore_UI_AuthButtonMobileWidget=AC.Widgets.WiziCore_UI_ButtonMobileWidget.extend(a.extend({},WiziCore_SignInUp,{_widgetClass:"WiziCore_UI_AuthButtonMobileWidget",_theme:"c",init:function(){this._super.apply(this,arguments)},draw:function(){this._super.apply(this,arguments)},initProps:function(){this._super();this.fieldFixData("nameField");this.fieldFixData("captchaField");this.fieldFixData("confirmInfo");this.fieldFixData("confirmField");this.fieldFixData("loginField");
this.fieldFixData("passwordField");this.rememberMe=this.normalPropBeforeSet("rememberMe",this._rememberMe);this.defaultForm=this.normalPropBeforeSet("defaultForm",this._defaultForm);this.minChars=this.normalPropBeforeSet("minChars",this._minChars);this.confirmColors=this.normalProperty("confirmColors");this.action=this.normalProperty("action")},_minChars:function(a){return parseInt(a)},fieldFixData:function(a){var d=this;this[a]=function(j){var b=d.normalPropBeforeSet(a,d.getUidWidgetFromObjectChooser).apply(d,
arguments);return b=d.getUidWidgetFromObjectChooser(b)}},_rememberMe:function(a){return this.getUidWidgetFromObjectChooser(a)},_defaultForm:function(a){return this.getUidWidgetFromObjectChooser(a)},onClick:function(d){this._updateButtonViewOnClick();var f=this,j=this.form(),b=f.action();setTimeout(function(){var c=new jQuery.Event(AC.Widgets.Base.onClick);a(f).trigger(c,[d]);!c.isPropagationStopped()&&!j.isDestroyed()&&(b=="signup"?f.signUpClick():f.signInClick());d.stopPropagation()},30)}}));d.inlineEditPropName=
function(){return"label"};d.actions=function(){var g={onFailed:{alias:"widget_event_auth_failure",funcview:"onFailure",action:"AC.Widgets.WiziCore_UI_AuthButtonMobileWidget.onFailed",params:"message",group:"widget_event_auth"},onSuccess:{alias:"widget_event_auth_success",funcview:"onSuccess",action:"AC.Widgets.WiziCore_UI_AuthButtonMobileWidget.onSuccess",params:"userId",group:"widget_event_auth"}};a.extend({},AC.Widgets.Base.actions(),g);d.actions=function(){return g};return g};d.onSessionFullLogin=
WiziCore_SignInUp.onSessionFullLogin;d.onFailed=WiziCore_SignInUp.onFailedEv;d.onSuccess=WiziCore_SignInUp.onSuccessEv;var j=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.label,{name:"action",type:"authAction",set:"action",get:"action",alias:"widget_action"},AC.Property.general.loginField,AC.Property.general.passwordField,AC.Property.general.nameField,AC.Property.general.minChars,AC.Property.general.confirmField,AC.Property.general.confirmColors,
AC.Property.general.confirmInfo,AC.Property.general.captchaField,AC.Property.general.rememberMe,AC.Property.general.defaultForm]},{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.tabindex,AC.Property.layout.tabStop,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.margin,AC.Property.style.mobileTheme,AC.Property.style.mobileButtonIcon,AC.Property.style.mobileButtonIconPos,AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];
d.props=function(){return j};d.defaultProps=function(){return{x:"0",y:"0",width:"150",height:"55",zindex:"auto",content:"Log In",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},name:"authBtn",visible:!0,widgetStyle:"default",customCssClasses:"",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,isField:!1,pWidth:"",margin:"",alignInContainer:"left",mobileTheme:"c",icon:"none",iconPosition:"left",action:"signin"}}})(jQuery,window,document);
(function(a){var d=AC.Widgets.WiziCore_UI_LabelMobileWidget=AC.Widgets.WiziCore_UI_BaseMobileWidget.extend(a.extend({},WiziCore_WidgetAbstract_DataIntegrationSimple,WiziCore_Methods_Widget_ActionClick,{_labelDiv:null,_widgetClass:"WiziCore_UI_LabelMobileWidget",_dataPropName:"label",init:function(){this._super.apply(this,arguments)},draw:function(){this._link=a("<a></a>").css({color:"black","text-decoration":"none"});this._labelDiv=a("<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._super.apply(this,arguments)},_redraw:function(){this._labelDiv.attr("data-theme",this._getJQMOptions().theme);this._labelDiv.attr("class","m-ui-label-"+this._getJQMOptions().theme)},onClick:function(d){var f=new jQuery.Event(AC.Widgets.WiziCore_Widget_Base.onClick),j=this.pageJump(),b=this.form();acDebugger.systemLog("triggerEvent",f,"self.id()",this.id());a(this).trigger(f,[d]);!f.isPropagationStopped()&&
this.onActionClick(d,j,b);d.stopPropagation()},initProps:function(){this._super();var a=this;this.font=this.themeProperty("font",this._font);this.pageJump=this.normalProperty("pageJump");this.value=this.label=this.htmlLngPropertyBeforeSet("label",this._beforeLabel,this._label);this.fontColor=this.themeProperty("fontColor",function(){a._fontColor.apply(a,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.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");this.wrapText=this.normalProperty("wrapText",this._wrapText);this.link=this.normalProperty("link",this._updateLink)},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._fontColor(this.fontColor());this._lineHeight(this.lineHeight());
this._letterSpacing(this.letterSpacing());this._textAlign(this.textAlign());this._updateLink(this.link())},_updateLayout:function(){this._super();(!this.pWidth()||this.parent().getLayoutType()=="absolute")&&this.tableBase().css("width",this.width())},_fontColor:function(a){this._super(a,this._labelDiv)},_textAlign:function(a){this._super(a,this._labelDiv)},_onInitLanguage:function(){this.label(this.label())},_onLanguageChanged:function(){this._label(this._project.label)},_onSTUpdated:function(){this._label(this._project.label)},
_beforeLabel:function(a){if(this.form().language()!=null&&!this.form()._skipTokenCreation){var d=WiziCore_Helper.isLngToken(a),j=d?a:"ac-"+this.id();d||this.form().addTokenToStringTable(this.id(),this.name(),j,a);return j}else return a},_label:function(a){this._labelDiv&&(a=WiziCore_Helper.isLngToken(a)?this._getTranslatedValue(a):a,a===null&&(a=""),this._labelDiv.html(a),this._wrapText(this.wrapText()),this._hrefColor(this.hrefColor()))},_wrapText:function(a){if(a){var d=this.label();a==="a"?d="<"+
a+" href='#' style='color: #7cc4e7; padding: 0; margin: 0'>"+d+"</"+a+">":a!=="none"&&(d="<"+a+" style='padding: 0; margin: 0'>"+d+"</"+a+">");this._labelDiv.html(d)}},_enable:function(a){a===!1?this._labelDiv.addClass("ui-state-disabled"):this._labelDiv.removeClass("ui-state-disabled")},selectInlineProp:function(a){a=a[0];WiziCore_Helper.labelTextCheck(this[a]());return a},_lineHeight:function(a){this._labelDiv.css("line-height",a==""?a:a+"px")},_letterSpacing:function(a){this._labelDiv.css("letter-spacing",
a==""?a:a+"px")},getDataModel:function(){return this._labelDataModel()},appendValueToDataObject:function(a,d,j,b){return!b?void 0:this._simpleDataObjectValue(a,j)},isBindableToData:function(){return!0}})),j=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,AC.Property.general.wrapText,AC.Property.general.label,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.paragraphSpacing,AC.Property.style.margin,AC.Property.style.mobileTheme,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle,AC.Property.general.displayHourglassOver,
AC.Property.general.hourglassImage]}];d.props=function(){return j};d.actions=function(){var g={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"}},g=a.extend(AC.Widgets.Base.actions(),g);d.actions=function(){return g};return g};d.capabilities=function(){return{actions:d.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:"labelmobile1",alignInContainer:"left",textAlign:"Left",action:"none",hourglassImage:"Default",displayHourglassOver:"inherit",customCssClasses:"",relationId:null,addLink:"Add",dragAndDrop:!1,resizing:!1,target:"Same",wrapText:"none",mobileTheme:"c"},inlineEditPropName:{props:["label","htmlText"]},emptyProps:{bgColor:"",
fontColor:"",font:"",letterSpacing:"",lineHeight:""},isField:!0,props:d.props(),containerType:AC.Widgets.Base.CASE_TYPE_ITEM}}})(jQuery,window,document);
(function(a,d,j,g){var f=WiziCore_UI_SearchMobileWidget=AC.Widgets.WiziCore_UI_SearchMobileWidget=AC.Widgets.WiziCore_UI_SearchMobileWidget=AC.Widgets.SearchMobile=function(){this.init.apply(this,arguments)};AC.extend(f,AC.Widgets.TextMobile);d=f.prototype;d._widgetClass="SearchMobile";d._input=null;d._dataPropName="text";d._valueDefaultPropName="text";d.init=function(){f._sc.init.apply(this,arguments)};d._text=function(a){var c=this.base().find("input[type='search']");a!==g&&a.length!=0&&c.val(a);
return c.val()};d._redraw=function(){f._sc._redraw.apply(this,arguments);WiziCore_Helper.isAndroid()?(this._input.css({"padding-left":"0px","padding-right":"0px",margin:"0px"}),this._input.parent().css({padding:"0px 30px",margin:"0px",overflow:"hidden"})):(this._input.css({"padding-left":"0px","padding-right":"0px",margin:"0px","margin-left":"30px"}),this._input.css({width:"100%"}),this._input.parent().css({padding:"0px",margin:"0px",overflow:"hidden"}));this._input.unbind("change.custom").bind("change.custom",
{self:this},this.onChangeText);this._updateWidthOfInput();this._updateSize()};d.onPageDrawn=function(){f._sc.onPageDrawn.apply(this,arguments);this._updateSize();this._text(this.text())};d.getDataModel=function(){return[{name:"value",value:"",uid:"valueuid"}]};d.mobileTextType=function(){return"search"};d._updateSize=function(){this._input&&this._input.css("min-height",this.height()-15)};d._shadow=function(a){f._sc._shadow.call(this,a,this._input.parent())};d._updateWidthOfInput=function(){var a=
this._input;a&&(a.parent().css("padding-right","0px"),this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?(a.width(this.width()-30),a.css("padding-right",WiziCore_Helper.isFirefox()?"30px":"12px")):(a.css("padding-right",WiziCore_Helper.isFirefox()?"56px":"42px"),a.parent().css({"margin-right":"0px"}),WiziCore_Helper.isAndroid()?a.width("94%"):a.width("100%")))};d._updateLayout=function(){f._sc._updateLayout.apply(this,arguments);this._redraw()};d.onChangeText=function(b){var b=
b.data.self,c=new a.Event(AC.Widgets.WiziCore_UI_TextMobileWidget.onChange),e=b._project.text,d=b._text();if(e!=d)a(b).trigger(c,[d,e]),c.isPropagationStopped()?b._text(e):(b._project.text=d,c=b.liketype(),e="",e+=c=="Right"||c=="Both"?"%":"",d=b.value().replace(/[%_\\]/g,"\\$&"),e+=d,e+=c=="Left"||c=="Both"?"%":"",b.mode()==WiziCore_Visualizer.RUN_MODE&&b.sendDrillDown(e))};d.sendDrillDown=function(a){if(this._request!==null){var c=this.field();c.match(/\w+\([^)]*\)/)==null&&c.match(/^\s*{/)==null&&
c.match(/}\s*$/)==null&&(c="{"+c+"}");a=["(UPPER("+c+")) LIKE (UPPER('"+a+"'))"];this._request.drillDown(this.id(),a,this.resetfilter())}};d.isBindableToData=function(){return!0};d.field=AC.Property.normal("field");d.liketype=AC.Property.normal("liketype");f.actions=function(){var b=a.extend(AC.Widgets.WiziCore_UI_TextMobileWidget.actions(),{});f.actions=function(){return b};return b};f.inlineEditPropName=function(){return"text"};var k=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,
AC.Property.general.name,AC.Property.general.text,AC.Property.general.maxChars,AC.Property.general.placeholderText]},{name:AC.Property.group_names.layout,props:[AC.Property.layout.pWidthHidden,AC.Property.layout.widthHidden,AC.Property.layout.heightHidden,AC.Property.layout.sizes,AC.Property.layout.minWidth,AC.Property.layout.maxWidth,AC.Property.layout.x,AC.Property.layout.y,AC.Property.layout.zindex,AC.Property.layout.tabindex,AC.Property.layout.tabStop,AC.Property.layout.anchors,AC.Property.layout.alignInContainer,
AC.Property.layout.repeat]},{name:AC.Property.group_names.behavior,props:[AC.Property.behavior.dragAndDrop,AC.Property.behavior.resizing,AC.Property.behavior.visible,AC.Property.behavior.enable,AC.Property.behavior.readonly]},{name:AC.Property.group_names.data,props:[AC.Property.data.view,AC.Property.data.resetfilter,AC.Property.data.field,AC.Property.data.liketype,AC.Property.data.autoLoad]},{name:AC.Property.group_names.style,props:[AC.Property.behavior.opacity,AC.Property.style.margin,AC.Property.style.mobileTheme,
AC.Property.general.displayHourglassOver,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}];f.props=function(){return k};f.emptyProps=function(){return{}};f.defaultProps=function(){return{valName:"currText",text:"",x:"0",y:"0",width:"150",height:"30",zindex:"auto",readonly:!1,enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,name:"search1",opacity:1,customCssClasses:"",textAlign:"Left",label:"Label",displayHourglassOver:"inherit",dragAndDrop:!1,resizing:!1,alignInContainer:"left",
liketype:"Left",placeholderText:"",margin:"",mobileTheme:"c"}};f.isField=function(){return!0}})(jQuery,window,document);
(function(a,d,j,g){function f(a){var b=null;if(a){var c=a.search(/[dD]/),d=a.search(/[mM]/),a=a.search(/[yY]/),b=[];b[c]="dd";b[d]="mm";b[a]="y";b=b.join("")}return b}var k=AC.Widgets.Mobiscroll=function(){this.init.apply(this,arguments)};AC.extend(k,AC.Widgets.WiziCore_UI_BaseMobileWidget);d=k.prototype;AC.copyExtension(d,WiziCore_WidgetAbstract_DataIntegrationSimple);d._widgetClass="Mobiscroll";d._input=null;d._dataPropName="dateValue";d._valueDefaultPropName="dateValue";d._currentDateValue=null;
d._isDateSelected=!1;d.init=function(){k._sc.init.apply(this,arguments)};d.initProject=function(a){k._sc.initProject.apply(this,arguments);if(this._currentDateValue=this._project.dateValue?new Date(this._project.dateValue):null)this._isDateSelected=!0};d.project=function(a){var b=k._sc.project.apply(this,arguments);this._currentDateValue&&(b.dateValue=this._currentDateValue.toString());return b};d.draw=function(){var b=a("<div>");this.base().append(b);this._cnt=b;k._sc.draw.apply(this,arguments)};
d._redraw=function(){this._cnt.empty();var b=a("<div data-role='fieldcontain'/>");this._div=b;var c=this.htmlId(),d=a("<input type='text' class='mobiscroll' />");this._input=d;d.attr("id",c+"_mobiscroll");d.attr("name",c+"_mobiscroll");d.css("width","100%");c=a("<div>");d.css("margin","0 auto");c.append(d);b.append(c);this._cnt.prepend(b);d.textinput(this._getJQMOptions());var g=this,b=this.ampm()?"hh:ii A":"HH:ii",c=this.ampm()?"hhiiA":"HHii",j=f(this.dateFormat());d.scroller({preset:this.preset(),
timeWheels:c,timeFormat:b,mode:this.scrollerMode(),theme:this.scrollerTheme(),dateFormat:this.dateFormat(),onSelect:function(){g._onMobiscrollSelect()}});j!=null&&d.scroller("option",{dateOrder:j});this._updateYear(null);this._updateEnable();this._updateWidthOfInput();this._dateValue(this._currentDateValue);a(this).trigger(new a.Event(AC.Widgets.Mobiscroll.onInit))};d.clearData=function(){this._currentDateValue=null;this._isDateSelected=!1;this._input&&this._input.val("")};d._shadow=function(a){k._sc._shadow.apply(this,
[a,this._input])};d._updateWidthOfInput=function(){var a=this._input;a&&(this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?a.width(this.width()):a.width("100%"))};d.onContainerChangeLayout=function(){this._updateWidthOfInput()};d.onDestroy=function(){this._input&&this._input.scroller("destroy")};d.initDomState=function(){k._sc.initDomState.call(this);this.initDomStatePos();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._dateValue(this._currentDateValue)};
d._onMobiscrollSelect=function(){this._isDateSelected=!0;this._currentDateValue=this._input.scroller("getDate");a(this).trigger(AC.Widgets.Mobiscroll.onSelectValue,[this._currentDateValue])};d.dateValue=function(a){a!==g&&(a==null||a==""?this.clearData():this._dateValue(a));return this._isDrawn&&this._input&&this._isDateSelected?this._input.scroller("getDate"):this._currentDateValue};d._dateValue=function(a){if(a!=g){var b;typeof a=="string"&&(b=WiziCore_Helper.dateStrToJsDate(a));typeof a=="object"&&
typeof a.getTime=="function"&&(b=a);if(b&&!isNaN(b.getTime()))this._isDateSelected=!0,this._isDrawn||this._input?(this._input.scroller("setDate",b,!0),this._currentDateValue=this._input.scroller("getDate")):this._currentDateValue=b}};d._enable=function(a){this._input&&(a=a===!0?"enable":"disable",this._input.scroller(a),this._input.textinput(a))};d._preset=function(a){if(a!=g&&this._input){var b=f(a);b!=null&&this._input.scroller("option",{dateOrder:b});this._input.scroller("option",{preset:a});this._dateValue(this._currentDateValue)}};
d._ampm=function(a){a!=g&&this._input&&(a=a===!0?"hh:ii A":"HH:ii",this._input.scroller("option",{timeWheels:this.ampm()?"hhiiA":"HHii",timeFormat:a}),this._dateValue(this._currentDateValue))};d._scrollerMode=function(a){a!=g&&this._input&&this._input.scroller("option",{mode:a})};d._scrollerTheme=function(a){a!=g&&this._input&&this._input.scroller("option",{theme:a})};d._dateFormat=function(a){a!=g&&this._input&&(this._input.scroller("option",{dateFormat:a}),this._dateValue(this._currentDateValue))};
d._updateYear=function(){var a=this.yearsToShow(),b=this.yearToStart();a!=g&&b!=g&&this._input&&(b=b!="mid"?Math.min((new Date).getFullYear()+parseInt(b)+a,(new Date).getFullYear()+parseInt(b))+(a<0?1:0):(new Date).getFullYear()-Math.floor((Math.abs(a)-1)/2)-(a<0&&a%2==0?1:0),a=b+Math.abs(a)-1,this._input.scroller("option",{startYear:b,endYear:a}))};d.getMobiscrollObject=function(){return this._input};d.appendValueToDataObject=function(a,b,c){var d=this;return this._simpleDataObjectValue(a,c,function(a){if(a==
null)return d.mandatory()&&(b[d.id()]=!0),null;var c,e,f;c=d.preset();e=d.dateTimezone();f=c in{datetime:1,time:2};return WiziCore_Helper.isoDateString(d.form(),a,f,c=="datetime",e)})};d.collectDataSchema=function(a){return this.isIncludedInSchema()?this._simpleConstDataSchema(AC.Widgets.WiziCore_Api_Form.Type.DATE,a):null};d.setValueFromDataObject=function(a,b){var c=this;this._setDataObjectValueSimple(a,function(a){var b,e;if(!(a!=g&&typeof a=="string"))return c.resetValue(),g;b=c.preset()=="datetime"||
c.preset()=="time";e=c.dateTimezone();return WiziCore_Helper.parseUTCISO8601(c.form(),a,b,e)},b)};d.isBindableToData=function(){return!0};d.rdbValueDataModel=function(){return null};d._rdbValueToValue=function(a){var b=typeof a=="object"&&typeof a.getTime=="function";return!(a!=g&&(typeof a=="string"||typeof a=="object"&&typeof a.getTime=="function"))?null:b?a:WiziCore_Helper.mysqlTimeStampToDate(a)};d.rdbValue=function(a){if(a!==g)return this._dateValue(this._rdbValueToValue(a)),g;else if(this.value()!=
null)return WiziCore_Helper.dateToMysqlTimeStamp(this.value())};d.getDataModel=function(){return[{name:"value",value:"",uid:"valueuid"}]};d.isIncludedInSchema=AC.Property.normal("isIncludedInSchema",d._updateStorageFlag);d.dataType=AC.Property.normal("dataType");d.isUnique=AC.Property.normal("isUnique");d.mandatory=AC.Property.normal("mandatory");d.value=d.dateValue;d.preset=AC.Property.html("preset",d._preset);d.ampm=AC.Property.html("ampm",d._ampm);d.scrollerMode=AC.Property.html("scrollerMode",
d._scrollerMode);d.scrollerTheme=AC.Property.html("scrollerTheme",d._scrollerTheme);d.enable=AC.Property.html("enable",d._enable);d.visible=AC.Property.html("visible",d._visible);d.opacity=AC.Property.theme("opacity",d._opacity);d.view=AC.Property.normal("view");d.fields=AC.Property.normal("fields");d.groupby=AC.Property.normal("groupby");d.orderby=AC.Property.normal("orderby");d.filter=AC.Property.normal("filter");d.resetfilter=AC.Property.normal("resetfilter");d.listenview=AC.Property.normal("listenview");
d.applyview=AC.Property.normal("applyview");d.onview=AC.Property.normal("onview");d.dateTimezone=AC.Property.normal("dateTimezone");d.dateFormat=AC.Property.html("dateFormat",d._dateFormat);d.yearsToShow=AC.Property.normal("yearsToShow",d._updateYear);d.yearToStart=AC.Property.normal("yearToStart",d._updateYear);k.onSelectValue="E#Mobiscroll#onSelectValue";k.onInit="E#Mobiscroll#onInit";k.actions=function(){var b={onSelectValue:{alias:"widget_event_onselectionchange",funcview:"onSelectionChange",
action:"AC.Widgets.Mobiscroll.onSelectValue",params:"value",group:"widget_event_general"},onInit:{alias:"widget_mobiscroll_oninit",funcview:"onInit",action:"AC.Widgets.Mobiscroll.onInit",params:"",group:"widget_event_general"}};return b=a.extend(AC.Widgets.Base.actions(),b)};k.inlineEditPropName=function(){return"dateTime"};var b=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,{name:"preset",type:"mobiscrollpreset",set:"preset",get:"preset",alias:"widget_mobiscroll_preset"},
{name:"ampm",type:"boolean",set:"ampm",get:"ampm",alias:"widget_mobiscroll_ampm"},{name:"scrollerMode",type:"mobiscrollMode",set:"scrollerMode",get:"scrollerMode",alias:"widget_mobiscroll_mode"},{name:"scrollerTheme",type:"mobiscrollTheme",set:"scrollerTheme",get:"scrollerTheme",alias:"widget_mobiscroll_theme"},{name:"yearsToShow",type:"int",set:"yearsToShow",get:"yearsToShow",alias:"mobiscroll_yearsToShow"},{name:"yearToStart",type:"yearToShow",set:"yearToStart",get:"yearToStart",alias:"mobiscroll_yearToStart"}]},
{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.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.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,AC.Property.behavior.dateTimezone,AC.Property.behavior.dateFormat]},{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.margin,AC.Property.style.mobileTheme,AC.Property.style.customCssClasses,AC.Property.style.widgetStyle]}],c={en:{widget_name_mobiscroll:"Mobiscroll Date",widget_mobiscroll_preset:"Source",prop_mobiscroll_preset_date:"Date",prop_mobiscroll_preset_time:"Time",prop_mobiscroll_preset_date_time:"DateTime",widget_mobiscroll_ampm:"AMPM",widget_mobiscroll_mode:"Mode",widget_mobiscroll_theme:"Scroller Theme",
prop_mobiscroll_mode_scroller:"Scroller",prop_mobiscroll_mode_clickpick:"ClickPick",prop_mobiscroll_theme_default:"Default",prop_mobiscroll_theme_android_ics:"Android ICS",prop_mobiscroll_theme_android_ics_light:"Android ICS Light",prop_mobiscroll_theme_android:"Android",prop_mobiscroll_theme_sense_ui:"Sense UI",prop_mobiscroll_theme_ios:"iOS",mobiscroll_yearsToShow:"Years To Show",mobiscroll_yearToStart:"Year To Start",widget_mobiscroll_oninit:"OnInit"}};k.props=function(){return b};k.emptyProps=
function(){return{}};k.langs=function(){return c};k.defaultProps=function(){return{x:"0",y:"0",width:"210",height:"35",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,name:"mobiscroll1",opacity:1,customCssClasses:"",widgetStyle:"default",dragAndDrop:!1,resizing:!1,alignInContainer:"left",mobileTheme:"c",margin:"",preset:"date",dateTimezone:"local",ampm:!0,scrollerMode:"scroller",scrollerTheme:"default",dateFormat:"mm/dd/yy",yearsToShow:3,yearToStart:"0"}};k.isField=
function(){return!0};AC.Core.lang().registerWidgetLang(c)})(jQuery,window,document);
(function(a,d,j,g){var f=AC.Widgets.MobiscrollList=function(){this.init.apply(this,arguments)};AC.extend(f,AC.Widgets.WiziCore_UI_BaseMobileWidget);d=f.prototype;AC.copyExtension(d,AC.WidgetExt.DataIntegration.MultyColumnList);d._widgetClass="MobiscrollList";d._input=null;d._dataPropName="data";d._stopDropValue=!1;d.init=function(){f._sc.init.apply(this,arguments)};d._onInitLanguage=function(){this._stopDropValue=!0;this.data(this.data());this._stopDropValue=!1};d._onSTUpdated=function(){this._data(this._project.data)};
d.draw=function(){var b=a("<div>");this.base().append(b);this._cnt=b;f._sc.draw.apply(this,arguments)};d._redraw=function(){this._cnt.empty();var b=a("<div data-role='fieldcontain'/>");this._div=b;var e=this.htmlId(),d=a("<input type='text' class='mobiscrollList' />");this._input=d;d.attr("id",e+"_mobiscrollList");d.attr("name",e+"_mobiscrollList");d.css("width","100%");e=a("<div>");d.css("margin","0 auto");e.append(d);b.append(e);this._cnt.prepend(b);d.textinput(this._getJQMOptions());var f=this;
d.scroller({mode:this.scrollerMode(),theme:this.scrollerTheme(),headerText:!1,showLabel:!1,onSelect:function(){f._onMobiscrollListSelect()}});this._updateEnable();this._updateWidthOfInput();this._data(this._project.data);a(this).trigger(new a.Event(AC.Widgets.MobiscrollList.onInit))};d.resetValue=function(){this.value([])};d._shadow=function(a){f._sc._shadow.apply(this,[a,this._input])};d._updateWidthOfInput=function(){var a=this._input;a&&(this.getContainerLayoutType()==WiziCore_Widget_Layout.LAYOUT_TYPES.Absolute?
a.width(this.width()):a.width("100%"))};d.onContainerChangeLayout=function(){this._updateWidthOfInput()};d.onDestroy=function(){this._input&&this._input.scroller("destroy")};d.initDomState=function(){f._sc.initDomState.call(this);this.initDomStatePos();this._updateEnable();this._visible(this.visible());this._opacity(this.opacity());this._data(this._project.data)};d._onMobiscrollListSelect=function(){a(this).trigger(AC.Widgets.MobiscrollList.onSelectValue,[this._input.scroller("getValue")]);this.sendDrillDown(this._input.scroller("getValue"))};
d.items=function(b){var d,f,j,k,t,m,o,p,n;if(b!=g){if(a.isArray(b)){t=[];m=[];for(d=0,f=b.length;d<f;d++)if(n=b[d],t[d]=[],a.isArray(n))for(j=0,k=n.length;j<k;j++)o=n[j],t[d][j]=[o[0],o[1]],o.userData&&(t[d][j].userData=o.userData),o[2]===!0&&(m[d]=o[1]);this.data(t);this.value(m)}}else p=this._getDataWithValue();return p};d._getDataWithValue=function(){var b,d,f,j,k,t,m,o,p;b=this.data();if(a.isArray(b)){j=this._project.selectedValue;var n=[];for(k=0,t=b.length;k<t;k++){d=b[k];n[k]=[];for(m=0,o=
d.length;m<o;m++)f=d[m],p=j!=g&&j[k]==f[1],n[k][m]=[f[0],f[1],p],n[k][m].userData={id:m}}return n}else return b};d._beforeData=function(b){var c;if(!a.isArray(b))return b;var d,f,j,k,t,m,o;d=this.form();f=d._showLngTokens;j=d.language()!=null;d._showLngTokens=!0;t=this.data();d._showLngTokens=f;if(j&&!d._skipTokenCreation)for(d=0,f=b.length;d<f;d++)if(m=b[d],a.isArray(m))for(j=0,k=m.length;j<k;j++){o=m[j];var p=o.userData&&o.userData.id!=g?o.userData.id:null,n;WiziCore_Helper.isLngToken(o[0])||(c=
(n=p!=null&&WiziCore_Helper.isLngToken(t[d][p][0]))?t[d][p][0]:WiziCore_Helper.generateId(10,"ac-"),p=c,this.form().addTokenToStringTable(this.id(),this.name(),p,o[0]),o[0]=p);if(o.userData!=g)o.userData=g}return b};d._afterGet=function(b){var b=WiziCore_Helper.clone(b),d,f,g,j,k;if(a.isArray(b))for(f=0,k=b.length;f<k;f++)if(d=b[f],a.isArray(d))for(g=0,j=d.length;g<j;g++)d[g][0]=this._getTranslatedValue(d[g][0]);return b};d.data=function(a){a!=g&&!this._stopDropValue&&(this._project.selectedValue=
[]);a=a===null?[[]]:a;return this.htmlPropertyBeforeSetAfterGet("data",this._beforeData,this._data,this._afterGet).call(this,a)};d._data=function(b){var d=jQuery.fn.__useTr;jQuery.fn.__useTr=!1;if(a.isArray(b)&&this._isDrawn&&this._input){var f=[{}],g,j,k,m,o,p;for(g=0,j=b.length;g<j;g++)if(o=b[g],p={},a.isArray(o)){for(k=0,m=o.length;k<m;k++)p[o[k][1]]=this._getTranslatedValue(o[k][0]);f[0][g]=p}this._input.scroller("option",{wheels:f})}this.value(this._project.selectedValue);jQuery.fn.__useTr=d};
d.value=function(b){if(b!=g&&a.isArray(b))this._input&&this._input.scroller("setValue",b,!0),this._project.selectedValue=b;else return this._input?this._input.scroller("getValue"):this._project.selectedValue};d._enable=function(a){this._input&&(a=a===!0?"enable":"disable",this._input.scroller(a),this._input.textinput(a))};d._scrollerMode=function(a){a!=g&&this._input&&this._input.scroller("option",{mode:a})};d._scrollerTheme=function(a){a!=g&&this._input&&this._input.scroller("option",{theme:a})};
d.getMobiscrollObject=function(){return this._input};d.getDataFromMap=function(a,b){for(var d=[],f,j,k=0,m=a.length;k<m;k++){f=[];j=parseInt(AC.Widgets.Base.getDataItemWithMap(a[k],b.columnIndex));var o=b.label,p=b.value;o!=g&&p!=g&&!isNaN(j)&&(d[j]==g&&(d[j]=[]),f[0]=AC.Widgets.Base.getDataItemWithMap(a[k],o),f[1]=AC.Widgets.Base.getDataItemWithMap(a[k],p),d[j].push(f))}return d};d.getDataModel=function(){return[{name:"widget_column_index",value:"",uid:"columnIndex"},{name:"widget_label",value:"",
uid:"labeluid"},{name:"widget_value",value:"",uid:"valueuid"}]};d.getValueDataModel=function(){return["valueuid","valueuid","valueuid","valueuid","valueuid"]};d.isIncludedInSchema=AC.Property.normal("isIncludedInSchema",d._updateStorageFlag);d.dataType=AC.Property.normal("dataType");d.isUnique=AC.Property.normal("isUnique");d.mandatory=AC.Property.normal("mandatory");d.scrollerMode=AC.Property.html("scrollerMode",d._scrollerMode);d.scrollerTheme=AC.Property.html("scrollerTheme",d._scrollerTheme);
d.enable=AC.Property.html("enable",d._enable);d.visible=AC.Property.html("visible",d._visible);d.opacity=AC.Property.theme("opacity",d._opacity);d.view=AC.Property.normal("view");d.fields=AC.Property.normal("fields");d.groupby=AC.Property.normal("groupby");d.orderby=AC.Property.normal("orderby");d.filter=AC.Property.normal("filter");d.resetfilter=AC.Property.normal("resetfilter");d.listenview=AC.Property.normal("listenview");d.applyview=AC.Property.normal("applyview");d.onview=AC.Property.normal("onview");
f.onSelectValue="E#MobiscrollList#onSelectValue";f.onInit="E#MobiscrollList#onInit";f.actions=function(){var b={onSelectValue:{alias:"widget_event_onselectionchange",funcview:"onSelectionChange",action:"AC.Widgets.MobiscrollList.onSelectValue",params:"value",group:"widget_event_general"},onInit:{alias:"widget_mobiscroll_list_oninit",funcview:"onInit",action:"AC.Widgets.MobiscrollList.onInit",params:"",group:"widget_event_general"}};return b=a.extend(AC.Widgets.Base.actions(),b)};f.inlineEditPropName=
function(){return"data"};var k=[{name:AC.Property.group_names.general,props:[AC.Property.general.widgetClass,AC.Property.general.name,{name:"items",type:"mcListData",set:"items",get:"items",alias:"widget_mobiscrollList_items"},{name:"scrollerMode",type:"mobiscrollMode",set:"scrollerMode",get:"scrollerMode",alias:"widget_mobiscroll_mode"},{name:"scrollerTheme",type:"mobiscrollTheme",set:"scrollerTheme",get:"scrollerTheme",alias:"widget_mobiscroll_theme"}]},{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.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.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.margin,AC.Property.style.mobileTheme,AC.Property.style.customCssClasses,
AC.Property.style.widgetStyle]}],b={en:{widget_name_mobiscroll_list:"Mobiscroll List",widget_mobiscrollList_items:"Items",widget_mobiscroll_list_oninit:"OnInit"}};f.props=function(){return k};f.emptyProps=function(){return{}};f.langs=function(){return b};f.defaultProps=function(){return{x:"0",y:"0",width:"210",height:"35",zindex:"auto",enable:!0,anchors:{left:!0,top:!0,bottom:!1,right:!1},visible:!0,name:"mobiscrollList",opacity:1,customCssClasses:"",widgetStyle:"default",dragAndDrop:!1,resizing:!1,
alignInContainer:"left",mobileTheme:"c",margin:"",scrollerMode:"scroller",scrollerTheme:"default",data:[[["Label","Value",""],["Label1","Value1",""]],[["Label","Value",""],["Label1","Value1",""],["Label2","Value2",""]]]}};f.isField=function(){return!0};AC.Core.lang().registerWidgetLang(b)})(jQuery,window,document);
