text: !function(e){e(function(){"use strict";e.support.transition=function(){var e=function(){var e=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"},n;for(n in t)if(e.style[n]!==undefined)return t[n]}();return e&&{end:e}}()})}(window.jQuery),!function(e){"use strict";var t='[data-dismiss="alert"]',n=function(n){e(n).on("click",t,this.close)};n.prototype.close=function(t){function s(){i.trigger("closed").remove()}var n=e(this),r=n.attr("data-target"),i;r||(r=n.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),i=e(r),t&&t.preventDefault(),i.length||(i=n.hasClass("alert")?n:n.parent()),i.trigger(t=e.Event("close"));if(t.isDefaultPrevented())return;i.removeClass("in"),e.support.transition&&i.hasClass("fade")?i.on(e.support.transition.end,s):s()},e.fn.alert=function(t){return this.each(function(){var r=e(this),i=r.data("alert");i||r.data("alert",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.alert.Constructor=n,e(function(){e("body").on("click.alert.data-api",t,n.prototype.close)})}(window.jQuery),!function(e){"use strict";function r(){i(e(t)).removeClass("open")}function i(t){var n=t.attr("data-target"),r;return n||(n=t.attr("href"),n=n&&/#/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,"")),r=e(n),r.length||(r=t.parent()),r}var t="[data-toggle=dropdown]",n=function(t){var n=e(t).on("click.dropdown.data-api",this.toggle);e("html").on("click.dropdown.data-api",function(){n.parent().removeClass("open")})};n.prototype={constructor:n,toggle:function(t){var n=e(this),s,o;if(n.is(".disabled, :disabled"))return;return s=i(n),o=s.hasClass("open"),r(),o||(s.toggleClass("open"),n.focus()),!1},keydown:function(t){var n,r,s,o,u,a;if(!/(38|40|27)/.test(t.keyCode))return;n=e(this),t.preventDefault(),t.stopPropagation();if(n.is(".disabled, :disabled"))return;o=i(n),u=o.hasClass("open");if(!u||u&&t.keyCode==27)return n.click();r=e("[role=menu] li:not(.divider) a",o);if(!r.length)return;a=r.index(r.filter(":focus")),t.keyCode==38&&a>0&&a--,t.keyCode==40&&a<r.length-1&&a++,~a||(a=0),r.eq(a).focus()}},e.fn.dropdown=function(t){return this.each(function(){var r=e(this),i=r.data("dropdown");i||r.data("dropdown",i=new n(this)),typeof t=="string"&&i[t].call(r)})},e.fn.dropdown.Constructor=n,e(function(){e("html").on("click.dropdown.data-api touchstart.dropdown.data-api",r),e("body").on("click.dropdown touchstart.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.dropdown.data-api touchstart.dropdown.data-api",t,n.prototype.toggle).on("keydown.dropdown.data-api touchstart.dropdown.data-api",t+", [role=menu]",n.prototype.keydown)})}(window.jQuery),!function(e){"use strict";function n(){var t=this,n=setTimeout(function(){t.$element.off(e.support.transition.end),r.call(t)},500);this.$element.one(e.support.transition.end,function(){clearTimeout(n),r.call(t)})}function r(e){this.$element.hide().trigger("hidden"),i.call(this)}function i(t){var n=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var i=e.support.transition&&r;this.$backdrop=e('<div class="modal-backdrop '+r+'" />').appendTo(document.body),this.options.backdrop!="static"&&this.$backdrop.click(e.proxy(this.hide,this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),i?this.$backdrop.one(e.support.transition.end,t):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,e.proxy(s,this)):s.call(this)):t&&t()}function s(){this.$backdrop.remove(),this.$backdrop=null}function o(){var t=this;this.isShown&&this.options.keyboard?e(document).on("keyup.dismiss.modal",function(e){e.which==27&&t.hide()}):this.isShown||e(document).off("keyup.dismiss.modal")}var t=function(t,n){this.options=n,this.$element=e(t).delegate('[data-dismiss="modal"]',"click.dismiss.modal",e.proxy(this.hide,this))};t.prototype={constructor:t,toggle:function(){return this[this.isShown?"hide":"show"]()},show:function(){var t=this,n=e.Event("show");this.$element.trigger(n),this.$element.trigger("fitContent.redu");if(this.isShown||n.isDefaultPrevented())return;e("body").addClass("modal-open"),this.isShown=!0,o.call(this),i.call(this,function(){var n=e.support.transition&&t.$element.hasClass("fade");t.$element.parent().length||t.$element.appendTo(document.body),t.$element.show(),n&&t.$element[0].offsetWidth,t.$element.addClass("in"),n?t.$element.one(e.support.transition.end,function(){t.$element.trigger("shown")}):t.$element.trigger("shown")})},hide:function(t){t&&t.preventDefault();var i=this;t=e.Event("hide"),this.$element.trigger(t);if(!this.isShown||t.isDefaultPrevented())return;this.isShown=!1,e("body").removeClass("modal-open"),o.call(this),this.$element.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?n.call(this):r.call(this)}},e.fn.modal=function(n){return this.each(function(){var r=e(this),i=r.data("modal"),s=e.extend({},e.fn.modal.defaults,r.data(),typeof n=="object"&&n);i||r.data("modal",i=new t(this,s)),typeof n=="string"?i[n]():s.show&&i.show()})},e.fn.modal.defaults={backdrop:!0,keyboard:!0,show:!0},e.fn.modal.Constructor=t,e(function(){e("body").on("click.modal.data-api",'[data-toggle="modal"]',function(t){var n=e(this),r,i=e(n.attr("data-target")||(r=n.attr("href"))&&r.replace(/.*(?=#[^\s]+$)/,"")),s=i.data("modal")?"toggle":e.extend({},i.data(),n.data());t.preventDefault(),i.modal(s)})})}(window.jQuery),!function(e){"use strict";var t=function(e,t){this.init("tooltip",e,t)};t.prototype={constructor:t,init:function(t,n,r){var i,s;this.type=t,this.$element=e(n),this.options=this.getOptions(r),this.enabled=!0,this.options.trigger!="manual"&&(i=this.options.trigger=="hover"?"mouseenter":"focus",s=this.options.trigger=="hover"?"mouseleave":"blur",this.$element.on(i,this.options.selector,e.proxy(this.enter,this)),this.$element.on(s,this.options.selector,e.proxy(this.leave,this))),this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},getOptions:function(t){return t=e.extend({},e.fn[this.type].defaults,t,this.$element.data()),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},enter:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);if(!n.options.delay||!n.options.delay.show)return n.show();clearTimeout(this.timeout),n.hoverState="in",this.timeout=setTimeout(function(){n.hoverState=="in"&&n.show()},n.options.delay.show)},leave:function(t){var n=e(t.currentTarget)[this.type](this._options).data(this.type);this.timeout&&clearTimeout(this.timeout);if(!n.options.delay||!n.options.delay.hide)return n.hide();n.hoverState="out",this.timeout=setTimeout(function(){n.hoverState=="out"&&n.hide()},n.options.delay.hide)},show:function(){var e,t,n,r,i,s,o;if(this.hasContent()&&this.enabled){e=this.tip(),this.setContent(),this.options.animation&&e.addClass("fade"),s=typeof this.options.placement=="function"?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,t=/in/.test(s),e.remove().css({top:0,left:0,display:"block"}).appendTo(t?this.$element:document.body),n=this.getPosition(t),r=e[0].offsetWidth,i=e[0].offsetHeight;switch(t?s.split(" ")[1]:s){case"bottom":o={top:n.top+n.height,left:n.left+n.width/2-r/2},this.$element.attr("data-original-title")===""&&this.$element.attr("rel")==="popover"&&(o={top:n.top+n.height,left:n.left+n.width-r+20},e.find(".arrow").css({left:"92%"}));break;case"top":o={top:n.top-i,left:n.left+n.width/2-r/2};break;case"left":o={top:n.top+n.height/2-i/2,left:n.left-r};break;case"right":o={top:n.top+n.height/2-i/2,left:n.left+n.width}}e.css(o).addClass(s).addClass("in")}},isHTML:function(e){return typeof e!="string"||e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3||/^(?:[^<]*<[\w\W]+>[^>]*$)/.exec(e)},setContent:function(){var e=this.tip(),t=this.getTitle();e.find(".tooltip-inner")[this.isHTML(t)?"html":"text"](t),e.removeClass("fade in top bottom left right")},hide:function(){function r(){var t=setTimeout(function(){n.off(e.support.transition.end).remove()},500);n.one(e.support.transition.end,function(){clearTimeout(t),n.remove()})}var t=this,n=this.tip();n.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?r():n.remove()},fixTitle:function(){var e=this.$element;(e.attr("title")||typeof e.attr("data-original-title")!="string")&&e.attr("data-original-title",e.attr("title")||"").removeAttr("title")},hasContent:function(){return this.getTitle()},getPosition:function(t){return e.extend({},t?{top:0,left:0}:this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight})},getTitle:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title),e},tip:function(){return this.$tip=this.$tip||e(this.options.template)},validate:function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},toggleEnabled:function(){this.enabled=!this.enabled},toggle:function(){this[this.tip().hasClass("in")?"hide":"show"]()}},e.fn.tooltip=function(n){return this.each(function(){var r=e(this),i=r.data("tooltip"),s=typeof n=="object"&&n;i||r.data("tooltip",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.tooltip.Constructor=t,e.fn.tooltip.defaults={animation:!0,placement:"bottom",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover",title:"",delay:0}}(window.jQuery),$(function(){$('[rel="tooltip"]').tooltip()}),!function(e){"use strict";var t=function(e,t){this.init("popover",e,t)};t.prototype=e.extend({},e.fn.tooltip.Constructor.prototype,{constructor:t,setContent:function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();t===""?(e.find(".popover-title").remove(),e.addClass("popover-no-title")):e.find(".popover-title")[this.isHTML(t)?"html":"text"](t),e.find(".popover-content > *")[this.isHTML(n)?"html":"text"](n),e.removeClass("fade top bottom left right in")},hasContent:function(){return this.getTitle()||this.getContent()},getContent:function(){var e,t=this.$element,n=this.options;return e=t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content),e},tip:function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip}}),e.fn.popover=function(n){return this.each(function(){var r=e(this),i=r.data("popover"),s=typeof n=="object"&&n;i||r.data("popover",i=new t(this,s)),typeof n=="string"&&i[n]()})},e.fn.popover.Constructor=t,e.fn.popover.defaults=e.extend({},e.fn.tooltip.defaults,{placement:"right",content:"",template:'<div class="popover"><div class="arrow"></div><div class="popover-inner"><h4 class="popover-title"></h4><div class="popover-content"><p></p></div></div></div>'})}(window.jQuery),$(function(){$('[rel="popover"][data-original-title]').popover(),$('[rel="popover"]').popover({placement:"bottom"})}),!function(e){"use strict";var t={checkSiblings:function(n,r){var i=r.parent().parent(),s=!0;r.siblings().each(function(){return s=e(this).children('input[type="checkbox"]').prop("checked")===n}),s&&n?(i.children('input[type="checkbox"]').prop({indeterminate:!1,checked:n}),t.checkSiblings(n,i)):s&&!n?(i.children('input[type="checkbox"]').prop("checked",n),i.children('input[type="checkbox"]').prop("indeterminate",i.find('input[type="checkbox"]:checked').length>0),t.checkSiblings(n,i)):r.parents("li").children('input[type="checkbox"]').prop({indeterminate:!0,checked:!1})},changeCheckBox:function(n){var r=e(this).prop("checked"),i=e(this).parent();i.find('input[type="checkbox"]').prop({indeterminate:!1,checked:r}),t.checkSiblings(r,i),n.data.filterGroup.find('input[type="checkbox"]').each(function(){var t=e(this);t.prop("checked")||t.prop("indeterminate")?t.parent().addClass(n.data.settings.filterCheckedClass):t.parent().removeClass(n.data.settings.filterCheckedClass)}),e(this).trigger("replaceSubTitle",[n.data.filterGroup])},uncheckFilter:function(e,t){e.find("."+t.filterClass).removeClass(t.filterActiveClass),e.find("."+t.filterSubTitleClass).text(""),e.find("li").removeClass(t.filterCheckedClass),e.find('input[type="checkbox"]').prop({checked:!1,indeterminate:!1})},replaceSubTitle:function(n,r){var i=r.find('input[type="checkbox"]:checked'),s=r.find("."+n.data.settings.filterClass),o="";i.length===1?o=i.siblings("label").text():i.length>1&&(o=i.length-1+" opções selecionadas");if(s.hasClass(n.data.settings.filterCoursesClass)){var u=r.find("."+n.data.settings.filterLevel2ItemClass+' > input[type="checkbox"]'),a=u.filter(":checked"),f=u.filter(function(t){return e(this).prop("indeterminate")});a.length===1?o=a.siblings("label").text():a.length>1&&(o=a.length+" cursos selecionados");if(f.length>=1){var l=r.find("."+n.data.settings.filterLevel3ItemClass+' > input[type="checkbox"]:checked');l.length===1?o=l.siblings("label").text():l.length>1&&(o=l.length+" disciplinas selecionadas")}}i.length>=1?(s.addClass(n.data.settings.filterActiveClass),r.siblings().each(function(){t.uncheckFilter(e(this),n.data.settings)})):s.removeClass(n.data.settings.filterActiveClass),o.length>28&&(o=o.substring(0,24)+"..."),r.find("."+n.data.settings.filterSubTitleClass).text(o)},init:function(n){var r=e.extend({filterEverythingClass:"filter-everything",filterActiveClass:"filter-active",filterDropdownMenuClass:"dropdown-menu",filterClass:"filter",filterCoursesClass:"filter-courses",filterLevel2ItemClass:"filter-level-2-item",filterLevel3ItemClass:"filter-level-3-item",filterSubTitleClass:"filter-sub-title",filterCheckedClass:"filter-checked"},n);return this.each(function(){var n=e(this),i=n.find("."+r.filterEverythingClass),s=i.parent().siblings();i.addClass(r.filterActiveClass),i.on("click",function(n){s.each(function(){t.uncheckFilter(e(this),r)})}),s.each(function(){var n=e(this);n.find('input[type="checkbox"]').each(function(){var i=e(this);i.prop("checked",!1),i.on("replaceSubTitle.reduFilter",{settings:r},t.replaceSubTitle),i.on("change",{settings:r,filterGroup:n},t.changeCheckBox)})}),n.find("."+r.filterDropdownMenuClass).on("click",function(e){e.stopPropagation()})})}};e.fn.reduFilter=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("O método "+n+" não existe em jQuery.reduFilter")}}(window.jQuery),$(function(){$(".filters-general-view").reduFilter()}),!function(e){"use strict";var t={countChars:function(t){var n=e.extend({characterCounterTemplate:e('<span class="character-counter legend"></span>')},t);return this.each(function(){var t=e(this),r=t.parent(),i=t.attr("maxlength"),s=function(e){var n=i-e;return n<=0?(t.is("textarea")&&t.text(t.text().substring(0,i)),"Nenhum caracter restante."):n===1?"1 caracter restante.":n+" caracteres restantes."};t.on({focusin:function(){n.characterCounterTemplate.text(s(t.val().length)),n.characterCounterTemplate.appendTo(r)},focusout:function(){n.characterCounterTemplate.remove()},keyup:function(){n.characterCounterTemplate.text(s(t.val().length))}})})},optionList:function(t){var n=e.extend({optionListCheckedClass:"control-option-list-checked",optionListCheckbox:"control-option-list-checkbox",textAreaClass:"input-area",appendAreaClass:"control-append-area",blue2:"#73C3E6"},t);return this.each(function(){var t=e(this),r=t.children("."+n.textAreaClass),i=t.children("."+n.appendAreaClass),s=i.children("."+n.optionListCheckbox);s.prop("checked")&&t.addClass(n.optionListCheckedClass),s.on("click",function(){t.toggleClass(n.optionListCheckedClass)}),r.on({focusin:function(){i.css("border-color",n.blue2)},focusout:function(){i.css("border-color","")}})})},search:function(t){var n=e.extend({iconMagnifierGray:"icon-magnifier-gray_16_18",iconMagnifierLightBlue:"icon-magnifier-lightblue_16_18",blue2:"#73C3E6",controlAreaClass:"control-area",controlAppendAreaClass:"control-append-area",searchIconClass:"control-search-icon"},t);return this.each(function(){var t=e(this),r=t.children("."+n.controlAreaClass),i=t.children("."+n.controlAppendAreaClass),s=i.children("."+n.searchIconClass);r.on({focusin:function(){s.removeClass(n.iconMagnifierGray),s.addClass(n.iconMagnifierLightBlue),i.css("border-color",n.blue2)},focusout:function(){s.removeClass(n.iconMagnifierLightBlue),s.addClass(n.iconMagnifierGray),i.css("border-color","")}})})},toggleFocusLabel:function(t){var n=e.extend({controlFocusedClass:"control-focused",controlGroupClass:"control-group"},t);e(this).parents("."+n.controlGroupClass).toggleClass(n.controlFocusedClass)},darkLabel:function(t){var n=e.extend({controlCheckedClass:"control-checked",radioClass:"radio",darkenLabel:function(e){e.toggleClass(n.controlCheckedClass),e.siblings("."+n.radioClass).removeClass(n.controlCheckedClass)}},t);return this.each(function(){var t=e(this),r=t.parent();t.prop("checked")&&r.addClass(n.controlCheckedClass),t.on("change",function(){n.darkenLabel(r)})})},resizeByRows:function(t){return this.each(function(){var t=e(this),n=t.attr("rows"),r=n!==""?parseInt(n,10):0;if(r!==0){var i=function(e){return typeof e!="undefined"?parseInt(e.replace("px",""),10):0},s=i(t.css("line-height")),o=i(t.css("border-top-width")),u=i(t.css("border-bottom-width")),a=i(t.css("margin-top")),f=i(t.css("margin-bottom")),l=i(t.css("padding-top")),c=i(t.css("padding-bottom"));t.height(r*s+o+u+a+f+l+c)}})},styleInputFile:function(t){var n=e.extend({buttonDefault:"button-default",buttonText:"Escolher arquivo",filePath:"control-file-text",filePathText:"Nenhum arquivo selecionado.",wrapper:"control-file-wrapper"},t);return this.each(function(){var t=e(this).css("opacity",0),r=t.val(),i=e(document.createElement("a")).addClass(n.buttonDefault).text(n.buttonText),s=e(document.createElement("span")).addClass(n.filePath).text(n.filePathText),o=e(document.createElement("div")).addClass(n.wrapper).append(i).append(s),u=t.parent();o.appendTo(u),t.height(o.height()),r!==""&&s.text(r),i.on("click",function(e){e.preventDefault,t.trigger("click")}),t.on("change",function(){var e=t.val();e===""?e=n.filePathText:e=e.replace("C:\\fakepath\\",""),s.text(e)})})},init:function(){}};e.fn.reduForm=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("O método "+n+" não existe em jQuery.reduForm")}}(window.jQuery),$(function(){$('input[type="text"][maxlength], input[type="password"][maxlength], textarea[maxlength]').reduForm("countChars"),$(document).on("focus blur",'input[type="text"], input[type="password"], input[type="file"], textarea, select',function(e){$(this).reduForm("toggleFocusLabel")}),$('input[type="radio"], input[type="checkbox"]').reduForm("darkLabel"),$(".form-search").reduForm("search"),$(".control-option-list").reduForm("optionList"),$("textarea[rows]").reduForm("resizeByRows"),$('input[type="file"]').reduForm("styleInputFile"),$("textarea").autosize(),placeHolderConfig={className:"placeholder",visibleToScreenreaders:!1,visibleToScreenreadersHideClass:"placeholder-hide-except-screenreader",visibleToNoneHideClass:"placeholder-hide",hideOnFocus:!1,removeLabelClass:"visuallyhidden",hiddenOverrideClass:"visuallyhidden-with-placeholder",forceHiddenOverride:!0,forceApply:!1,autoInit:!0}}),!function(e){"use strict";var t={init:function(t){var n=e.extend({linkTargetClass:"link-target"},t);return this.each(function(){var t=e(this),r=t.find("."+n.linkTargetClass);t.on("click",function(t){e(t.target).is('input[type="checkbox"]')||r.click()})})}};e.fn.reduLinks=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("O método "+n+" não existe em jQuery.reduLinks")}}(window.jQuery),$(function(){$(".link-container").reduLinks()}),!function(e){"use strict";var t={toggleDropdown:function(t){var n=e.extend({},e.fn.reduList.defaults,t),r=e(this),i=r.closest("."+n.classes.listMixItem),s=i.find("."+n.classes.listMixHeaderLegend),o=i.find("."+n.classes.listMixBody),u=i.find("."+n.classes.listMixInfo);return i.hasClass(n.classes.openState)?s.css("visibility","visible"):s.css("visibility","hidden"),u.toggle(),i.toggleClass(n.classes.openState),o.toggle(150,"swing"),r},init:function(e){}};e.fn.reduList=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("O método "+n+" não existe em jQuery.reduList")},e.fn.reduList.defaults={classes:{listMixItem:"list-mix-item",listMixHeaderLegend:"list-mix-header .legend",listMixBody:"list-mix-body",listMixInfo:"list-mix-info",openState:"open"}},e(function(){e(document).on("click",".list-mix .button-dropdown:not(.button-disabled)",function(t){e(this).reduList("toggleDropdown")})})}(window.jQuery),$(function(){$(".button-disabled").live("click",function(e){e.preventDefault()})}),!function(e){"use strict";var t={toggleState:function(t){var n=e.extend({},e.fn.reduTables.defaults,t),r=e(this),i=r.closest("tr"),s=r.closest(n.selectors.form);return i.toggleClass(n.classes.checkboxSelected),s.trigger("verifySubmit"),r},verifySubmit:function(t){var n=e.extend({},e.fn.reduTables.defaults,t),r=e(this),i=r.find('input[type="submit"]'),s=r.find('input[type="checkbox"]');return s.each(function(){var t=e(this);if(t.is(":checked"))return i.removeAttr("disabled"),!1;s.filter(":checked").length===0&&i.attr("disabled","disabled")}),r},init:function(e){}};e.fn.reduTables=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("O método "+n+" não existe em jQuery.reduTables")},e.fn.reduTables.defaults={classes:{checkboxSelected:"table-checkbox-selected"},selectors:{form:".form-checklist"}},e(function(){var t=e.fn.reduTables.defaults.selectors.form+' td input[type="checkbox"]',n=e(e.fn.reduTables.defaults.selectors.form+' input[type="submit"]').attr("disabled","disabled"),r=!1;e(document).on("change",t,function(t){e(this).reduTables("toggleState")}).on("verifySubmit",e.fn.reduTables.defaults.selectors.form,function(t){e(this).reduTables("verifySubmit")}),e(t).filter(":checked").each(function(){e(this).reduTables("toggleState"),r=!0}),r&&n.removeAttr("disabled")})}(window.jQuery),!function(e){"use strict";var t={originalInput:"control-autocomplete-input",tokenInputPrefix:"token-input-",triggerInviteByMail:"inviteByMail.reduAutocomplete",dropdown:"control-autocomplete-dropdown",name:"control-autocomplete-name",mail:"control-autocomplete-mail legend",suggestion:"control-autocomplete-suggestion",inviteClickText:"Clique aqui para convidar este endereço de e-mail",buttonStyle:"button-primary",listMix:"list-mix",listMixItem:"list-mix-item",listMixInner:"list-mix-inner",close:"control-autocomplete-close",iconClose:"icon-close-gray_16_18 show",addedInfo:"control-autocomplete-added-info",inviteText:"(Convidar para o Redu)",invites:"control-autocomplete-invites"},n={createInvite:function(n){return e('<li class="'+t.listMixItem+'"><div class="'+t.listMixInner+'"><span class="'+t.close+'"><span class="'+t.iconClose+'"></span></span><div class="'+t.addedInfo+'"><span class="'+t.name+'">'+n+'</span><span class="'+t.mail+'">'+t.inviteText+"</span></div></div></li>")},inviteByMail:function(r){return t=e.extend(t,r),this.each(function(){var r=e(this),i=r.find("."+t.originalInput);i.on(t.triggerInviteByMail,function(){var s=e.trim(r.find("#"+t.tokenInputPrefix+i.attr("id")).val()),o=/^([a-zA-Z0-9])+@([a-zA-Z0-9])+\.([a-zA-Z])+([a-zA-Z])+/;if(o.test(s)){var u=r.find("."+t.dropdown),a=e(document.createElement("button")).addClass(t.buttonStyle).text(t.inviteClickText),f=r.find("."+t.listMix);u.html(a),a.on("click",function(i){i.preventDefault();var o=!1,u=r.find("."+t.invites);u.val().indexOf(s)>=0&&(o=!0);if(!o){var a=n.createInvite(s),l=a.find("."+t.close);l.on("click",function(n){n.preventDefault;var r=e(this).parents("."+t.listMixItem);r.remove(),u.val(e.trim(u.val().replace(","," ").replace(s,"")).replace(" ",",").replace(",,",","))});var c=e.trim(u.val()+" "+s);u.val(c.split(" ").join(",")),f.append(a)}})}})})},init:function(e){n.inviteByMail(e)}};e.fn.reduAutocomplete=function(t){if(n[t])return n[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return n.init.apply(this,arguments);e.error("O método "+t+" não existe em jQuery.reduAutocomplete")}}(window.jQuery),$(function(){$(".control-invite-by-mail").reduAutocomplete("inviteByMail")}),!function(e){"use strict";var t={checkLabel:function(e){var t=e.siblings("label");e.prop("checked")?t.addClass("local-nav-checked icon-confirm-green_16_18-after"):t.removeClass("local-nav-checked icon-confirm-green_16_18-after")},init:function(){return this.each(function(){var n=e(this);n.find("li").click(function(t){window.location=e(this).children("a").first().attr("href")});var r=n.find('input[type="checkbox"]');r.filter(":checked").each(function(){t.checkLabel(e(this))}),r.change(function(n){t.checkLabel(e(this))})})}};e.fn.localNav=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("O método "+n+" não existe em jQuery.localNav")}}(window.jQuery),$(function(){$(".local-nav").localNav()}),!function(e){"use strict";var t={modal:"modal",modalBody:"modal-body",scrollArrow:"modal-scroll-arrow"},n={displayHidden:function(e){var t=!0;return e.css("display")==="none"&&(e.css({visibility:"hidden",display:"block"}),t=!1),t},displayVisible:function(e){e.css({visibility:"visible",display:"none"})},fitContent:function(r,i){var s=r.find("."+t.modalBody),o,u=!0;o=n.displayHidden(r);var a=s.height()+e(window).height()-i.verticalMargin*2-r.height()+"px",f=s[0].scrollHeight-(parseInt(s.css("padding-top"),10)+parseInt(s.css("padding-bottom"),10));f<=parseInt(a,10)&&(a=f,u=!1),s.css("max-height",a),s.css("height",a),u&&r.css("top",i.verticalMargin),o||n.displayVisible(r)},fillHeight:function(t){var r=e.extend({verticalMargin:20},t);return this.each(function(){var t=e(this);t.on("fitContent.redu",function(e){n.fitContent(t,r)}),t.trigger("fitContent.redu")})},fillHorizontal:function(t){var n=e.extend({horizontalMargin:20},t);return this.each(function(){var t=e(this),r=e(window).width()-2*n.horizontalMargin;t.css("left",0);var i=t.outerWidth();i<=r&&(r=i),t.css("marginLeft",-1*(r/2)),t.css("width",r),t.css("left","50%")})},hasScrollBar:function(e){var t=e.get(0);return t.scrollHeight>t.clientHeight},scrollArrow:function(r){var i=e.extend({arrowUp:"↑",arrowDown:"↓",arrowWidth:9},r);return this.each(function(){var r=e(this),s=r.parent("."+t.modal);n.displayHidden(s);if(n.hasScrollBar(r)){var o=e(document.createElement("span")).addClass(t.scrollArrow).html(i.arrowDown),u=r.offset(),a=(parseInt(r.css("padding-left"),10)-i.arrowWidth)/2,f=u.top-e(window).scrollTop()+5,l=f+r.height();o.css({top:l,left:u.left+a}),r.append(o),r.scroll(function(){var e=r.scrollTop();e===0?o.css("top",l).html(i.arrowDown):e+r.innerHeight()>=r.get(0).scrollHeight&&o.css("top",f).html(i.arrowUp)})}n.displayVisible(s)})}};e.fn.reduModal=function(t){if(n[t])return n[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return n.init.apply(this,arguments);e.error("O método "+t+" não existe em jQuery.reduModal")}}(window.jQuery),$(function(){$(".modal").reduModal("fillHeight"),$(".modal-scroll").reduModal("scrollArrow"),$(".modal-fill-horizontal").reduModal("fillHorizontal");var e=/#[a-zA-Z\-_\d]*/.exec(document.URL);if(e!==null){var t=$(e[0]);t.length!==0&&t.hasClass("modal")&&t.modal("show")}}),!function(e){"use strict";var t={buttonDefault:"button-default",buttonPrimary:"button-primary",buttonDanger:"button-danger",buttonSuccess:"button-success",buttonDisabled:"button-disabled",linkSecondary:"link-secondary",spinnerHorizontalBlue:"spinner-horizontal-blue",spinnerCircularGray:"spinner-circular-gray",spinnerCircularBlue:"spinner-circular-blue",imgPath:"img/",spinnerCircularBlueGif:"spinner-blue.gif",spinnerCircularGrayGif:"spinner-grey.gif",spinnerCSS:{display:"inline-block","vertical-align":"middle"}},n={hasButtonClass:function(e){return e.hasClass(t.buttonDefault)||e.hasClass(t.buttonPrimary)||e.hasClass(t.buttonDanger)||e.hasClass(t.buttonSuccess)},ajaxBefore:function(r){t=e.extend(t,r);var i=e(this);if(i.is("form")){var s=i.find("input:submit"),o=t.spinnerCircularGray;s.hasClass(t.buttonDefault)&&(o=t.spinnerCircularBlue),s.addClass(o).prop("disabled",!0).data("spinnerClass",o).data("content",s.val()).css({width:s.outerWidth(),height:s.outerHeight()}).val("")}if(n.hasButtonClass(i)){var u=t.imgPath;i.hasClass(t.buttonDefault)?u+=t.spinnerCircularBlueGif:u+=t.spinnerCircularGrayGif;var a=function(t){var n=[];return t=t.split(" "),e.each(t,function(e,t){t.indexOf("icon-")!==-1&&n.push(t)}),n.join(" ")},f=i.html(),l=i.width(),c=i.height(),h=a(i.attr("class")),p=e(document.createElement("img")).attr("src",u).css(t.spinnerCSS);i.addClass(t.buttonDisabled).removeClass(h).data("content",f).data("class",h).html(p).css({width:l,height:c})}else if(i.is("a")){var d=t.spinnerCircularGray;i.hasClass(t.linkSecondary)&&(d=t.spinnerHorizontalBlue),i.data("spinnerClass",d),i.addClass(d)}},ajaxComplete:function(r){t=e.extend(t,r);var i=e(this);if(i.is("form")){var s=i.find("input:submit");s.removeClass(s.data("spinnerClass")).prop("disabled",!1).val(s.data("content"))}n.hasButtonClass(i)?i.removeClass(t.buttonDisabled).addClass(i.data("class")).html(i.data("content")):i.is("a")&&i.removeClass(i.data("spinnerClass"))}};e.fn.reduSpinners=function(t){if(n[t])return n[t].apply(this,Array.prototype.slice.call(arguments,1));if(typeof t=="object"||!t)return n.init.apply(this,arguments);e.error("O método "+t+" não existe em jQuery.reduSpinners")}}(window.jQuery),$(function(){$(document).on("ajax:beforeSend",'[data-remote="true"]',function(e,t){$(this).reduSpinners("ajaxBefore")}).on("ajax:complete",'[data-remote="true"]',function(e,t){$(this).reduSpinners("ajaxComplete")})}),!function(e){"use strict";var t=function(t,n){this.$element=e(t),this.options=e.extend({},e.fn.searchField.defaults,n)};t.prototype.expand=function(){var t=e(this.$element.data("toggle"));this.$element.parent().animate({width:"+="+this.options.increment},"fast"),t.hide()},t.prototype.collapse=function(){var t=e(this.$element.data("toggle"));this.$element.parent().animate({width:"-="+this.options.increment},"fast"),t.show()},e.fn.searchField=function(n){return this.each(function(){var r=e(this),i=r.data("searchField"),s=typeof n=="object"&&n;i||r.data("searchField",i=new t(this,s)),n=="expand"?i.expand():n=="collapse"&&i.collapse()})},e.fn.searchField.defaults={increment:120},e.fn.searchField.Constructor=t,e(function(){e("body").on("focus",".form-search input[data-toggle]",function(t){var n=e(t.target);n.searchField("expand")}).on("blur",".form-search input[data-toggle]",function(t){var n=e(t.target);n.searchField("collapse")})})}(window.jQuery);