PageSourceSearch

https://www.videojet.com/wp-content/themes/videojet-2023/assets/build/js/tabs.js?ver=7.0.6

js videojet.com collected 2026-10-03 21:37:46 UTC 10,958 bytes, 1 lines download raw bytes

1!function(s){var i={};function r(t){var e;return(i[t]||(e=i[t]={i:t,l:!1,exports:{}},s[t].call(e.exports,e,e.exports,r),e.l=!0,e)).exports}r.m=s,r.c=i,r.d=function(t,e,s){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(s,i,function(t){return e[t]}.bind(null,i));return s},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=14)}([,function(t,e,s){"use strict";s.d(e,"b",function(){return i}),s.d(e,"a",function(){return r});var i=function(){return window.innerWidth<768};function r(i){var r,a=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:300;return function(){for(var t=arguments.length,e=new Array(t),s=0;s<t;s++)e[s]=arguments[s];clearTimeout(r),r=setTimeout(function(){i.apply(a,e)},n)}}},function(t,e,s){"use strict";var i=s(1);e.a={init:function(){var t=this,e=jQuery(".vj-cards-carousel");e&&(this.setup(e),this.alignCardsTitle(),e=Object(i.a)(function(){return t.alignCardsTitle()}),window.addEventListener("resize",e))},alignCardsTitle:function(){jQuery("#content").find(".wp-block-videojet-cards").each(function(){jQuery(".card-item .vj-js-header-title",this).css("height","auto");var t=0;jQuery(".card-item .vj-js-header-title",this).each(function(){jQuery(this).height()>t&&(t=jQuery(this).height())}),0<jQuery(".vj-cards-carousel.style-5",this).length||0<jQuery(".vj-cards-carousel.ppc-carousel",this).length||0<jQuery(".vj-cards-carousel.application-carousel",this).length||0<jQuery(".vj-cards-carousel.style-6",this).length||0<jQuery(".vj-cards-carousel.style-7",this).length?jQuery(".card-item .vj-js-header-title",this).css("height",t):jQuery(".card-item .vj-js-header-title",this).css("height",t+32)})},setup:function(t){t.each(function(){var t,e=this;jQuery(this).hasClass("vj-cards-carousel")&&jQuery(this).hasClass("application-carousel")?(t=jQuery(this).hasClass("hide-carousel-overlay"),jQuery(this).slick({dots:!0,arrows:!0,slidesToShow:1,slidesToScroll:1,centerPadding:"40px",adaptiveHeight:!0,infinite:!0,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:600,settings:{dots:t}}]})):jQuery(this).hasClass("vj-cards-carousel")&&jQuery(this).hasClass("style-5")?(t=!!jQuery(this).data("infinite-loop"),jQuery(this).slick({arrows:!0,slidesToShow:3,slidesToScroll:1,variableWidth:!0,centerPadding:"40px",infinite:t,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:1570,settings:{slidesToShow:2}},{breakpoint:600,settings:{slidesToShow:1}}]}),t=function(){var t=jQuery(e).parent().find(".cards-carousel-cta-button");t.length&&(jQuery(e).find(".slick-arrow").length?t.removeClass("slider-not-enabled"):t.addClass("slider-not-enabled"))},jQuery(this).on("breakpoint",t),t()):jQuery(this).hasClass("vj-cards-carousel")&&jQuery(this).hasClass("fully-clickable")?(t=!!jQuery(this).data("infinite-loop"),jQuery(this).slick({arrows:!0,slidesToShow:2,slidesToScroll:1,variableWidth:!0,centerPadding:"20px",infinite:t,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:767,settings:{slidesToShow:1}}]})):jQuery(this).hasClass("vj-cards-carousel")&&jQuery(this).hasClass("style-6")?(t=!!jQuery(this).data("infinite-loop"),jQuery(this).slick({arrows:!0,slidesToShow:2,slidesToScroll:1,variableWidth:!0,centerPadding:"24px",infinite:t,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:600,settings:{slidesToShow:1}}]})):jQuery(this).hasClass("vj-cards-carousel")&&jQuery(this).hasClass("style-7")?(t=!!jQuery(this).data("infinite-loop"),jQuery(this).slick({arrows:!0,slidesToShow:2,slidesToScroll:1,variableWidth:!0,centerPadding:"24px",infinite:t,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:1025,settings:{slidesToShow:2}},{breakpoint:600,settings:{slidesToShow:1}}]})):jQuery(this).hasClass("vj-cards-carousel")&&jQuery(this).hasClass("ppc-carousel")?(t=!!jQuery(this).data("infinite-loop"),jQuery(this).slick({arrows:!0,slidesToShow:4,slidesToScroll:1,variableWidth:!0,centerPadding:"40px",infinite:t,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:1570,settings:{slidesToShow:3}},{breakpoint:600,settings:{slidesToShow:1}}]}),t=function(){var t=jQuery(e).parent().find(".cards-carousel-cta-button");t.length&&(jQuery(e).find(".slick-arrow").length?t.removeClass("slider-not-enabled"):t.addClass("slider-not-enabled"))},jQuery(this).on("breakpoint",t),t()):jQuery(this).slick({arrows:!0,slidesToShow:3,slidesToScroll:1,centerPadding:"40px",infinite:!1,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-card-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-card-carousel-next"></span>',responsive:[{breakpoint:480,settings:{slidesToShow:1}}]})})}}},function(t,e,s){"use strict";s.d(e,"a",function(){return i});var i={init:function(){window.addEventListener("resize",this.patch),this.patch()},patch:function(){var t=document.querySelector("body");window.innerWidth>t.clientWidth+5?(t.classList.add("has-scrollbar"),document.documentElement.style.setProperty("--scroll-bar",window.innerWidth-t.clientWidth+"px")):t.classList.remove("has-scrollbar")}}},,,,,,,,,,,function(t,e,s){"use strict";s.r(e);s(15);var i=s(2),r=s(3),e={init:function(){this.tabBlocks=document.querySelectorAll(".vj-tabs"),this.tabs=document.querySelectorAll(".vj-tab__title-item"),this.tabBlocks&&this.tabs&&(this.bindEventListeners=this.bindEventListeners.bind(this),this.displayScrollHelperText=this.displayScrollHelperText.bind(this),this.bindEventListeners(),this.displayScrollHelperText())},bindEventListeners:function(){window.addEventListener("resize",this.displayScrollHelperText),Array.from(this.tabBlocks).forEac
1h(function(t){var r;t&&t.classList.contains("vj-tabs-style-4")&&(r=t.querySelector(".vj-tab-container")).addEventListener("mousedown",function(t){t.preventDefault();var e=!0,s=t.pageX,i=r.scrollLeft;document.addEventListener("mouseup",function(){e=!1}),document.addEventListener("mousemove",function(t){e&&(t.preventDefault(),t=.7*(t.pageX-s),r.scrollLeft=i-t)})})}),Array.from(this.tabs).forEach(function(s){s&&s.addEventListener("click",function(){r.a.patch();var t=s.closest(".vj-tabs"),e=s.getAttribute("data-tab");t.querySelectorAll('.vj-tabs__content .vj-tab__inner-content[data-tab="'.concat(e,'"] .slick-slider')).length&&(jQuery('.vj-tabs__content .vj-tab__inner-content[data-tab="'.concat(e,'"] .slick-slider'),t).slick("refresh"),i.a.alignCardsTitle())})})},displayScrollHelperText:function(){Array.from(this.tabBlocks).forEach(function(t){var e,s,i;t&&t.classList.contains("vj-tabs-style-4")&&(e=t.querySelector(".vj-tab-container"),t=t.querySelector(".scroll-helper-text"),e)&&t&&(s=document.querySelector("body"),i=0,window.innerWidth>s.clientWidth+5&&(i=window.innerWidth-s.clientWidth),e.scrollWidth>e.clientWidth+Math.max(15,window.innerWidth-1104-(window.innerWidth-1104)/2-i/2)?t.style.display="block":t.style.display="none")})}};({init:function(){var e=this,t=jQuery.noConflict()(".vj-tabs.vj-tabs-style-3");this.body=document.querySelector("body"),t&&this.body&&(Array.from(t).forEach(function(t){return e.initCarousel(t)}),this.bindEventListeners=this.bindEventListeners.bind(this),this.updateTriangleBorderWidth=this.updateTriangleBorderWidth.bind(this),this.bindEventListeners(),this.updateTriangleBorderWidth())},initCarousel:function(t){var e,s,i=this,r=t.getAttribute("data-is-carousel-auto-toggle"),a=t.getAttribute("data-carousel-toggle-time"),n=jQuery("ul.vj-tab",t);n&&(this.setup(n),jQuery(t).on("click",".vj-tab__title-item",function(){return i.onTabTitleClick(t)}),e=jQuery(".slick-track > .vj-tab__title-item",t).length,r)&&"true"===r.toLowerCase().trim()&&0<e&&(s=this.addTabToggleInterval(t,e,n,parseInt(a)),jQuery(t).on({mouseenter:function(){clearInterval(s)},mouseleave:function(){s=this.addTabToggleInterval(t,e,n,parseInt(a))}.bind(this)}))},bindEventListeners:function(){window.addEventListener("resize",this.updateTriangleBorderWidth)},updateTriangleBorderWidth:function(){var t=jQuery(".vj-tabs.vj-tabs-style-3 .vj-tab__active_tringle");"1104"<this.body.clientWidth?(t.css("border-left-width","105px"),t.css("border-right-width","105px")):this.body.clientWidth<"480"?(t.css("border-left-width","".concat(Math.floor(90*this.body.clientWidth/480),"px")),t.css("border-right-width","".concat(Math.floor(90*this.body.clientWidth/480),"px"))):(t.css("border-left-width","".concat(Math.floor(105*this.body.clientWidth/1104),"px")),t.css("border-right-width","".concat(Math.floor(105*this.body.clientWidth/1104),"px")))},addTabToggleInterval:function(i,r,a){var n=this;return setInterval(function(){var t,e,s=i.getAttribute("data-active-tab");s&&(t=jQuery('.slick-track > .vj-tab__title-item[data-tab="'.concat(s,'"]'),i),s=parseInt(s)+1,r<s&&(s=1),e=jQuery('.slick-track > .vj-tab__title-item[data-tab="'.concat(s,'"]'),i),t)&&e&&(t.removeClass("vj-tab__title-item--active"),e.addClass("vj-tab__title-item--active"),i.setAttribute("data-active-tab",s.toString()),a.slick("slickGoTo",s-1),n.onTabTitleClick(i))},1e3*(3<arguments.length&&void 0!==arguments[3]?arguments[3]:5))},onTabTitleClick:function(t){0<jQuery(".slick-slider",t).length&&(jQuery(".vj-tab__inner-content .slick-slider",t).slick("refresh"),i.a.alignCardsTitle())},setup:function(t){t.not(".slick-initialized").slick({arrows:!0,slidesToShow:7,slidesToScroll:1,infinite:!1,prevArrow:'<span class="dashicons dashicons-arrow-left-alt2 vj-tabs-carousel-prev"></span>',nextArrow:'<span class="dashicons dashicons-arrow-right-alt2 vj-tabs-carousel-next"></span>',responsive:[{breakpoint:480,settings:{slidesToShow:3}}]})}}
1).init(),e.init()},function(t,e,s){}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.