File manager - Edit - /home/vblioqus/unfreezetiktok.com/wp-content/plugins/hummingbird-performance/admin/assets/js/wphb-react-integrations.min.js
Back
!function(){var e,t={994:function(e,t,n){"use strict";var r=n(6540),o=n(961),i=n(5556),a=n.n(i);var s="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==n.g&&n.g||{},c="URLSearchParams"in s,l="Symbol"in s&&"iterator"in Symbol,u="FileReader"in s&&"Blob"in s&&function(){try{return new Blob,!0}catch(e){return!1}}(),f="FormData"in s,p="ArrayBuffer"in s;if(p)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 b(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 y(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 l&&(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 g(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function w(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function E(e){var t=new FileReader,n=w(t);return t.readAsArrayBuffer(e),n}function O(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function _(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:u&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:f&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:c&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():p&&u&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=O(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):p&&(ArrayBuffer.prototype.isPrototypeOf(e)||h(e))?this._bodyArrayBuffer=O(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"))},u&&(this.blob=function(){var e=g(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=g(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(u)return this.blob().then(E);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r,o,i=g(this);if(i)return i;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=w(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8",t.readAsText(e,o),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},f&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}v.prototype.append=function(e,t){e=b(e),t=y(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},v.prototype.delete=function(e){delete this.map[b(e)]},v.prototype.get=function(e){return e=b(e),this.has(e)?this.map[e]:null},v.prototype.has=function(e){return this.map.hasOwnProperty(b(e))},v.prototype.set=function(e,t){this.map[b(e)]=y(t)},v.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},v.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),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,n){e.push([n,t])}),m(e)},l&&(v.prototype[Symbol.iterator]=v.prototype.entries);var k=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function C(e,t){if(!(this instanceof C))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof C){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=(n=t.method||this.method||"GET",r=n.toUpperCase(),k.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in s)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 x(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}}),t}function P(e,t){if(!(this instanceof P))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)}C.prototype.clone=function(){return new C(this,{body:this._bodyInit})},_.call(C.prototype),_.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new v(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var T=[301,302,303,307,308];P.redirect=function(e,t){if(-1===T.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})};var j=s.DOMException;try{new j}catch(e){(j=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),j.prototype.constructor=j}function S(e,t){return new Promise(function(n,r){var o=new C(e,t);if(o.signal&&o.signal.aborted)return r(new j("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}if(i.onload=function(){var e,t,r={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 n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();try{t.append(r,o)}catch(e){console.warn("Response "+e.message)}}}),t)};0===o.url.indexOf("file://")&&(i.status<200||i.status>599)?r.status=200:r.status=i.status,r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var a="response"in i?i.response:i.responseText;setTimeout(function(){n(new P(a,r))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new j("Aborted","AbortError"))},0)},i.open(o.method,function(e){try{return""===e&&s.location.href?s.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&&(u?i.responseType="blob":p&&(i.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof v||s.Headers&&t.headers instanceof s.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(e){c.push(b(e)),i.setRequestHeader(e,y(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",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)})}function A(e){return A="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},A(e)}function N(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,B(r.key),r)}}function B(e){var t=function(e,t){if("object"!=A(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=A(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==A(t)?t:t+""}S.polyfill=!0,s.fetch||(s.fetch=S,s.Headers=v,s.Request=C,s.Response=P);var F=["get","post","put","delete"],I=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),F.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],n={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 S(ajaxurl,n).then(function(e){return e.json().then(function(t){return e.ok?t.data:Promise.reject(t.data)})})}}}],t&&N(e.prototype,t),n&&N(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,n}(),D=n(6942),R=n.n(D);function z(e){var t=e.elements,n=e.header,o=e.extraClasses,i=Object.values(t).map(function(e,t){return r.createElement("div",{className:"table-row",key:t},r.createElement("div",{className:"wphb-caching-summary-item-type"},e.label),!window.lodash.includes(o,"two-columns")&&r.createElement("div",{className:"wphb-caching-summary-item-expiry"},e.expiry),r.createElement("div",null,e.details))});return r.createElement("div",{className:R()("wphb-border-frame",o)},n&&r.createElement("div",{className:"table-header"},r.createElement("div",{className:"wphb-caching-summary-heading-type"},n[0]),!window.lodash.includes(o,"two-columns")&&r.createElement("div",{className:"wphb-caching-summary-heading-expiry"},n[2]),r.createElement("div",{className:"wphb-caching-summary-heading-status"},n[1])),i)}function H(e){var t=e.classes;return r.createElement("span",{className:t,"aria-hidden":"true"})}var U=wp.i18n.__;function M(e){var t=e.loading,n=e.text,o=U("Fetching latest data...","wphb");return n&&(o=n),r.createElement("div",{className:R()("wphb-loading-overlay",{"wphb-loading":t})},r.createElement(H,{classes:"sui-icon-loader sui-loading"}),r.createElement("p",null,o))}function L(e){return L="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},L(e)}function Z(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q(r.key),r)}}function q(e){var t=function(e,t){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=L(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==L(t)?t:t+""}function W(e,t,n){return t=V(t),function(e,t){if(t&&("object"==L(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,G()?Reflect.construct(t,n||[],V(e).constructor):t.apply(e,n))}function G(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(G=function(){return!!e})()}function V(e){return V=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},V(e)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}var $=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&&Y(e,t)}(t,e),n=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]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return r.createElement(r.Fragment,null,(e||t)&&r.createElement("h3",{className:"sui-box-title"},t&&r.createElement(H,{classes:"sui-icon-"+t})," "+e),n)}}],(o=[{key:"renderContent",value:function(){var e,n=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"],r.createElement(r.Fragment,null,r.createElement(M,{loading:this.props.loading,text:this.props.loadingText}),!this.props.hideHeader&&r.createElement("div",{className:R()(e)},n),(!this.props.stickyType||this.props.showFilters)&&this.props.content&&r.createElement("div",{className:R()("sui-box-body",this.props.boxBodyClass)},this.props.content),(!this.props.stickyType||this.props.showFilters)&&this.props.footerActions&&r.createElement("div",{className:"sui-box-footer"},this.props.footerActions))}},{key:"render",value:function(){var e=this.renderContent();return this.props.stickyType?r.createElement(r.Fragment,null,e):r.createElement("div",{className:R()("sui-box",this.props.boxClass),"data-tab":"flushed"},e)}}])&&Z(n.prototype,o),i&&Z(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.Component);$.propTypes={boxClass:a().oneOfType([a().string,a().array]),boxBodyClass:a().oneOfType([a().string,a().array]),title:a().string,icon:a().string,hideHeader:a().bool,headerActions:a().element,content:a().element,footerActions:a().element,loading:a().bool,loadingText:a().string,stickyType:a().bool,showFilters:a().bool};var J=["text","url","classes","id","icon","target","disabled","onClick","type"];function Q(){return Q=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Q.apply(null,arguments)}function X(e){var t,n=e.text,o=e.url,i=void 0===o?"#":o,a=e.classes,s=e.id,c=e.icon,l=e.target,u=e.disabled,f=void 0!==u&&u,p=e.onClick,d=e.type,h=void 0===d?"link":d,b=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,J);return c&&(c=r.createElement("span",{className:c,"aria-hidden":"true"})),"button"===h?r.createElement("button",Q({className:R()(a),id:s,disabled:f,onClick:p},b),!window.lodash.includes(a,"sui-button-icon-right")&&c,n,window.lodash.includes(a,"sui-button-icon-right")&&c):("blank"!==l&&"_blank"!==l||(l="_blank",t="noopener noreferrer"),r.createElement("a",Q({className:R()(a),href:i,id:s,target:l,rel:t,disabled:f,onClick:p},b),!window.lodash.includes(a,"sui-button-icon-right")&&c,n,window.lodash.includes(a,"sui-button-icon-right")&&c))}function K(e){return K="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},K(e)}function ee(){return ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ee.apply(null,arguments)}function te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ne(r.key),r)}}function ne(e){var t=function(e,t){if("object"!=K(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=K(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==K(t)?t:t+""}function re(e,t,n){return t=ie(t),function(e,t){if(t&&("object"==K(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,oe()?Reflect.construct(t,n||[],ie(e).constructor):t.apply(e,n))}function oe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(oe=function(){return!!e})()}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}function ae(e,t){return ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ae(e,t)}var se=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),re(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&&ae(e,t)}(t,e),n=t,(o=[{key:"getElement",value:function(){return r.createElement(r.Fragment,null,r.createElement("label",{htmlFor:"wphb-"+this.props.id,className:R()("sui-checkbox",{"sui-checkbox-sm":void 0!==this.props.size&&"sm"===this.props.size},{"sui-checkbox-stacked":this.props.stacked})},r.createElement("input",ee({type:"checkbox",id:"wphb-"+this.props.id,"aria-labelledby":"wphb-"+this.props.id+"-label",checked:this.props.checked,disabled:this.props.disabled,onChange:this.props.onChange},this.props.data)),r.createElement("span",{"aria-hidden":"true"}),this.props.label&&r.createElement("span",{id:"wphb-"+this.props.id+"-label"},this.props.label)),this.props.description&&r.createElement("span",{className:"sui-description sui-checkbox-description"},this.props.description))}},{key:"render",value:function(){return this.props.stacked?this.getElement():r.createElement("div",{className:"sui-form-field"},this.getElement())}}])&&te(n.prototype,o),i&&te(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.Component);function ce(e){var t=e.message,n=e.classes,o=e.content,i=R()("sui-notice",n);return r.createElement("div",{className:i},r.createElement("div",{className:"sui-notice-content"},r.createElement("div",{className:"sui-notice-message"},r.createElement(H,{classes:"sui-notice-icon sui-icon-info sui-md"}),t&&r.createElement("p",null,t),o&&r.createElement("p",null,o))))}function le(e){return le="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},le(e)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fe(r.key),r)}}function fe(e){var t=function(e,t){if("object"!=le(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==le(t)?t:t+""}function pe(e,t,n){return t=he(t),function(e,t){if(t&&("object"==le(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,n||[],he(e).constructor):t.apply(e,n))}function de(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(de=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function be(e,t){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},be(e,t)}se.defaultProps={id:"",description:"",label:"",checked:!1,disabled:!1,stacked:!1};var ye=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),pe(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&&be(e,t)}(t,e),n=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,n=this.props.items.map(function(e,t){return r.createElement("option",{value:e[0],key:t},e[1])}),o=void 0===this.props.classes?"250":null;return r.createElement("div",{className:R()("sui-form-field",{"sui-input-md":"250"===o})},r.createElement("label",{htmlFor:this.props.selectId,id:this.props.selectId+"-label",className:"sui-label"},this.props.label),r.createElement("select",{onChange:this.props.onChange,value:this.props.selected,className:R()("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&&r.createElement("option",null),n),this.props.description&&r.createElement("span",{id:this.props.selectId+"-description",className:"sui-description"},this.props.description))}}])&&ue(n.prototype,o),i&&ue(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.Component);function me(e){var t=e.label,n=e.description,o=e.content,i=e.classes,a=e.wide;return void 0!==a&&a?r.createElement("div",{className:"sui-box-settings-row"},r.createElement("div",{className:"sui-box-settings-col-2"},r.createElement("span",{className:"sui-settings-label"},t),o)):n?r.createElement("div",{className:"sui-box-settings-row"},r.createElement("div",{className:"sui-box-settings-col-1"},r.createElement("span",{className:"sui-settings-label"},t),r.createElement("span",{className:"sui-description"},n)),r.createElement("div",{className:"sui-box-settings-col-2"},o)):r.createElement("div",{className:R()("sui-box-settings-row",i)},o)}ye.defaultProps={selectId:"",label:"",items:[],selected:"",multiple:!1};function ve(e){var t=e.text,n=e.classes,o=e.children;return r.createElement("span",{className:R()("sui-tooltip",n),"data-tooltip":t},o)}var ge=["text","id","name","className","onChange","checked","hideToggle","disabled","description","learnMore","tag","layout"];function we(){return we=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},we.apply(null,arguments)}function Ee(e){var t,n=e.text,o=e.id,i=e.name,a=e.className,s=e.onChange,c=e.checked,l=void 0!==c&&c,u=e.hideToggle,f=void 0!==u&&u,p=e.disabled,d=void 0!==p&&p,h=e.description,b=void 0===h?"":h,y=e.learnMore,m=void 0===y?"":y,v=e.tag,g=void 0===v?"":v,w=e.layout,E=void 0===w?"left":w,O=function(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,ge);return"right"===E?r.createElement("div",{className:R()("wphb-toggle-right","sui-form-field")},r.createElement("label",{htmlFor:o,className:R()(a,"sui-toggle")},n&&r.createElement("span",{id:o+"-label",className:"sui-toggle-label"},n,g&&r.createElement("span",{className:"sui-tag sui-tag-sm",style:{position:"relative",top:"-4px"}},g)),b&&r.createElement(ve,{text:b,classes:"setting-row-tooltip sui-tooltip-constrained"},r.createElement(H,{classes:"hum-icon-question"})),r.createElement("input",we({type:"checkbox",name:i,id:o,checked:l,disabled:d,onChange:s,"aria-labelledby":o+"-label"},O)),!f&&r.createElement("span",{className:"sui-toggle-slider","aria-hidden":"true"}))):r.createElement("div",{className:"sui-form-field "},r.createElement("label",{htmlFor:o,className:R()(a,"sui-toggle")},r.createElement("input",we({type:"checkbox",name:i,id:o,checked:l,disabled:d,onChange:s,"aria-labelledby":o+"-label"},O)),!f&&r.createElement("span",{className:"sui-toggle-slider","aria-hidden":"true"}),n&&r.createElement("span",{id:o+"-label",className:"sui-toggle-label"},n,g&&r.createElement("span",{className:"sui-tag sui-tag-sm",style:{position:"relative",top:"-4px"}},g)),b&&r.createElement("span",{id:o+"-description",className:"sui-description"},b),m&&r.createElement("a",{className:"sui-button sui-button-ghost",href:(t="tracking",wphb.links[t]||""),target:"_blank",rel:"noreferrer"},m)))}function Oe(e){var t=e.value,n=e.type;if(0===t&&"success"===n)return r.createElement("span",{className:"sui-icon-check-tick sui-lg sui-success","aria-hidden":"true"});var o="sui-tag sui-tag-"+n;return r.createElement("span",{className:o},t)}let _e,ke,Ce,xe;Oe.defaultProps={value:0,type:"success"};const Pe=/<(\/)?(\w+)\s*(\/)?>/g;function Te(e,t,n,r,o){return{element:e,tokenStart:t,tokenLength:n,prevOffset:r,leadingTextStart:o,children:[]}}const je=e=>{const t="object"==typeof e,n=t&&Object.values(e);return t&&n.length&&n.every(e=>(0,r.isValidElement)(e))};function Se(e){const t=function(){const e=Pe.exec(_e);if(null===e)return["no-more-tokens"];const t=e.index,[n,r,o,i]=e,a=n.length;if(i)return["self-closed",o,t,a];if(r)return["closer",o,t,a];return["opener",o,t,a]}(),[n,o,i,a]=t,s=xe.length,c=i>ke?ke:null;if(!e[o])return Ae(),!1;switch(n){case"no-more-tokens":if(0!==s){const{leadingTextStart:e,tokenStart:t}=xe.pop();Ce.push(_e.substr(e,t))}return Ae(),!1;case"self-closed":return 0===s?(null!==c&&Ce.push(_e.substr(c,i-c)),Ce.push(e[o]),ke=i+a,!0):(Ne(Te(e[o],i,a)),ke=i+a,!0);case"opener":return xe.push(Te(e[o],i,a,i+a,c)),ke=i+a,!0;case"closer":if(1===s)return function(e){const{element:t,leadingTextStart:n,prevOffset:o,tokenStart:i,children:a}=xe.pop(),s=e?_e.substr(o,e-o):_e.substr(o);s&&a.push(s);null!==n&&Ce.push(_e.substr(n,i-n));Ce.push((0,r.cloneElement)(t,null,...a))}(i),ke=i+a,!0;const t=xe.pop(),n=_e.substr(t.prevOffset,i-t.prevOffset);t.children.push(n),t.prevOffset=i+a;const l=Te(t.element,t.tokenStart,t.tokenLength,i+a);return l.children=t.children,Ne(l),ke=i+a,!0;default:return Ae(),!1}}function Ae(){const e=_e.length-ke;0!==e&&Ce.push(_e.substr(ke,e))}function Ne(e){const{element:t,tokenStart:n,tokenLength:o,prevOffset:i,children:a}=e,s=xe[xe.length-1],c=_e.substr(s.prevOffset,n-s.prevOffset);c&&s.children.push(c),s.children.push((0,r.cloneElement)(t,null,...a)),s.prevOffset=i||n+o}var Be=(e,t)=>{if(_e=e,ke=0,Ce=[],xe=[],Pe.lastIndex=0,!je(t))throw new TypeError("The conversionMap provided is not valid. It must be an object with values that are WPElements");do{}while(Se(t));return(0,r.createElement)(r.Fragment,null,...Ce)};function Fe(e){return Fe="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},Fe(e)}function Ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,De(r.key),r)}}function De(e){var t=function(e,t){if("object"!=Fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=Fe(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Fe(t)?t:t+""}function Re(e,t,n){return t=He(t),function(e,t){if(t&&("object"==Fe(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,ze()?Reflect.construct(t,n||[],He(e).constructor):t.apply(e,n))}function ze(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(ze=function(){return!!e})()}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}function Ue(e,t){return Ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ue(e,t)}var Me,Le=wp.i18n,Ze=Le.__,qe=(Le.sprintf,function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=Re(this,t,[e])).state={api:new I,allowModify:n.props.wphbData.modify,links:n.props.wphbData.links,loading:!0,cf:n.props.wphbData.module.cloudflare,apo:n.props.wphbData.module.apo,zones:[],selectedZone:!1},n.disconnectCloudflare=n.disconnectCloudflare.bind(n),n.reCheckStatus=n.reCheckStatus.bind(n),n.reCheckAPOStatus=n.reCheckAPOStatus.bind(n),n.clearCache=n.clearCache.bind(n),n.handleAPOToggleChange=n.handleAPOToggleChange.bind(n),n.handleDevChkbxChange=n.handleDevChkbxChange.bind(n),n.handleZoneChange=n.handleZoneChange.bind(n),n.saveSelectedZone=n.saveSelectedZone.bind(n),n}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&&Ue(e,t)}(t,e),n=t,o=[{key:"componentDidMount",value:function(){var e=this;this.state.api.post("cloudflare_status").then(function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo})}).catch(function(e){return window.console.log(e)})}},{key:"openConnectModal",value:function(){window.SUI.openModal("cloudflare-connect","wphb-box-integrations","cloudflare-email",!1,!1)}},{key:"reCheckStatus",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_zones").then(function(t){void 0!==t.message&&window.WPHB_Admin.notices.show(t.message,"error");var n=[];void 0!==t.zones&&(n=t.zones),e.setState({loading:!1,zones:n})}).catch(function(e){return window.console.log(e)})}},{key:"reCheckAPOStatus",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_apo_status").then(function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo})}).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(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo}),window.wphbMixPanel.disableFeature("Cloudflare_integration"),window.WPHB_Admin.notices.show(Ze("Cloudflare was disconnected successfully.","wphb"))}).catch(function(e){return window.console.log(e)})}},{key:"clearCache",value:function(){var e=this;this.setState({loading:!0}),this.state.api.post("cloudflare_clear_cache").then(function(){e.setState({loading:!1}),window.WPHB_Admin.notices.show(Ze("Cloudflare cache successfully purged. Please wait 30 seconds for the purge to complete.","wphb"))}).catch(function(e){return window.console.log(e)})}},{key:"handleAPOToggleChange",value:function(e){var t=this;this.setState({loading:!0});var n=Ze("Automatic Platform Optimization is disabled.","wphb");e.target.checked&&(n=Ze("Automatic Platform Optimization is enabled.","wphb")),this.state.api.post("cloudflare_toggle_apo",e.target.checked).then(function(e){t.setState({loading:!1,apo:e}),window.WPHB_Admin.notices.show(n)}).catch(function(e){return window.console.log(e)})}},{key:"handleDevChkbxChange",value:function(e){var t=this;this.setState({loading:!0}),this.state.api.post("cloudflare_toggle_device_cache",e.target.checked).then(function(e){t.setState({loading:!1,apo:e}),window.WPHB_Admin.notices.show(Ze("Settings updated.","wphb"))}).catch(function(e){return window.console.log(e)})}},{key:"handleZoneChange",value:function(){this.setState({selectedZone:jQuery("#cloudflare-zone-select").find(":selected").text()})}},{key:"saveSelectedZone",value:function(){var e=this;!1!==this.state.selectedZone&&(this.setState({loading:!0}),this.state.api.post("cloudflare_save_zone",this.state.selectedZone).then(function(t){e.setState({loading:!1,cf:t.cloudflare,apo:t.apo,zones:[],selectedZone:!1}),window.WPHB_Admin.notices.show(Ze("Cloudflare was connected successfully.","wphb"))}).catch(function(e){return window.console.log(e)}))}},{key:"renderHeaderTitle",value:function(){var e=this.state.links.wphbDirUrl+"admin/assets/image/integrations/",t=r.createElement(ve,{text:Ze("Cloudflare is connected for this domain.","wphb"),classes:"sui-tooltip-constrained"},r.createElement(H,{classes:"sui-icon-check-tick sui-success"}));return r.createElement("div",{className:"sui-accordion-item-title"},r.createElement("img",{className:"sui-image",alt:Ze("Cloudflare","wphb"),src:e+"icon-cloudflare.png",srcSet:e+"icon-cloudflare.png 1x, "+e+"icon-cloudflare@2x.png 2x"}),Ze("Cloudflare","wphb"),this.state.cf.connected&&this.state.cf.zone&&t)}},{key:"renderStatusNotice",value:function(){return this.state.cf.connected&&this.state.cf.zone?r.createElement(ce,{message:Ze("Cloudflare is connected for this domain.","wphb"),classes:"sui-notice-success"}):this.state.cf.connected&&!this.state.cf.zone?r.createElement(ce,{message:Ze("Cloudflare is connected, but it appears you don’t have any active zones for this domain. Double check your domain has been added to Cloudflare and tap re-check when ready.","wphb"),classes:["sui-notice-warning","sui-no-margin-bottom"]}):this.state.cf.dnsSet?r.createElement(ce,{message:Ze("We’ve detected you’re using Cloudflare! Connect your account to control your settings via Hummingbird.","wphb"),classes:"sui-notice-info"}):r.createElement(ce,{message:Ze("Cloudflare is not connected.","wphb"),classes:"sui-notice-grey"})}},{key:"renderZoneDropdown",value:function(){var e=this.state.zones.map(function(e){return[e.value,e.label]});return e.unshift(["",""]),r.createElement(r.Fragment,null,r.createElement("p",{className:"sui-margin-top"},Ze("If the zone is not auto detected, try selecting one of the available zones from the list below:","wphb")),r.createElement(ye,{selectId:"cloudflare-zone-select",label:Ze("Cloudflare zone","wphb"),placeholder:Ze("Select zone","wphb"),items:e,onChange:this.handleZoneChange}))}},{key:"renderBrowserCaching",value:function(){var e=31536e3===this.state.cf.expiry?"green":"yellow",t=this.state.allowModify&&r.createElement(X,{href:this.state.links.caching,text:Ze("Configure","wphb"),icon:"sui-icon-wrench-tool sui-sm"}),n={label:r.createElement("span",{className:"wphb-filename-extension-label"},Ze("JavaScript, CSS, Media, Images","wphb")),expiry:r.createElement(Oe,{value:this.state.cf.human,type:e}),details:t};return r.createElement(r.Fragment,null,r.createElement("p",null,Ze("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")),r.createElement(z,{header:[Ze("File types","wphb"),"",Ze("Expiry time","wphb")],elements:[n]}))}},{key:"renderAPO",value:function(){var e=!1;"undefined"!==this.state.apo.settings&&"undefined"!==this.state.apo.settings.cache_by_device_type&&(e=this.state.apo.settings.cache_by_device_type);var t="https://dash.cloudflare.com/"+this.state.cf.accountId+"/"+this.state.cf.zoneName+"/speed/optimization/apo/purchase";return r.createElement(r.Fragment,null,r.createElement("p",null,Ze("Cloudflare APO will cache dynamic content and third-party scripts so the entire site is served from cache. This eliminates round trips between your server and the user's browser, drastically improving TTFB and other site performance metrics.","wphb")),r.createElement(Ee,{id:"cloudflare-apo",checked:this.state.apo.enabled,disabled:!this.state.apo.purchased||!this.state.allowModify,text:Ze("Enable APO","wphb"),onChange:this.handleAPOToggleChange}),this.state.apo.enabled&&r.createElement("div",{className:"sui-border-frame"},r.createElement(se,{id:"cloudflare-apo-device",label:Ze("Cache by device type","wphb"),checked:e,disabled:!this.state.apo.purchased||!this.state.allowModify,onChange:this.handleDevChkbxChange,description:Ze("This enables you to target visitors with cached content appropriate to their device. Once enabled, Cloudflare sends a CF-Device-Type HTTP header to your origin page with a value of either mobile, tablet or desktop for every request to specify the visitor’s device type. If your origin page responds with the appropriate content for that device type, Cloudflare caches the resource only for that specific device type. Note: changing the Cache by device type setting will purge the entire Cloudflare cache for your zone.","wphb")})),!this.state.apo.purchased&&r.createElement(ce,{message:Be(Ze("Automatic Platform Optimization is a paid service and you need to purchase it to enable it. You can purchase it <a>here</a>.","wphb"),{a:r.createElement("a",{href:t,target:"_blank"})})}))}},{key:"renderContent",value:function(){var e=Be(Ze("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. With the new Automatic Platform Optimization (APO), Cloudflare can also cache dynamic content and third-party scripts so the entire site is served from cache. Learn more about the integration <a>here</a>.","wphb"),{a:r.createElement("a",{href:"https://wpmudev.com/docs/wpmu-dev-plugins/hummingbird/#browser-cache",target:"_blank"})});return r.createElement(r.Fragment,null,r.createElement("h4",null,Ze("Overview","wphb")),r.createElement("p",null,e),r.createElement("h4",null,Ze("Status","wphb")),this.renderStatusNotice(),0<this.state.zones.length&&this.renderZoneDropdown(),this.state.cf.connected&&this.state.cf.zone&&r.createElement(me,{label:Ze("Browser Caching","wphb"),content:this.renderBrowserCaching(),wide:"true"}),this.state.cf.connected&&this.state.cf.zone&&r.createElement(me,{label:Ze("Automatic Platform Optimization","wphb"),content:this.renderAPO(),wide:"true"}))}},{key:"renderFooter",value:function(){return r.createElement(r.Fragment,null,this.state.cf.connected&&r.createElement(X,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-power-on-off",text:Ze("Deactivate","wphb"),onClick:this.disconnectCloudflare}),this.state.cf.connected&&this.state.cf.zone&&r.createElement(X,{classes:["sui-button","sui-button-ghost"],icon:"sui-icon-update",text:Ze("Re-check status","wphb"),onClick:this.reCheckAPOStatus}),r.createElement("div",{className:"sui-actions-right"},this.state.cf.connected&&!this.state.cf.zone&&!this.state.selectedZone&&r.createElement(X,{type:"button",icon:"sui-icon-update",classes:"sui-button",text:Ze("Re-check","wphb"),onClick:this.reCheckStatus}),this.state.cf.connected&&!this.state.cf.zone&&this.state.selectedZone&&r.createElement(X,{type:"button",classes:"sui-button",text:Ze("Save zone","wphb"),onClick:this.saveSelectedZone}),!this.state.cf.connected&&r.createElement(X,{type:"button",classes:["sui-button","sui-button-blue"],text:Ze("Connect","wphb"),"aria-label":Ze("Connect","wphb"),onClick:this.openConnectModal}),this.state.cf.connected&&this.state.cf.zone&&r.createElement(X,{type:"button",classes:"sui-button",text:Ze("Clear cache","wphb"),onClick:this.clearCache})))}},{key:"render",value:function(){return r.createElement(r.Fragment,null,r.createElement("div",{className:"sui-accordion-item-header"},this.renderHeaderTitle(),r.createElement("div",{className:"wphb-integration-description"},Ze("Connect your Cloudflare account to control APO and Browser Caching directly from Hummingbird.","wphb")),r.createElement("div",{className:"sui-accordion-col-auto"},!this.state.cf.connected&&r.createElement(X,{type:"button",classes:["sui-button-icon","sui-button-blue","sui-accordion-item-action","sui-tooltip"],icon:"sui-icon-plus","aria-label":Ze("Connect Cloudflare","wphb"),"data-tooltip":Ze("Connect Cloudflare","wphb"),onClick:this.openConnectModal}),r.createElement(X,{type:"button",classes:["sui-button-icon","sui-accordion-open-indicator"],icon:"sui-icon-chevron-down","aria-label":Ze("Open item","wphb")}))),r.createElement("div",{className:"sui-accordion-item-body"},r.createElement($,{loading:this.state.loading,hideHeader:!0,content:this.renderContent(),footerActions:this.renderFooter()})))}}],o&&Ie(n.prototype,o),i&&Ie(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(r.Component));qe.propTypes={wphbData:a().object},Me=function(){var e=document.getElementById("wphb-react-cloudflare");e&&o.render(r.createElement(qe,{wphbData:window.wphbReact}),e)},"undefined"!=typeof document&&("complete"!==document.readyState&&"interactive"!==document.readyState?document.addEventListener("DOMContentLoaded",Me):Me())},1687:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},2694:function(e,t,n){"use strict";var r=n(1687);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={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 n.PropTypes=n,n}},5228:function(e){"use strict";var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=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={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,o){for(var i,a,s=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 l in i=Object(arguments[c]))n.call(i,l)&&(s[l]=i[l]);if(t){a=t(i);for(var u=0;u<a.length;u++)r.call(i,a[u])&&(s[a[u]]=i[a[u]])}}return s}},5556:function(e,t,n){e.exports=n(2694)()},6942:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=a(e,i(n)))}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 n in e)r.call(e,n)&&e[n]&&(t=a(t,n));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},7463:function(e,t){"use strict";var n,r,o,i;if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,c=s.now();t.unstable_now=function(){return s.now()-c}}if("undefined"==typeof window||"function"!=typeof MessageChannel){var l=null,u=null,f=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(f,0),e}};n=function(e){null!==l?setTimeout(n,0,e):(l=e,setTimeout(f,0))},r=function(e,t){u=setTimeout(e,t)},o=function(){clearTimeout(u)},t.unstable_shouldYield=function(){return!1},i=t.unstable_forceFrameRate=function(){}}else{var p=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 b=!1,y=null,m=-1,v=5,g=0;t.unstable_shouldYield=function(){return t.unstable_now()>=g},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 w=new MessageChannel,E=w.port2;w.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();g=e+v;try{y(!0,e)?E.postMessage(null):(b=!1,y=null)}catch(e){throw E.postMessage(null),e}}else b=!1},n=function(e){y=e,b||(b=!0,E.postMessage(null))},r=function(e,n){m=p(function(){e(t.unstable_now())},n)},o=function(){d(m),m=-1}}function O(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,o=e[r];if(!(void 0!==o&&0<C(o,t)))break e;e[r]=t,e[n]=o,n=r}}function _(e){return void 0===(e=e[0])?null:e}function k(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length;r<o;){var i=2*(r+1)-1,a=e[i],s=i+1,c=e[s];if(void 0!==a&&0>C(a,n))void 0!==c&&0>C(c,a)?(e[r]=c,e[s]=n,r=s):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==c&&0>C(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}return null}function C(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var x=[],P=[],T=1,j=null,S=3,A=!1,N=!1,B=!1;function F(e){for(var t=_(P);null!==t;){if(null===t.callback)k(P);else{if(!(t.startTime<=e))break;k(P),t.sortIndex=t.expirationTime,O(x,t)}t=_(P)}}function I(e){if(B=!1,F(e),!N)if(null!==_(x))N=!0,n(D);else{var t=_(P);null!==t&&r(I,t.startTime-e)}}function D(e,n){N=!1,B&&(B=!1,o()),A=!0;var i=S;try{for(F(n),j=_(x);null!==j&&(!(j.expirationTime>n)||e&&!t.unstable_shouldYield());){var a=j.callback;if("function"==typeof a){j.callback=null,S=j.priorityLevel;var s=a(j.expirationTime<=n);n=t.unstable_now(),"function"==typeof s?j.callback=s:j===_(x)&&k(x),F(n)}else k(x);j=_(x)}if(null!==j)var c=!0;else{var l=_(P);null!==l&&r(I,l.startTime-n),c=!1}return c}finally{j=null,S=i,A=!1}}var R=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(){N||A||(N=!0,n(D))},t.unstable_getCurrentPriorityLevel=function(){return S},t.unstable_getFirstCallbackNode=function(){return _(x)},t.unstable_next=function(e){switch(S){case 1:case 2:case 3:var t=3;break;default:t=S}var n=S;S=t;try{return e()}finally{S=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=R,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=S;S=e;try{return t()}finally{S=n}},t.unstable_scheduleCallback=function(e,i,a){var s=t.unstable_now();switch("object"==typeof a&&null!==a?a="number"==typeof(a=a.delay)&&0<a?s+a:s:a=s,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:T++,callback:i,priorityLevel:e,startTime:a,expirationTime:c=a+c,sortIndex:-1},a>s?(e.sortIndex=a,O(P,e),null===_(x)&&e===_(P)&&(B?o():B=!0,r(I,a-s))):(e.sortIndex=c,O(x,e),N||A||(N=!0,n(D))),e},t.unstable_wrapCallback=function(e){var t=S;return function(){var n=S;S=t;try{return e.apply(this,arguments)}finally{S=n}}}},9982:function(e,t,n){"use strict";e.exports=n(7463)}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.exports}r.m=t,e=[],r.O=function(t,n,o,i){if(!n){var a=1/0;for(u=0;u<e.length;u++){n=e[u][0],o=e[u][1],i=e[u][2];for(var s=!0,c=0;c<n.length;c++)(!1&i||a>=i)&&Object.keys(r.O).every(function(e){return r.O[e](n[c])})?n.splice(c--,1):(s=!1,i<a&&(a=i));if(s){e.splice(u--,1);var l=o();void 0!==l&&(t=l)}}return t}i=i||0;for(var u=e.length;u>0&&e[u-1][2]>i;u--)e[u]=e[u-1];e[u]=[n,o,i]},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,{a:t}),t},r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={354:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var o,i,a=n[0],s=n[1],c=n[2],l=0;if(a.some(function(t){return 0!==e[t]})){for(o in s)r.o(s,o)&&(r.m[o]=s[o]);if(c)var u=c(r)}for(t&&t(n);l<a.length;l++)i=a[l],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunkwp_hummingbird=self.webpackChunkwp_hummingbird||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var o=r.O(void 0,[816],function(){return r(994)});o=r.O(o)}(); //# sourceMappingURL=wphb-react-integrations.min.js.map
| ver. 1.4 |
Github
|
.
| PHP 8.2.30 | Generation time: 0.4 |
proxy
|
phpinfo
|
Settings