File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/hummingbird-performance/admin/assets/js/wphb-react-caching.min.js
Back
!function(){var e,t={1687:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2694:function(e,t,r){"use strict";var n=r(1687);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,s){if(s!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},5228:function(e){"use strict";var t=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,s,a=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in i=Object(arguments[c]))r.call(i,u)&&(a[u]=i[u]);if(t){s=t(i);for(var l=0;l<s.length;l++)n.call(i,s[l])&&(a[s[l]]=i[s[l]])}}return a}},5556:function(e,t,r){e.exports=r(2694)()},5762:function(e,t,r){"use strict";var n=r(6540),o=r(961),i=r(5556),s=r.n(i);var a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g||{},c="URLSearchParams"in a,u="Symbol"in a&&"iterator"in Symbol,l="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),p="FormData"in a,f="ArrayBuffer"in a;if(f)var d=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],h=ArrayBuffer.isView||function(e){return e&&d.indexOf(Object.prototype.toString.call(e))>-1};function y(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function b(e){return"string"!=typeof e&&(e=String(e)),e}function m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return u&&(t[Symbol.iterator]=function(){return t}),t}function v(e){this.map={},e instanceof v?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function w(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function g(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function E(e){var t=new FileReader,r=g(t);return t.readAsArrayBuffer(e),r}function S(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function O(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:l&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:p&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:c&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():f&&l&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=S(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):f&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=S(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):c&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},l&&(this.blob=function(){var e=w(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=w(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(l)return this.blob().then(E);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,r,n,o,i=w(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,r=g(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=n?n[1]:"utf-8",t.readAsText(e,o),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},p&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=y(e),t=b(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},v.prototype.delete=function(e){delete this.map[y(e)]},v.prototype.get=function(e){return e=y(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(y(e))},v.prototype.set=function(e,t){this.map[y(e)]=b(t)},v.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},v.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),m(e)},v.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),m(e)},v.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),m(e)},u&&(v.prototype[Symbol.iterator]=v.prototype.entries);var x=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function j(e,t){if(!(this instanceof j))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,o=(t=t||{}).body;if(e instanceof j){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new v(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new v(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),x.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in a)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}}),t}function k(e,t){if(!(this instanceof k))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new v(t.headers),this.url=t.url||"",this._initBody(e)}j.prototype.clone=function(){return new j(this,{body:this._bodyInit})},O.call(j.prototype),O.call(k.prototype),k.prototype.clone=function(){return new k(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},k.error=function(){var e=new k(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var C=[301,302,303,307,308];k.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new k(null,{status:t,headers:{location:e}})};var P=a.DOMException;try{new P}catch(e){(P=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack}).prototype=Object.create(Error.prototype),P.prototype.constructor=P}function T(e,t){return new Promise(function(r,n){var o=new j(e,t);if(o.signal&&o.signal.aborted)return n(new P("Aborted","AbortError"));var i=new XMLHttpRequest;function s(){i.abort()}if(i.onload=function(){var e,t,n={statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new v,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?n.status=200:n.status=i.status,n.url="responseURL"in i?i.responseURL:n.headers.get("X-Request-URL");var s="response"in i?i.response:i.responseText;setTimeout(function(){r(new k(s,n))},0)},i.onerror=function(){setTimeout(function(){n(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){n(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){n(new P("Aborted","AbortError"))},0)},i.open(o.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(l?i.responseType="blob":f&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof v||a.Headers&&t.headers instanceof a.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(e){c.push(y(e)),i.setRequestHeader(e,b(t.headers[e]))}),o.headers.forEach(function(e,t){-1===c.indexOf(t)&&i.setRequestHeader(t,e)})}else o.headers.forEach(function(e,t){i.setRequestHeader(t,e)});o.signal&&(o.signal.addEventListener("abort",s),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",s)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function A(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,I(n.key),n)}}function I(e){var t=function(e,t){if("object"!=N(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==N(t)?t:t+""}T.polyfill=!0,a.fetch||(a.fetch=T,a.Headers=v,a.Request=j,a.Response=k);var B=["get","post","put","delete"],R=function(){return e=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),B.forEach(function(e){t[e]=t._setupAjaxAPI(e)})},t=[{key:"_setupAjaxAPI",value:function(e){return"get"===e&&(e="post"),function(){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r={credentials:"same-origin",method:e,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=utf-8"},body:"action=wphb_react_"+(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/")+"&_wpnonce="+wphb.nonces.HBFetchNonce+"&data="+JSON.stringify(t)};return T(ajaxurl,r).then(function(e){return e.json().then(function(t){return e.ok?t.data:Promise.reject(t.data)})})}}}],t&&A(e.prototype,t),r&&A(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}(),F=n.createContext(),D=r(6942),U=r.n(D);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function L(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,z(n.key),n)}}function z(e){var t=function(e,t){if("object"!=M(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==M(t)?t:t+""}function W(e,t,r){return t=q(t),function(e,t){if(t&&("object"==M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,H()?Reflect.construct(t,r||[],q(e).constructor):t.apply(e,r))}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(H=function(){return!!e})()}function q(e){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},q(e)}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}var J=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),W(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}(t,e),r=t,(o=[{key:"render",value:function(){var e="sui-actions-"+this.props.type;return n.createElement("div",{className:e},this.props.content)}}])&&L(r.prototype,o),i&&L(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function X(e){var t=e.elements,r=e.header,o=e.extraClasses,i=Object.values(t).map(function(e,t){return n.createElement("div",{className:"table-row",key:t},n.createElement("div",{className:"wphb-caching-summary-item-type"},e.label),!window.lodash.includes(o,"two-columns")&&n.createElement("div",{className:"wphb-caching-summary-item-expiry"},e.expiry),n.createElement("div",null,e.details))});return n.createElement("div",{className:U()("wphb-border-frame",o)},r&&n.createElement("div",{className:"table-header"},n.createElement("div",{className:"wphb-caching-summary-heading-type"},r[0]),!window.lodash.includes(o,"two-columns")&&n.createElement("div",{className:"wphb-caching-summary-heading-expiry"},r[2]),n.createElement("div",{className:"wphb-caching-summary-heading-status"},r[1])),i)}function Y(e){var t=e.classes;return n.createElement("span",{className:t,"aria-hidden":"true"})}var $=wp.i18n.__;function V(e){var t=e.loading,r=e.text,o=$("Fetching latest data...","wphb");return r&&(o=r),n.createElement("div",{className:U()("wphb-loading-overlay",{"wphb-loading":t})},n.createElement(Y,{classes:"sui-icon-loader sui-loading"}),n.createElement("p",null,o))}function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,K(n.key),n)}}function K(e){var t=function(e,t){if("object"!=Q(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Q(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Q(t)?t:t+""}function ee(e,t,r){return t=re(t),function(e,t){if(t&&("object"==Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,te()?Reflect.construct(t,r||[],re(e).constructor):t.apply(e,r))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(te=function(){return!!e})()}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}function ne(e,t){return ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ne(e,t)}var oe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ee(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ne(e,t)}(t,e),r=t,i=[{key:"boxHeader",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n.createElement(n.Fragment,null,(e||t)&&n.createElement("h3",{className:"sui-box-title"},t&&n.createElement(Y,{classes:"sui-icon-"+t})," "+e),r)}}],(o=[{key:"renderContent",value:function(){var e,r=t.boxHeader(this.props.title,this.props.icon,this.props.headerActions);return e=this.props.stickyType?["sui-box","sui-box-header",this.props.boxClass]:["sui-box-header"],n.createElement(n.Fragment,null,n.createElement(V,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&n.createElement("div",{className:U()(e)},r),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&n.createElement("div",{className:U()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&n.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?n.createElement(n.Fragment,null,e):n.createElement("div",{className:U()("sui-box",this.props.boxClass),"data-tab":"flushed"},e)}}])&&Z(r.prototype,o),i&&Z(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);oe.propTypes={boxClass:s().oneOfType([s().string,s().array]),boxBodyClass:s().oneOfType([s().string,s().array]),title:s().string,icon:s().string,hideHeader:s().bool,headerActions:s().element,content:s().element,footerActions:s().element,loading:s().bool,loadingText:s().string,stickyType:s().bool,showFilters:s().bool};var ie=["text","url","classes","id","icon","target","disabled","onClick","type"];function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(null,arguments)}function ae(e){var t,r=e.text,o=e.url,i=void 0===o?"#":o,s=e.classes,a=e.id,c=e.icon,u=e.target,l=e.disabled,p=void 0!==l&&l,f=e.onClick,d=e.type,h=void 0===d?"link":d,y=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,ie);return c&&(c=n.createElement("span",{className:c,"aria-hidden":"true"})),"button"===h?n.createElement("button",se({className:U()(s),id:a,disabled:p,onClick:f},y),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c):("blank"!==u&&"_blank"!==u||(u="_blank",t="noopener noreferrer"),n.createElement("a",se({className:U()(s),href:i,id:a,target:u,rel:t,disabled:p,onClick:f},y),!window.lodash.includes(s,"sui-button-icon-right")&&c,r,window.lodash.includes(s,"sui-button-icon-right")&&c))}function ce(e){var t=e.message,r=e.classes,o=e.content,i=U()("sui-notice",r);return n.createElement("div",{className:i},n.createElement("div",{className:"sui-notice-content"},n.createElement("div",{className:"sui-notice-message"},n.createElement(Y,{classes:"sui-notice-icon sui-icon-info sui-md"}),t&&n.createElement("p",null,t),o&&n.createElement("p",null,o))))}function ue(e){var t=e.value,r=e.type;if(0===t&&"success"===r)return n.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var o="sui-tag sui-tag-"+r;return n.createElement("span",{className:o},t)}function le(e){var t=e.text,r=e.classes,o=e.children;return n.createElement("span",{className:U()("sui-tooltip",r),"data-tooltip":t},o)}function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function fe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function de(e){var t=function(e,t){if("object"!=pe(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=pe(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==pe(t)?t:t+""}function he(e,t,r){return t=be(t),function(e,t){if(t&&("object"==pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ye()?Reflect.construct(t,r||[],be(e).constructor):t.apply(e,r))}function ye(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ye=function(){return!!e})()}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}function me(e,t){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},me(e,t)}ue.defaultProps={value:0,type:"success"};var ve=wp.i18n,we=ve.__,ge=ve.sprintf,Ee=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),he(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&me(e,t)}(t,e),r=t,o=[{key:"getStatus",value:function(e){var t;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(t=n.createElement(ue,null));var r=this.getFailedItems(e);return 0<r&&(t=n.createElement(ue,{value:r,type:"warning"})),t}},{key:"getFailedItems",value:function(e){var t=this,r=Object.entries(e).filter(function(e){return!e[1]||t.props.data.recommended[e[0].toLowerCase()].value>e[1]}).length;return 0<r&&this.props.cloudflare.isSetup&&r++,r}},{key:"checkExternalProblems",value:function(){if(!this.props.loading&&(!this.props.data.htaccessWritable||this.props.data.htaccessWritten)){var e=Object.values(this.props.status).filter(function(e){return!e||"privacy"===e});if(4!==Object.keys(this.props.status).length||0<e){var t=n.createElement(n.Fragment,null,n.createElement("p",null,we("Browser Caching is not working properly:","wphb")),n.createElement("p",null,we('Your server may not have the "expires" module enabled (mod_expires for Apache, ngx_http_headers_module for NGINX). Another plugin may be interfering with the configuration. If re-checking and restarting does not resolve, please check with your host or',"wphb")," ",n.createElement(ae,{text:we("open a support ticket.","wphb"),url:this.props.link.support.forum,target:"blank"})));return n.createElement(ce,{content:t,classes:"sui-notice-error"})}}}},{key:"showCloudflareNotice",value:function(){if(!this.props.loading&&!this.props.cloudflare.isSetup&&"dismiss"!==this.props.cloudflare.notice){var e=this.props.cloudflare.isConnected?we("We’ve detected you’re using Cloudflare! Connect your account to control your settings via Hummingbird.","wphb"):we("Using CloudFlare? Connect your account to control your settings via Hummingbird. CloudFlare is a Content Delivery Network (CDN) that sends traffic through its global network to automatically optimize the delivery of your site so your visitors can browse your site at top speeds. There is a free plan and we recommend using it.","wphb"),t=n.createElement(ae,{text:we("Enable integration","wphb"),classes:["sui-button","sui-button-blue"],onClick:this.props.onCloudflareClick});return n.createElement("div",{className:"sui-box-settings-row sui-upsell-row cf-dash-notice sui-no-padding-top"},n.createElement("div",{className:"sui-upsell-notice"},n.createElement("p",null,e,n.createElement("span",null,t,n.createElement(ae,{text:we("Learn More","wphb"),url:"https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#browser-cache",target:"blank"})))))}}},{key:"getContent",value:function(){var e=this,t=this.getFailedItems(this.props.status),r="sui-notice-warning",o=ge(we("%d of your cache types don’t meet the minimum recommended expiry period of 1 year. Configure browser caching below.","wphb"),t);0===t&&(r="sui-notice-success",o=we("All of your cache types meet the minimum recommended expiry period of 1 year. Great work!","wphb"),!1===this.props.data.htaccessWritten&&(o=we("All of your cache types meet the minimum recommended expiry period of 1 year. Your hosting has automatically pre-configured browser caching for you and no further actions are required.","wphb")));var i=Object.entries(this.props.status).map(function(t){var r=t[0].toLowerCase(),o=r,i="warning";"javascript"===o?o="js":"images"===o&&(o="img"),t[1]>=e.props.data.recommended[r].value&&(i="success");var s=ge(we("The recommended value for this file type is at least %s.","wphb"),e.props.data.recommended[r].label);return{label:n.createElement(n.Fragment,null,n.createElement("span",{className:U()("wphb-filename-extension","wphb-filename-extension-"+r)},o),n.createElement("span",{className:"wphb-filename-extension-label"},t[0])),expiry:n.createElement(le,{text:s,classes:"sui-tooltip-constrained"},n.createElement(ue,{value:e.props.data.recommended[r].label,type:"disabled"})),details:n.createElement(ue,{value:e.props.human[t[0]],type:i})}});if(this.props.cloudflare.isSetup){var s={label:n.createElement(n.Fragment,null,n.createElement(le,{text:this.props.data.cacheTypes.cloudflare,classes:U()("sui-tooltip-constrained","wphb-filename-extension","wphb-filename-extension-other")},"oth"),n.createElement("span",{className:"wphb-filename-extension-label"},"Cloudflare")),expiry:i[0].expiry,details:i[0].details};window.lodash.assign(i,{4:s})}var a=this.props.cloudflare.isSetup||"dismiss"===this.props.cloudflare.notice?"":"sui-box-body";return n.createElement(n.Fragment,null,n.createElement("div",{className:a},this.checkExternalProblems(),n.createElement("p",null,we("Store temporary data on your visitors devices so that they don’t have to download assets twice if they don’t have to. This results in a much faster second time round page load speed.","wphb")),n.createElement(ce,{message:o,classes:r}),n.createElement(X,{header:[we("File type","wphb"),we("Current expiry","wphb"),we("Recommended expiry","wphb")],elements:i})),!this.props.cloudflare.isAuthed&&this.showCloudflareNotice())}},{key:"getFooter",value:function(){return this.props.cloudflare.isAuthed||this.props.cloudflare.isSetup?n.createElement(n.Fragment,null,n.createElement(ae,{type:"button",classes:["sui-button"],text:we("Clear Cache","wphb"),onClick:this.props.clearCache}),n.createElement("div",{className:"sui-actions-right"},n.createElement(ae,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-power-on-off",text:we("Disconnect","wphb"),onClick:this.props.disconnectCloudflare}))):null}},{key:"render",value:function(){var e=this.getStatus(this.props.status),t=n.createElement(n.Fragment,null,n.createElement(ae,{text:we("Re-check status","wphb"),onClick:this.props.onUpdate,classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update"}),n.createElement(ae,{text:we("Configure","wphb"),onClick:this.props.onShowWizard,classes:["sui-button","sui-tooltip","sui-tooltip-constrained","sui-tooltip-top-right"],"data-tooltip":we("Adjust your server type again and select the relevant rules.","wphb")})),r=n.createElement(n.Fragment,null,e&&n.createElement(J,{type:"left",content:e}),n.createElement(J,{type:"right",content:t})),o=this.props.cloudflare.isSetup||"dismiss"===this.props.cloudflare.notice?"":"sui-upsell-items";return n.createElement(oe,{boxBodyClass:[o],loading:this.props.loading,title:we("Status","wphb"),headerActions:r,content:this.getContent(),footerActions:this.getFooter()})}}],o&&fe(r.prototype,o),i&&fe(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component),Se=Ee,Oe=wp.i18n.__;function xe(e){var t=e.currentStep,r=[{number:1,title:Oe("Server Type","wphb")},{number:2,title:Oe("Set Expiry","wphb")},{number:3,title:Oe("Add Rules","wphb")}],o=Oe("This stage is already completed.","wphb"),i=function(e){return e>t?"wizard-bar-step":e===t?"wizard-bar-step current":"wizard-bar-step sui-tooltip done"};return n.createElement("div",{className:"sui-sidenav"},n.createElement("span",{className:"wizard-bar-subtitle"},Oe("Setup","wphb")),n.createElement("div",{className:"wizard-bar-title"},n.createElement("h4",null,Oe("Browser Caching","wphb"))),n.createElement("div",{className:"wizard-steps-container"},n.createElement("svg",{className:"svg-mobile",focusable:"false","aria-hidden":"true"},n.createElement("line",{x1:"0",x2:"50%",stroke:1!==t?"#1ABC9C":"#E6E6E6"}),n.createElement("line",{x1:"50%",x2:"100%",stroke:3===t?"#1ABC9C":"#E6E6E6"})),n.createElement("ul",null,r.map(function(e){return n.createElement(n.Fragment,{key:e.number},n.createElement("li",{className:i(e.number),"data-tooltip":o},n.createElement("div",{className:"wizard-bar-step-number"},function(e){return t>e?n.createElement(Y,{classes:"sui-icon-check"}):e}(e.number)),e.title),3!==e.number&&n.createElement("svg",{className:"svg-desktop",focusable:"false","aria-hidden":"true"},n.createElement("line",{y1:"0",y2:"40px",stroke:e.number<t?"#1ABC9C":"#E6E6E6"})))}))))}function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function _e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ke(n.key),n)}}function ke(e){var t=function(e,t){if("object"!=je(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=je(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==je(t)?t:t+""}function Ce(e,t,r){return t=Te(t),function(e,t){if(t&&("object"==je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Pe()?Reflect.construct(t,r||[],Te(e).constructor):t.apply(e,r))}function Pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Pe=function(){return!!e})()}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}function Ne(e,t){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ne(e,t)}var Ae=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ce(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ne(e,t)}(t,e),r=t,(o=[{key:"componentDidMount",value:function(){this.props.sideTabs||SUI.tabs()}},{key:"render",value:function(){var e=this,t=Object.values(this.props.menu).map(function(e){var t=void 0!==e.checked&&e.checked;return n.createElement(ae,{text:e.title,id:e.id+"-tab",classes:U()("sui-tab-item",{active:t}),type:"button",role:"tab","aria-controls":e.id+"-tab-content","aria-selected":t,tabIndex:t?"0":"-1",key:e.id,onClick:e.onClick})}),r=Object.values(this.props.tabs).map(function(t,r){var o=void 0!==t.active&&t.active,i=U()({"sui-tab-content":!e.props.sideTabs},{"sui-tab-boxed":e.props.sideTabs},{active:o});return n.createElement("div",{role:"tabpanel",tabIndex:"0",id:t.id+"-tab-content",className:i,"aria-labelledby":t.id+"-tab",hidden:!o,key:r},t.description&&n.createElement("div",{className:"sui-description sui-margin-bottom"},t.description),t.content)});return n.createElement("div",{className:U()({"sui-tabs":!this.props.sideTabs},{"sui-tabs-flushed":this.props.flushed},{"sui-side-tabs":this.props.sideTabs},this.props.className)},n.createElement("div",{role:"tablist",className:"sui-tabs-menu"},t),!window.lodash.isEmpty(this.props.tabs)&&n.createElement("div",{className:"sui-tabs-content"},r))}}])&&_e(r.prototype,o),i&&_e(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function Ie(e){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ie(e)}function Be(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Re(n.key),n)}}function Re(e){var t=function(e,t){if("object"!=Ie(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ie(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ie(t)?t:t+""}function Fe(e,t,r){return t=Ue(t),function(e,t){if(t&&("object"==Ie(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,De()?Reflect.construct(t,r||[],Ue(e).constructor):t.apply(e,r))}function De(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(De=function(){return!!e})()}function Ue(e){return Ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ue(e)}function Me(e,t){return Me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Me(e,t)}Ae.defaultProps={tabs:{}};var Le=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Fe(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Me(e,t)}(t,e),r=t,(o=[{key:"componentDidMount",value:function(){this.$el=jQuery(this.el),this.$el.SUIselect2({minimumResultsForSearch:-1}),this.$el.on("change",this.props.onChange)}},{key:"render",value:function(){var e,t=this,r=this.props.items.map(function(e,t){return n.createElement("option",{value:e[0],key:t},e[1])}),o=void 0===this.props.classes?"250":null;return n.createElement("div",{className:U()("sui-form-field",{"sui-input-md":"250"===o})},n.createElement("label",{htmlFor:this.props.selectId,id:this.props.selectId+"-label",className:"sui-label"},this.props.label),n.createElement("select",{onChange:this.props.onChange,value:this.props.selected,className:U()("sui-select",this.props.classes),"data-width":o,name:this.props.selectId,id:this.props.selectId,multiple:this.props.multiple,"data-placeholder":null!==(e=this.props.placeholder)&&void 0!==e?e:"","aria-labelledby":this.props.selectId+"-label","aria-describedby":this.props.description?this.props.selectId+"-description":"",ref:function(e){return t.el=e}},this.props.placeholder&&n.createElement("option",null),r),this.props.description&&n.createElement("span",{id:this.props.selectId+"-description",className:"sui-description"},this.props.description))}}])&&Be(r.prototype,o),i&&Be(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function ze(e){return ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ze(e)}function We(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,He(n.key),n)}}function He(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ze(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ze(t)?t:t+""}function qe(e,t,r){return t=Je(t),function(e,t){if(t&&("object"==ze(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ge()?Reflect.construct(t,r||[],Je(e).constructor):t.apply(e,r))}function Ge(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ge=function(){return!!e})()}function Je(e){return Je=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Je(e)}function Xe(e,t){return Xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xe(e,t)}Le.defaultProps={selectId:"",label:"",items:[],selected:"",multiple:!1};var Ye=wp.i18n,$e=Ye.__,Ve=Ye.sprintf,Qe=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=["Apache","NGINX","IIS","Cloudflare","Open LiteSpeed"];return(r=qe(this,t,[e])).props.cloudflare.isAuthed||r.props.cloudflare.isAuthed.isSetup||n.splice(3,1),r.state={servers:n},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xe(e,t)}(t,e),r=t,(o=[{key:"getStep",value:function(e){return{1:{title:$e("Choose Server Type","wphb"),description:$e("Choose your server type. If you don’t know this, please contact your hosting provider.","wphb")},2:{title:$e("Set Expiry Time","wphb"),description:$e("Please choose your desired expiry time. Google recommends a minimum of 1 year as a good benchmark.","wphb")},3:{title:$e("Add Rules","wphb"),description:"apache"===this.props.server?$e("Hummingbird can automatically apply browser caching rules for Apache servers by writing to your .htaccess file.","wphb"):$e("Please follow the steps below to apply the rules yourself:","wphb")}}[e]}},{key:"getStepOne",value:function(){var e=this,t=this.state.servers.map(function(t,r){var o=t.toLowerCase();"open litespeed"===o&&(o="litespeed");var i="server-"+o;return n.createElement("li",{key:r},n.createElement("label",{htmlFor:i,className:"sui-box-selector"},n.createElement("input",{id:i,type:"radio",checked:o===e.props.server,onChange:function(){return e.props.onServerChange(o)}}),n.createElement("span",null,t)))}),r=Ve($e("We've automatically detected your server type is %s. If this is incorrect, manually select your server type to generate the relevant rules and instructions.","wphb"),"nginx"===this.props.data.detectedServer?"NGINX":"Apache / LiteSpeed");return n.createElement(n.Fragment,null,n.createElement("div",{className:"sui-box-selectors sui-box-selectors-col-3"},n.createElement("ul",null,t)),("apache"===this.props.server||"litespeed"===this.props.server||"nginx"===this.props.server)&&n.createElement(ce,{message:r}))}},{key:"getStepTwo",value:function(){var e,t=this,r=[{title:$e("All file types","wphb"),id:"expiry-all",checked:!0},{title:$e("Individual file types","wphb"),id:"expiry-single"}];e="cloudflare"===this.props.server?Object.entries(this.props.data.frequenciesCF):Object.entries(this.props.data.frequencies);var o=n.createElement(Le,{selectId:"set-expiry-all",label:$e("JavaScript, CSS, Media, Images","wphb"),items:e,selected:"cloudflare"===this.props.server?this.props.status.CSS.toString():this.props.expires.CSS,onChange:this.props.onExpiryChange});if("cloudflare"===this.props.server)return n.createElement("div",{className:"sui-border-frame"},o);var i=[{id:"expiry-all",content:o,active:!0},{id:"expiry-single",content:Object.entries(this.props.human).map(function(r,o){return n.createElement(Le,{selectId:"set-expiry-"+r[0].toLowerCase(),label:r[0],items:e,key:o,selected:t.props.status[r[0]].toString(),onChange:t.props.onExpiryChange})})}];return n.createElement(Ae,{menu:r,tabs:i,className:"sui-side-tabs wphb-file-types-tabs"})}},{key:"render",value:function(){var e=Ve($e("Step %d/3","wphb"),this.props.currentStep);return n.createElement("div",{className:"wizard-steps-content-wrapper"},n.createElement("div",{className:"wizard-steps-content"},n.createElement("span",{className:"step-indicator"},e),n.createElement("h2",null,this.getStep(this.props.currentStep).title),n.createElement("p",{className:"sui-description"},this.getStep(this.props.currentStep).description),this.props.applyingRules&&n.createElement("p",{className:"sui-description wphb-loading-text"},n.createElement(Y,{classes:"sui-icon-loader sui-loading sui-md"}),$e("Applying rules","wphb")),1===this.props.currentStep&&!this.props.applyingRules&&this.getStepOne(),2===this.props.currentStep&&!this.props.applyingRules&&this.getStepTwo(),3===this.props.currentStep&&!this.props.applyingRules&&this.props.snippet))}}])&&We(r.prototype,o),i&&We(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component),Ze=wp.i18n.__;function Ke(e){var t=e.isMember,r=e.chatLink,o=e.forumLink,i=e.noFormatting,s=void 0!==i&&i,a=n.createElement(n.Fragment,null,Ze("Still having trouble?","wphb")," ",n.createElement(ae,{url:t?r:o,target:"blank",text:Ze(t?"Start a live chat.":"Open a support ticket.","wphb")}));return s?a:n.createElement("p",{className:"sui-description"},a)}function et(e){return et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,rt(n.key),n)}}function rt(e){var t=function(e,t){if("object"!=et(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=et(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==et(t)?t:t+""}function nt(e,t,r){return t=it(t),function(e,t){if(t&&("object"==et(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ot()?Reflect.construct(t,r||[],it(e).constructor):t.apply(e,r))}function ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ot=function(){return!!e})()}function it(e){return it=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},it(e)}function st(e,t){return st=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},st(e,t)}var at=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),nt(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&st(e,t)}(t,e),r=t,(o=[{key:"componentDidMount",value:function(){this.initSUI()}},{key:"componentDidUpdate",value:function(){this.initSUI()}},{key:"initSUI",value:function(){var e=document.querySelector("pre.sui-code-snippet");e&&SUI.suiCodeSnippet(e)}},{key:"render",value:function(){return n.createElement("pre",{className:"sui-code-snippet"},this.props.code)}}])&&tt(r.prototype,o),i&&tt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function ct(e){var t=e.list.map(function(e,t){return n.createElement("li",{key:t},e)});return n.createElement("ol",{className:"wphb-ordered-list"},t)}function ut(e){return ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ut(e)}function lt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,pt(n.key),n)}}function pt(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ut(t)?t:t+""}function ft(e,t,r){return t=ht(t),function(e,t){if(t&&("object"==ut(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,dt()?Reflect.construct(t,r||[],ht(e).constructor):t.apply(e,r))}function dt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(dt=function(){return!!e})()}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ht(e)}function yt(e,t){return yt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yt(e,t)}at.propTypes={code:s().string};var bt=wp.i18n.__,mt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ft(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yt(e,t)}(t,e),r=t,o=[{key:"renderApacheTab",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[n.createElement(n.Fragment,{key:"1"},bt("Manually configure the Cache-Control header for browser caching in your WebAdmin Console following the Open LiteSpeed guide","wphb")," ",n.createElement(ae,{url:"https://openlitespeed.org/kb/how-to-set-up-custom-headers/",target:"_blank",text:bt("here","wphb")}),"."),bt("Set Expires by Type to 31536000 (1 year) to meet Google’s recommended benchmark.","wphb")],r=[n.createElement(n.Fragment,{key:"1"},bt("Copy the generated code into your .htaccess file & save your changes.","wphb"),n.createElement(at,{code:this.props.snippets.apache})),bt(e?"Restart/reload LiteSpeed":"Restart/reload Apache","wphb")];return n.createElement(n.Fragment,null,e&&n.createElement(n.Fragment,null,n.createElement(ct,{list:t}),n.createElement("p",{className:"sui-description sui-margin-top"},bt("Alternatively, browser cache can be configured via an .htaccess file. Follow the steps below to add browser caching to your LiteSpeed server:","wphb"))),n.createElement(ct,{list:r}),n.createElement("p",{className:"sui-description sui-margin-top"},n.createElement("strong",null,bt("Troubleshooting","wphb"))),n.createElement("p",{className:"sui-description"},bt("If adding the rules to your .htaccess doesn't work and you have access to vhosts.conf or httpd.conf try to find the line that starts with <Directory> - add the code above into that section and save the file.","wphb")),n.createElement("p",{className:"sui-description"},bt("If you don't know where those files are, or you aren't able to reload the web server, you would need to consult with your hosting provider or a system administrator who has access to change the configuration of your server","wphb")),n.createElement(Ke,{isMember:this.context.isMember,forumLink:this.context.links.support.forum,chatLink:this.context.links.support.chat}))}},{key:"renderNginxTab",value:function(){var e=[n.createElement(n.Fragment,{key:"1"},bt("Copy the generated code into your nginx.conf usually located at /etc/nginx/nginx.conf or /usr/local/nginx/conf/nginx.conf","wphb"),n.createElement(at,{code:this.props.snippets.nginx})),bt("Add the code above to the http or inside server section in the file.","wphb"),bt("Reload/restart NGINX.","wphb")];return n.createElement(n.Fragment,null,n.createElement(ct,{list:e}),n.createElement("p",{className:"sui-description sui-margin-top"},n.createElement("strong",null,bt("Troubleshooting","wphb"))),n.createElement("p",{className:"sui-description"},bt("If you do not have access to your NGINX config files you will need to contact your hosting provider to make these changes.","wphb")),n.createElement(Ke,{isMember:this.context.isMember,forumLink:this.context.links.support.forum,chatLink:this.context.links.support.chat}))}},{key:"renderIisTab",value:function(){return n.createElement(n.Fragment,null,n.createElement("p",{className:"sui-description"},bt("For IIS 7 servers and above,","wphb")," ",n.createElement(ae,{url:"https://technet.microsoft.com/en-us/library/cc732475(v=ws.10).aspx",target:"blank",text:bt("visit Microsoft TechNet","wphb")})))}},{key:"render",value:function(){return n.createElement("div",{className:"wphb-server-instructions"},"apache"===this.props.currentServer&&this.renderApacheTab(),"nginx"===this.props.currentServer&&this.renderNginxTab(),"iis"===this.props.currentServer&&this.renderIisTab(),"litespeed"===this.props.currentServer&&this.renderApacheTab(!0))}}],o&<(r.prototype,o),i&<(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function vt(e){var t=e.text,r=e.classes,o=e.icon,i=e.onClick,s=e.loading,a=void 0!==s&&s,c=e.loadingText;return n.createElement("button",{className:U()("sui-button",r,{"sui-button-onload-text":a&&c},{"sui-button-onload":a&&!c}),onClick:i,"aria-live":"polite"},c&&n.createElement("span",{className:"sui-button-text-default"},o&&n.createElement("span",{className:o,"aria-hidden":"true"}),t),!c&&n.createElement("span",{className:"sui-loading-text"},t),!c&&n.createElement(Y,{classes:"sui-icon-loader sui-loading"}),c&&n.createElement("span",{className:"sui-button-text-onload"},n.createElement(Y,{classes:"sui-icon-loader sui-loading"}),c))}function wt(e){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wt(e)}function gt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Et(n.key),n)}}function Et(e){var t=function(e,t){if("object"!=wt(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wt(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wt(t)?t:t+""}function St(e,t,r){return t=xt(t),function(e,t){if(t&&("object"==wt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ot()?Reflect.construct(t,r||[],xt(e).constructor):t.apply(e,r))}function Ot(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Ot=function(){return!!e})()}function xt(e){return xt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xt(e)}function jt(e,t){return jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jt(e,t)}mt.contextType=F;var _t=wp.i18n.__,kt=function(e){function t(e){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n="cloudflare"===(r=St(this,t,[e])).props.detectedServer?2:1;return r.state={loading:!1,step:n,server:r.props.detectedServer},r.onServerChange=r.onServerChange.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jt(e,t)}(t,e),r=t,(o=[{key:"componentDidUpdate",value:function(e,t){var r=this;3!==t.step&&3===this.state.step&&!1!==this.state.loading&&this.props.saveExpiryRules(this.state.server).then(function(e){"apache"!==r.state.server&&"litespeed"!==r.state.server&&"cloudflare"!==r.state.server||void 0===e.htaccessUpdated||!0!==e.htaccessUpdated?r.setState({loading:!1,step:3}):location.reload()})}},{key:"setStep",value:function(e){var t=1;"next"===e&&2===(t=this.state.step+1)&&"iis"===this.state.server&&(t=3),"prev"===e&&this.state.step>1&&2==(t=this.state.step-1)&&"iis"===this.state.server&&(t=1),this.setState({loading:3===t,step:t})}},{key:"onServerChange",value:function(e){this.setState({server:e})}},{key:"getContent",value:function(){return n.createElement("div",{className:"sui-row-with-sidenav"},n.createElement(xe,{currentStep:this.state.step}),n.createElement(Qe,{applyingRules:this.state.loading,currentStep:this.state.step,data:this.props.data,status:this.props.status,expires:this.props.expires,human:this.props.human,onServerChange:this.onServerChange,onExpiryChange:this.props.onExpiryChange,server:this.state.server,cloudflare:this.props.cloudflare,snippet:n.createElement(mt,{currentServer:this.state.server,snippets:this.props.snippets})}))}},{key:"getFooter",value:function(){var e=this;return n.createElement(n.Fragment,null,n.createElement(ae,{type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-logout",text:_t("Quit Setup","wphb"),onClick:this.props.onHideWizard,disabled:this.state.loading}),this.state.step>1&&n.createElement(ae,{type:"button",classes:["sui-button","sui-button-ghost"],icon:"sui-icon-arrow-left",text:_t("Previous","wphb"),onClick:function(){return e.setStep("prev")},disabled:this.state.loading}),n.createElement("div",{className:"sui-actions-right"},this.state.step<3&&n.createElement(ae,{type:"button",classes:["sui-button","sui-button-blue","sui-button-icon-right"],icon:"sui-icon-arrow-right",text:_t("Next","wphb"),onClick:function(){return e.setStep("next")},disabled:this.state.loading}),3===this.state.step&&n.createElement(vt,{classes:["sui-button","sui-button-blue"],text:_t("Check Status","wphb"),onClick:this.props.onRecheckStatus,loading:this.state.loading,loadingText:_t("Applying...","wphb")})))}},{key:"render",value:function(){return n.createElement(oe,{loading:this.props.loading,content:this.getContent(),hideHeader:!0,boxBodyClass:"sui-no-padding",footerActions:this.getFooter()})}}])&>(r.prototype,o),i&>(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);function Ct(e){return Ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function Pt(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Tt(n.key),n)}}function Tt(e){var t=function(e,t){if("object"!=Ct(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ct(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ct(t)?t:t+""}function Nt(e,t,r){return t=It(t),function(e,t){if(t&&("object"==Ct(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,At()?Reflect.construct(t,r||[],It(e).constructor):t.apply(e,r))}function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(At=function(){return!!e})()}function It(e){return It=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},It(e)}function Bt(e,t){return Bt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bt(e,t)}var Rt,Ft=wp.i18n.__,Dt=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=Nt(this,t,[e])).state={api:new R,isMember:r.props.wphbData.isMember,links:r.props.wphbData.links,loading:!0,detectedServer:r.props.wphbData.module.detectedServer,cloudflare:{isAuthed:!1,isConnected:!1,isSetup:!1,notice:!1},status:{CSS:!1,Images:!1,JavaScript:!1,Media:!1},expires:{CSS:!1,Images:!1,JavaScript:!1,Media:!1},snippets:r.props.wphbData.module.snippets,human:{},showWizard:!1},r.updateStatus=r.updateStatus.bind(r),r.showWizard=r.showWizard.bind(r),r.hideWizard=r.hideWizard.bind(r),r.setExpiry=r.setExpiry.bind(r),r.saveExpiryRules=r.saveExpiryRules.bind(r),r.clearCache=r.clearCache.bind(r),r.disconnectCloudflare=r.disconnectCloudflare.bind(r),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bt(e,t)}(t,e),r=t,o=[{key:"browserCachingStatus",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"get";this.state.api.post("browser_caching_status",t).then(function(t){e.setState({loading:!1,cloudflare:{isAuthed:t.cloudflareAuthed,isConnected:t.usingCloudflare,isSetup:t.cloudflareSetUp,notice:t.cloudflareNotice},detectedServer:t.detectedServer,status:t.status,expires:t.expires,human:t.human})}).catch(function(e){return window.console.log(e)})}},{key:"componentDidMount",value:function(){this.browserCachingStatus()}},{key:"updateStatus",value:function(){this.setState({loading:!0}),this.browserCachingStatus("refresh")}},{key:"showWizard",value:function(){this.setState({showWizard:!0})}},{key:"hideWizard",value:function(){this.setState({showWizard:!1})}},{key:"setExpiry",value:function(e){var t,r,n,o;if("set-expiry-all"===e.target.id){if(t=e.target.value,r=e.target.value,n=e.target.value,o=e.target.value,!this.state.cloudflare.isAuthed&&!this.state.cloudflare.isSetup){var i=new Event("change");document.getElementById("set-expiry-css").value=e.target.value,document.getElementById("set-expiry-css").dispatchEvent(i),document.getElementById("set-expiry-images").value=e.target.value,document.getElementById("set-expiry-images").dispatchEvent(i),document.getElementById("set-expiry-javascript").value=e.target.value,document.getElementById("set-expiry-javascript").dispatchEvent(i),document.getElementById("set-expiry-media").value=e.target.value,document.getElementById("set-expiry-media").dispatchEvent(i)}}else{var s={"set-expiry-css":"CSS","set-expiry-images":"Images","set-expiry-javascript":"JavaScript","set-expiry-media":"Media"}[e.target.id],a={CSS:this.state.expires.CSS||document.getElementById("set-expiry-css").value,Images:this.state.expires.Images||document.getElementById("set-expiry-images").value,JavaScript:this.state.expires.JavaScript||document.getElementById("set-expiry-javascript").value,Media:this.state.expires.Media||document.getElementById("set-expiry-media").value};s&&(a[s]=e.target.value),t=a.CSS,r=a.Images,n=a.JavaScript,o=a.Media}this.setState({expires:{CSS:t,Images:r,JavaScript:n,Media:o}})}},{key:"saveExpiryRules",value:function(e){var t=this,r={server:e,expires:this.state.expires};return this.state.api.post("update_expiry",r).then(function(r){return t.setState({snippets:r.snippets}),"apache"!==e&&"litespeed"!==e||void 0===r.status||t.setState({status:r.status,human:r.human}),r}).catch(function(e){return window.console.log(e)})}},{key:"handleCloudflareClick",value:function(){window.SUI.openModal("cloudflare-connect","wrap-wphb-browser-caching","cloudflare-email",!1,!1)}},{key:"clearCache",value:function(){var e=this;return this.setState({loading:!0}),this.state.api.post("clear_cache").then(function(){var t;e.setState({loading:!1}),WPHB_Admin.notices.show((t="successCloudflarePurge",wphb.strings[t]||""))}).catch(function(e){return window.console.log(e)})}},{key:"disconnectCloudflare",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_disconnect").then(function(){e.browserCachingStatus("refresh"),window.wphbMixPanel.disableFeature("Cloudflare_integration"),WPHB_Admin.notices.show(Ft("Cloudflare was disconnected successfully.","wphb"))}).catch(function(e){return window.console.log(e)})}},{key:"render",value:function(){return n.createElement(F.Provider,{value:this.state},this.state.showWizard&&n.createElement(kt,{loading:this.state.loading,detectedServer:this.state.detectedServer,data:this.props.wphbData.module,status:this.state.status,human:this.state.human,expires:this.state.expires,onHideWizard:this.hideWizard,onRecheckStatus:this.updateStatus,onExpiryChange:this.setExpiry,saveExpiryRules:this.saveExpiryRules,snippets:this.state.snippets,cloudflare:this.state.cloudflare}),!this.state.showWizard&&n.createElement(Se,{data:this.props.wphbData.module,link:this.state.links,loading:this.state.loading,onUpdate:this.updateStatus,onShowWizard:this.showWizard,status:this.state.status,human:this.state.human,cloudflare:this.state.cloudflare,onCloudflareClick:this.handleCloudflareClick,clearCache:this.clearCache,disconnectCloudflare:this.disconnectCloudflare}))}}],o&&Pt(r.prototype,o),i&&Pt(r,i),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o,i}(n.Component);Dt.propTypes={wphbData:s().object},Rt=function(){var e=document.getElementById("wrap-wphb-browser-caching");e&&o.render(n.createElement(Dt,{wphbData:window.wphbReact}),e)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Rt):Rt())},6942:function(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=s(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=s(t,r));return t}function s(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},7463:function(e,t){"use strict";var r,n,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var s=performance;t.unstable_now=function(){return s.now()}}else{var a=Date,c=a.now();t.unstable_now=function(){return a.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,l=null,p=function(){if(null!==u)try{var e=t.unstable_now();u(!0,e),u=null}catch(e){throw setTimeout(p,0),e}};r=function(e){null!==u?setTimeout(r,0,e):(u=e,setTimeout(p,0))},n=function(e,t){l=setTimeout(e,t)},o=function(){clearTimeout(l)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,d=window.clearTimeout;if("undefined"!=typeof console){var h=window.cancelAnimationFrame;"function"!=typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),"function"!=typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,b=null,m=-1,v=5,w=0;t.unstable_shouldYield=function(){return t.unstable_now()>=w},i=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):v=0<e?Math.floor(1e3/e):5};var g=new MessageChannel,E=g.port2;g.port1.onmessage=function(){if(null!==b){var e=t.unstable_now();w=e+v;try{b(!0,e)?E.postMessage(null):(y=!1,b=null)}catch(e){throw E.postMessage(null),e}}else y=!1},r=function(e){b=e,y||(y=!0,E.postMessage(null))},n=function(e,r){m=f(function(){e(t.unstable_now())},r)},o=function(){d(m),m=-1}}function S(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<j(o,t)))break e;e[n]=t,e[r]=o,r=n}}function O(e){return void 0===(e=e[0])?null:e}function x(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,s=e[i],a=i+1,c=e[a];if(void 0!==s&&0>j(s,r))void 0!==c&&0>j(c,s)?(e[n]=c,e[a]=r,n=a):(e[n]=s,e[i]=r,n=i);else{if(!(void 0!==c&&0>j(c,r)))break e;e[n]=c,e[a]=r,n=a}}}return t}return null}function j(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var _=[],k=[],C=1,P=null,T=3,N=!1,A=!1,I=!1;function B(e){for(var t=O(k);null!==t;){if(null===t.callback)x(k);else{if(!(t.startTime<=e))break;x(k),t.sortIndex=t.expirationTime,S(_,t)}t=O(k)}}function R(e){if(I=!1,B(e),!A)if(null!==O(_))A=!0,r(F);else{var t=O(k);null!==t&&n(R,t.startTime-e)}}function F(e,r){A=!1,I&&(I=!1,o()),N=!0;var i=T;try{for(B(r),P=O(_);null!==P&&(!(P.expirationTime>r)||e&&!t.unstable_shouldYield());){var s=P.callback;if("function"==typeof s){P.callback=null,T=P.priorityLevel;var a=s(P.expirationTime<=r);r=t.unstable_now(),"function"==typeof a?P.callback=a:P===O(_)&&x(_),B(r)}else x(_);P=O(_)}if(null!==P)var c=!0;else{var u=O(k);null!==u&&n(R,u.startTime-r),c=!1}return c}finally{P=null,T=i,N=!1}}var D=i;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){A||N||(A=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_getFirstCallbackNode=function(){return O(_)},t.unstable_next=function(e){switch(T){case 1:case 2:case 3:var t=3;break;default:t=T}var r=T;T=t;try{return e()}finally{T=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=D,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=T;T=e;try{return t()}finally{T=r}},t.unstable_scheduleCallback=function(e,i,s){var a=t.unstable_now();switch("object"==typeof s&&null!==s?s="number"==typeof(s=s.delay)&&0<s?a+s:a:s=a,e){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return e={id:C++,callback:i,priorityLevel:e,startTime:s,expirationTime:c=s+c,sortIndex:-1},s>a?(e.sortIndex=s,S(k,e),null===O(_)&&e===O(k)&&(I?o():I=!0,n(R,s-a))):(e.sortIndex=c,S(_,e),A||N||(A=!0,r(F))),e},t.unstable_wrapCallback=function(e){var t=T;return function(){var r=T;T=t;try{return e.apply(this,arguments)}finally{T=r}}}},9982:function(e,t,r){"use strict";e.exports=r(7463)}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.m=t,e=[],n.O=function(t,r,o,i){if(!r){var s=1/0;for(l=0;l<e.length;l++){r=e[l][0],o=e[l][1],i=e[l][2];for(var a=!0,c=0;c<r.length;c++)(!1&i||s>=i)&&Object.keys(n.O).every(function(e){return n.O[e](r[c])})?r.splice(c--,1):(a=!1,i<s&&(s=i));if(a){e.splice(l--,1);var u=o();void 0!==u&&(t=u)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[r,o,i]},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={430:0};n.O.j=function(t){return 0===e[t]};var t=function(t,r){var o,i,s=r[0],a=r[1],c=r[2],u=0;if(s.some(function(t){return 0!==e[t]})){for(o in a)n.o(a,o)&&(n.m[o]=a[o]);if(c)var l=c(n)}for(t&&t(r);u<s.length;u++)i=s[u],n.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return n.O(l)},r=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}();var o=n.O(void 0,[816],function(){return n(5762)});o=n.O(o)}(); //# sourceMappingURL=wphb-react-caching.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings