text: /* Vizoo - v1.0.0 - http://vizoo.online - Wallace Rio <wallrio@gmail.com> */
  /* Vizoo - v1.0.0 - http://vizoo.online - Wallace Rio <wallrio@gmail.com> */
  /* Vizoo - v1.0.0 - http://vizoo.online - Wallace Rio <wallrio@gmail.com> */
  !function(t){var e={dependence:{list:["essentials"],status:null},position:{status:null,start:{},move:{},end:{}},positionMenu:{status:null,start:{},move:{},end:{}},initTouchMenu:function(t,e,a){return!1},initTouch:function(t,a,o){e.touch(t,{movey:!1,movex:!0,start:function(t,e,a,o,i){},move:function(t,e,a,o,i){},end:function(t,e,a,o,i){}})},moveMenu:function(t,e){var a=document.querySelector('[data-vizoo-tabs-menu][data-for="'+t+'"]'),o=document.querySelector('[data-vizoo-tabs][data-id="'+t+'"]'),i=a.querySelector("ul");"number"==typeof e&&(e=i.querySelector('[data-vizoo-tabs-menu-item][data-vizoo-tabs-menu-item-index="'+e+'"]').getAttribute("data-for"));for(var n=i.querySelector('[data-vizoo-tabs-menu-item][data-for="'+e+'"]'),r=i.querySelectorAll("[data-vizoo-tabs-menu-item]"),u=0,s=0;s<r.length;s++)r[s].removeAttribute("data-status"),u+=r[s].offsetWidth;setTimeout(function(){a.setAttribute("data-tab-active",e),o.setAttribute("data-tab-active",e),n.setAttribute("data-status","active")},300);var d=a.offsetWidth,l=(i.offsetWidth,i.querySelector("[data-vizoo-tabs-menu-item]:last-child"),u-(d+(n.offsetLeft-d/3)));if(d<u&&l<0){var c=n.offsetLeft-n.offsetWidth;l<0&&(c=u-d),i.style.transition="all 1.3s cubic-bezier(0.000, 1.025, 0.295, 0.960)",i.style.transform="translateX("+-c+"px)"}else{(c=n.offsetLeft-d/3)<0&&(c=0),u-d<0&&(c=0),i.style.transition="all 1.3s cubic-bezier(0.000, 1.025, 0.295, 0.960)",i.style.transform="translateX("+-c+"px)"}i.querySelector("[data-vizoo-tabs-menu-item]:first-child")},moveSlide:function(t,a){e.moveMenu(t,a);var o=document.querySelector('[data-vizoo-tabs][data-id="'+t+'"]'),i=o.querySelector("[data-vizoo-tabs-container]");if("number"==typeof a){a=i.querySelector('[data-vizoo-tabs-slide][data-vizoo-tabs-slide-index="'+a+'"]').getAttribute("data-id")}else;var n=-o.querySelector('[data-vizoo-tabs-slide][data-id="'+a+'"]').offsetLeft;i.style.transition="all 0.5s ",i.style.transform="translateX("+n+"px)"},getTranslate:function(t){var e=window.getComputedStyle(t),a=new WebKitCSSMatrix(e.webkitTransform);return{x:a.m41,y:a.m42,z:a.m43}},getSize:function(t){for(var e=0,a=0,o=0;o<t.childNodes.length;o++){var i=t.childNodes[o];void 0!=i.offsetHeight&&(a+=i.offsetHeight+100,e+=i.offsetHeight)}return{width:e,height:a}},monitor:function(){for(var a=document.querySelectorAll("[data-vizoo-tabs]"),o=0;o<a.length;o++){var i=a[o],n=i.querySelector("[data-vizoo-tabs-container]");if(null!=n&&1!=i.init){i.init=1;for(var r=n.querySelectorAll("[data-vizoo-tabs-slide]"),u=0;u<r.length;u++)r[u].setAttribute("data-vizoo-tabs-slide-index",u),e.initTouch(n,r[u],u);var s=i.getAttribute("data-id"),d=document.querySelector('[data-vizoo-tabs-menu][data-for="'+s+'"]'),l=document.querySelector('[data-vizoo-tabs-menu][data-for="'+s+'"] > ul'),c=l.querySelectorAll("[data-vizoo-tabs-menu-item]"),f=l.querySelector("li").offsetHeight;d.style.height=f+"px";for(u=0;u<c.length;u++){var v=c[u];v.setAttribute("data-vizoo-tabs-menu-item-index",u),t.addEvent(window,"resize",function(t,a){if("active"!=a.getAttribute("data-status"))return!1;var o=e.getMainTab(a),i=a.getAttribute("data-for");e.moveSlide(o,i)},null,v),v.onclick=function(){if(1==e.positionMenu.move)return!1;var t=e.getMainTab(this),a=this.getAttribute("data-for");e.moveSlide(t,a)},v.ontouchend=v.onclick,e.initTouchMenu(l,c[u],u)}e.moveMenu(s,0)}}setTimeout(function(){e.monitor()},300)},getMainTab:function(t){return void 0!=t.getAttribute("data-vizoo-tabs-menu")?t.getAttribute("data-for"):e.getMainTab(t.parentNode)},getMainSlide:function(t){return void 0!=t.getAttribute("data-vizoo-tabs")?t.getAttribute("data-id"):e.getMainSlide(t.parentNode)},_construct:function(){e.monitor()}};t.plugin.require(e.dependence.list,function(){e.touch=t.plugins.essentials.touch,e.dependence.status="success",e._construct()}),t.plugins.tabs=e}(vizoo);