diff --git a/cf-image-resizing/assets/script.js b/cf-image-resizing/assets/script.js index 6f6cf08..49c42f4 100644 --- a/cf-image-resizing/assets/script.js +++ b/cf-image-resizing/assets/script.js @@ -1 +1 @@ -!function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return 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.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n.r(t);n(1),n(2);function i(e){return(i="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})(e)}function r(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */r=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function m(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch(e){m=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var r=t&&t.prototype instanceof _?t:_,o=Object.create(r.prototype),l=new x(i||[]);return a(o,"_invoke",{value:E(e,n,l)}),o}function g(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f={};function _(){}function p(){}function h(){}var d={};m(d,l,(function(){return this}));var w=Object.getPrototypeOf,v=w&&w(w(S([])));v&&v!==t&&n.call(v,l)&&(d=v);var y=h.prototype=_.prototype=Object.create(d);function b(e){["next","throw","return"].forEach((function(t){m(e,t,(function(e){return this._invoke(t,e)}))}))}function z(e,t){var r;a(this,"_invoke",{value:function(a,o){function l(){return new t((function(r,l){!function r(a,o,l,s){var c=g(e[a],e,o);if("throw"!==c.type){var m=c.arg,u=m.value;return u&&"object"==i(u)&&n.call(u,"__await")?t.resolve(u.__await).then((function(e){r("next",e,l,s)}),(function(e){r("throw",e,l,s)})):t.resolve(u).then((function(e){m.value=e,l(m)}),(function(e){return r("throw",e,l,s)}))}s(c.arg)}(a,o,r,l)}))}return r=r?r.then(l,l):l()}})}function E(e,t,n){var i="suspendedStart";return function(r,a){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw a;return C()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var l=k(o,n);if(l){if(l===f)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var s=g(e,t,n);if("normal"===s.type){if(i=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(i="completed",n.method="throw",n.arg=s.arg)}}}function k(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var r=g(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,f;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function P(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function S(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,r=function t(){for(;++i=0;--r){var a=this.tryEntries[r],o=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=n.call(a,"catchLoc"),s=n.call(a,"finallyLoc");if(l&&s){if(this.prev=0;--i){var r=this.tryEntries[i];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),P(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;P(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:S(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function a(e,t,n,i,r,a,o){try{var l=e[a](o),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(i,r)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var o=e.apply(t,n);function l(e){a(o,i,r,l,s,"next",e)}function s(e){a(o,i,r,l,s,"throw",e)}l(void 0)}))}}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t tags, supplementing any missing width and height parameters. This enhancement can boost your performance in Google Pagespeed evaluations. Please note: Enabling Integration 6 is a prerequisite for this function to work effectively.",checked:this.state.cf_image_resizing_add_img_sizes,onChange:function(){return e.changeOptions("cf_image_resizing_add_img_sizes",!e.state.cf_image_resizing_add_img_sizes)}})),wp.element.createElement(E,null,wp.element.createElement(x,{label:w("Fix VC Composer sizes"),help:'Once activated, this feature corrects any incorrect width and height specifications in the final Cloudflare URL, a necessary step due to the flawed mechanism of the "vc_single_image-img" operation. Please note: For this feature to function properly, Integration 6 needs to be enabled.',checked:this.state.cf_image_resizing_fix_vc_composer,onChange:function(){return e.changeOptions("cf_image_resizing_fix_vc_composer",!e.state.cf_image_resizing_fix_vc_composer)}})),wp.element.createElement("p",null,wp.element.createElement("strong",null,w("Additional features will be progressively introduced to this section in the near future.")))),wp.element.createElement(z,{title:w("Image Whitelist Settings"),icon:"shield",initialOpen:!1},wp.element.createElement(E,null,wp.element.createElement(x,{label:w("Enable Whitelist"),help:w("If enabled, images from whitelisted domains will bypass Cloudflare resizing."),checked:this.state.cf_image_resizing_whitelist,onChange:function(){return e.changeOptions("cf_image_resizing_whitelist",!e.state.cf_image_resizing_whitelist)}})),wp.element.createElement(E,null,wp.element.createElement(y,{label:w("Whitelist Domains (comma separated)"),help:w("Example: fbcdn.net, twimg.com, cdninstagram.com, paypalobjects.com")},wp.element.createElement("input",{type:"text",id:"cf_image_resizing_options-whitelist-urls",value:this.state.cf_image_resizing_whitelist_urls,placeholder:"fbcdn.net, twimg.com, cdninstagram.com, paypalobjects.com",disabled:this.state.isAPISaving||!this.state.cf_image_resizing_whitelist,onChange:function(t){return e.setState({cf_image_resizing_whitelist_urls:t.target.value})},style:{width:"100%",padding:"6px 8px",fontSize:"13px",boxSizing:"border-box"}}))),wp.element.createElement(E,null,wp.element.createElement("div",{className:"cf_image_resizing_text-field-button-group"},wp.element.createElement(b,{isPrimary:!0,disabled:this.state.isAPISaving,onClick:function(){e.changeOptions("cf_image_resizing_whitelist_urls",e.state.cf_image_resizing_whitelist_urls)}},w("Save"))))),wp.element.createElement(z,null,wp.element.createElement("div",{className:"cf_image_resizing_info"},wp.element.createElement("p",null,wp.element.createElement("strong",null,w("Thank you for using my plugin."))),wp.element.createElement("p",null,w("By using this plugin you will have super fast on-the-fly image delivery in next generation formats without any performance overhead on your WordPress.")),wp.element.createElement("p",null,w("If you want more flexibility like processing CSS as well, you might want to consider my worker.")," ",wp.element.createElement("a",{href:"https://mecanik.dev/en/posts/cloudflare-image-resizing-for-wordpress/?utm_source=wp-plugins&utm_campaign=wp-post&utm_medium=wp-plugin-settings",target:"_blank",title:"mecanik.dev"}," ",w("Read More")," ")),wp.element.createElement("p",null,w("Looking for the fastest WordPress hosting created by me?")," ",wp.element.createElement("a",{href:"https://liveguard-hosting.com/wordpress-web-hosting/?utm_source=wp-plugins&utm_campaign=hosting-uri&utm_medium=wp-plugin-settings",target:"_blank",title:"LiveGuard® Hosting"}," ",w("Click Here")," ")),wp.element.createElement("p",null,w("Please consider sponsoring this plugin for further development.")),wp.element.createElement("div",{className:"cf_image_resizing_info-button-group"},wp.element.createElement(b,{isDefault:!0,target:"_blank",href:"https://mecanik.dev/en/"},wp.element.createElement("span",{class:"dashicon dashicons dashicons-admin-links components-panel__icon cf_custom_button_icon"}),w("Website"))," ",wp.element.createElement(b,{isDefault:!0,target:"_blank",href:"https://github.com/Mecanik/cloudflare-image-resizing/issues/new"},wp.element.createElement("span",{class:"dashicon dashicons dashicons-buddicons-replies components-panel__icon cf_custom_button_icon"}),w("Report Bug"))," ",wp.element.createElement(b,{isDefault:!0,target:"_blank",href:"https://github.com/sponsors/Mecanik"},wp.element.createElement("span",{class:"dashicon dashicons dashicons-money-alt components-panel__icon cf_custom_button_icon"}),w("Sponsor Plugin"))),wp.element.createElement("hr",null),wp.element.createElement("small",null,"This plugin is developed and maintained independently, and is not officially affiliated with or endorsed by Cloudflare Inc. This plugin simply makes use of the image resizing feature offered by Cloudflare's services. All trademarks and copyrights belong to their respective owners. For any issues related to Cloudflare's services themselves, please contact Cloudflare's support directly.")))),n&&wp.element.createElement("div",{className:"modal fade show d-block",tabIndex:"-1"},wp.element.createElement("div",{className:"modal-dialog modal-dialog-centered"},wp.element.createElement("div",{className:"modal-content"},wp.element.createElement("div",{className:"modal-header"},wp.element.createElement("h5",{className:"modal-title"},"Cloudflare Image Resizing"),wp.element.createElement("button",{type:"button",className:"btn-close",onClick:function(){return e.setState({isModalOpen:!1})}})),wp.element.createElement("div",{className:"modal-body"},wp.element.createElement("p",null,i)),wp.element.createElement("div",{className:"modal-footer"},wp.element.createElement("button",{type:"button",className:"btn btn-secondary",onClick:function(){return e.setState({isModalOpen:!1})}},"Close"))))),n&&wp.element.createElement("div",{className:"modal-backdrop show"})):wp.element.createElement(T,null,wp.element.createElement("div",{className:"cf_image_resizing_header"},wp.element.createElement("div",{className:"cf_image_resizing_container"},wp.element.createElement("div",{className:"cf_image_resizing_logo"},wp.element.createElement("div",{class:"cf_image_resizing_brand_logo"},wp.element.createElement("svg",{viewBox:"0 0 48 48",fill:"currentcolor",role:"img","aria-labelledby":"title-27458391960035233",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",{id:"title-27458391960035233"},"Cloudflare Image Resizing"),wp.element.createElement("path",{d:"M31.236 28.717c-.373-.548-1.003-.864-1.76-.9l-14.353-.195a.262.262.0 01-.221-.122.348.348.0 01-.035-.267.396.396.0 01.338-.268l14.48-.195c1.714-.085 3.58-1.533 4.232-3.309l.828-2.25a.503.503.0 00.023-.292c-.932-4.404-4.698-7.689-9.198-7.689-4.15.0-7.672 2.798-8.931 6.679a4.156 4.156.0 00-2.973-.864c-1.994.207-3.59 1.874-3.789 3.954a4.84 4.84.0 00.105 1.545c-3.253.097-5.853 2.871-5.853 6.29.0.304.024.608.059.912.023.146.14.256.28.256h26.488c.151.0.291-.11.338-.268l.198-.742c.245-.876.152-1.68-.256-2.275zm4.826-7.327c-.128.0-.268.0-.396.012-.093.0-.175.073-.21.17l-.56 2.032c-.244.876-.151 1.679.257 2.275.373.548 1.003.864 1.76.9l3.055.195c.093.0.175.049.222.122a.356.356.0 01.035.267.396.396.0 01-.339.268l-3.182.195c-1.726.085-3.58 1.532-4.232 3.309l-.234.62c-.046.122.035.243.164.243h10.935a.289.289.0 00.28-.219 8.654 8.654.0 00.292-2.214c0-4.501-3.521-8.175-7.847-8.175"}))),wp.element.createElement("h2",{class:"mb-0"},"Cloudflare Image Resizing")))),wp.element.createElement("div",{className:"cf_image_resizing_main"},wp.element.createElement(k,null,wp.element.createElement(P,null))))}}])&&u(t.prototype,n),i&&u(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(j);document.addEventListener("DOMContentLoaded",(function(){var e=document.getElementById("cf_image_resizing_plugin");e&&C(wp.element.createElement(I,null),e)}))},function(e,t,n){},function(e,t,n){}]); \ No newline at end of file +!function(e){var t={};function i(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t||4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)i.d(n,a,(function(t){return e[t]}).bind(null,a));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";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})(e)}function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ a=function(){return e};var e={},t=Object.prototype,i=t.hasOwnProperty,r=Object.defineProperty||function(e,t,i){e[t]=i.value},o="function"==typeof Symbol?Symbol:{},l=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag";function m(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{m({},"")}catch(u){m=function(e,t,i){return e[t]=i}}function g(e,t,i,n){var a,o,l,s,c=Object.create((t&&t.prototype instanceof d?t:d).prototype);return r(c,"_invoke",{value:(a=e,o=i,l=new P(n||[]),s="suspendedStart",function(e,t){if("executing"===s)throw Error("Generator is already running");if("completed"===s){if("throw"===e)throw t;return C()}for(l.method=e,l.arg=t;;){var i=l.delegate;if(i){var n=E(i,l);if(n){if(n===h)continue;return n}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if("suspendedStart"===s)throw s="completed",l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);s="executing";var r=f(a,o,l);if("normal"===r.type){if(s=l.done?"completed":"suspendedYield",r.arg===h)continue;return{value:r.arg,done:l.done}}"throw"===r.type&&(s="completed",l.method="throw",l.arg=r.arg)}})}),c}function f(e,t,i){try{return{type:"normal",arg:e.call(t,i)}}catch(n){return{type:"throw",arg:n}}}e.wrap=g;var h={};function d(){}function p(){}function v(){}var y={};m(y,l,function(){return this});var $=Object.getPrototypeOf,_=$&&$($(O([])));_&&_!==t&&i.call(_,l)&&(y=_);var b=v.prototype=d.prototype=Object.create(y);function z(e){["next","throw","return"].forEach(function(t){m(e,t,function(e){return this._invoke(t,e)})})}function w(e,t){var a;r(this,"_invoke",{value:function(r,o){function l(){return new t(function(a,l){!function a(r,o,l,s){var c=f(e[r],e,o);if("throw"!==c.type){var m=c.arg,u=m.value;return u&&"object"==n(u)&&i.call(u,"__await")?t.resolve(u.__await).then(function(e){a("next",e,l,s)},function(e){a("throw",e,l,s)}):t.resolve(u).then(function(e){m.value=e,l(m)},function(e){return a("throw",e,l,s)})}s(c.arg)}(r,o,a,l)})}return a=a?a.then(l,l):l()}})}function E(e,t){var i=t.method,n=e.iterator[i];if(void 0===n)return t.delegate=null,"throw"===i&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==i&&(t.method="throw",t.arg=TypeError("The iterator does not provide a '"+i+"' method")),h;var a=f(n,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,h;var r=a.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):r:(t.method="throw",t.arg=TypeError("iterator result is not an object"),t.delegate=null,h)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function O(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,a=function t(){for(;++n=0;--a){var r=this.tryEntries[a],o=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var l=i.call(r,"catchLoc"),s=i.call(r,"finallyLoc");if(l&&s){if(this.prev=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&i.call(a,"finallyLoc")&&this.prev=0;--t){var i=this.tryEntries[t];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),x(i),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var i=this.tryEntries[t];if(i.tryLoc===e){var n=i.completion;if("throw"===n.type){var a=n.arg;x(i)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:O(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=void 0),h}},e}function r(e,t,i,n,a,r,o){try{var l=e[r](o),s=l.value}catch(c){return void i(c)}l.done?t(s):Promise.resolve(s).then(n,a)}function o(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,n)}return i}function l(e){for(var t=1;t tags, supplementing any missing width and height parameters. This enhancement can boost your performance in Google Pagespeed evaluations. Please note: Enabling Integration 6 is a prerequisite for this function to work effectively.",checked:this.state.cf_image_resizing_add_img_sizes,onChange:function(){return e.changeOptions("cf_image_resizing_add_img_sizes",!e.state.cf_image_resizing_add_img_sizes)}})),wp.element.createElement($,null,wp.element.createElement(w,{label:h("Fix VC Composer sizes"),help:'Once activated, this feature corrects any incorrect width and height specifications in the final Cloudflare URL, a necessary step due to the flawed mechanism of the "vc_single_image-img" operation. Please note: For this feature to function properly, Integration 6 needs to be enabled.',checked:this.state.cf_image_resizing_fix_vc_composer,onChange:function(){return e.changeOptions("cf_image_resizing_fix_vc_composer",!e.state.cf_image_resizing_fix_vc_composer)}})),wp.element.createElement("p",null,wp.element.createElement("strong",null,h("Additional features will be progressively introduced to this section in the near future.")))),wp.element.createElement(y,{title:h("Image Whitelist Settings"),icon:"shield",initialOpen:!1},wp.element.createElement($,null,wp.element.createElement(w,{label:h("Enable Whitelist"),help:h("If enabled, images from whitelisted domains will bypass Cloudflare resizing."),checked:this.state.cf_image_resizing_whitelist,onChange:function(){return e.changeOptions("cf_image_resizing_whitelist",!e.state.cf_image_resizing_whitelist)}})),wp.element.createElement($,null,wp.element.createElement(p,{label:h("Whitelist Domains (comma separated)"),help:h("Example: fbcdn.net, twimg.com, cdninstagram.com, paypalobjects.com")},wp.element.createElement("input",{type:"text",id:"cf_image_resizing_options-whitelist-urls",value:this.state.cf_image_resizing_whitelist_urls,placeholder:"fbcdn.net, twimg.com, cdninstagram.com, paypalobjects.com",disabled:this.state.isAPISaving||!this.state.cf_image_resizing_whitelist,onChange:function(t){return e.setState({cf_image_resizing_whitelist_urls:t.target.value})},style:{width:"100%",padding:"6px 8px",fontSize:"13px",boxSizing:"border-box"}}))),wp.element.createElement($,null,wp.element.createElement("div",{className:"cf_image_resizing_text-field-button-group"},wp.element.createElement(v,{isPrimary:!0,disabled:this.state.isAPISaving,onClick:function(){e.changeOptions("cf_image_resizing_whitelist_urls",e.state.cf_image_resizing_whitelist_urls)}},h("Save"))))),wp.element.createElement(y,null,wp.element.createElement("div",{className:"cf_image_resizing_info"},wp.element.createElement("p",null,wp.element.createElement("strong",null,h("Thank you for using my plugin."))),wp.element.createElement("p",null,h("By using this plugin you will have super fast on-the-fly image delivery in next generation formats without any performance overhead on your WordPress.")),wp.element.createElement("p",null,h("If you want more flexibility like processing CSS as well, you might want to consider my worker.")," ",wp.element.createElement("a",{href:"https://mecanik.dev/en/posts/cloudflare-image-resizing-for-wordpress/?utm_source=wp-plugins&utm_campaign=wp-post&utm_medium=wp-plugin-settings",target:"_blank",title:"mecanik.dev"}," ",h("Read More")," ")),wp.element.createElement("p",null,h("Please consider sponsoring this plugin for further development.")),wp.element.createElement("div",{className:"cf_image_resizing_info-button-group"},wp.element.createElement(v,{isDefault:!0,target:"_blank",href:"https://mecanik.dev/en/"},wp.element.createElement("span",{class:"dashicon dashicons dashicons-admin-links components-panel__icon cf_custom_button_icon"}),h("Website")),"\xa0",wp.element.createElement(v,{isDefault:!0,target:"_blank",href:"https://github.com/Mecanik/cloudflare-image-resizing/issues/new"},wp.element.createElement("span",{class:"dashicon dashicons dashicons-buddicons-replies components-panel__icon cf_custom_button_icon"}),h("Report Bug")),"\xa0",wp.element.createElement(v,{isDefault:!0,target:"_blank",href:"https://github.com/sponsors/Mecanik"},wp.element.createElement("span",{class:"dashicon dashicons dashicons-money-alt components-panel__icon cf_custom_button_icon"}),h("Sponsor Plugin"))),wp.element.createElement("hr",null),wp.element.createElement("small",null,"This plugin is developed and maintained independently, and is not officially affiliated with or endorsed by Cloudflare Inc. This plugin simply makes use of the image resizing feature offered by Cloudflare's services. All trademarks and copyrights belong to their respective owners. For any issues related to Cloudflare's services themselves, please contact Cloudflare's support directly.")))),i&&wp.element.createElement("div",{className:"modal fade show d-block",tabIndex:"-1"},wp.element.createElement("div",{className:"modal-dialog modal-dialog-centered"},wp.element.createElement("div",{className:"modal-content"},wp.element.createElement("div",{className:"modal-header"},wp.element.createElement("h5",{className:"modal-title"},"Cloudflare Image Resizing"),wp.element.createElement("button",{type:"button",className:"btn-close",onClick:function(){return e.setState({isModalOpen:!1})}})),wp.element.createElement("div",{className:"modal-body"},wp.element.createElement("p",null,n)),wp.element.createElement("div",{className:"modal-footer"},wp.element.createElement("button",{type:"button",className:"btn btn-secondary",onClick:function(){return e.setState({isModalOpen:!1})}},"Close"))))),i&&wp.element.createElement("div",{className:"modal-backdrop show"})):wp.element.createElement(P,null,wp.element.createElement("div",{className:"cf_image_resizing_header"},wp.element.createElement("div",{className:"cf_image_resizing_container"},wp.element.createElement("div",{className:"cf_image_resizing_logo"},wp.element.createElement("div",{class:"cf_image_resizing_brand_logo"},wp.element.createElement("svg",{viewBox:"0 0 48 48",fill:"currentcolor",role:"img","aria-labelledby":"title-27458391960035233",xmlns:"http://www.w3.org/2000/svg"},wp.element.createElement("title",{id:"title-27458391960035233"},"Cloudflare Image Resizing"),wp.element.createElement("path",{d:"M31.236 28.717c-.373-.548-1.003-.864-1.76-.9l-14.353-.195a.262.262.0 01-.221-.122.348.348.0 01-.035-.267.396.396.0 01.338-.268l14.48-.195c1.714-.085 3.58-1.533 4.232-3.309l.828-2.25a.503.503.0 00.023-.292c-.932-4.404-4.698-7.689-9.198-7.689-4.15.0-7.672 2.798-8.931 6.679a4.156 4.156.0 00-2.973-.864c-1.994.207-3.59 1.874-3.789 3.954a4.84 4.84.0 00.105 1.545c-3.253.097-5.853 2.871-5.853 6.29.0.304.024.608.059.912.023.146.14.256.28.256h26.488c.151.0.291-.11.338-.268l.198-.742c.245-.876.152-1.68-.256-2.275zm4.826-7.327c-.128.0-.268.0-.396.012-.093.0-.175.073-.21.17l-.56 2.032c-.244.876-.151 1.679.257 2.275.373.548 1.003.864 1.76.9l3.055.195c.093.0.175.049.222.122a.356.356.0 01.035.267.396.396.0 01-.339.268l-3.182.195c-1.726.085-3.58 1.532-4.232 3.309l-.234.62c-.046.122.035.243.164.243h10.935a.289.289.0 00.28-.219 8.654 8.654.0 00.292-2.214c0-4.501-3.521-8.175-7.847-8.175"}))),wp.element.createElement("h2",{class:"mb-0"},"Cloudflare Image Resizing")))),wp.element.createElement("div",{className:"cf_image_resizing_main"},wp.element.createElement(_,null,wp.element.createElement(z,null))))}},],c(o.prototype,m),d&&c(o,d),Object.defineProperty(o,"prototype",{writable:!1}),k}(x);document.addEventListener("DOMContentLoaded",function(){var e=document.getElementById("cf_image_resizing_plugin");e&&k(wp.element.createElement(O,null),e)})},function(e,t,i){},function(e,t,i){},]);