diff --git a/dist/tabby.cjs.js b/dist/tabby.cjs.js index 25c80fd..9aabeab 100644 --- a/dist/tabby.cjs.js +++ b/dist/tabby.cjs.js @@ -1 +1 @@ -"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var i=0;ithis.items.length-1}},{key:"initTabs",value:function(){var a=this,t=getSiblings(this.container.querySelector("[".concat(ATTRIBUTE_BAR,"]"))),r=getSiblings(this.container.querySelector("[".concat(ATTRIBUTE_CONTENT,"]")));t.forEach(function(t,e){var i=t.getAttribute(ATTRIBUTE_BAR),n=r.filter(function(t){return t.getAttribute(ATTRIBUTE_CONTENT)===i})[0];0===e?(n.style.display="block",n.style.opacity="1"):(n.style.display="none",a.animation&&(n.style.opacity="0")),a.items.push([t,n]),t.addEventListener("click",function(){a.doSwitch(e)})})}}]),i}(),version="3.1",init=function(){var e=0this.items.length-1}},{key:"initTabs",value:function(){var a=this,t=getSiblings(this.container.querySelector("[".concat(ATTRIBUTE_BAR,"]"))),r=getSiblings(this.container.querySelector("[".concat(ATTRIBUTE_CONTENT,"]")));t.forEach(function(t,e){var i=t.getAttribute(ATTRIBUTE_BAR),n=r.filter(function(t){return t.getAttribute(ATTRIBUTE_CONTENT)===i})[0];0===e?(n.style.display="block",n.style.opacity="1",t.setAttribute(ATTRIBUTE_ACTIVE,"")):(n.style.display="none",a.animation&&(n.style.opacity="0")),a.items.push([t,n]),t.addEventListener("click",function(){a.doSwitch(e)})})}}]),i}(),version="3.1",init=function(){var e=0this.items.length-1}},{key:"initTabs",value:function(){var a=this,t=u(this.container.querySelector("[".concat(r,"]"))),o=u(this.container.querySelector("[".concat(s,"]")));t.forEach(function(t,e){var i=t.getAttribute(r),n=o.filter(function(t){return t.getAttribute(s)===i})[0];0===e?(n.style.display="block",n.style.opacity="1"):(n.style.display="none",a.animation&&(n.style.opacity="0")),a.items.push([t,n]),t.addEventListener("click",function(){a.doSwitch(e)})})}}])&&a(t.prototype,e),n&&a(t,n),i}();t.version="3.1",t.init=function(){var e=0this.items.length-1}},{key:"initTabs",value:function(){var a=this,t=u(this.container.querySelector("[".concat(r,"]"))),o=u(this.container.querySelector("[".concat(s,"]")));t.forEach(function(t,e){var i=t.getAttribute(r),n=o.filter(function(t){return t.getAttribute(s)===i})[0];0===e?(n.style.display="block",n.style.opacity="1",t.setAttribute(c,"")):(n.style.display="none",a.animation&&(n.style.opacity="0")),a.items.push([t,n]),t.addEventListener("click",function(){a.doSwitch(e)})})}}])&&a(t.prototype,e),n&&a(t,n),i}();t.version="3.1",t.init=function(){var e=0