frontend.js
1.92 KB
!function(t){function n(e){if(a[e])return a[e].exports;var i=a[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var a={};n.m=t,n.c=a,n.d=function(t,a,e){n.o(t,a)||Object.defineProperty(t,a,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(a,"a",a),a},n.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},n.p="",n(n.s=25)}({25:function(t,n){/*!
* getwid-tabs
*/
!function(t){t(document).ready(function(n){function a(t){for(var n="",a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=a.length,i=0;i<t;i++)n+=a.charAt(Math.floor(Math.random()*e));return n}t(document.body).on("post-load",function(t){e()});var e=function(){var n=t(".wp-block-getwid-tabs:not(.getwid-init)"),e=0;n.each(function(n){var i=a(5);t(this).addClass("getwid-init"),e=t(this).data("active-tab");t(this).find(".wp-block-getwid-tabs__nav-links");t(this).find(".wp-block-getwid-tabs__nav-link").each(function(n,a){t(a).find("a").attr("href","#tab-".concat(i,"-").concat(n))}),t(this).find(".wp-block-getwid-tabs__tab-content-wrapper, > .wp-block-getwid-tabs__tab-content").each(function(n,a){t(a).attr("id","tab-".concat(i,"-").concat(n))}),t(this).find(".wp-block-getwid-tabs__nav-link").each(function(n,a){var e=t(a).closest(".wp-block-getwid-tabs").find(">.wp-block-getwid-tabs__nav-links");t(a).detach(),e.append(a);var i={};t.each(t(a)[0].attributes,function(t,n){i[n.nodeName]=n.nodeValue}),t(a).replaceWith(function(){return t("<li/>",i).append(t(a).contents())})}),t(this).find(".wp-block-getwid-tabs__tab-content-wrapper").eq(e).addClass("is-active-tab"),t(this).tabs({active:e,activate:function(n,a){a.newPanel.closest(".wp-block-getwid-tabs").find(".wp-block-getwid-tabs__tab-content-wrapper").removeClass("is-active-tab"),a.newPanel.addClass("is-active-tab"),t("html, body").add(window,document).stop()}})})};e()})}(jQuery)}});