(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-vendors~70aabc29"],{"00fd":function(e,t,i){var s=i("9e69"),r=Object.prototype,n=r.hasOwnProperty,a=r.toString,o=s?s.toStringTag:void 0;function l(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var s=!0}catch(l){}var r=a.call(e);return s&&(t?e[o]=i:delete e[o]),r}e.exports=l},"03dd":function(e,t,i){var s=i("eac5"),r=i("57a5"),n=Object.prototype,a=n.hasOwnProperty;function o(e){if(!s(e))return r(e);var t=[];for(var i in Object(e))a.call(e,i)&&"constructor"!=i&&t.push(i);return t}e.exports=o},"0621":function(e,t,i){var s=i("9e69"),r=i("d370"),n=i("6747"),a=s?s.isConcatSpreadable:void 0;function o(e){return n(e)||r(e)||!!(a&&e&&e[a])}e.exports=o},"0644":function(e,t,i){var s=i("3818"),r=1,n=4;function a(e){return s(e,r|n)}e.exports=a},"07a9":function(e,t,i){var s=i("4aad"),r=i("6751"),n=i("4b17"),a=i("76dd");function o(e,t,i){e=a(e),t=n(t);var o=t?r(e):0;return t&&o=this.pagesizeoptions[o]&&(a=o);this.pagershowrowscombo&&this.pagershowrowscombo.jqxDropDownList({selectedIndex:a})}if(this.sortable)if(this._loading&&(this._loading=!1),n.sortdirection){if(n.sortdirection.ascending||n.sortdirection.descending){this.dataview.sortfield=n.sortcolumn;var l=n.sortdirection.ascending?"asc":"desc";this.dataview.sortfielddirection=l,this.source.sortcolumn=n.sortcolumn,this.source.sortdirection=l,this.sortby(n.sortcolumn,l)}}else null==this.dataview.sortfield||"asc"!=this.dataview.sortfielddirection&&"desc"!=this.dataview.sortfielddirection||this.sortby(this.dataview.sortfield,null);this.groupable&&n.groups&&(this.dataview.groups=n.groups,this.groups=n.groups),this.loadingstate=!0,this.virtualsizeinfo&&this._loadselectionandcolumnwidths(n),this.loadingstate=!1,(this.virtualmode||this.source._source.url&&""!=this.source._source.url)&&(1==i?this.source.endUpdate(!1):(this.source.endUpdate(!1),(this.virtualmode||this.source._source.filter||this.source._source.sort)&&this.updatebounddata("state")))}},_loadselectionandcolumnwidths:function(t){this.loadingstate=!0;var i="";if(void 0!=t&&void 0!=t.width)i=t;else if(window.localStorage){if(window.localStorage["jqxGrid"+this.element.id])i=e.parseJSON(window.localStorage["jqxGrid"+this.element.id])}else if(this._savedstate)i=this._savedstate;if(null!=i&&""!=i){var s=this._loading;this._loading=!1;var r=i,n=this,a=!1,o=[];o.length=0;if(e.each(this.columns.records,function(e){var t=r.columns[this.datafield];if(void 0!=t){if(this.text!=t.text&&(a=!0),this.hidden!=t.hidden&&(a=!0),void 0!==t.width&&(this.width=t.width,this._width&&(this._width=null),this._percentagewidth&&(this._percentagewidth=null)),void 0!==t.hidden&&(this.hidden=t.hidden),void 0!==t.pinned&&(this.pinned=t.pinned),void 0!==t.groupable&&(this.groupable=t.groupable),void 0!==t.resizable&&(this.resizable=t.resizable),this.draggable=t.draggable,void 0!==t.text&&(this.text=t.text),void 0!==t.align&&(this.align=t.align),void 0!==t.cellsalign&&(this.cellsalign=t.cellsalign),n._columns)for(var i=0;i0){if(this.setcolumnindex){this.rowdetails;this.groupable?this.groups.length:0;for(var l=new Array,h=0;ht.key?1:0}),c.reverse(),e.each(c,function(e,t){var i=this.key;n.setcolumnindex(this.column.datafield,i,!1)})}this.prerenderrequired=!0,this.groupable&&this._refreshdataview(),this.rendergridcontent(!0),this._updatefilterrowui&&this.filterable&&this.showfilterrow&&this._updatefilterrowui(),this._renderrows(this.virtualsizeinfo)}if(this.filterable&&void 0!==r.filters){this.clearfilters&&(this._loading=!1,this.clearfilters(!1));var f="",v=new e.jqx.filter;for(h=0;h0&&(this.applyfilters(),this.showfilterrow&&e.each(this.columns.records,function(){if("checkedlist"==this.filtertype&&this.filterable&&n.host.jqxDropDownList){var t=this,i=t._filterwidget,s=(i.jqxDropDownList("getItems"),i.jqxDropDownList("listBox"));if(s.checkAll(!1),t.filter){s.uncheckAll(!1);for(var r=t.filter.getfilters(),a=0;a0&&s.host.jqxListBox("indeterminateIndex",0,!0,!1)}}})),this.pageable&&void 0!==r.pagenum&&(this.gotopage&&!this.virtualmode?(this.dataview.pagenum=-1,this.gotopage(r.pagenum)):this.gotopage&&this.virtualmode&&this.gotopage(r.pagenum))}if(r.selectedrowindexes&&r.selectedrowindexes&&r.selectedrowindexes.length>0&&(this.selectedrowindexes=r.selectedrowindexes,this.selectedrowindex=r.selectedrowindex,"checkbox"===this.selectionmode&&this._updatecheckboxselection()),r.selectedcells&&this._applycellselection&&e.each(r.selectedcells,function(){n._applycellselection(this.rowindex,this.datafield,!0,!1)}),this.groupable&&void 0!==r.groups)return this._refreshdataview(),this.render(),this._loading=s,void(this.loadingstate=!1);if(a){if(this.prerenderrequired=!0,this.rendergridcontent(!0),this._loading=s,this.loadingstate=!1,this.updating())return!1}else this._loading=s,this._updatecolumnwidths(),this._updatecellwidths(),this.loadingstate=!1;this.loadingstate=!1,this._loading=s,this._renderrows(this.virtualsizeinfo)}this.loadingstate=!1},getstate:function(){var t=this.getdatainformation(),i={};if(i.width=this.width,i.height=this.height,i.pagenum=t.paginginformation.pagenum,i.pagesize=t.paginginformation.pagesize,i.pagesizeoptions=this.pagesizeoptions,i.sortcolumn=t.sortinformation.sortcolumn,i.sortdirection=t.sortinformation.sortdirection,null!=this.selectionmode&&this.getselectedcells)if(-1!=this.selectionmode.toString().indexOf("cell")){var s=this.getselectedcells(),r=new Array;e.each(s,function(){r.push({datafield:this.datafield,rowindex:this.rowindex})}),i.selectedcells=r}else{var n=this.getselectedrowindexes();i.selectedrowindexes=n,i.selectedrowindex=this.selectedrowindex}var a={},o=0;if(this.dataview.filters)for(var l=0;l0&&this._createMenu(r[0])}this.host.data("autoclose",{}),this._render(),this._setSize(),e.jqx.browser.msie&&e.jqx.browser.version<8&&this.host.attr("hideFocus",!0)},focus:function(){try{if("popup"===this.mode&&this.keyboardNavigation){var t=this.host.closest("div.jqx-menu-wrapper");t.focus()}if(this.keyboardNavigation){this.host.focus();var i=this,s=function(){if(e.jqx.isHidden(e(i.items[0].element))){var t=i._nextVisibleItem(i.items[0],0);t&&(e(t.element).addClass(i.toThemeProperty("jqx-fill-state-focus")),i.activeItem=t)}else e(i.items[0].element).addClass(i.toThemeProperty("jqx-fill-state-focus")),i.activeItem=i.items[0]};this.activeItem?e.jqx.isHidden(e(this.activeItem.element))?(e(this.activeItem.element).removeClass(this.toThemeProperty("jqx-fill-state-focus")),s()):e(this.activeItem.element).addClass(this.toThemeProperty("jqx-fill-state-focus")):s()}}catch(r){}},loadItems:function(t,i){if(null!=t){if(0==t.length)return"";var s=this;this.items=new Array;var r='
    ';return i&&(r='
      '),e.map(t,function(e){if(void 0==e)return null;r+=s._parseItem(e)}),r+="
    ",r}},_parseItem:function(e){var t="";if(void 0==e)return null;var i=e.label;!e.label&&e.html&&(i=e.html),i||(i="Item"),"string"===typeof e&&(i=e);void 0!=e.selected&&e.selected;var s=!1;return void 0!=e.disabled&&e.disabled&&(s=!0),t+="",t},_setSize:function(){null!=this.width&&-1!=this.width.toString().indexOf("%")?this.host.width(this.width):null!=this.width&&-1!=this.width.toString().indexOf("px")?this.host.width(this.width):void 0==this.width||isNaN(this.width)||this.host.width(this.width),null!=this.height&&-1!=this.height.toString().indexOf("%")?this.host.height(this.height):null!=this.height&&-1!=this.height.toString().indexOf("px")?this.host.height(this.height):void 0==this.height||isNaN(this.height)||this.host.height(this.height),null===this.height&&this.host.height("auto");if(null!=this.minimizeWidth&&"popup"!=this.mode){var t=e(window).width();if(!e.jqx.response){var i=!1;if(navigator.userAgent.match(/Windows|Linux|MacOS/)){var s=navigator.userAgent.indexOf("Windows Phone")>=0||navigator.userAgent.indexOf("WPDesktop")>=0||navigator.userAgent.indexOf("IEMobile")>=0||navigator.userAgent.indexOf("ZuneWP7")>=0;s||(i=!0)}var r=this.minimizeWidth;if(i&&"auto"==this.minimizeWidth)return}if("auto"==this.minimizeWidth&&e.jqx.response){var n=new e.jqx.response;"Phone"!=n.device.type&&"Tablet"!=n.device.type||this.minimized||this.minimize()}else t=r&&this.restore()}},minimize:function(){if(!this.minimized){var t=this;this.host.addClass(this.toThemeProperty("jqx-menu-minimized")),this.minimized=!0,this._tmpMode=this.mode,this.mode="simple";var i=this.host.closest("div.jqx-menu-wrapper");if(i.remove(),e("#menuWrapper"+this.element.id).remove(),e.each(this.items,function(){var t=this,i=(e(t.element),e(t.subMenuElement)),s=i.closest("div.jqx-menu-popup");s.remove()}),this.source){var s=this.loadItems(this.source);this.element.innerHTML=s,this._tmpHTML=this.element.innerHTML}if(this.element.innerHTML=this._tmpHTML,this.element.innerHTML.indexOf("UL")){var r=this.host.find("ul:first");r.length>0&&this._createMenu(r[0])}this._render();var n=this.host.find("ul:first");n.wrap('');i=n.closest("div.jqx-menu-wrapper");i[0].id="menuWrapper"+this.element.id,i.detach(),i.appendTo(e(document.body)),i.addClass(this.toThemeProperty("jqx-widget")),i.addClass(this.toThemeProperty("jqx-menu")),i.addClass(this.toThemeProperty("jqx-menu-minimized")),i.addClass(this.toThemeProperty("jqx-widget-header")),n.children().hide(),i.hide(),i.find("ul").addClass(this.toThemeProperty("jqx-menu-ul-minimized")),this.minimizedItem=e("
    "),this.minimizedItem.addClass(this.toThemeProperty("jqx-item")),this.minimizedItem.addClass(this.toThemeProperty("jqx-menu-item-top")),this.addHandler(i,"keydown",function(e){return t.handleKeyDown(e)}),this.minimizedItem.addClass(this.toThemeProperty("jqx-menu-minimized-button")),this.minimizedItem.prependTo(this.host),this.titleElement=e("
    "+this.title+"
    "),this.titleElement.addClass(this.toThemeProperty("jqx-item")),this.titleElement.addClass(this.toThemeProperty("jqx-menu-title")),this.titleElement.prependTo(this.host),e("
    ").insertAfter(this.minimizedItem),t.minimizedHidden=!0;var a=function(e){t.minimizedHidden=!0,t.minimizedItem.show();var s=!1;"right"==t.minimizedItem.css("float")&&(s=!0),i.animate({left:s?t.host.coord().left+t.host.width()+i.width():-i.outerWidth(),opacity:0},t.animationHideDuration,function(){i.find("ul:first").children().hide(),i.hide()})},o=function(e){if(t.minimizedHidden){i.find("ul:first").children().show(),t.minimizedHidden=!1,i.show(),i.css("opacity",0),i.css("left",-i.outerWidth());var s=!1,r=i.width();"right"==t.minimizedItem.css("float")&&(i.css("left",t.host.coord().left+t.host.width()+r),s=!0),i.css("top",t.host.coord().top+t.host.height()),i.animate({left:s?t.host.coord().left+t.host.width()-r:t.host.coord().left,opacity:.95},t.animationShowDuration,function(){})}else a(e);t._raiseEvent("2",{type:"mouse",item:t.minimizedItem[0],event:e}),t._setSize()};this.addHandler(e(window),"orientationchange.jqxmenu"+this.element.id,function(e){setTimeout(function(){if(!t.minimizedHidden){var e=i.width(),s=!1;e=i.width();"right"==t.minimizedItem.css("float")&&(s=!0),i.css("top",t.host.coord().top+t.host.height()),i.css({left:s?t.host.coord().left+t.host.width()-e:t.host.coord().left})}},25)}),this.addHandler(this.minimizedItem,"click",function(e){o(e)})}},restore:function(){if(this.minimized){this.host.find("ul").removeClass(this.toThemeProperty("jqx-menu-ul-minimized")),this.host.removeClass(this.toThemeProperty("jqx-menu-minimized")),this.minimized=!1,this.mode=this._tmpMode,this.minimizedItem&&this.minimizedItem.remove();var t=e("#menuWrapper"+this.element.id);if(t.remove(),this.source){var i=this.loadItems(this.source);this.element.innerHTML=i,this._tmpHTML=i}if(this.element.innerHTML=this._tmpHTML,this.element.innerHTML.indexOf("UL")){var s=this.host.find("ul:first");s.length>0&&this._createMenu(s[0])}this._setSize(),this._render()}},isTouchDevice:function(){if(void 0!=this._isTouchDevice)return this._isTouchDevice;var t=e.jqx.mobile.isTouchDevice();return 1==this.touchMode?t=!0:0==this.touchMode&&(t=!1),t&&(this.host.addClass(this.toThemeProperty("jqx-touch")),e(".jqx-menu-item").addClass(this.toThemeProperty("jqx-touch"))),this._isTouchDevice=t,t},refresh:function(e){e||this._setSize()},resize:function(e,t){this.width=e,this.height=t,this.refresh()},_closeAll:function(t){var i=null!=t?t.data:this,s=i.items;if(e.each(s,function(){var e=this;1==e.hasItems&&e.isOpen&&i._closeItem(i,e)}),"popup"==i.mode&&null!=t){var r=i._isRightClick(t);r||i.close()}},closeItem:function(t){if(null==t)return!1;var i=t,s=document.getElementById(i),r=this;return e.each(r.items,function(){var e=this;1==e.isOpen&&e.element==s&&(r._closeItem(r,e),e.parentId)}),!0},openItem:function(t){if(null==t)return!1;var i=t,s=document.getElementById(i),r=this;return e.each(r.items,function(){var e=this;0==e.isOpen&&e.element==s&&(r._openItem(r,e),e.parentId&&r.openItem(e.parentId))}),!0},_getClosedSubMenuOffset:function(t){var i=e(t.subMenuElement),s=-i.outerHeight(),r=-i.outerWidth(),n=0==t.level&&"horizontal"==this.mode;switch(n?r=0:s=0,t.openVerticalDirection){case"up":case"center":s=i.outerHeight();break}switch(t.openHorizontalDirection){case this._getDir("left"):r=n?0:i.outerWidth();break;case"center":r=n?0:i.outerWidth();break}return{left:r,top:s}},_closeItem:function(t,i,s,r){if(null==t||null==i)return!1;var n=e(i.subMenuElement),a=0==i.level&&"horizontal"==this.mode,o=this._getClosedSubMenuOffset(i),l=o.top,h=o.left,d=(e(i.element),n.closest("div.jqx-menu-popup"));if(null!=d){var c=t.animationHideDelay;1==r&&(c=0),n.data("timer")&&null!=n.data("timer").show&&(clearTimeout(n.data("timer").show),n.data("timer").show=null);var u=function(){i.isOpen=!1,a?n.stop().animate({top:l},t.animationHideDuration,function(){e(i.element).removeClass(t.toThemeProperty("jqx-fill-state-pressed")),e(i.element).removeClass(t.toThemeProperty("jqx-menu-item-top-selected")),e(i.element).removeClass(t.toThemeProperty("jqx-rc-b-expanded")),d.removeClass(t.toThemeProperty("jqx-rc-t-expanded"));var s=e(i.arrow);s.length>0&&t.showTopLevelArrows&&(s.removeClass(),"down"==i.openVerticalDirection?(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-down")),s.addClass(t.toThemeProperty("jqx-icon-arrow-down"))):(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-up")),s.addClass(t.toThemeProperty("jqx-icon-arrow-up")))),e.jqx.aria(e(i.element),"aria-expanded",!1),d.css({display:"none"}),0==t.animationHideDuration&&n.css({top:l}),t._raiseEvent("1",i)}):(e.jqx.browser.msie,n.stop().animate({left:h},t.animationHideDuration,function(){if(0==t.animationHideDuration&&n.css({left:h}),i.level>0){e(i.element).removeClass(t.toThemeProperty("jqx-fill-state-pressed")),e(i.element).removeClass(t.toThemeProperty("jqx-menu-item-selected"));var s=e(i.arrow);s.length>0&&(s.removeClass(),"left"!=i.openHorizontalDirection?(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-"+t._getDir("right"))),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("right")))):(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-"+t._getDir("left"))),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("left")))))}else{e(i.element).removeClass(t.toThemeProperty("jqx-fill-state-pressed")),e(i.element).removeClass(t.toThemeProperty("jqx-menu-item-top-selected"));s=e(i.arrow);s.length>0&&(s.removeClass(),"left"!=i.openHorizontalDirection?(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-top-"+t._getDir("right"))),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("right")))):(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-top-"+t._getDir("left"))),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("left")))))}e.jqx.aria(e(i.element),"aria-expanded",!1),d.css({display:"none"}),t._raiseEvent("1",i)}))};if(c>0?n.data("timer")&&(n.data("timer").hide=setTimeout(function(){u()},c)):u(),void 0!=s&&s){var p=n.children();e.each(p,function(){if(t.menuElements[this.id]&&t.menuElements[this.id].isOpen){e(t.menuElements[this.id].subMenuElement);t._closeItem(t,t.menuElements[this.id],!0,!0)}})}}},getSubItems:function(t,i){if(null==t)return!1;var s=this,r=new Array;null!=i&&e.extend(r,i);var n=t,a=this.menuElements[n],o=e(a.subMenuElement),l=o.find(".jqx-menu-item");return e.each(l,function(){r[this.id]=s.menuElements[this.id];var t=s.getSubItems(this.id,r);e.extend(r,t)}),r},disable:function(t,i){if(null!=t){var s=t,r=this;if(this.menuElements[s]){var n=this.menuElements[s];n.disabled=i;var a=e(n.element);n.element.disabled=i,e.each(a.children(),function(){this.disabled=i}),i?(a.addClass(r.toThemeProperty("jqx-menu-item-disabled")),a.addClass(r.toThemeProperty("jqx-fill-state-disabled"))):(a.removeClass(r.toThemeProperty("jqx-menu-item-disabled")),a.removeClass(r.toThemeProperty("jqx-fill-state-disabled")))}}},getItem:function(e){if(this.menuElements[e]){var t=this.menuElements[e];return t}return null},disableItem:function(e){this.disable(e,!0)},hideItem:function(t){if(this.menuElements[t]){var i=this.menuElements[t];e(i.element).hide()}},showItem:function(t){if(this.menuElements[t]){var i=this.menuElements[t];e(i.element).show()}},enableItem:function(e){this.disable(e,!1)},_setItemProperty:function(e,t,i){if(null!=e){var s=e;if(this.menuElements[s]){var r=this.menuElements[s];r[t]&&(r[t]=i)}}},setItemOpenDirection:function(t,i,s){if(null!=t){var r=t,n=this,a=e.jqx.browser.msie&&e.jqx.browser.version<8;if(this.menuElements[r]){var o=this.menuElements[r];if(null!=i&&(o.openHorizontalDirection=i,o.hasItems&&o.level>0)){var l=e(o.element);if(void 0!=l){var h=e(o.arrow);null==o.arrow&&(h=e(''),a?h.appendTo(l):h.prependTo(l),o.arrow=h[0]),h.removeClass(),"left"==o.openHorizontalDirection?(h.addClass(n.toThemeProperty("jqx-menu-item-arrow-"+n._getDir("left"))),h.addClass(n.toThemeProperty("jqx-icon-arrow-"+n._getDir("left")))):(h.addClass(n.toThemeProperty("jqx-menu-item-arrow-"+n._getDir("right"))),h.addClass(n.toThemeProperty("jqx-icon-arrow-"+n._getDir("right")))),h.css("visibility","inherit"),a?(h.css("display","inline-block"),h.css("float","none")):(h.css("display","block"),h.css("float","right"))}}if(null!=s){o.openVerticalDirection=s;h=e(o.arrow),l=e(o.element);if(!n.showTopLevelArrows)return;void 0!=l&&(null==o.arrow&&(h=e(''),a?h.appendTo(l):h.prependTo(l),o.arrow=h[0]),h.removeClass(),"down"==o.openVerticalDirection?(h.addClass(n.toThemeProperty("jqx-menu-item-arrow-down")),h.addClass(n.toThemeProperty("jqx-icon-arrow-down"))):(h.addClass(n.toThemeProperty("jqx-menu-item-arrow-up")),h.addClass(n.toThemeProperty("jqx-icon-arrow-up"))),h.css("visibility","inherit"),a?(h.css("display","inline-block"),h.css("float","none")):(h.css("display","block"),h.css("float","right")))}}}},_getSiblings:function(e){for(var t=new Array,i=0,s=0;s0&&this.hasTransform){var c=parseInt(h.coord().top)-parseInt(this._getOffset(i.element).top);d.top+=c}0==i.level&&"popup"==this.mode&&(d=h.coord());var u=0==i.level&&"horizontal"==this.mode,p=u?d.left:null!=this.menuElements[i.parentId]&&null!=this.menuElements[i.parentId].subMenuElement?parseInt(e(e(this.menuElements[i.parentId].subMenuElement).closest("div.jqx-menu-popup")).outerWidth())-a[0]:parseInt(o.outerWidth());if(l.css({visibility:"visible",display:"block",left:p,top:u?d.top+h.outerHeight():d.top,zIndex:r}),o.css("display","block"),"horizontal"!=this.mode&&0==i.level){var m=this._getOffset(this.element);l.css("left",-1+m.left+this.host.outerWidth()),o.css("left",-o.outerWidth())}else{var f=this._getClosedSubMenuOffset(i);o.css("left",f.left),o.css("top",f.top)}l.css({height:parseInt(o.outerHeight())+parseInt(a[1])+"px"});var v=0,g=0;switch(i.openVerticalDirection){case"up":if(u){o.css("top",o.outerHeight()),v=a[1];var b=parseInt(o.parent().css("padding-bottom"));isNaN(b)&&(b=0),b>0&&l.addClass(this.toThemeProperty("jqx-menu-popup-clear")),o.css("top",o.outerHeight()-b),l.css({display:"block",top:d.top-l.outerHeight(),zIndex:r})}else v=a[1],o.css("top",o.outerHeight()),l.css({display:"block",top:d.top-l.outerHeight()+a[1]+h.outerHeight(),zIndex:r});break;case"center":u?(o.css("top",0),l.css({display:"block",top:d.top-l.outerHeight()/2+a[1],zIndex:r})):(o.css("top",0),l.css({display:"block",top:d.top+h.outerHeight()/2-l.outerHeight()/2+a[1],zIndex:r}));break}switch(i.openHorizontalDirection){case this._getDir("left"):u?l.css({left:d.left-(l.outerWidth()-h.outerWidth()-a[0])}):(g=0,o.css("left",l.outerWidth()),l.css({left:d.left-l.outerWidth()+2*i.level}));break;case"center":u?l.css({left:d.left-(l.outerWidth()/2-h.outerWidth()/2-a[0]/2)}):(l.css({left:d.left-(l.outerWidth()/2-h.outerWidth()/2-a[0]/2)}),o.css("left",l.outerWidth()));break}if(u){if(parseInt(o.css("top"))==v)return void(i.isOpen=!0)}else if(parseInt(o.css("left"))==g)return void i.isOpen;e.each(t._getSiblings(i),function(){t._closeItem(t,this,!0,!0)});var x=e.data(t.element,"animationHideDelay");t.animationHideDelay=x,this.autoCloseInterval>0&&(null!=this.host.data("autoclose")&&null!=this.host.data("autoclose").close&&clearTimeout(this.host.data("autoclose").close),null!=this.host.data("autoclose")&&(this.host.data("autoclose").close=setTimeout(function(){t._closeAll()},this.autoCloseInterval))),o.data("timer")&&(o.data("timer").show=setTimeout(function(){if(null!=l)if(u){o.stop(),o.css("left",g),e.jqx.browser.msie,h.addClass(t.toThemeProperty("jqx-fill-state-pressed")),h.addClass(t.toThemeProperty("jqx-menu-item-top-selected")),"down"==i.openVerticalDirection?(e(i.element).addClass(t.toThemeProperty("jqx-rc-b-expanded")),l.addClass(t.toThemeProperty("jqx-rc-t-expanded"))):(e(i.element).addClass(t.toThemeProperty("jqx-rc-t-expanded")),l.addClass(t.toThemeProperty("jqx-rc-b-expanded")));var s=e(i.arrow);s.length>0&&t.showTopLevelArrows&&(s.removeClass(),"down"==i.openVerticalDirection?(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-down-selected")),s.addClass(t.toThemeProperty("jqx-icon-arrow-down"))):(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-up-selected")),s.addClass(t.toThemeProperty("jqx-icon-arrow-up")))),0==t.animationShowDuration?(o.css({top:v}),i.isOpen=!0,t._raiseEvent("0",i),e.jqx.aria(e(i.element),"aria-expanded",!0)):o.animate({top:v},t.animationShowDuration,t.easing,function(){i.isOpen=!0,e.jqx.aria(e(i.element),"aria-expanded",!0),t._raiseEvent("0",i)})}else{if(o.stop(),o.css("top",v),e.jqx.browser.msie,i.level>0){h.addClass(t.toThemeProperty("jqx-fill-state-pressed")),h.addClass(t.toThemeProperty("jqx-menu-item-selected"));s=e(i.arrow);s.length>0&&(s.removeClass(),"left"!=i.openHorizontalDirection?(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-"+t._getDir("right")+"-selected")),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("right")))):(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-"+t._getDir("left")+"-selected")),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("left")))))}else{h.addClass(t.toThemeProperty("jqx-fill-state-pressed")),h.addClass(t.toThemeProperty("jqx-menu-item-top-selected"));s=e(i.arrow);s.length>0&&(s.removeClass(),"left"!=i.openHorizontalDirection?(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-"+t._getDir("right")+"-selected")),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("right")))):(s.addClass(t.toThemeProperty("jqx-menu-item-arrow-"+t._getDir("left")+"-selected")),s.addClass(t.toThemeProperty("jqx-icon-arrow-"+t._getDir("left")))))}e.jqx.browser.msie,0==t.animationShowDuration?(o.css({left:g}),t._raiseEvent("0",i),i.isOpen=!0,e.jqx.aria(e(i.element),"aria-expanded",!0)):o.animate({left:g},t.animationShowDuration,t.easing,function(){t._raiseEvent("0",i),i.isOpen=!0,e.jqx.aria(e(i.element),"aria-expanded",!0)})}},this.animationShowDelay))},_getDir:function(e){switch(e){case"left":return this.rtl?"right":"left";case"right":return this.rtl?"left":"right"}return"left"},_applyOrientation:function(t,i){var s=this,r=0;if(s.host.removeClass(s.toThemeProperty("jqx-menu-horizontal")),s.host.removeClass(s.toThemeProperty("jqx-menu-vertical")),s.host.removeClass(s.toThemeProperty("jqx-menu")),s.host.removeClass(s.toThemeProperty("jqx-widget")),s.host.addClass(s.toThemeProperty("jqx-widget")),s.host.addClass(s.toThemeProperty("jqx-menu")),void 0!=t&&void 0!=i&&"popup"==i){if(s.host.parent().length>0&&s.host.parent().parent().length>0&&s.host.parent().parent()[0]==document.body){var n=e.data(document.body,"jqxMenuOldHost"+s.element.id);if(null!=n){var a=s.host.closest("div.jqx-menu-wrapper");a.remove(),a.appendTo(n),s.host.css("display","block"),s.host.css("visibility","visible"),a.css("display","block"),a.css("visibility","visible")}}}else void 0==t&&void 0==i&&e.data(document.body,"jqxMenuOldHost"+s.element.id,s.host.parent()[0]);switch(s.autoOpenPopup?"popup"==s.mode?(s.addHandler(e(document),"contextmenu."+s.element.id,function(e){return!1}),s.addHandler(e(document),"mousedown.menu"+s.element.id,function(e){s._openContextMenu(e)})):(s.removeHandler(e(document),"contextmenu."+s.element.id),s.removeHandler(e(document),"mousedown.menu"+s.element.id)):(s.removeHandler(e(document),"contextmenu."+s.element.id),s.removeHandler(e(document),"mousedown.menu"+s.element.id),s.addHandler(e(document),"contextmenu."+s.element.id,function(e){if(e.target&&e.target.className.indexOf&&e.target.className.indexOf("jqx-menu")>=0)return!1})),s.rtl&&s.host.addClass(s.toThemeProperty("jqx-rtl")),s.mode){case"horizontal":s.host.addClass(s.toThemeProperty("jqx-widget-header")),s.host.addClass(s.toThemeProperty("jqx-menu-horizontal")),e.each(s.items,function(){var t=this,i=e(t.element),n=e(t.arrow);if(n.removeClass(),t.hasItems&&t.level>0){n=e('');n.prependTo(i),n.css("float",s._getDir("right")),n.addClass(s.toThemeProperty("jqx-menu-item-arrow-"+s._getDir("right"))),n.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("right"))),t.arrow=n[0]}if(0==t.level){if(e(t.element).css("float",s._getDir("left")),!t.ignoretheme&&t.hasItems&&s.showTopLevelArrows){n=e('');var a=e.jqx.browser.msie&&e.jqx.browser.version<8;null==t.arrow?a?n.appendTo(i):n.prependTo(i):n=e(t.arrow),"down"==t.openVerticalDirection?(n.addClass(s.toThemeProperty("jqx-menu-item-arrow-down")),n.addClass(s.toThemeProperty("jqx-icon-arrow-down"))):(n.addClass(s.toThemeProperty("jqx-menu-item-arrow-up")),n.addClass(s.toThemeProperty("jqx-icon-arrow-up"))),n.css("visibility","inherit"),a?n.css("display","inline-block"):(n.css("display","block"),n.css("float","right")),t.arrow=n[0]}else if(!t.ignoretheme&&t.hasItems&&!s.showTopLevelArrows&&null!=t.arrow){n=e(t.arrow);n.remove(),t.arrow=null}r=Math.max(r,i.height())}});break;case"vertical":case"popup":case"simple":if(s.host.addClass(s.toThemeProperty("jqx-menu-vertical")),e.each(s.items,function(){var t=this,i=e(t.element);if(t.hasItems&&!t.ignoretheme){if(t.arrow&&e(t.arrow).remove(),"simple"==s.mode)return!0;var r=e('');r.prependTo(i),r.css("float","right"),0==t.level?(r.addClass(s.toThemeProperty("jqx-menu-item-arrow-top-"+s._getDir("right"))),r.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("right")))):(r.addClass(s.toThemeProperty("jqx-menu-item-arrow-"+s._getDir("right"))),r.addClass(s.toThemeProperty("jqx-icon-arrow-"+s._getDir("right")))),t.arrow=r[0]}i.css("float","none")}),"popup"==s.mode){s.host.addClass(s.toThemeProperty("jqx-widget-content")),s.host.wrap('
    ');a=s.host.closest("div.jqx-menu-wrapper");s.host.addClass(s.toThemeProperty("jqx-popup")),a[0].id="menuWrapper"+s.element.id,a.appendTo(e(document.body)),s.addHandler(a,"keydown",function(e){return s.handleKeyDown(e)})}else s.host.addClass(s.toThemeProperty("jqx-widget-header"));if("popup"==s.mode){var o=s.host.height();s.host.css("position","absolute"),s.host.css("top","0"),s.host.css("left","0"),"simple"!=s.mode&&(s.host.height(o),s.host.css("display","none"))}break}var l=s.isTouchDevice();s.autoCloseOnClick&&(s.removeHandler(e(document),"mousedown.menu"+s.element.id,s._closeAfterClick),s.addHandler(e(document),"mousedown.menu"+s.element.id,s._closeAfterClick,s),l&&(s.removeHandler(e(document),e.jqx.mobile.getTouchEventName("touchstart")+".menu"+s.element.id,s._closeAfterClick,s),s.addHandler(e(document),e.jqx.mobile.getTouchEventName("touchstart")+".menu"+s.element.id,s._closeAfterClick,s)))},_getBodyOffset:function(){var t=0,i=0;return"0px"!=e("body").css("border-top-width")&&(t=parseInt(e("body").css("border-top-width")),isNaN(t)&&(t=0)),"0px"!=e("body").css("border-left-width")&&(i=parseInt(e("body").css("border-left-width")),isNaN(i)&&(i=0)),{left:i,top:t}},_getOffset:function(t){var i=e.jqx.mobile.isSafariMobileBrowser(),s=e(t).coord(!0),r=s.top,n=s.left;"0px"!=e("body").css("border-top-width")&&(r=parseInt(r)+this._getBodyOffset().top),"0px"!=e("body").css("border-left-width")&&(n=parseInt(n)+this._getBodyOffset().left);var a=e.jqx.mobile.isWindowsPhone(),o=e.jqx.mobile.isTouchDevice();if(this.hasTransform||null!=i&&i||a||o){var l={left:e.jqx.mobile.getLeftPos(t),top:e.jqx.mobile.getTopPos(t)};return l}return{left:n,top:r}},_isRightClick:function(e){var t;if(!e)e=window.event;return e.which?t=3==e.which:e.button&&(t=2==e.button),t},_openContextMenu:function(e){var t=this,i=t._isRightClick(e);i&&t.open(parseInt(e.clientX)+5,parseInt(e.clientY)+5)},close:function(){var t=this,i=e.data(this.element,"contextMenuOpened"+this.element.id);if(i){this.host;e.each(t.items,function(){var e=this;e.hasItems&&t._closeItem(t,e)}),e.each(t.items,function(){var t=this;if(1==t.isOpen){var i=e(t.subMenuElement),s=i.closest("div.jqx-menu-popup");s.hide(this.animationHideDuration)}}),this.host.hide(this.animationHideDuration),e.data(t.element,"contextMenuOpened"+this.element.id,!1),t._raiseEvent("1",t),t._raiseEvent("5")}},open:function(t,i){if("popup"==this.mode){var s=0;"block"==this.host.css("display")&&(this.close(),s=this.animationHideDuration);var r=this;void 0!=t&&null!=t||(t=0),void 0!=i&&null!=i||(i=0),setTimeout(function(){r.host.show(r.animationShowDuration),r.host.css("visibility","visible"),e.data(r.element,"contextMenuOpened"+r.element.id,!0),r._raiseEvent("0",r),r._raiseEvent("4",{left:t,top:i}),r.host.css("z-index",r.popupZIndex),void 0!=t&&void 0!=i&&r.host.css({left:t,top:i}),r.focus()},s)}},_renderHover:function(e,t,i){var s=this;t.ignoretheme||(this.addHandler(e,"mouseenter",function(){s.hoveredItem=t,t.disabled||t.separator||!s.enableHover||s.disabled||(t.level>0?(e.addClass(s.toThemeProperty("jqx-fill-state-hover")),e.addClass(s.toThemeProperty("jqx-menu-item-hover"))):(e.addClass(s.toThemeProperty("jqx-fill-state-hover")),e.addClass(s.toThemeProperty("jqx-menu-item-top-hover"))))}),this.addHandler(e,"mouseleave",function(){t.disabled||t.separator||!s.enableHover||s.disabled||(t.level>0?(e.removeClass(s.toThemeProperty("jqx-fill-state-hover")),e.removeClass(s.toThemeProperty("jqx-menu-item-hover"))):(e.removeClass(s.toThemeProperty("jqx-fill-state-hover")),e.removeClass(s.toThemeProperty("jqx-menu-item-top-hover"))))}))},_closeAfterClick:function(t){var i=null!=t?t.data:this,s=!1;i.autoCloseOnClick&&(e.each(e(t.target).parents(),function(){if(this.className.indexOf&&-1!=this.className.indexOf("jqx-menu"))return s=!0,!1}),s||(t.data=i,i._closeAll(t)))},_autoSizeHorizontalMenuItems:function(){var t=this;if(t.autoSizeMainItems&&"horizontal"==this.mode){var i=this.maxHeight;parseInt(i)>parseInt(this.host.height())&&(i=parseInt(this.host.height())),i=parseInt(this.host.height()),e.each(this.items,function(){var s=this,r=e(s.element);if(0==s.level&&i>0){var n=r.children().length>0?parseInt(r.children().height()):r.height(),a=t.host.find("ul:first"),o=parseInt(a.css("padding-top")),l=parseInt(a.css("margin-top")),h=i-2*(l+o),d=parseInt(h)/2-n/2,c=parseInt(d),u=parseInt(d);if(r.css("padding-top",c),r.css("padding-bottom",u),parseInt(r.outerHeight())>h){var p=1;r.css("padding-top",c-p),c-=p}}})}e.each(this.items,function(){var t=this;e(t.element);if(t.hasItems&&t.level>0&&t.arrow){var i=e(t.arrow),s=e(t.element).height();s>15&&i.css("margin-top",(s-15)/2)}})},_nextVisibleItem:function(e,t){if(null==e||void 0==e)return null;var i=e;while(null!=i)if(i=i.nextItem,this._isVisible(i)&&!i.disabled&&"separator"!==i.type){if(this.minimized)return i;if(void 0!=t&&i&&i.level!=t)continue;return i}return null},_prevVisibleItem:function(e,t){if(null==e||void 0==e)return null;var i=e;while(null!=i)if(i=i.prevItem,this._isVisible(i)&&!i.disabled&&"separator"!==i.type){if(this.minimized)return i;if(void 0!=t&&i&&i.level!=t)continue;return i}return null},_parentItem:function(t){if(null==t||void 0==t)return null;var i=t.parentElement;if(!i)return null;var s=null;return e.each(this.items,function(){if(this.element==i)return s=this,!1}),s},_isElementVisible:function(t){return null!=t&&("none"!=e(t).css("display")&&"hidden"!=e(t).css("visibility"))},_isVisible:function(e){if(null==e||void 0==e)return!1;if(!this._isElementVisible(e.element))return!1;var t=this._parentItem(e);if(null==t)return!0;if(this.minimized)return!0;if(null!=t){if(!this._isElementVisible(t.element))return!1;if(!t.isOpen&&!this.minimized)return!1;while(null!=t){if(t=this._parentItem(t),null!=t&&!this._isElementVisible(t.element))return!1;if(null!=t&&!t.isOpen)return!1}}return!0},_render:function(t,i){this.disabled&&(this.host.addClass(this.toThemeProperty("jqx-fill-state-disabled")),this.host.addClass(this.toThemeProperty("jqx-menu-disabled"))),void 0==this.host.attr("tabindex")&&this.host.attr("tabindex",0);var s=this.popupZIndex,r=[5,5],n=this;e.data(n.element,"animationHideDelay",n.animationHideDelay);var a=this.isTouchDevice(),o=a&&(e.jqx.mobile.isWindowsPhone()||navigator.userAgent.indexOf("Touch")>=0);if(-1!=navigator.platform.toLowerCase().indexOf("win"))if(navigator.userAgent.indexOf("Windows Phone")>=0||navigator.userAgent.indexOf("WPDesktop")>=0||navigator.userAgent.indexOf("IEMobile")>=0||navigator.userAgent.indexOf("ZuneWP7")>=0)this.touchDevice=!0;else if(navigator.userAgent.indexOf("Touch")>=0){var l="MSPointerDown"in window;(l||e.jqx.mobile.isWindowsPhone()||navigator.userAgent.indexOf("ARM")>=0)&&(!0,o=!0,n.clickToOpen=!0,n.autoCloseOnClick=!1,n.enableHover=!1)}e.data(document.body,"menuel",this),this.hasTransform=e.jqx.utilities.hasTransform(this.host),this._applyOrientation(t,i),this.removeHandler(this.host,"blur"),this.removeHandler(this.host,"focus"),this.addHandler(this.host,"blur",function(t){if(n.keyboardNavigation&&n.activeItem){if("popup"===n.mode&&document.activeElement&&document.activeElement.className.indexOf("jqx-menu-wrapper")>=0)return;e(n.activeItem.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=null}}),this.addHandler(this.host,"focus",function(t){if(n.keyboardNavigation&&!n.activeItem)if(n.hoveredItem)e(n.hoveredItem.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=n.hoveredItem;else{var i=function(){if(e.jqx.isHidden(e(n.items[0].element))){var t=n._nextVisibleItem(n.items[0],0);t&&(e(t.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=t)}else e(n.items[0].element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=n.items[0]};n.activeItem?e.jqx.isHidden(e(n.activeItem.element))?(e(n.activeItem.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),i()):e(n.activeItem.element).addClass(n.toThemeProperty("jqx-fill-state-focus")):i()}}),this.removeHandler(this.host,"keydown.menu"+this.element.id),n.handleKeyDown=function(t){if(!n.keyboardNavigation)return!0;if("input"===t.target.nodeName.toLowerCase())return!0;var i=null,s=null;if(e.each(n.items,function(){return!!this.disabled||(this.element.className.indexOf("pressed")>=0&&(s=this),this.element.className.indexOf("focus")>=0?(i=this,!1):void 0)}),!i&&s)return i=s,!1;if(!i)return e(n.items[0].element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=n.items[0],i=n.activeItem,!1;if(27==t.keyCode){if(t.data=n,n._closeAll(t),i){var r=i;while(null!=r)r.parentItem?r=r.parentItem:(e(n.activeItem.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=r,e(n.activeItem.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),r=r.parentItem)}!0}if(13==t.keyCode&&i){!0,n._raiseEvent("2",{item:i.element,event:t,type:"keyboard"});var a=null!=i.anchor?e(i.anchor):null;if(null!=a&&a.length>0){var o=a.attr("href"),l=a.attr("target");null!=o&&(null!=l?window.open(o,l):window.location=o)}t.preventDefault(),t.stopPropagation(),e(i.element).focus()}var h=function(e){if(null==e)return new Array;for(var t=new Array,i=0,s=0;s1&&"horizontal"===n.mode||1==i.level&&i.hasItems&&"horizontal"===n.mode))i.hasItems?n._closeItem(n,i):i.parentItem&&(n._closeItem(n,i.parentItem),e(i.parentItem.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=i.parentItem);else{c=n._prevVisibleItem(i,0);var m=i.parentItem;c&&c.parentId===i.parentId&&0==c.level&&"horizontal"==n.mode?(e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c):m&&0==m.level&&"horizontal"==n.mode||!m||m.level!=i.level-1||(e(m.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=m)}t.preventDefault(),t.stopPropagation()}if("down"===d){if(t.altKey)0==i.level&&i.hasItems&&n._openItem(n,i),n.minimized&&n.minimizedHidden&&n.minimizedItem.trigger("click");else{c=n._nextVisibleItem(i,i.level),p=h(c);if(n.minimized&&c)e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c;else if(c&&(c.parentId===i.parentId||c.id==p[0].id&&"horizontal"==n.mode)&&(0==c.level&&"horizontal"==n.mode||(e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c)),"horizontal"===n.mode&&0===i.level&&i.isOpen&&i.hasItems){c=n._nextVisibleItem(i);e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c}}t.preventDefault(),t.stopPropagation()}else if("up"===d){if(t.altKey)i.parentItem&&0==i.parentItem.level?(n._closeItem(n,i.parentItem),e(i.parentItem.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=i.parentItem):null===i.parentItem&&0===i.level&&"horizontal"===n.mode&&n._closeItem(n,i),n.minimized&&(n.minimizedHidden||n.minimizedItem.trigger("click"));else{c=n._prevVisibleItem(i,i.level),p=h(i);if(n.minimized&&c)e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c;else if(c&&(c.parentId===i.parentId||c.id==i.parentId&&0==c.level&&"horizontal"==n.mode))0==c.level&&"horizontal"===n.mode&&0===i.level||(e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c);else if(i&&i.id==p[0].id&&i.parentItem&&0===i.parentItem.level&&"horizontal"===n.mode){c=i.parentItem;e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c}}t.preventDefault(),t.stopPropagation()}if(9==t.keyCode){c=t.shiftKey?n._prevVisibleItem(i):n._nextVisibleItem(i);if(c)e(c.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=c,t.preventDefault(),t.stopPropagation();else if(n.lockFocus){p=new Array;for(var f=0,v=0;v0&&(t.shiftKey?(e(p[p.length-1].element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=p[p.length-1]):(e(p[0].element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=p[0]),e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus"))),t.preventDefault(),t.stopPropagation()}else i&&(e(i.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=null)}},this.addHandler(this.host,"keydown.menu"+this.element.id,function(e){n.handleKeyDown(e)}),n.enableRoundedCorners&&this.host.addClass(n.toThemeProperty("jqx-rc-all")),e.each(this.items,function(){var t=this,i=e(t.element);if(i.attr("role","menuitem"),n.enableRoundedCorners&&i.addClass(n.toThemeProperty("jqx-rc-all")),n.removeHandler(i,"click"),n.addHandler(i,"click",function(i){if(!t.disabled&&!n.disabled&&(n.keyboardNavigation&&(n.activeItem&&e(n.activeItem.element).removeClass(n.toThemeProperty("jqx-fill-state-focus")),n.activeItem=t,e(t.element).addClass(n.toThemeProperty("jqx-fill-state-focus")),n.minimized&&i.stopPropagation()),n._raiseEvent("2",{type:"mouse",item:t.element,event:i}),n.autoOpen?!n.autoCloseOnClick||a||n.clickToOpen||t.closeOnClick&&(i.data=n,n._closeAll(i)):t.level>0&&(!n.autoCloseOnClick||a||n.clickToOpen||(i.data=n,n._closeAll(i))),a&&n.autoCloseOnClick&&(i.data=n,t.hasItems||n._closeAll(i)),"A"!=i.target.tagName&&"a"!=i.target.tagName)){var s=null!=t.anchor?e(t.anchor):null;if(null!=s&&s.length>0){var r=s.attr("href"),o=s.attr("target");null!=r&&(null!=o?window.open(r,o):window.location=r)}}}),n.removeHandler(i,"mouseenter"),n.removeHandler(i,"mouseleave"),o||"simple"==n.mode||n._renderHover(i,t,a),null!=t.subMenuElement){var l=e(t.subMenuElement);if("simple"==n.mode)return l.show(),!0;l.wrap(''),l.css({overflow:"hidden",position:"absolute",left:0,display:"inherit",top:-l.outerHeight()}),l.data("timer",{}),t.level>0?l.css("left",-l.outerWidth()):"horizontal"==n.mode&&l.css("left",0),s++;var h=e(t.subMenuElement).closest("div.jqx-menu-popup").css({width:parseInt(e(t.subMenuElement).outerWidth())+parseInt(r[0])+"px",height:parseInt(e(t.subMenuElement).outerHeight())+parseInt(r[1])+"px"}),d=i.closest("div.jqx-menu-popup");if(d.length>0){var c=l.css("margin-left"),u=l.css("margin-right"),p=l.css("padding-left"),m=l.css("padding-right");h.appendTo(d),l.css("margin-left",c),l.css("margin-right",u),l.css("padding-left",p),l.css("padding-right",m)}else{c=l.css("margin-left"),u=l.css("margin-right"),p=l.css("padding-left"),m=l.css("padding-right");h.appendTo(e(document.body)),l.css("margin-left",c),l.css("margin-right",u),l.css("padding-left",p),l.css("padding-right",m)}n.clickToOpen?(n.removeHandler(i,"mousedown"),n.addHandler(i,"mousedown",function(e){clearTimeout(l.data("timer").hide),null!=l&&l.stop(),0!=t.level||t.isOpen||(e.data=n,n._closeAll(e)),t.isOpen?n._closeItem(n,t,!0):n._openItem(n,t)})):((a||o)&&(n.removeHandler(i,e.jqx.mobile.getTouchEventName("touchstart")),n.addHandler(i,e.jqx.mobile.getTouchEventName("touchstart"),function(e){return clearTimeout(l.data("timer").hide),null!=l&&l.stop(),0!=t.level||t.isOpen||"popup"==n.mode||(e.data=n,n._closeAll(e)),t.isOpen?n._closeItem(n,t,!0):n._openItem(n,t),!1})),o||(n.addHandler(i,"mouseenter",function(){if((n.autoOpen||t.level>0&&!n.autoOpen)&&clearTimeout(l.data("timer").hide),t.parentId&&0!=t.parentId&&n.menuElements[t.parentId]){var e=n.menuElements[t.parentId].isOpen;if(!e)return}return(n.autoOpen||t.level>0&&!n.autoOpen)&&n._openItem(n,t),!1}),n.addHandler(i,"mousedown",function(){n.autoOpen||0!=t.level||(clearTimeout(l.data("timer").hide),null!=l&&l.stop(),t.isOpen?n._closeItem(n,t,!0):n._openItem(n,t))}),n.addHandler(i,"mouseleave",function(i){if(n.autoCloseOnMouseLeave){clearTimeout(l.data("timer").hide);var s=e(t.subMenuElement),r={left:parseInt(i.pageX),top:parseInt(i.pageY)},a={left:parseInt(s.coord().left),top:parseInt(s.coord().top),width:parseInt(s.outerWidth()),height:parseInt(s.outerHeight())},o=!0;a.left-5<=r.left&&r.left<=a.left+a.width+5&&a.top<=r.top&&r.top<=a.top+a.height&&(o=!1),o&&n._closeItem(n,t,!0)}}),n.removeHandler(h,"mouseenter"),n.addHandler(h,"mouseenter",function(){clearTimeout(l.data("timer").hide)}),n.removeHandler(h,"mouseleave"),n.addHandler(h,"mouseleave",function(e){n.autoCloseOnMouseLeave&&(clearTimeout(l.data("timer").hide),clearTimeout(l.data("timer").show),null!=l&&l.stop(),n._closeItem(n,t,!0))})))}}),"simple"==this.mode&&this._renderSimpleMode(),this._autoSizeHorizontalMenuItems(),this._raiseEvent("3",this)},_renderSimpleMode:function(){this.host.show()},createID:function(){var e=Math.random()+"";e=e.replace(".",""),e="99"+e,e/=1;while(this.items[e])e=Math.random()+"",e=e.replace(".",""),e/=1;return"menuItem"+e},_createMenu:function(t,i){if(null!=t){void 0==i&&(i=!0),null==i&&(i=!0);e(t).addClass("jqx-menu-ul");var s=e(t).find("li"),r=0;this.itemMapping=new Array;for(var n=0;n0?g:null,v.anchor&&e(v.anchor).attr("tabindex",-1)}v.ignoretheme=f;var b=this.menuElements[h];null!=b&&(b.ignoretheme&&(v.ignoretheme=b.ignoretheme,f=b.ignoretheme),v.parentItem=b,v.parentElement=b.element),this.autoGenerate&&("separator"==m?(o.removeClass(),o.addClass(this.toThemeProperty("jqx-menu-item-separator")),o.attr("role","separator")):f||(o[0].className.indexOf("jqx-grid-menu-item-touch")>=0?o[0].className=this.toThemeProperty("jqx-grid-menu-item-touch"):o[0].className="",this.rtl&&o.addClass(this.toThemeProperty("jqx-rtl")),v.level>0&&!d.minimized?(o.addClass(this.toThemeProperty("jqx-item")),o.addClass(this.toThemeProperty("jqx-menu-item"))):(o.addClass(this.toThemeProperty("jqx-item")),o.addClass(this.toThemeProperty("jqx-menu-item-top"))))),v.disabled&&(o.addClass(d.toThemeProperty("jqx-menu-item-disabled")),o.addClass(d.toThemeProperty("jqx-fill-state-disabled"))),this.itemMapping[n]={element:s[n],item:v},this.itemMapping["id"+s[n].id]=this.itemMapping[n],i&&!f&&(v.hasItems=o.find("li").length>0,v.hasItems&&v.element&&(e.jqx.aria(e(v.element),"aria-haspopup",!0),v.subMenuElement.id||(v.subMenuElement.id=e.jqx.utilities.createId()),e.jqx.aria(e(v.element),"aria-owns",v.subMenuElement.id)))}}for(var x=0;x0&&this.itemMapping["id"+s[x-1].id]&&(v.prevItem=this.itemMapping["id"+s[x-1].id].item),x0&&(t.refresh(),t._createMenu(a[0]),t._render())}"autoCloseOnClick"==i?0==r?t.removeHandler(e(document),"mousedown.menu"+this.element.id,t._closeAll):t.addHandler(e(document),"mousedown.menu"+this.element.id,t,t._closeAll):"mode"==i||"width"==i||"height"==i||"showTopLevelArrows"==i?(t.refresh(),"mode"==i?t._render(r,s):t._applyOrientation()):"theme"==i&&e.jqx.utilities.setTheme(s,r,t.host)}else if(t._setSize(),"popup"===t.mode){var o=this.host.closest("div.jqx-menu-wrapper");o[i](r);var l=this.host[0].id;e("#"+l)[i](r)}}})})(jqxBaseFramework),function(e){e.jqx._jqxMenu.jqxMenuItem=function(e,t,i){var s={id:e,parentId:t,parentItem:null,anchor:null,type:i,disabled:!1,level:0,isOpen:!1,hasItems:!1,element:null,subMenuElement:null,arrow:null,openHorizontalDirection:"right",openVerticalDirection:"down",closeOnClick:!0};return s}}(jqxBaseFramework)},"234d":function(e,t,i){var s=i("e380"),r=500;function n(e){var t=s(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}e.exports=n},"242e":function(e,t,i){var s=i("72af"),r=i("ec69");function n(e,t){return e&&s(e,t,r)}e.exports=n},"243f":function(e,t,i){var s=i("48a0");function r(e,t,i,r){return s(e,function(e,s,n){t(r,e,i(e),n)}),r}e.exports=r},2474:function(e,t,i){var s=i("2b3e"),r=s.Uint8Array;e.exports=r},2478:function(e,t,i){var s=i("4245");function r(e){return s(this,e).get(e)}e.exports=r},2524:function(e,t,i){var s=i("6044"),r="__lodash_hash_undefined__";function n(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=s&&void 0===t?r:t,this}e.exports=n},"253c":function(e,t,i){var s=i("3729"),r=i("1310"),n="[object Arguments]";function a(e){return r(e)&&s(e)==n}e.exports=a},2593:function(e,t,i){var s=i("15f3"),r=i("c6cf"),n=r(function(e,t){return null==e?{}:s(e,t)});e.exports=n},2686:function(e,t,i){var s=i("3729"),r=i("1310"),n="[object RegExp]";function a(e){return r(e)&&s(e)==n}e.exports=a},"26e8":function(e,t){function i(e,t){return null!=e&&t in Object(e)}e.exports=i},2768:function(e,t){function i(e){return null==e}e.exports=i},2769:function(e,t,i){var s=i("5ca0"),r=i("51f5"),n=s(r);e.exports=n},"28c9":function(e,t){function i(){this.__data__=[],this.size=0}e.exports=i},"29f3":function(e,t){var i=Object.prototype,s=i.toString;function r(e){return s.call(e)}e.exports=r},"2b03":function(e,t){function i(e,t,i,s){var r=e.length,n=i+(s?1:-1);while(s?n--:++nr?0:r+t),i=i>r?r:i,i<0&&(i+=r),r=t>i?0:i-t>>>0,t>>>=0;var n=Array(r);while(++s=h){var v=t?null:o(e);if(v)return l(v);p=!1,c=a,f=new s}else f=t?[]:m;e:while(++d1?i[n-1]:void 0,o=n>2?i[2]:void 0;a=e.length>3&&"function"==typeof a?(n--,a):void 0,o&&r(i[0],i[1],o)&&(a=n<3?void 0:a,n=1),t=Object(t);while(++s0){for(var i=0;i0){for(var n=999999999999999,a=-1,o=0;o0&&(t+="\t"),t+=r[f];t+="\r\n"}for(p=n;p<=a;p++){var v=0;this._clipboardselection[this._clipboardselection.length]=new Array,void 0!=this.clipboardselection[p]&&(e.each(this.clipboardselection[p],function(e,s){v>0&&(t+="\t");var r=s;null==s&&(r=""),i._clipboardselection[i._clipboardselection.length-1][v]=r,v++,t+=r}),p0){var t=e[0].rowindex,i=this.getrowdisplayindex(t),s=e[0].datafield,r=this._getcolumnindex(s);this.selectedrowindexes=new Array,this.selectedcells=new Array;e.length;var n=0,a=new Array;this.copytoclipboardwithheaders&&this._clipboardselection.splice(0,1);for(var o=0;o-1&&(h=h.replace(this.gridlocalization.currencysymbol,""));var v=function(e,t,i){var s=e;if(t==i)return e;var r=s.indexOf(t);while(-1!=r)s=s.replace(t,i),r=s.indexOf(t);return s};h=v(h,this.gridlocalization.thousandsseparator,""),h=h.replace(this.gridlocalization.decimalseparator,"."),h.indexOf(this.gridlocalization.percentsymbol)>-1&&(h=h.replace(this.gridlocalization.percentsymbol,""));for(var g="",b=0;b-1&&(h=h.replace(this.gridlocalization.currencysymbol,""));v=function(e,t,i){var s=e;if(t==i)return e;var r=s.indexOf(t);while(-1!=r)s=s.replace(t,i),r=s.indexOf(t);return s};h=v(h,this.gridlocalization.thousandsseparator,""),h=h.replace(this.gridlocalization.decimalseparator,"."),h.indexOf(this.gridlocalization.percentsymbol)>-1&&(h=h.replace(this.gridlocalization.percentsymbol,""));for(g="",b=0;b0){var a=this.getrowdata(e);a&&void 0!==a.dataindex?e=a.dataindex:a&&void 0===a.dataindex&&void 0!=a.uid&&(e=this.getrowboundindexbyid(a.uid))}var o=this.selectedrowindexes.indexOf(e);if(t)this.selectedrowindex=e,-1==o?(this.selectedrowindexes.push(e),"singlerow"!=this.selectionmode&&this._raiseEvent(2,{rowindex:e,row:this.getrowdata(e)})):"multiplerows"==this.selectionmode&&(this.selectedrowindexes.splice(o,1),this._raiseEvent(3,{rowindex:this.selectedrowindex,row:this.getrowdata(e)}),this.selectedrowindex=this.selectedrowindexes.length>0?this.selectedrowindexes[this.selectedrowindexes.length-1]:-1);else if(o>=0||"singlerow"==this.selectionmode||"multiplerowsextended"==this.selectionmode||"multiplerowsadvanced"==this.selectionmode){var l=this.selectedrowindexes[o];this.selectedrowindexes.splice(o,1),this._raiseEvent(3,{rowindex:l,row:this.getrowdata(e)}),this.selectedrowindex=-1}return(void 0==i||i)&&this._rendervisualrows(),!0},_applycellselection:function(e,t,i,s){if(null==e)return!1;if(null==t)return!1;this.selectedrowindex;if("singlecell"==this.selectionmode){var r=this.selectedcell;null!=r&&this._raiseEvent(16,{rowindex:r.rowindex,datafield:r.datafield}),this.selectedcells=new Array}if("multiplecellsextended"==this.selectionmode||"multiplecellsadvanced"==this.selectionmode){r=this.selectedcell;null!=r&&this._raiseEvent(16,{rowindex:r.rowindex,datafield:r.datafield})}var n=e+"_"+t;if(this.dataview.filters.length>0){var a=this.getrowdata(e);if(a&&void 0!==a.dataindex){e=a.dataindex;n=e+"_"+t}else if(a&&void 0===a.dataindex&&a.uid){e=this.getrowboundindexbyid(a.uid);n=e+"_"+t}}var o={rowindex:e,datafield:t};return i?(this.selectedcell=o,this.selectedcells[n]?"multiplecells"!=this.selectionmode&&"multiplecellsextended"!=this.selectionmode&&"multiplecellsadvanced"!=this.selectionmode||(delete this.selectedcells[n],this.selectedcells.length>0&&this.selectedcells.length--,this._raiseEvent(16,o)):(this.selectedcells[n]=o,this.selectedcells.length++,this._raiseEvent(15,o))):(delete this.selectedcells[n],this.selectedcells.length>0&&this.selectedcells.length--,this._raiseEvent(16,o)),(void 0==s||s)&&this._rendervisualrows(),!0},_getcellindex:function(t){var i=-1;return e.each(this.selectedcells,function(){if(i++,this[t])return!1}),i},_clearhoverstyle:function(){if(void 0!=this.hoveredrow&&-1!=this.hoveredrow&&!this.vScrollInstance.isScrolling()&&!this.hScrollInstance.isScrolling()){var e=this.table.find(".jqx-grid-cell-hover");e.length>0&&(e.removeClass(this.toTP("jqx-grid-cell-hover")),e.removeClass(this.toTP("jqx-fill-state-hover")));for(var t=0;t0){var u=this.getrowdata(c);if(u&&(c=u.dataindex,void 0==c))c=this.getboundindex(a)}var p=-1!=i.indexOf(c),m=this.getboundindex(a)+"_"+s;if(-1!=this.selectionmode.indexOf("cell")){var f=void 0!=this.selectedcells[m];if(void 0!=this.selectedcells[m]&&f?this._selectcellwithstyle(e,!1,o,s,d):this._selectcellwithstyle(e,!0,o,s,d),n&&void 0==this._lastClickedCell){var v=this.getselectedcells();v&&v.length>0&&(this._lastClickedCell={row:v[0].rowindex,column:v[0].datafield})}n&&this._lastClickedCell&&(this._selectpath(a.visibleindex,s),this.mousecaptured=!1,"visible"==this.selectionarea.css("visibility")&&this.selectionarea.css("visibility","hidden"))}else{if(p?r?this._applyrowselection(this.getboundindex(a),!1):this._selectrowwithstyle(e,d,!1,s):this._selectrowwithstyle(e,d,!0,s),n&&void 0==this._lastClickedCell){var g=this.getselectedrowindexes();g&&g.length>0&&(this._lastClickedCell={row:g[0],column:s})}if(n&&this._lastClickedCell){this.selectedrowindexes=new Array;for(var b=this._lastClickedCell?Math.min(this._lastClickedCell.row,a.visibleindex):0,x=this._lastClickedCell?Math.max(this._lastClickedCell.row,a.visibleindex):0,w=this.dataview.loadedrecords,y=b;y<=x;y++){a=w[y];a&&this._applyrowselection(this.getboundindex(a),!0,!1,!1)}this._rendervisualrows()}}}else this._clearselectstyle(),this._selectrowwithstyle(e,d,!0,s),-1!=this.selectionmode.indexOf("cell")&&this._selectcellwithstyle(e,!0,o,s,d);n||(this._lastClickedCell={row:a.visibleindex,column:s})}}}}},_selectcellwithstyle:function(t,i,s,r,n){var a=e(n.cells[t._getcolumnindex(r)]);a.removeClass(this.toTP("jqx-grid-cell-hover")),a.removeClass(this.toTP("jqx-fill-state-hover")),i?(a.addClass(this.toTP("jqx-grid-cell-selected")),a.addClass(this.toTP("jqx-fill-state-pressed"))):(a.removeClass(this.toTP("jqx-grid-cell-selected")),a.removeClass(this.toTP("jqx-fill-state-pressed")));var o=this.getcolumn(r);o._applyCellStyle(a)},_selectrowwithstyle:function(t,i,s,r){var n=i.cells.length,a=0;t.rowdetails&&t.showrowdetailscolumn?this.rtl?(n-=1,n-=this.groups.length):a=1+this.groups.length:this.groupable&&(this.rtl?n-=this.groups.length:a=this.groups.length);for(var o=a;o3||Math.abs(this.mousecaptureposition.top-d)>3){parseInt(this.columnsheader.coord().top);this.hasTransform&&e.jqx.utilities.getOffset(this.columnsheader).top,ho.left+this.host.width()&&(h=o.left+this.host.width());var c=o.top+r;d0&&Tt.pageX){if(H>=h&&h>=P){_=T,I=!0;break}}else if(H>=v&&v>=P){_=T,I=!0;break}}}else{T==y&&(S=!0);var H=C+e(this.columnsrow[0].cells[T]).width();if(i.mousecaptureposition.left>t.pageX){if(H>=h&&h>=P){_=T,I=!0;break}}else if(H>=v&&v>=P){_=T,I=!0;break}}}I||(i.mousecaptureposition.left>t.pageX?e.each(this.columns.records,function(e,t){return!!(i.groupable&&i.groups.length>0&&e0)&&(_=x.cells.length-1));var k=y;y=Math.min(y,_),_=Math.max(k,_),p+=5,p+=n;i.table[0].rows.indexOf(i.mousecaptureposition.clickedrow);var D=0,B=-1,E=-1,M=0;for(T=0;T=p){for(var W=!1,L=0;L0){for(W=!1,L=0;Lp+f){E=T;break}}if(-1!=B){p=e(i.table[0].rows[B]).coord().top-o.top-n-2;var F=0;this.filterable&&this.showfilterrow&&(F=this.filterrowheight),parseFloat(i.table[0].style.top)<0&&p0&&(i.selectedcells=new Array);var _=y;while(h=j&&u<=q||c>=j&&c<=q||j>=u&&j<=c)&&i._applycellselection(i.getboundindex(v),i._getcolumnat(I).datafield,!0,!1)}}h+=5}else h+=5}}i.autosavestate&&i.savestate&&i.savestate(),i._renderrows(i.virtualsizeinfo)}}},selectprevcell:function(e,t){var i=this._getcolumnindex(t),s=(this.columns.records.length,this._getprevvisiblecolumn(i));null!=s&&(this.clearselection(),this.selectcell(e,s.datafield))},selectnextcell:function(e,t){var i=this._getcolumnindex(t),s=(this.columns.records.length,this._getnextvisiblecolumn(i));null!=s&&(this.clearselection(),this.selectcell(e,s.datafield))},_getfirstvisiblecolumn:function(){for(var e=this.columns.records.length,t=0;t=0;t--){var i=this.columns.records[t];if(!i.hidden&&null!=i.datafield)return i}return null},_handlekeydown:function(t,i){if(i.groupable&&i.groups.length,i.disabled)return!1;var s=t.charCode?t.charCode:t.keyCode?t.keyCode:0;if(i.editcell&&"multiplecellsadvanced"!=i.selectionmode)return!0;if(i.editcell&&"multiplecellsadvanced"==i.selectionmode){if(!(s>=33&&s<=40))return!0;if(t.altKey)return i._cancelkeydown=!1,!0;if(void 0!=i._cancelkeydown&&0!=i._cancelkeydown)return i._cancelkeydown=!1,!0;if("selectedrow"===i.editmode)return!0;if(i.endcelledit(i.editcell.row,i.editcell.column,!1,!0),i._cancelkeydown=!1,i.editcell&&!i.editcell.validated)return i._rendervisualrows(),i.endcelledit(i.editcell.row,i.editcell.column,!1,!0),!1}if("none"==i.selectionmode)return!0;if(i.showfilterrow&&i.filterable&&this.filterrow&&e(t.target).ischildof(i.filterrow))return!0;if(i.showeverpresentrow){if(i.addnewrowtop&&e(t.target).ischildof(i.addnewrowtop))return!0;if(i.addnewrowbottom&&e(t.target).ischildof(i.addnewrowbottom))return!0}if(t.target.className&&t.target.className.indexOf("jqx-grid-widget")>=0)return!0;if(i.pageable&&e(t.target).ischildof(this.pager))return!0;if(this.showtoolbar&&e(t.target).ischildof(this.toolbar))return!0;if(this.showstatusbar&&e(t.target).ischildof(this.statusbar))return!0;var r=!1;if(t.altKey)return!0;if((t.ctrlKey||t.metaKey)&&this.clipboard){var n=String.fromCharCode(s).toLowerCase();if(this.clipboardbegin){var a=null;if("c"==n?a=this.clipboardbegin("copy",this.copyselection()):"x"==n?a=this.clipboardbegin("cut",this.copyselection()):"v"==n&&(a=this.clipboardbegin("paste")),!1===a)return!1}if("c"==n||"x"==n){var o=this.copyselection();if("c"==n&&this.clipboardend&&this.clipboardend("copy"),"x"==n&&this.clipboardend&&this.clipboardend("cut"),window.clipboardData)window.clipboardData.setData("Text",o);else{var l=e('