File: /home/zulfiqar/public_html/wp-content/plugins/stream/build/settings.js
(()=>{"use strict";var e={n:n=>{var t=n&&n.__esModule?()=>n.default:()=>n;return e.d(t,{a:t}),t},d:(n,t)=>{for(var a in t)e.o(t,a)&&!e.o(n,a)&&Object.defineProperty(n,a,{enumerable:!0,get:t[a]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n)};const n=window.jQuery;var t=e.n(n);let a;a="wp_stream_network"===t()('input[name="option_page"]').val()?"_network_affix":"";const i=t()("#wp_stream"+a+"\\[general_keep_records_indefinitely\\]"),o=t()("#wp_stream"+a+"_general_records_ttl"),r=o.closest("tr");function s(){i.is(":checked")?(r.addClass("hidden"),o.addClass("hidden")):(r.removeClass("hidden"),o.removeClass("hidden"))}i.on("change",(function(){s()})),s(),t()("#wp_stream_general_reset_site_settings").click((function(e){confirm(window["wp-stream-settings"].i18n.confirm_defaults)||e.preventDefault()}));const c=t()(".nav-tab-wrapper"),l=t()(".nav-tab-content table.form-table"),d=c.find(".nav-tab-active"),h=d.length>0?c.find("a").index(d):0,f=window.location.hash.match(/^#(\d+)$/),p=null!==f?f[1]:h;c.on("click","a",(function(){const e=c.find("a").index(t()(this)),n=window.location.hash.match(/^#(\d+)$/);return l.hide().eq(e).show(),c.find("a").removeClass("nav-tab-active").filter(t()(this)).addClass("nav-tab-active"),""!==window.location.hash&&null===n||(window.location.hash=e),function(e){const n=t()('input[name="option_page"][value^="wp_stream"]').closest("form");if(0===n.length)return;const a=n.attr("action");n.prop("action",a.replace(/(^[^#]*).*$/,"$1#"+e))}(e),!1})),c.children().eq(p).trigger("click")})();