File: /var/www/intranet.kauko.lt/wp-content/themes/woffice/js/licence-plugins.min.js
function WofficeActDeActButton(e){var t=jQuery("#woffice_"+e).val(),c=jQuery("#woffice_"+e+"_status").val();t?""!=c&&"deactivated"!=c&&"invalid"!=c&&"failed"!=c&&c?(jQuery("#woffice_"+e+"_deactivate").show(),jQuery("#woffice_"+e+"_activate").hide()):(jQuery("#woffice_"+e+"_deactivate").hide(),jQuery("#woffice_"+e+"_activate").show()):(jQuery("#woffice_"+e+"_deactivate").hide(),jQuery("#woffice_"+e+"_activate").hide()),t&&"valid"==c&&(jQuery("#woffice_"+e+"_deactivate").show(),jQuery("#woffice_"+e+"_activate").hide())}function WocptActDeActButton(e){var t=jQuery("#woffice_"+e).val(),c=jQuery("#woffice_"+e+"_status").val();t?(jQuery("#woffice_"+e+"_deactivate").hide(),jQuery("#woffice_"+e+"_activate").show()):(jQuery("#woffice_"+e+"_deactivate").hide(),jQuery("#woffice_"+e+"_activate").hide()),t&&"valid"==c&&(jQuery("#woffice_"+e+"_deactivate").show(),jQuery("#woffice_"+e+"_activate").hide())}function WofficeLicenceActivate(e){var c=e||"",e=(jQuery("#redux_ajax_overlay").show(),jQuery(".redux-action_bar").addClass("is-active"),jQuery(".redux-action_bar .spinner").css("visibility","visible"),jQuery(".redux-action_bar input").attr("disabled","disabled"),licencedata.ajax_url),t=jQuery("#woffice_"+c).val();jQuery("body").find("#woffice_"+c+"_activate").addClass("updating-message"),""==t||null==t?alert("Please enter Licence Key"):t&&("team_management"==c&&(c="woffice_team_management"),t={action:"woffice_plugins_licence_activate",nonce:licencedata.nonce,plugins_key:t,plugins_slug:c},jQuery.post(e,t,function(e){var t,e=JSON.parse(e);e&&("success"==e.type&&(t=e.license_data)&&"valid"==t.license&&(jQuery("#woffice_"+e.plugins_slug+"_status").val("valid"),jQuery("#woffice_-"+e.plugins_slug+"_activate").hide(),jQuery("#woffice_-"+e.plugins_slug+"_deactivate").show()),jQuery("#woffice_"+c+"_activate").removeClass("updating-message"),jQuery("#wolicencekey .key_re_type").html('<h3 class="fw-text-muted">'+e.message+"</h3>"),jQuery("#wolicencekey").dialog("open"),jQuery("#redux_ajax_overlay").hide(),jQuery(".redux-action_bar").removeClass("is-active"),jQuery(".redux-action_bar .spinner").css("visibility","hidden"),jQuery(".redux-action_bar input").removeAttr("disabled","disabled"))}))}function WofficeDeActivateLicenceKey(e){var c=e,e=(jQuery("#redux_ajax_overlay").show(),jQuery(".redux-action_bar").addClass("is-active"),jQuery(".redux-action_bar .spinner").css("visibility","visible"),jQuery(".redux-action_bar input").attr("disabled","disabled"),licencedata.ajax_url),t=jQuery("#woffice_"+c).val();jQuery("body").find("#woffice_"+c+"_deactivate").addClass("updating-message"),""==t?alert("Please enter Licence Key"):t&&(t={action:"woffice_plugins_licence_deactivate",nonce:licencedata.nonce,plugins_key:t,plugins_slug:c},jQuery.post(e,t,function(e){var t,e=JSON.parse(e);e&&("success"==e.type&&(jQuery("#"+c+"_deactivate").attr("class","updating-message"),"deactivated"!=(t=e.license_data).license&&"failed"!=t.license||(jQuery("#woffice_"+e.plugins_slug+"_status").val(t.license),jQuery("#woffice_-"+e.plugins_slug+"_deactivate").hide(),jQuery("#woffice_-"+e.plugins_slug+"_activate").show())),jQuery("body").find("#woffice_"+c+"_deactivate").removeClass("updating-message"),jQuery("#wolicencekey .key_re_type").html('<h3 class="fw-text-muted">'+e.message+"</h3>"),jQuery("#wolicencekey").dialog("open"),jQuery("#redux_ajax_overlay").hide(),jQuery(".redux-action_bar").removeClass("is-active"),jQuery(".redux-action_bar .spinner").css("visibility","hidden"),jQuery(".redux-action_bar input").removeAttr("disabled","disabled"))}))}function WocptLicenceActivate(e){var e=e||"",c="#fw-settings-form:theme-settings",t=jQuery("#woffice_cpt_key_activate_message .desc .fw-inner").text(),a=jQuery("#woffice_cpt_loading_extra_message .desc .fw-inner").text(),i="fw-options-ajax-save-loading",t=(jQuery(c).addClass("prevent-all-tabs-init"),fw.soleModal.show(i,'<h2 class="fw-text-muted"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAAAAACo4kLRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAnRSTlMA/1uRIrUAAAACYktHRADdUu+NWwAAAAd0SU1FB+EKCgYABDchIukAAACZelRYdFJhdyBwcm9maWxlIHR5cGUgZ2lmOnhtcCBkYXRheG1wAAAImU2NMQ5CMQxD957iHyGNnaTlNkVtEQMSAwPHJx8WHMleXuxyu+/L+/E85niNzHJ85b1gRwvx6vCrWxCGBkdNF1WVaD5DODkx2H0Fgkmv5I2dxFQ9mRKiy3seMdBZCZ4lnUqjQYj/GRW3LPm95w42VvkACzYml9QYNjwAAACjSURBVBjTfZChDoNAEETfbZpgVqJPXHIO0w+hCZYPxJKUD6mpIzmBPrmmigoQcCSM2eRlszM7buWqxzbSd8Y0NgEAtwJ5WvYd39Y7TKOB7xkW0C6AQB4N6KuqB2zMIDDZ0cQmENJ2b8i/AYAl4db3pwj0fAlzmXJGsBIagl4/kitShFjCiNCUsEEI/sx8QKA9WWkLAnV3oNrVN9VtJZtyKrnUH9vgMmhlXVedAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTEwLTEwVDA2OjAwOjA0LTA3OjAw4kWx4AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0xMC0xMFQwNjowMDowNC0wNzowMJMYCVwAAAAASUVORK5CYII=" alt="Loading" class="wp-spinner" /> '+t+'</h2><p class="fw-text-muted"><em>'+a+"</em></p>",{autoHide:6e4,allowClose:!1}),licencedata.ajax_url),a=jQuery("#"+e).val();jQuery("#"+e+"_file").val();""==a?alert("Please enter Licence Key"):a&&(a={action:"woffice_plugins_licence_activate",nonce:licencedata.nonce,plugins_key:a,plugins_slug:e},jQuery.post(t,a,function(e){var t,e=JSON.parse(e);e&&("success"==e.type&&(t=e.license_data)&&"valid"==t.license&&(jQuery("#"+e.plugins_slug+"_status").val("valid"),jQuery("#"+e.plugins_slug+"_activate").hide(),jQuery("#"+e.plugins_slug+"_deactivate").show()),fw.soleModal.hide(i),jQuery(c).addClass("prevent-all-tabs-init"),fw.soleModal.show(i,'<h3 class="fw-text-muted">'+e.message+"</h3>",{autoHide:1e4,allowClose:!0}))}))}function WocptDeActivateLicenceKey(e){var c="#fw-settings-form:theme-settings",t=jQuery("#woffice_cpt_key_deactivate_message .desc .fw-inner").text(),a=jQuery("#woffice_cpt_loading_extra_message .desc .fw-inner").text(),i="fw-options-ajax-save-loading",t=(jQuery(c).addClass("prevent-all-tabs-init"),fw.soleModal.show(i,'<h2 class="fw-text-muted"><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAAAAACo4kLRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAnRSTlMA/1uRIrUAAAACYktHRADdUu+NWwAAAAd0SU1FB+EKCgYABDchIukAAACZelRYdFJhdyBwcm9maWxlIHR5cGUgZ2lmOnhtcCBkYXRheG1wAAAImU2NMQ5CMQxD957iHyGNnaTlNkVtEQMSAwPHJx8WHMleXuxyu+/L+/E85niNzHJ85b1gRwvx6vCrWxCGBkdNF1WVaD5DODkx2H0Fgkmv5I2dxFQ9mRKiy3seMdBZCZ4lnUqjQYj/GRW3LPm95w42VvkACzYml9QYNjwAAACjSURBVBjTfZChDoNAEETfbZpgVqJPXHIO0w+hCZYPxJKUD6mpIzmBPrmmigoQcCSM2eRlszM7buWqxzbSd8Y0NgEAtwJ5WvYd39Y7TKOB7xkW0C6AQB4N6KuqB2zMIDDZ0cQmENJ2b8i/AYAl4db3pwj0fAlzmXJGsBIagl4/kitShFjCiNCUsEEI/sx8QKA9WWkLAnV3oNrVN9VtJZtyKrnUH9vgMmhlXVedAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDE3LTEwLTEwVDA2OjAwOjA0LTA3OjAw4kWx4AAAACV0RVh0ZGF0ZTptb2RpZnkAMjAxNy0xMC0xMFQwNjowMDowNC0wNzowMJMYCVwAAAAASUVORK5CYII=" alt="Loading" class="wp-spinner" /> '+t+'</h2><p class="fw-text-muted"><em>'+a+"</em></p>",{autoHide:6e4,allowClose:!1}),licencedata.ajax_url),a=jQuery("#"+e).val(),o=jQuery("#"+e+"_file").val();""==a?alert("Please enter Licence Key"):a&&(a={action:"woffice_plugins_licence_deactivate",nonce:licencedata.nonce,plugins_key:a,plugins_slug:e,plugin_file:o},jQuery.post(t,a,function(e){var t,e=JSON.parse(e);e&&("success"!=e.type||"deactivated"!=(t=e.license_data).license&&"failed"!=t.license||(jQuery("#"+e.plugins_slug+"_status").val(t.license),jQuery("#"+e.plugins_slug+"_deactivate").hide(),jQuery("#"+e.plugins_slug+"_activate").show()),fw.soleModal.hide(i),jQuery(c).addClass("prevent-all-tabs-init"),fw.soleModal.show(i,'<h3 class="fw-text-muted">'+e.message+"</h3>",{autoHide:1e4,allowClose:!0}))}))}jQuery(function(){var y=setInterval(function(){var e=jQuery("#woffice_cpt_key_status").val(),t=jQuery("#woffice_woae_status").val(),c=jQuery("#woffice_wowcps_status").val(),a=jQuery("#woffice_hr_bundle").val(),i=jQuery("#wokss_kanban_status").val(),o=jQuery("#advanced_tasks_for_woffice").val(),n=jQuery("#docs_to_wiki_status").val(),s=jQuery("#woffice_timeline_status").val(),A=jQuery("#woffice_adreporting_status").val(),u=jQuery("#woffice_tmv_status").val(),l=jQuery("#woffice_okr_status").val(),r=jQuery("#woffice_pm_status").val(),_=jQuery("#woffice_crm_status").val(),f=jQuery("#woffice_crm_enhancements_status").val(),d=jQuery("#advanced_events_status").val(),w=jQuery("#wocs_csai_status").val(),v=jQuery("#woffice_team_management").val(),p=jQuery("#woffice_wp_job_manager_hr_bundle_status").val();p&&clearInterval(p),e&&clearInterval(y),t&&clearInterval(y),c&&clearInterval(y),a&&clearInterval(y),i&&clearInterval(y),o&&clearInterval(y),n&&clearInterval(y),s&&clearInterval(y),A&&clearInterval(y),u&&clearInterval(y),l&&clearInterval(y),r&&clearInterval(r),_&&clearInterval(_),f&&clearInterval(f),d&&clearInterval(d),w&&clearInterval(w),v&&clearInterval(v),WocptActDeActButton("woffice_cpt_key"),WocptActDeActButton("woffice_woae"),WocptActDeActButton("wowcps"),WocptActDeActButton("woffice_hr_bundle"),WocptActDeActButton("wokss_kanban"),WocptActDeActButton("advanced_tasks_for_woffice"),WocptActDeActButton("docs_to_wiki"),WocptActDeActButton("woffice_timeline"),WocptActDeActButton("woffice_adreporting"),WocptActDeActButton("woffice_tmv"),WocptActDeActButton("woffice_okr"),WocptActDeActButton("woffice_pm"),WocptActDeActButton("woffice_crm"),WocptActDeActButton("woffice_crm_enhancements"),WocptActDeActButton("advanced_events"),WocptActDeActButton("wocs_csai"),WofficeActDeActButton("woffice_team_management"),WofficeActDeActButton("wp_job_manager_hr_bundle")},1e3);jQuery("#wolicencekey").dialog({dialogClass:"wp-dialog",autoOpen:!1,draggable:!1,width:500,modal:!0,resizable:!1,closeOnEscape:!0,position:{my:"center",at:"center",of:window},open:function(){var e=jQuery(this);window.setTimeout(function(){e.dialog("close")},4e3),jQuery(".ui-widget-overlay").bind("click",function(){jQuery("#wolicencekey").dialog("close")})},create:function(){jQuery(".ui-dialog-titlebar-close").addClass("ui-button")}})}),jQuery(document).ajaxStart(function(){WocptActDeActButton("woffice_cpt_key"),WocptActDeActButton("woffice_woae"),WocptActDeActButton("wowcps"),WocptActDeActButton("woffice_hr_bundle"),WocptActDeActButton("wokss_kanban"),WocptActDeActButton("advanced_tasks_for_woffice"),WocptActDeActButton("docs_to_wiki"),WocptActDeActButton("woffice_timeline"),WocptActDeActButton("woffice_adreporting"),WocptActDeActButton("woffice_tmv"),WocptActDeActButton("woffice_okr"),WocptActDeActButton("woffice_pm"),WocptActDeActButton("woffice_crm"),WocptActDeActButton("woffice_crm_enhancements"),WocptActDeActButton("advanced_events"),WocptActDeActButton("wocs_csai"),WofficeActDeActButton("woffice_team_management"),WofficeActDeActButton("wocs_csai")}),jQuery(document).ajaxStop(function(){WocptActDeActButton("woffice_cpt_key"),WocptActDeActButton("woffice_woae"),WocptActDeActButton("wowcps"),WocptActDeActButton("woffice_hr_bundle"),WocptActDeActButton("wokss_kanban"),WocptActDeActButton("advanced_tasks_for_woffice"),WocptActDeActButton("docs_to_wiki"),WocptActDeActButton("woffice_timeline"),WocptActDeActButton("woffice_adreporting"),WocptActDeActButton("woffice_tmv"),WocptActDeActButton("woffice_okr"),WocptActDeActButton("woffice_pm"),WocptActDeActButton("woffice_crm"),WocptActDeActButton("woffice_crm_enhancements"),WocptActDeActButton("advanced_events"),WocptActDeActButton("wocs_csai"),WofficeActDeActButton("woffice_team_management"),WofficeActDeActButton("wocs_csai")});