File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/hummingbird-performance/admin/assets/js/wphb-gb-block.min.js
Back
!function(){var t={294:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},346:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},361:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},392:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},659:function(t,e,n){var r=n(1873),o=Object.prototype,i=o.hasOwnProperty,c=o.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var o=c.call(t);return r&&(e?t[a]=n:delete t[a]),o}},695:function(t,e,n){var r=n(8096),o=n(2428),i=n(6449),c=n(3656),a=n(361),u=n(7167),s=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&o(t),f=!n&&!l&&c(t),p=!n&&!l&&!f&&u(t),d=n||l||f||p,v=d?r(t.length,String):[],h=v.length;for(var g in t)!e&&!s.call(t,g)||d&&("length"==g||f&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,h))||v.push(g);return v}},999:function(t,e,n){var r=n(9302),o=n(6800);t.exports=function(t){return r(function(e,n){var r=-1,i=n.length,c=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(c=t.length>3&&"function"==typeof c?(i--,c):void 0,a&&o(n[0],n[1],a)&&(c=i<3?void 0:c,i=1),e=Object(e);++r<i;){var u=n[r];u&&t(e,u,r,c)}return e})}},1033:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},1597:function(t,e,n){"use strict";n.r(e);var r=n(9620);window.wphbMixPanel={optIn:function(){wphb.mixpanel.enabled=!0},deactivate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.track("plugin_deactivate",{reason:t,feedback:e})},trackHBUpsell:function(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"hb_upsell_triggered";this.track(o,{Feature:t,Location:e,"User Action":n,"UTM Link":r})},enableFeature:function(t){this.track("plugin_feature_activate",{feature:t})},trackEoUpsell:function(t,e){var n="delayjs"===t?"js_delay_upsell":"critical_css_upsell";this.track(n,{"Modal Action":"direct_cta",Location:e})},getUpdateType:function(t){return"activate"===t?"plugin_feature_activate":"deactivate"===t?"plugin_feature_deactivate":""},trackDelayJSEvent:function(t){"activate"===t.update_type&&this.enableFeature("JS Delay"),"deactivate"===t.update_type&&this.disableFeature("JS Delay"),this.track("js_delay_updated",t)},trackFontOptimizationEvent:function(t,e){"activate"===t&&this.enableFeature(e),"deactivate"===t&&this.disableFeature(e)},trackCriticalCSSEvent:function(t){"activate"===t.update_type&&this.enableFeature("Critical Css"),"deactivate"===t.update_type&&this.disableFeature("Critical Css"),this.track("critical_css_updated",t)},trackAOUpdated:function(t){this.track("ao_updated",t)},trackGutenbergEvent:function(t){this.track("critical_css_gutenberg",{feature:t}),"revert"===t&&this.track("critical_css_cache_purge",{location:"gutenberg"})},trackPageCachingSettings:function(t,e,n,r,o){var i="local_page_cache"===e?"Page Caching":e;"activate"===t&&this.enableFeature(i),"deactivate"===t&&this.disableFeature(i),this.track("page_caching_updated",{update_type:t,Method:e,Location:n,modified_settings:r,preload_homepage:o})},trackProUpsell:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"submenu";this.track(t,{Location:n,"User Action":e})},disableFeature:function(t){this.track("plugin_feature_deactivate",{feature:t})},track:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];void 0!==wphb.mixpanel&&(wphb.mixpanel.enabled||n)&&r.A.mixpanel.trackMixpanelEvent(t,e)}}},1791:function(t,e,n){var r=n(6547),o=n(3360);t.exports=function(t,e,n,i){var c=!n;n||(n={});for(var a=-1,u=e.length;++a<u;){var s=e[a],l=i?i(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),c?o(n,s,l):r(n,s,l)}return n}},1811:function(t){var e=Date.now;t.exports=function(t){var n=0,r=0;return function(){var o=e(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}},1873:function(t,e,n){var r=n(9325).Symbol;t.exports=r},1882:function(t,e,n){var r=n(2552),o=n(3805);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},2428:function(t,e,n){var r=n(7534),o=n(346),i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&c.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},2552:function(t,e,n){var r=n(1873),o=n(659),i=n(9350),c=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":c&&c in Object(t)?o(t):i(t)}},2865:function(t,e,n){var r=n(9570),o=n(1811)(r);t.exports=o},3243:function(t,e,n){var r=n(6110),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},3360:function(t,e,n){var r=n(3243);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},3488:function(t){t.exports=function(t){return t}},3650:function(t,e,n){var r=n(4335)(Object.keys,Object);t.exports=r},3656:function(t,e,n){t=n.nmd(t);var r=n(9325),o=n(9935),i=e&&!e.nodeType&&e,c=i&&t&&!t.nodeType&&t,a=c&&c.exports===i?r.Buffer:void 0,u=(a?a.isBuffer:void 0)||o;t.exports=u},3805:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},4335:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4840:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},4894:function(t,e,n){var r=n(1882),o=n(294);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4901:function(t,e,n){var r=n(2552),o=n(294),i=n(346),c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c["[object Arguments]"]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c["[object Map]"]=c["[object Number]"]=c["[object Object]"]=c["[object RegExp]"]=c["[object Set]"]=c["[object String]"]=c["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!c[r(t)]}},5083:function(t,e,n){var r=n(1882),o=n(7296),i=n(3805),c=n(7473),a=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,f=s.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?p:a).test(c(t))}},5288:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},5481:function(t,e,n){var r=n(9325)["__core-js_shared__"];t.exports=r},5527:function(t){var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},5950:function(t,e,n){var r=n(695),o=n(8984),i=n(4894);t.exports=function(t){return i(t)?r(t):o(t)}},6009:function(t,e,n){t=n.nmd(t);var r=n(4840),o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,c=i&&i.exports===o&&r.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=a},6110:function(t,e,n){var r=n(5083),o=n(392);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},6139:function(t,e,n){var r=n(6547),o=n(1791),i=n(999),c=n(4894),a=n(5527),u=n(5950),s=Object.prototype.hasOwnProperty,l=i(function(t,e){if(a(e)||c(e))o(e,u(e),t);else for(var n in e)s.call(e,n)&&r(t,n,e[n])});t.exports=l},6449:function(t){var e=Array.isArray;t.exports=e},6547:function(t,e,n){var r=n(3360),o=n(5288),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var c=t[e];i.call(t,e)&&o(c,n)&&(void 0!==n||e in t)||r(t,e,n)}},6757:function(t,e,n){var r=n(1033),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,c=-1,a=o(i.length-e,0),u=Array(a);++c<a;)u[c]=i[e+c];c=-1;for(var s=Array(e+1);++c<e;)s[c]=i[c];return s[e]=n(u),r(t,this,s)}}},6800:function(t,e,n){var r=n(5288),o=n(4894),i=n(361),c=n(3805);t.exports=function(t,e,n){if(!c(n))return!1;var a=typeof e;return!!("number"==a?o(n)&&i(e,n.length):"string"==a&&e in n)&&r(n[e],t)}},6964:function(t,e,n){t.exports=function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}var r=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,i=void 0,c=void 0,a=function(t,e){m[o]=t,m[o+1]=e,2===(o+=2)&&(c?c(S):P())};function u(t){c=t}function s(t){a=t}var l="undefined"!=typeof window?window:void 0,f=l||{},p=f.MutationObserver||f.WebKitMutationObserver,d="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),v="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function h(){return function(){return process.nextTick(S)}}function g(){return void 0!==i?function(){i(S)}:y()}function _(){var t=0,e=new p(S),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function b(){var t=new MessageChannel;return t.port1.onmessage=S,function(){return t.port2.postMessage(0)}}function y(){var t=setTimeout;return function(){return t(S,1)}}var m=new Array(1e3);function S(){for(var t=0;t<o;t+=2)(0,m[t])(m[t+1]),m[t]=void 0,m[t+1]=void 0;o=0}function w(){try{var t=Function("return this")().require("vertx");return i=t.runOnLoop||t.runOnContext,g()}catch(t){return y()}}var P=void 0;function O(t,e){var n=this,r=new this.constructor(C);void 0===r[j]&&Y(r);var o=n._state;if(o){var i=arguments[o-1];a(function(){return J(o,r,i,n._result)})}else $(n,r,t,e);return r}function x(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(C);return U(n,t),n}P=d?h():p?_():v?b():void 0===l?w():y();var j=Math.random().toString(36).substring(2);function C(){}var T=void 0,A=1,k=2;function E(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function M(t,e,n,r){try{t.call(e,n,r)}catch(t){return t}}function I(t,e,n){a(function(t){var r=!1,o=M(n,e,function(n){r||(r=!0,e!==n?U(t,n):D(t,n))},function(e){r||(r=!0,L(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&o&&(r=!0,L(t,o))},t)}function N(t,e){e._state===A?D(t,e._result):e._state===k?L(t,e._result):$(e,void 0,function(e){return U(t,e)},function(e){return L(t,e)})}function R(t,n,r){n.constructor===t.constructor&&r===O&&n.constructor.resolve===x?N(t,n):void 0===r?D(t,n):e(r)?I(t,n,r):D(t,n)}function U(e,n){if(e===n)L(e,E());else if(t(n)){var r=void 0;try{r=n.then}catch(t){return void L(e,t)}R(e,n,r)}else D(e,n)}function B(t){t._onerror&&t._onerror(t._result),G(t)}function D(t,e){t._state===T&&(t._result=e,t._state=A,0!==t._subscribers.length&&a(G,t))}function L(t,e){t._state===T&&(t._state=k,t._result=e,a(B,t))}function $(t,e,n,r){var o=t._subscribers,i=o.length;t._onerror=null,o[i]=e,o[i+A]=n,o[i+k]=r,0===i&&t._state&&a(G,t)}function G(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r=void 0,o=void 0,i=t._result,c=0;c<e.length;c+=3)r=e[c],o=e[c+n],r?J(n,r,o,i):o(i);t._subscribers.length=0}}function J(t,n,r,o){var i=e(r),c=void 0,a=void 0,u=!0;if(i){try{c=r(o)}catch(t){u=!1,a=t}if(n===c)return void L(n,F())}else c=o;n._state!==T||(i&&u?U(n,c):!1===u?L(n,a):t===A?D(n,c):t===k&&L(n,c))}function q(t,e){try{e(function(e){U(t,e)},function(e){L(t,e)})}catch(e){L(t,e)}}var z=0;function W(){return z++}function Y(t){t[j]=z++,t._state=void 0,t._result=void 0,t._subscribers=[]}function H(){return new Error("Array Methods must be provided an Array")}var Q=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(C),this.promise[j]||Y(this.promise),r(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?D(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&D(this.promise,this._result))):L(this.promise,H())}return t.prototype._enumerate=function(t){for(var e=0;this._state===T&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===x){var o=void 0,i=void 0,c=!1;try{o=t.then}catch(t){c=!0,i=t}if(o===O&&t._state!==T)this._settledAt(t._state,e,t._result);else if("function"!=typeof o)this._remaining--,this._result[e]=t;else if(n===et){var a=new n(C);c?L(a,i):R(a,t,o),this._willSettleAt(a,e)}else this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},t.prototype._settledAt=function(t,e,n){var r=this.promise;r._state===T&&(this._remaining--,t===k?L(r,n):this._result[e]=n),0===this._remaining&&D(r,this._result)},t.prototype._willSettleAt=function(t,e){var n=this;$(t,void 0,function(t){return n._settledAt(A,e,t)},function(t){return n._settledAt(k,e,t)})},t}();function V(t){return new Q(this,t).promise}function K(t){var e=this;return r(t)?new e(function(n,r){for(var o=t.length,i=0;i<o;i++)e.resolve(t[i]).then(n,r)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})}function X(t){var e=new this(C);return L(e,t),e}function Z(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function tt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(e){this[j]=W(),this._result=this._state=void 0,this._subscribers=[],C!==e&&("function"!=typeof e&&Z(),this instanceof t?q(this,e):tt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var n=this,r=n.constructor;return e(t)?n.then(function(e){return r.resolve(t()).then(function(){return e})},function(e){return r.resolve(t()).then(function(){throw e})}):n.then(t,t)},t}();function nt(){var t=void 0;if(void 0!==n.g)t=n.g;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var r=null;try{r=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===r&&!e.cast)return}t.Promise=et}return et.prototype.then=O,et.all=V,et.race=K,et.resolve=x,et.reject=X,et._setScheduler=u,et._setAsap=s,et._asap=a,et.polyfill=nt,et.Promise=et,et}()},7167:function(t,e,n){var r=n(4901),o=n(7301),i=n(6009),c=i&&i.isTypedArray,a=c?o(c):r;t.exports=a},7296:function(t,e,n){var r,o=n(5481),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},7301:function(t){t.exports=function(t){return function(e){return t(e)}}},7334:function(t){t.exports=function(t){return function(){return t}}},7473:function(t){var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},7534:function(t,e,n){var r=n(2552),o=n(346);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},8096:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},8984:function(t,e,n){var r=n(5527),o=n(3650),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},9302:function(t,e,n){var r=n(3488),o=n(6757),i=n(2865);t.exports=function(t,e){return i(o(t,e,r),t+"")}},9325:function(t,e,n){var r=n(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},9350:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9570:function(t,e,n){var r=n(7334),o=n(3243),i=n(3488),c=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=c},9620:function(t,e,n){"use strict";var r=n(6139),o=n.n(r);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}var c=new function(){var t=ajaxurl,e=wphb.nonces.HBFetchNonce,r="wphb_",c="wphb_pro_";function a(r){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c={url:t,method:arguments.length>2&&void 0!==arguments[2]?arguments[2]:"GET",cache:!1};return o instanceof FormData?(o.append("nonce",e),o.append("action",r),c.contentType=!1,c.processData=!1):(o.nonce=e,o.action=r),c.data=o,new(0,n(6964).Promise)(function(t,e){jQuery.ajax(c).done(t).fail(e)}).then(function(t){return function(t){"object"!==i(t)&&(t=JSON.parse(t));if(t.success)return t.data;var e=t.data||{},n=new Error(e.message||"Error trying to fetch response from server");throw n.response=t,n}(t)})}var u={caching:{saveSettings:function(t,e){return a(r+t+"_save_settings",{data:e},"POST").then(function(t){return t})},saveFastCGISettings:function(t){return a(r+"fast_cgi_save_settings",{data:t},"POST").then(function(t){return t})},clearCache:function(t){return a(r+"clear_module_cache",{module:t},"POST").then(function(t){return t})},clearCacheForPost:function(t){return a(r+"gutenberg_clear_post_cache",{postId:t},"POST")},redisSaveSettings:function(t,e,n,o){return a(r+"redis_save_settings",{host:t,port:e,password:n,db:o},"POST")},redisObjectCache:function(t){return a(r+"redis_toggle_object_cache",{value:t},"POST")},clearCacheBatch:function(t,e){return a(r+"clear_network_cache",{sites:t,offset:e},"POST")},disableFastCGI:function(){return a(r+"disable_fast_cgi",{},"POST").then(function(t){return t})},switchCacheMethod:function(t){return a(r+"switch_cache_method",{method:t},"POST").then(function(t){return t})}},cloudflare:{connect:function(t,e,n,o){return a(r+"cloudflare_connect",{email:t,key:e,token:n,zone:o},"POST").then(function(t){return t})}},minification:{toggleCDN:function(t){return a(r+"minification_toggle_cdn",{value:t},"POST")},toggleLog:function(t){return a(r+"minification_toggle_log",{value:t},"POST")},toggleView:function(t,e){return a(r+"minification_toggle_view",{value:t,hide:e},"POST").then(function(t){return t})},startCheck:function(){return a(r+"minification_start_check",{},"POST")},checkStep:function(t){return a(r+"minification_check_step",{step:t},"POST").then(function(t){return t})},finishCheck:function(){return a(r+"minification_finish_scan",{},"POST").then(function(t){return t})},cancelScan:function(){return a(r+"minification_cancel_scan",{},"POST")},saveCriticalCss:function(t){return a(r+"minification_save_extra_optimization_data",{form:t},"POST").then(function(t){return t})},updateAssetPath:function(t){return a(r+"minification_update_asset_path",{value:t},"POST")},saveNetworkSettings:function(t){return a(r+"minification_update_network_settings",{settings:t},"POST")},updateExcludeList:function(t){return a(r+"minification_save_exclude_list",{data:t},"POST")},clearCriticalCssFiles:function(){return a(r+"clear_critical_css_files",{},"POST").then(function(t){return t})},createCSSForPost:function(t){return a(r+"gutenberg_create_css_file",{postId:t},"POST")},reCreateCSSForPost:function(t){return a(r+"gutenberg_recreate_css_file",{postId:t},"POST")},revertCSSForPost:function(t){return a(r+"gutenberg_revert_css_file",{postId:t},"POST")},getCriticalStatusForSinglePost:function(t){return a(r+"gutenberg_get_critical_status_for_single_post",{postId:t},"POST")},getCriticalStatusForQueue:function(){return a(r+"get_critical_status_for_queue",{},"POST")},toggleDelayJs:function(t){return a(r+"react_minify_toggle_delay_js",{data:t},"POST")},toggleCriticalCss:function(t){return a(r+"react_minify_toggle_critical_css",{data:t},"POST")},resetExclusions:function(t,e){return a(r+"reset_exclusions",{value:t,type:e},"POST")}},performance:{savePerformanceTestSettings:function(t){return a(r+"performance_save_settings",{data:t},"POST")}},advanced:{saveSettings:function(t,e){return a(r+"advanced_save_settings",{data:t,form:e},"POST").then(function(t){return t})},deleteSelectedData:function(t){return a(r+"advanced_db_delete_data",{data:t},"POST").then(function(t){return t})},clearOrphanedBatch:function(t){return a(r+"advanced_purge_orphaned",{rows:t},"POST")}},settings:{saveSettings:function(t){return a(r+"admin_settings_save_settings",{form_data:t},"POST").then(function(t){return t})},importSettings:function(t){return a(r+"admin_settings_import_settings",t,"POST").then(function(t){return t})},exportSettings:function(){var n=r+"admin_settings_export_settings";window.location=t+"?action="+n+"&nonce="+e}},common:{dismissNotice:function(t){return a(r+"notice_dismiss",{id:t,SubAction:arguments.length>1&&void 0!==arguments[1]?arguments[1]:""},"POST")},clearLogs:function(t){return a(r+"logger_clear",{module:t},"POST").then(function(t){return t})},call:function(t){return a(t,{},"POST").then(function(t){return t})},callWithParams:function(t,e){return a(t,{data:e},"POST").then(function(t){return t})},clearCaches:function(t){return a(r+"clear_caches",{modules:t},"POST").then(function(t){return t})}},mixpanel:{trackMixpanelEvent:function(t,e){return a(r+"analytics_track_event",{event:t,properties:e},"POST")}},notifications:{resendConfirmationEmail:function(t,e){return a(c+"resend_confirmation",{name:t,email:e},"POST").then(function(t){return t})},sendConfirmationEmail:function(t,e){return a(c+"send_confirmation",{name:t,email:e},"POST").then(function(t){return t})},disable:function(t,e){return a(c+"disable_notification",{id:t,type:e},"POST")},enable:function(t){return a(c+"enable_notification",{settings:t,update:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},"POST").then(function(t){return t})},getAvatar:function(t){return a(c+"get_avatar",{email:t},"POST").then(function(t){return t})},getUsers:function(t){return a(c+"search_users",{exclude:t},"POST").then(function(t){return t})}}};o()(this,u)};e.A=c},9935:function(t){t.exports=function(){return!1}}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t},function(){"use strict";var t=n(9620),e=function(t){return wphb.strings[t]||""};function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,c,a=[],u=!0,s=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=i.call(n)).done)&&(a.push(r.value),a.length!==e);u=!0);}catch(t){s=!0,o=t}finally{try{if(!u&&null!=n.return&&(c=n.return(),Object(c)!==c))return}finally{if(s)throw o}}return a}}(t,e)||function(t,e){if(t){if("string"==typeof t)return o(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var i=wp.element,c=i.useEffect,a=i.useState,u=wp.editPost.PluginPostStatusInfo,s=wp.plugins.registerPlugin,l=wp.data,f=l.select,p=l.dispatch,d=wp.i18n.__;wphb.mixpanel.enabled&&n(1597);var v="critical-generated-notice",h="critical-reverted-notice",g="critical-error-notice",_="wphb-gb-",b=function(t){wphb.mixpanel.enabled&&window.wphbMixPanel.trackGutenbergEvent(t)},y=function(){var e=f("core/editor").getCurrentPostId();t.A.caching.clearCacheForPost(e).then(m)},m=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"notice",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"success",o=f("core/notices").getNotices(),i=_+t;if(!o.find(function(t){return t.id===i})){var c=n||e("notice");p("core/notices").createNotice(r,c,{id:i})}},S=function(){p("core/notices").removeNotice(_+v),p("core/notices").removeNotice(_+h),p("core/notices").removeNotice(_+g)};s("wphb",{render:function(){var n=e("pageCache"),o=e("criticalCss"),i=e("singlePostCriticalCSSStatus"),s=r(a(i),2),l=s[0],p=s[1];c(function(){if("processing"===l){var e=setInterval(function(){var e=f("core/editor").getCurrentPostId();t.A.minification.getCriticalStatusForSinglePost(e).then(function(t){p(null==t?void 0:t.singlePostCriticalCSSStatus);var e=null==t?void 0:t.singlePostCriticalDetail;if("complete"===e.status){var n=e.result,r="COMPLETE"!==n&&""!==e.error_message?e.error_message:d("Critical CSS generated successfully","wphb");if(m(v,r,"COMPLETE"===n?"success":"error"),"ERROR"===n){var o=e.error_message;window.wphbMixPanel.track("critical_css_error",{"Error Type":null==t?void 0:t.errorCode,"Error Message":o.length>256?o.substring(0,256)+"...":o})}}})},1e4);return function(){return clearInterval(e)}}},[l]);var _=function(){if(!e("isMember"))return wphb.mixpanel.enabled&&window.wphbMixPanel.trackEoUpsell("critical_css_upsell","gutenberg"),void window.open(e("gutenbergUTM"),"_blank");b("generate"),S();var n=f("core/editor").getCurrentPostId();t.A.minification.createCSSForPost(n).then(function(t){p(null==t?void 0:t.singlePostCriticalCSSStatus);var e=null==t?void 0:t.message;"error"===(null==t?void 0:t.singlePostCriticalCSSStatus)&&e&&m(g,e,"error")})};return React.createElement(React.Fragment,null,n&&React.createElement(u,{className:"wphb-clear-cache"},React.createElement("input",{type:"submit",value:e("button"),onClick:y,className:"components-button is-button is-default is-secondary is-large editor-post-trash"})),o&&("complete"!==l?React.createElement(u,{key:"wphb-create-critical",className:"wphb-create-critical"},React.createElement("button",{onClick:_,disabled:"processing"===l,className:"button components-button is-button is-default is-secondary is-large editor-post-trash"},"processing"===l?d("Generating Critical CSS","wphb"):e("criticalCreateButton"),"processing"===l?React.createElement("span",{style:{visibility:"visible",display:"block"},className:"spinner"}):"")):React.createElement(React.Fragment,null,React.createElement(u,{key:"wphb-regenerate-critical",className:"wphb-regenerate-critical"},React.createElement("input",{type:"submit",value:e("criticalRecreateButton"),onClick:function(){var e=f("core/editor").getCurrentPostId();b("regenerate"),S(),t.A.minification.reCreateCSSForPost(e).then(function(t){p(null==t?void 0:t.singlePostCriticalCSSStatus);var e=null==t?void 0:t.message;"error"===(null==t?void 0:t.singlePostCriticalCSSStatus)&&e&&m(g,e)})},className:"components-button is-button is-default is-secondary is-large editor-post-trash"})),React.createElement(u,{key:"wphb-revert-critical",className:"wphb-revert-critical"},React.createElement("input",{type:"submit",value:e("criticalRevertButton"),onClick:function(){var e=f("core/editor").getCurrentPostId();b("revert"),S(),t.A.minification.revertCSSForPost(e).then(function(t){p(null==t?void 0:t.singlePostCriticalCSSStatus);var e=null==t?void 0:t.message;e&&m(h,e)})},className:"components-button is-button is-default is-secondary is-large editor-post-trash"})))),e("displayProLabelButton")&&React.createElement(u,{key:"wphb-create-critical",className:"wphb-create-critical"},React.createElement("button",{onClick:_,className:"button components-button is-button is-default is-secondary is-large editor-post-trash"},e("criticalCreateButton"))))}})}()}(); //# sourceMappingURL=wphb-gb-block.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.58 |
proxy
|
phpinfo
|
Settings