From fd2b46bacc8a6d9c7d103de6bc98a0603aa43af0 Mon Sep 17 00:00:00 2001 From: Italo Moraes Date: Mon, 5 Sep 2016 15:57:47 -0300 Subject: [PATCH] Bump version to: 3.9.0 --- bower.json | 2 +- config.rb | 2 +- dist/javascripts/locastyle.js | 4 +- .../fonts/locastyle-panel-icons.eot | Bin 8700 -> 8680 bytes .../fonts/locastyle-panel-icons.json | 635 +++++++++--------- .../fonts/locastyle-panel-icons.svg | 19 +- .../fonts/locastyle-panel-icons.ttf | Bin 8536 -> 8516 bytes .../fonts/locastyle-panel-icons.woff | Bin 8612 -> 8592 bytes dist/stylesheets/fonts/locastyle.eot | Bin 22996 -> 22632 bytes dist/stylesheets/fonts/locastyle.svg | 1 + dist/stylesheets/fonts/locastyle.ttf | Bin 22832 -> 22468 bytes dist/stylesheets/fonts/locastyle.woff | Bin 22908 -> 22544 bytes dist/stylesheets/locastyle.css | 4 +- package.json | 2 +- 14 files changed, 354 insertions(+), 315 deletions(-) diff --git a/bower.json b/bower.json index dd07be24f..2560de09e 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "locawebstyle", - "version": "3.8.6", + "version": "3.9.0", "homepage": "http://locaweb.github.io/locawebstyle/", "authors": [ "Locaweb Front-end Team " diff --git a/config.rb b/config.rb index c5000aa05..f902ddb3a 100644 --- a/config.rb +++ b/config.rb @@ -86,7 +86,7 @@ def assets_files(dir) set :base_url, "" -set :stable, "3.8.6" +set :stable, "3.9.0" set :css_dir, 'assets/stylesheets' set :js_dir, 'assets/javascripts' diff --git a/dist/javascripts/locastyle.js b/dist/javascripts/locastyle.js index 75cf7f592..07bff954b 100644 --- a/dist/javascripts/locastyle.js +++ b/dist/javascripts/locastyle.js @@ -1,4 +1,4 @@ -/*! Locastyle version: 3.8.6*/ /** +/*! Locastyle version: 3.9.0*/ /** * * Copyright 2013 LinkedIn Corp. All rights reserved. @@ -69,5 +69,5 @@ function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("mom * * Copyright © 2013 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday */ -function(t,e){"use strict";"object"==typeof exports?e(require("jquery"),require("../pikaday")):"function"==typeof define&&define.amd?define(["jquery","pikaday"],e):e(t.jQuery,t.Pikaday)}(this,function(t,e){"use strict";t.fn.pikaday=function(){var n=arguments;return n&&n.length||(n=[{}]),this.each(function(){var a=t(this),s=a.data("pikaday");if(s instanceof e)"string"==typeof n[0]&&"function"==typeof s[n[0]]&&s[n[0]].apply(s,Array.prototype.slice.call(n,1));else if("object"==typeof n[0]){var i=t.extend({},n[0]);i.field=a[0],a.data("pikaday",new e(i))}})}}),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_popover"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?i(t):""},s=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('
\n '),this.title&&(n.push('\n
\n

'),n.push(a(this.title)),n.push("

\n
\n ")),n.push("\n "),this.content&&n.push("\n "),n.push('\n
'),n.push(this.content),n.push("
\n
\n")}).call(this)}.call(t),t.safe=s,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_modal"]=function(t){t||(t={});var e,n=[],a=function(t){return t&&t.ecoSafe?t:"undefined"!=typeof t&&null!=t?i(t):""},s=t.safe,i=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},i||(i=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('\n")}).call(this)}.call(t),t.safe=s,t.escape=i,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_dropdown"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){var t,e,a,s;for(n.push('
\n \n
    \n '),s=this.elements,e=0,a=s.length;a>e;e++)t=s[e],n.push("\n "),""!==t.text&&(n.push("\n
  • "),n.push(t.outerHTML),n.push("
  • \n ")),n.push("\n ");n.push("\n
\n
\n")}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this),function(){this.JST||(this.JST={}),this.JST["locastyle/templates/_browser-unsupported-bar"]=function(t){t||(t={});var e,n=[],a=t.safe,s=t.escape;return e=t.safe=function(t){if(t&&t.ecoSafe)return t;("undefined"==typeof t||null==t)&&(t="");var e=new String(t);return e.ecoSafe=!0,e},s||(s=t.escape=function(t){return(""+t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}),function(){(function(){n.push('
\n ×\n Atualize seu navegador!
Baixe a vers\xe3o mais recente:
\n Firefox, Chrome,\n ou\n Safari\n
\n')}).call(this)}.call(t),t.safe=a,t.escape=s,n.join("")}}.call(this);var locastyle=function(){"use strict";function t(){locastyle.sidebarToggle.init(),locastyle.sidebars.init()}function e(){locastyle.breakpoints.init(),n(),locastyle.general.init(),locastyle.btnGroup.init(),locastyle.alert.init(),locastyle.datepicker.init(),locastyle.form.togglePasswordField(),locastyle.form.triggerCalendar(),a(),locastyle.browserDetect.init(),locastyle.popover.startOpened()}function n(){var t=s();for(var e in t)t.hasOwnProperty(e)&&(locastyle[t[e]].init(),console.info("Locastyle: module ["+t[e]+"] successfully initialized."),$.event.trigger(t[e]+":ready"))}function a(){$("html").hasClass("ls-trackevent-on")&&locastyle.trackEvents.init()}function s(){var t=[];return $("[data-ls-module]").each(function(){var e=$(this).data("ls-module");-1===t.indexOf(e)&&t.push(e)}),t}return{init:e,fastInit:t}}(),ls=locastyle;$(window).on("load",function(){"use strict";ls.init()}),$(document).ready(function(){"use strict";ls.fastInit()});var locastyle=locastyle||{};locastyle.breakpoints=function(){"use strict";function t(t){s.html=$("html"),e(t),n(t),a()}function e(t){var e;e=t?t.documentWidth:$(document).width(),e=s.sm&&e=s.md&&e=s.sm&&e=s.md&&e')}function r(){var t=$(".ls-menu").find("ul li ul");$(t).each(function(){$(this).addClass("ls-submenu"),$(this).parent("li").addClass("ls-submenu-parent"),$(this).find("a").addClass("ls-submenu-item")})}function l(){$(".ls-submenu-parent").on("click","> a",function(t){t.preventDefault(),$(this).parents(".ls-submenu-parent").hasClass("ls-active")?u($(this)):c($(this))})}function c(t){var e=$(t).parents(".ls-submenu-parent");$(".ls-submenu-parent").removeClass("ls-active"),e.addClass("ls-active"),g(e)}function u(t){var e=$(t).parents(".ls-submenu-parent");e.removeClass("ls-active"),g(e)}function d(){$(".ls-sidebar-toggled").length||$(".ls-submenu li.ls-active").each(function(){c($(this))})}function h(){$(window).on("sidebar-minimize",function(){$(".ls-submenu li").each(function(){u($(this))})}),$(window).on("sidebar-maximize",function(){$(".ls-submenu li.ls-active").each(function(){c($(this))})})}function f(){$(document).on("click",function(t){var e=$(t.target);$(".ls-sidebar-toggled").length&&$(".ls-submenu-parent.ls-active").length&&(e.is(".ls-submenu-parent.ls-active *")||u($(".ls-submenu-parent.ls-active > a")))})}function p(){var t=$(".ls-menu");t.attr({role:"navigation"}),t.find("ul").attr({role:"menu"}),t.find("a").attr({role:"menuitem"}),$(".ls-submenu-parent").each(function(t,e){g(e)})}function g(t){$(t).hasClass("ls-active")?$(t).attr({"aria-expanded":"true","aria-hidden":"false"}):$(t).attr({"aria-expanded":"false","aria-hidden":"true"})}function m(){$(".ls-show-sidebar").off("touchstart.ls click.ls"),$(".ls-show-notifications").off("touchstart.ls click.ls"),$(".ls-submenu-parent > a").off("click.ls")}return{init:t,unbind:m}}();var locastyle=locastyle||{};locastyle.sidebarToggle=function(){"use strict";function t(){r(),n(),e(),a(),o()}function e(){$(".ls-sidebar").length&&$(".ls-sidebar").append('')}function n(){var t=localStorage.getItem("stateSidebar");t||$("html").hasClass("ls-sidebar-toggled")?s():i()}function a(){$(".ls-sidebar-toggle").on("click",function(){$("html").hasClass("ls-sidebar-toggled")?i():s()})}function s(){$("html").addClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").addClass("ls-active"),localStorage.setItem("stateSidebar","minimized"),$.event.trigger("sidebar-minimize")}function i(){$("html").removeClass("ls-sidebar-toggled"),$(".ls-sidebar-toggle").removeClass("ls-active"),localStorage.removeItem("stateSidebar"),$.event.trigger("sidebar-maximize")}function o(){$(window).on("breakpoint-updated",function(){$(".ls-window-xs").length&&i()})}function r(){$(".ls-sidebar-toggle").off("click")}return{init:t}}();var locastyle=locastyle||{};locastyle.collapse=function(){"use strict";function t(){$(o.trigger).each(function(){s($(this))}),e()}function e(){$(o.trigger).each(function(t,e){var r=$(e);r.hasClass(o.classes.alwaysOpened)||r.find(o.classes.header).on(o.event.click,function(t){t.preventDefault(),n(r),a(r),s(r)}),0===r.find(o.classes.header).length&&(r.off(o.event.click),r.on(o.event.click,function(t){t.preventDefault(),i($(e).data("target"))}))})}function n(t){var e=t.parents(o.classes.groupContainer);e[0]&&e.find(o.trigger).not(t).removeClass(o.classes.opened)}function a(t){t.hasClass(o.classes.opened)?(t.removeClass(o.classes.opened),t.trigger("collapse:closed")):(t.addClass(o.classes.opened),t.trigger("collapse:opened"))}function s(t){$(t).hasClass(o.classes.opened)?($(t).find(o.classes.header).attr({"aria-expanded":!0}),$(t).find(o.classes.content).attr({"aria-hidden":!1})):($(t).find(o.classes.header).attr({"aria-expanded":!1}),$(t).find(o.classes.content).attr({"aria-hidden":!0}))}function i(t){$(t).prev(o.classes.header).trigger(o.event.click)}var o={trigger:'[data-ls-module="collapse"]',classes:{header:".ls-collapse-header",content:".ls-collapse-body",groupContainer:".ls-collapse-group",open:"ls-collapse-open",close:"ls-collapse-close",opened:"ls-collapse-opened",alwaysOpened:"ls-collapse-opened-always"},event:{click:"click.ls"}};return{init:t,toggle:i}}();var locastyle=locastyle||{};locastyle.modal=function(){"use strict";function t(){n(),a()}function e(){$(document).off("keyup.ls-esc"),$(c.close.classes+", "+c.close.trigger).off("click.ls")}function n(){$(c.open.trigger).off("click.ls"),e()}function a(){$(c.open.trigger).on("click.ls",function(){locastyle.modal.open($(this))}),$(".ls-opened").length>0&&r("#"+$(".ls-opened").attr("id"))}function s(){$(document).one("keyup.ls-esc",function(t){27===t.keyCode&&$(".ls-opened")&&locastyle.modal.close()}),$(c.close.classes+", "+c.close.trigger).on("click.ls",function(t){return t.target!==t.currentTarget?!0:void locastyle.modal.close()})}function i(t){var e=null;$("body").addClass(c.classes.open),$(t).data("target")||"object"!=typeof t?e=$(t).data("target")?$(t.data("target")):$(t):(e=$(locastyle.templates.modal(t.data())),$("body").append(e),$(".ls-modal-template").focus(),s()),e.addClass("ls-opened"),e.trigger(c.open.triggerOpened,t),l(t),r(t)}function o(){var t=$(".ls-modal.ls-opened");$("body").removeClass(c.classes.open),t.attr("aria-hidden",!0),t.removeClass("ls-opened"),e(),t.trigger(c.close.triggerClosed),t.hasClass("ls-modal-template")&&t.remove()}function r(t){var e=$(t).data("target")?$(t.data("target")):$(t);e.each(function(t,e){void 0!==$(e).data("modal-blocked")?$(e).find('[data-dismiss="modal"]').remove():s()})}function l(t){var e=$(t).data("target")?$(t.data("target")):$(t),n=e.find(".ls-modal-title").attr("id")||"lsModal"+c.lsModal++;e.find(".ls-modal-title").attr("id",n),e.attr({role:"dialog","aria-hidden":!1,"aria-labelledby":n,tabindex:"-1"}).focus()}var c={open:{trigger:'[data-ls-module="modal"]',triggerOpened:"modal:opened"},close:{classes:".ls-modal",trigger:'[data-dismiss="modal"]',triggerClosed:"modal:closed"},classes:{open:"ls-overflow-hidden"},lsModal:0};return{init:t,open:i,close:o,unbind:n}}();var locastyle=locastyle||{};locastyle.alert=function(){"use strict";function t(){e()}function e(){$('[class*="ls-alert"]').attr({role:"alert"})}return{init:t}}();var locastyle=locastyle||{};locastyle.dismiss=function(){"use strict";function t(){e(),n()}function e(){$(i.trigger).off("click.ls")}function n(){$(i.trigger).on("click.ls",function(){a(this),locastyle.topbarCurtain.updateStatusCounter()})}function a(t){var e=$(t).parents(".ls-dismissable");$(t).data("target")&&(e=$(t).data("target")),s(e)}function s(t){$(t).addClass("ls-dismissed"),$(t).trigger(i.triggerClose)}var i={trigger:"[data-ls-module=dismiss]",triggerClose:"dismiss:close"};return{init:t,unbind:e}}();var locastyle=locastyle||{};locastyle.popover=function(){"use strict";function t(){r(),e()}function e(){$(c.module).each(function(t,e){var o="hover"===$(e).attr("data-trigger")?"mouseover":c.trigger;$(e).attr("data-target",c.idPopover+t);var l=$(e).data("target");$(e).on(o,function(u){u.preventDefault(),u.stopPropagation(),$(l).hasClass("ls-active")?i(l):($(c.idPopover+t).length||n(t,e),s(l),r(l)),"mouseover"===o&&$(e).on("mouseout",function(){i(l)}),a(e)}),$(window).on("breakpoint-updated",function(){a(e)})})}function n(t,e){var n={index:t,title:$(e).data("title"),content:$(e).data("content"),placement:$(e).data("placement"),customClasses:$(e).data("custom-class")};$("body").append(locastyle.templates.popover(n))}function a(t){var e={target:$(t).data("target"),top:$(t).offset().top,left:$(t).offset().left,width:$(t).outerWidth(),height:$(t).outerHeight(),placement:$(t).data("placement")};switch(e.placement){case"right":$(e.target).css({top:e.top+=e.height/2-2,left:e.left+=e.width+12});break;case"bottom":$(e.target).css({top:e.top+=e.height+12,left:e.left+=e.width/2});break;case"left":$(e.target).css({top:e.top+=e.height/2-2,left:e.left-=12});break;default:case"top":$(e.target).css({top:e.top-=12,left:e.left+=e.width/2})}}function s(t){$(t).addClass("ls-active"),$(t).off(c.events.closed).trigger(c.events.opened)}function i(t){$(t||".ls-popover.ls-active").removeClass("ls-active"),$(t).trigger(c.events.closed).off(c.events.opened),$(".ls-popover.ls-active").length||$(document).off(c.events.clickAnywhere)}function o(){$(c.popoverClass).remove(),$.each(c.events,function(t,e){$(document).unbind(e)}),$(document).trigger(c.events.destroyed)}function r(t){$(document).on(c.events.clickAnywhere,function(e){$(e.target).parents(".ls-popover").length||i(t)})}function l(){$(c.module+'[data-ls-popover="open"]').each(function(){$(this).trigger("click")})}var c={module:'[data-ls-module="popover"]',idPopover:"#ls-popover-",popoverClass:".ls-popover",trigger:"click",events:{clickAnywhere:"click.clickanywhere",opened:"popover:opened",closed:"popover:closed",destroyed:"popover:destroyed"}};return{init:t,show:s,hide:i,destroy:o,startOpened:l}}();var locastyle=locastyle||{};locastyle.dropdown=function(){"use strict";function t(){e(),n(),a(),l(c.dropdown)}function e(){$(c.firstLink).off("click.ls"),$(c.area).off("click.ls")}function n(){$(c.firstLink).on("click.ls",function(t){t.preventDefault();var e=$($(this).parents(c.module));locastyle.dropdown.toggleDropdown(e),r(e),t.stopPropagation()})}function a(){$(c.area).on("click.ls",function(){locastyle.dropdown.closeDropdown(),l(c.dropdown)})}function s(t){t.find(c.button).first().hasClass("ls-disabled")||(o(t),t.toggleClass("ls-active"),l(t),locastyle.topbarCurtain.hideCurtains(),i(t))}function i(t){$(t).hasClass("ls-active")?$(t).trigger("dropdown:opened"):$(t).trigger("dropdown:closed")}function o(t){$(c.module).not(t).removeClass("ls-active")}function r(t){var e=$(c.area);e.get(0).scrollWidth>e.width()&&$(t).addClass("ls-pos-right")}function l(t){$(c.nav).find(c.button).attr({"aria-expanded":"false"}),$(c.nav).attr({"aria-hidden":"true"}),$(t).each(function(){$(c.nav).find("a").attr({role:"option"}),$(c.button,$(this)).attr({role:"combobox"}),$(this).hasClass("ls-active")?($(c.button,$(this)).attr({"aria-expanded":"true"}),$(c.nav,$(this)).attr({"aria-hidden":"false"})):($(c.button,$(this)).attr({"aria-expanded":"false"}),$(c.nav,$(this)).attr({"aria-hidden":"true"}))})}var c={area:"body",dropdown:".ls-dropdown",module:'[data-ls-module="dropdown"]',button:'[class*="ls-btn"]',firstLink:'[data-ls-module="dropdown"] > [class*="ls-btn"]:first-child, .ls-dropdown.ls-user-account > a:first-child',nav:".ls-dropdown-nav"};return{init:t,unbind:e,toggleDropdown:s,closeDropdown:o}}();var locastyle=locastyle||{};locastyle.tabs=function(){"use strict";function t(){c(),e(),n(),s(),u()}function e(){$('[data-ls-module="tabs"]').on("click.ls",function(t){t.preventDefault();var e=$($(this).attr("href")||$(this).data("target")),n=$(this).closest(".ls-tabs-nav");l(this,e),r(this,e),a(n)&&i(n)})}function n(){$(window).on("breakpoint-updated",function(){locastyle.tabs.checkBreakpoint()})}function a(t){return $(t).hasClass("in-dropdown")}function s(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&$(".ls-tabs-nav").each(function(t,e){a(e)||o(e)})}function i(t){t.closest(".ls-dropdown-tabs").find("> a").text(t.find("li.ls-active > a").text())}function o(t){var e=$(t);e.addClass("in-dropdown ls-dropdown-nav").wrap('
'),e.find(".ls-dropdown-nav").each(function(){e.append($(this).html()),$(this).closest("li").remove()}),e.parent(".ls-dropdown-tabs").prepend(''+e.find("li.ls-active > a").text()+""),locastyle.tabs.init(),locastyle.dropdown.init()}function r(t,e){$(t).parents("li").addClass("ls-active"),$(t).trigger("tab:activated"),e.addClass("ls-active"),$(t).attr("aria-selected",!0)}function l(t,e){$(t).parents("li").siblings().removeClass("ls-active"),$(t).trigger("tab:deactivated"),e.siblings().removeClass("ls-active"),$(t).parents("li").siblings().find("a").attr("aria-selected",!1)}function c(){$("[data-ls-module=tabs]").off("click.ls")}function u(){$(d.tab).attr("role","tablist"),$(d.tabLink).attr("role","tab"),$(d.tabListActive).attr("aria-selected","true"),$(d.tabContent).attr("role","tabpanel")}var d={tab:".ls-tabs-nav",tabLink:".ls-tabs-nav a",tabListActive:".ls-tabs-nav li.ls-active a",tabContent:".ls-tab-content"};return{init:t,unbind:c,checkBreakpoint:s}}();var locastyle=locastyle||{};locastyle.templates=function(){"use strict";function t(){}function e(t){return JST[i+"popover"](t)}function n(t){return JST[i+"modal"](t)}function a(t){return JST[i+"dropdown"]({elements:t})}function s(){return JST[i+"browser-unsupported-bar"]()}var i="locastyle/templates/_";return{init:t,popover:e,modal:n,dropdown:a,browserUnsupportedBar:s}}();var locastyle=locastyle||{};locastyle.general=function(){"use strict";function t(){c(),n(),e(),o(),r(),l(),a()}function e(){$.each(u,function(t,e){var n=t.split("|");$(n[0]).off(n[1],n[2]),$(n[0]).on(n[1],n[2],function(t){var n=$(this);e(t,n)})})}function n(){var t=window.location.hash.replace("!/#","");""!==t&&$('[data-target="'+t+'"], a[href="'+t+'"]').trigger("click")}function a(){$("[data-ls-fields-enable]").on("click.ls",function(t){t.preventDefault();var e=$(this),n=$(e.data("ls-fields-enable")),a=n.data("form-text")?"ls-form-text":"";n.toggleClass("ls-form-disable ls-active "+a).find(":input").each(function(t,e){var n=$(e);n.toggleAttr("disabled").toggleClass(a).val(n.data("original-value"))})})}function s(t,e){var n=e.data("target")?$(e.data("target")):e,a=e.data("toggle-class");/(radio)|(checkbox)/.test(e.attr("type"))?(n.toggleClass(a,!e.prop("checked")),$('[name="'+e.attr("name")+'"]').not(e).each(function(){var t=$(this),n=t.data("target")?$(t.data("target")):t,a=t.data("toggle-class");n.toggleClass(a,e.prop("checked"))})):(t.preventDefault(),n.toggleClass(a))}function i(t,e){t.preventDefault();var n=$(e.attr("href"));n[0]&&$("html,body").animate({scrollTop:n.offset().top-70},1e3)}function o(){$(".ls-disabled, [disabled='disabled']").on("click",function(t){return $(this).hasClass("ls-disabled")||"disabled"===$(this).attr("disabled")?(t.stopImmediatePropagation(),t.preventDefault(),t.stopPropagation(),!1):void 0})}function r(t){$("a",t).on("click.lsPreventDefault",function(t){(""===$(this).attr("href")||"#"===$(this).attr("href"))&&t.preventDefault()})}function l(){$(".ls-group-active [class*='ls-btn']").on("click",function(){$(this).siblings().removeClass("ls-active"),$(this).addClass("ls-active")})}function c(){$("[data-ls-fields-enable]").off("click.ls"),$(".ls-disabled, [disabled='disabled']").off("click")}var u={"[data-toggle-class]|click":s,".ls-link-smooth|click":i};return jQuery.fn.toggleAttr=function(t){return this.each(function(){var e=$(this);return e.attr(t)?e.removeAttr(t):e.attr(t,t)})},{init:t}}();var locastyle=locastyle||{};locastyle.progressBar=function(){"use strict";function t(){e()}function e(){$("[data-ls-module='progressBar']").each(function(t,e){var a=$(e).attr("aria-valuenow");$(e).append("");var s=$(e).find("span");n(s,a)})}function n(t,e){$(t).css("width",e+"%")}return{init:t}}();var locastyle=locastyle||{};locastyle.form=function(){"use strict";function t(){i(),o(),s(),n(),e(),c(),a(),l()}function e(){"ls-window-xs"===locastyle.breakpointClass?($(".ls-label-text-sufix").parents(".ls-label").addClass("ls-label-text-has-sufix"),$(".ls-label-text-prefix").parents(".ls-label").addClass("ls-label-text-has-prefix")):$(".ls-label-text-sufix").prev('[class*="col-"]').addClass("ls-no-padding-right").find(":input").addClass("ls-no-right-radius ls-border")}function n(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e);n.keyup(function(){if(!n.prop("scrollTop")){var t;do{t=n.prop("scrollHeight");var e=n.height();n.height(e-5)}while(t&&t!==n.prop("scrollHeight"))}n.height(n.prop("scrollHeight"))})})}function a(){$("textarea.ls-textarea-autoresize",".ls-label").each(function(t,e){var n=$(e).val(),a=n.split(/\r|\r\n|\n/),s=a.length,i=18*s;$(e).height(i+"px")})}function s(){$(".ls-mask-date").mask("00/00/0000"),$(".ls-mask-time").mask("00:00:00"),$(".ls-mask-date_time").mask("00/00/0000 00:00:00"),$(".ls-mask-cep").mask("00000-000"),$(".ls-mask-phone8").mask("0000-0000"),$(".ls-mask-phone9").mask("00009-0000"),$(".ls-mask-phone8_with_ddd").mask("(00) 0000-0000"),$(".ls-mask-phone9_with_ddd").mask("(00) 00009-0000"),$(".ls-mask-cpf").mask("000.000.000-00",{reverse:!0}),$(".ls-mask-cnpj").mask("00.000.000/0000-00",{reverse:!0}),$(".ls-mask-money").mask("#.##0,00",{reverse:!0,maxlength:!1}),$(".ls-mask-number").mask("#.##0",{reverse:!0,maxlength:!1}),$(".ls-mask-ip_address").mask("0ZZ.0ZZ.0ZZ.0ZZ",{translation:{Z:{pattern:/[0-9]/,optional:!0}}}),$(".ls-mask-percent").mask("##0,00%",{reverse:!0})}function i(){$(u.selectors.disable).each(function(t,e){var n=$(e);n.find(":input").each(function(t,e){var n=$(e);n.attr("disabled","disabled"),n.data("original-value",n.val())})})}function o(){$(u.selectors.text).each(function(t,e){$(e).find(":input").each(function(t,e){$(e).addClass("ls-form-text")}),$(e).data("form-text",!0)})}function r(t){if(void 0!==$(t).data("toggle-class")){var e=$(t).data("toggle-class").split(",");$(t).toggleClass(e[0]).toggleClass(e[1])}}function l(){$("[data-trigger-calendar]").on("click.ls",function(t){var e=$(this).data("trigger-calendar");$(e).trigger("click.ls")})}function c(){$(".ls-toggle-pass").on("click",function(t){t.preventDefault();var e=$(this).data("target");r($(this)),"password"===$(e).attr("type")?$(e).removeAttr("attr").prop("type","text"):$(e).removeAttr("attr").prop("type","password")})}var u={selectors:{disable:".ls-form-disable",text:".ls-form-text"}};return{init:t,togglePasswordField:c,triggerCalendar:l}}();var locastyle=locastyle||{};locastyle.guidedTour=function(){"use strict";function t(t){e(t)}function e(t){t&&t.selectors&&hopscotch&&($.each(l.selectors,function(e){t.selectors[e]=t.selectors[e]||l.selectors[e]}),n(t),o())}function n(t){r=t,$(l.selectors.init).on({click:s})}function a(t){return $(l.selectors.tour).trigger("click"),$(l.selectors.init).focus().attr("tabindex","-1"),t?t.preventDefault():null}function s(){locastyle.topbarCurtain.hideCurtains(),hopscotch.endTour(),hopscotch.startTour(r,0),i()}function i(){var t=39,e=37,n=27,a=hopscotch.getCurrTour().steps.length;$("body").off("keyup").on("keyup",function(s){var i=s.keyCode;hopscotch.getCurrStepNum()0||l>0?$($(e).data("target")).css({left:n+a-s+"px",top:"60px"}):$($(e).data("target")).css({left:n+a+s+"px"}),o(e)})}function s(){$(".ls-notification-list").on("click.ls",function(t){t.stopPropagation()})}function i(){$("body").on("click.lsTopCurtain",function(){l()})}function o(t){$(t).on("click.ls, ls.toggleTopCurtain",function(e){e.stopPropagation();var n=$($(t).data("target")).hasClass("ls-active");l(),n||($(t).addClass("ls-active"),r($(t).data("target")))})}function r(t){$(t).addClass("ls-active"),locastyle.dropdown.closeDropdown()}function l(){$("[data-ls-module='topbarCurtain']").removeClass("ls-active"),$(".ls-notification-list").removeClass("ls-active")}function c(){var t;$(window).resize(function(){clearTimeout(t),t=setTimeout(function(){e(),a(),i(),s()},300)})}function u(){var t=$(".ls-topbar .ls-user-account");$(".ls-sidebar .ls-user-account").length||t.clone().prependTo(".ls-sidebar")}var d={module:'[data-ls-module="topbarCurtain"]'};return{init:t,hideCurtains:l,unbind:e,updateStatusCounter:n}}();var locastyle=locastyle||{};locastyle.btnGroup=function(){"use strict";function t(){a(),n()}function e(){$(document).off("breakpoint-updated")}function n(){e(),$(document).on("breakpoint-updated",function(){a()})}function a(){("ls-window-sm"===locastyle.breakpointClass||"ls-window-xs"===locastyle.breakpointClass)&&($(".ls-regroup").each(function(t,e){s($(e).find("a, button"))}),locastyle.dropdown.init(),locastyle.modal.init(),locastyle.general.init())}function s(t){var e=$(t).wrap('