2026-02-05 17:08:59 +03:00

3 lines
39 KiB
JavaScript

/*! For license information please see oc-cache-settings.js.LICENSE.txt */
(()=>{var e={530:()=>{var e=Object.defineProperty,t=(t,n,r)=>(((t,n,r)=>{n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r})(t,"symbol"!=typeof n?n+"":n,r),r);const n={};async function r(e){if(n.hasOwnProperty(e))return n[e];let t;return t=e.startsWith("data:")||!("caches"in self)?fetch(e).then((e=>e.text())):caches.open("gravity").then((async t=>{let n=await t.match(e);return n||(n=await fetch(e),n.ok&&await t.put(e,n.clone())),n.text()})),n[e]=t,t}class o extends HTMLElement{static get observedAttributes(){return["src"]}fetchFlag(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchFlag(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchFlag(n)}}t(o,"TAG_NAME","gv-flag");class i extends HTMLElement{static get observedAttributes(){return["src"]}fetchIcon(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchIcon(n)}}t(i,"TAG_NAME","gv-icon");class a extends HTMLElement{static get observedAttributes(){return["src"]}fetchIllustration(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchIllustration(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchIllustration(n)}}t(a,"TAG_NAME","gv-illustration");class c extends HTMLElement{static get observedAttributes(){return["src"]}fetchIndicator(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchIndicator(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchIndicator(n)}}t(c,"TAG_NAME","gv-indicator");class s extends HTMLElement{static get observedAttributes(){return["src"]}fetchLoader(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchLoader(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchLoader(n)}}t(s,"TAG_NAME","gv-loader");class l extends HTMLElement{static get observedAttributes(){return["src"]}fetchLogo(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchLogo(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchLogo(n)}}t(l,"TAG_NAME","gv-logo");class u extends HTMLElement{static get observedAttributes(){return["src"]}fetchPayIcon(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchPayIcon(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchPayIcon(n)}}t(u,"TAG_NAME","gv-pay-icon");class f extends HTMLElement{static get observedAttributes(){return["src"]}fetchTile(e){e&&r(e).then((e=>this.innerHTML=e))}connectedCallback(){this.fetchTile(this.getAttribute("src"))}attributeChangedCallback(e,t,n){"src"===e&&t!==n&&this.fetchTile(n)}}function h(e,t){customElements.get(e)||customElements.define(e,t)}t(f,"TAG_NAME","gv-tile"),h(o.TAG_NAME,o),h(i.TAG_NAME,i),h(a.TAG_NAME,a),h(c.TAG_NAME,c),h(s.TAG_NAME,s),h(l.TAG_NAME,l),h(u.TAG_NAME,u),h(f.TAG_NAME,f)},7:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}d(e,t,i,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&d(e,"error",t,{once:!0})}(e,o)}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function c(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var o,i,a,l;if(c(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=s(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,l=u,console&&console.warn&&console.warn(l)}return e}function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=u.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):p(o,o.length)}function v(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function d(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return s(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var c=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw c.context=a,c}var s=i[e];if(void 0===s)return!1;if("function"==typeof s)r(s,this,t);else{var l=s.length,u=p(s,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return c(t),this.on(e,f(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return c(t),this.prependListener(e,f(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(c(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},i.prototype.listenerCount=v,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},338:(e,t,n)=>{"use strict";var r=n(206);t.H=r.createRoot,r.hydrateRoot},206:e=>{"use strict";e.exports=ReactDOM}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}(()=>{"use strict";const e=wp.element;n(530);var t=n(338);const r=new(n(7).EventEmitter),o=function(e){var t=e.type,n=void 0===t?"button":t,r=e.className,o=void 0===r?"gv-button":r,i=e.onClick,a=e.disabled,c=void 0!==a&&a,s=e.children,l=e.iconSrc,u=e.title,f=e.dataUpsell,h=void 0===f?"":f;return React.createElement("button",{type:n,className:o,onClick:i,disabled:c,title:u,"data-upsell-btn-event":h},s,l&&React.createElement("gv-icon",{src:l}))};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},i(e)}function a(){a=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},c="function"==typeof Symbol?Symbol:{},s=c.iterator||"@@iterator",l=c.asyncIterator||"@@asyncIterator",u=c.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(e){f=function(e,t,n){return e[t]=n}}function h(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),c=new O(r||[]);return o(a,"_invoke",{value:N(e,n,c)}),a}function v(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=h;var p="suspendedStart",d="suspendedYield",g="executing",m="completed",y={};function b(){}function w(){}function E(){}var _={};f(_,s,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(j([])));S&&S!==n&&r.call(S,s)&&(_=S);var x=E.prototype=b.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,a,c,s){var l=v(e[o],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==i(f)&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,c,s)}),(function(e){n("throw",e,c,s)})):t.resolve(f).then((function(e){u.value=e,c(u)}),(function(e){return n("throw",e,c,s)}))}s(l.arg)}var a;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return a=a?a.then(o,o):o()}})}function N(t,n,r){var o=p;return function(i,a){if(o===g)throw Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===y)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var l=v(t,n,r);if("normal"===l.type){if(o=r.done?m:d,l.arg===y)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=m,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var i=v(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function R(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[s];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}throw new TypeError(i(t)+" is not iterable")}return w.prototype=E,o(x,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:w,configurable:!0}),w.displayName=f(E,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,f(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(A.prototype),f(A.prototype,l,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(h(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),f(x,u,"Generator"),f(x,s,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),y},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),y}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}function c(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return l(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const u=function(t){var n=t.ajaxUrl,i=t.purgeActionNonce,l=t.clearCacheMessage,u=t.isMobilePlaceholder,f=t.buttonTitle,h=void 0===f?"Clear Cache Now":f,v=t.loadingTitle,p=void 0===v?"Clearing Cache":v,d=t.purgeCache,g=void 0===d?1:d,m=t.isCDN,y=void 0!==m&&m,b=s((0,e.useState)(!1),2),w=b[0],E=b[1],_=s((0,e.useState)(window.matchMedia("(max-width: 600px)").matches),2),L=_[0],S=_[1],x="undefined"!=typeof vcacheSettings?vcacheSettings.imageDIR:CdnSettings.imageDIR;(0,e.useEffect)((function(){var e=window.matchMedia("(max-width: 600px)"),t=function(){S(e.matches)};return e.addEventListener("change",t),function(){return e.removeEventListener("change",t)}}),[]);var C=function(){var e,t=(e=a().mark((function e(){var t,o;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return E(!0),e.prev=1,e.next=4,fetch(n,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"purge_cache",purge_cache:g,_wpnonce:i})});case 4:return t=e.sent,e.next=7,t.json();case 7:o=e.sent,t.ok&&o.success?r.emit("showNotice",{message:l.success,noticeClass:"gv-notice-success",icon:"".concat(x,"assets/images/check_circle.svg")}):r.emit("showNotice",{message:l.failure,noticeClass:"gv-notice-alert",icon:"".concat(x,"assets/images/error.svg")}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),r.emit("showNotice",{message:l.failure,noticeClass:"gv-notice-alert",icon:"".concat(x,"assets/images/error.svg")});case 14:return e.prev=14,E(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){c(i,r,o,a,s,"next",e)}function s(e){c(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}();return u&&!L||!u&&L?null:React.createElement(React.Fragment,null,L?React.createElement(o,{className:"gv-button gv-button-primary oc-clear-cache-cta gv-desk-hidden gv-tab-hidden\n ".concat(y?"ocwp_ocpc_cdn_cta_cleared_event":"ocwp_ocpc_cache_cta_cleared_event"),onClick:C,disabled:w},w?p:h):React.createElement(o,{className:"gv-button gv-button-primary oc-clear-cache-cta gv-max-mob-hidden ".concat(y?"ocwp_ocpc_cdn_cta_cleared_event":"ocwp_ocpc_cache_cta_cleared_event"),title:"Clear Cache",onClick:C,disabled:w},w?p:h))};function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const h=function(){var t,n,i=(t=(0,e.useState)({isVisible:!1,message:"",noticeClass:"",icon:""}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),a=i[0],c=i[1];return(0,e.useEffect)((function(){var e=function(e){var t=e.message,n=e.noticeClass,r=e.icon;c({isVisible:!0,message:t,noticeClass:n,icon:r}),setTimeout((function(){var e=document.querySelector(".gv-notice");if(e){var t=e.getBoundingClientRect();(t.top<0||t.bottom>window.innerHeight)&&e.scrollIntoView({behavior:"smooth",block:"start"})}}),100)};return r.on("showNotice",e),function(){r.off("showNotice",e)}}),[]),a.isVisible?React.createElement("div",{className:"gv-notice ".concat(a.noticeClass," gv-mb-lg")},React.createElement("gv-icon",{class:"gv-notice-icon",src:a.icon}),React.createElement("p",{className:"gv-notice-content"},a.message),React.createElement(o,{className:"gv-notice-close",onClick:function(){return c({isVisible:!1,message:"",noticeClass:"",icon:""})},iconSrc:"".concat("undefined"!=typeof CdnSettings?CdnSettings.imageDIR:vcacheSettings.imageDIR,"assets/images/close.svg")})):null},v=function(e){var t=e.selectedValue,n=e.onChange,r=e.activeLabel,o=void 0===r?"Active":r,i=e.inactiveLabel,a=void 0===i?"Inactive":i,c=e.name,s=void 0===c?"statusSelector":c;return React.createElement(React.Fragment,null,React.createElement("p",{className:"gv-text-sm gv-text-bold gv-mb-sm"},"Status"),React.createElement("div",{className:"gv-mode-condensed"},React.createElement("div",{className:"gv-form-option gv-mb-md"},React.createElement("div",{className:"gv-option-inline"},React.createElement("input",{id:"".concat(s,"-active"),type:"radio",name:s,value:"1",className:"gv-radio ".concat("cdnStatus"===s?"ocwp_ocpc_cdn_active_selected_event":"ocwp_ocpc_cache_active_selected_event"),checked:"1"===t,onChange:function(e){n(e.target.value)}}),React.createElement("label",{htmlFor:"".concat(s,"-active"),className:"gv-label"},o))),React.createElement("div",{className:"gv-form-option"},React.createElement("div",{className:"gv-option-inline"},React.createElement("input",{id:"".concat(s,"-inactive"),type:"radio",name:s,className:"gv-radio ".concat("cdnStatus"===s?"ocwp_ocpc_cdn_inactive_selected_event":"ocwp_ocpc_cache_inactive_selected_event"),value:"0",checked:"0"===t,onChange:function(e){n(e.target.value)}}),React.createElement("label",{htmlFor:"".concat(s,"-inactive"),className:"gv-label"},a)))))};function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const d=function(t){var n,r,o=t.message,i=t.iconSrc,a=(n=(0,e.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(n,r)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),c=a[0],s=a[1],l=(0,e.useRef)(null),u=(0,e.useRef)(null);return(0,e.useEffect)((function(){if(l.current&&u.current){var e=u.current.getBoundingClientRect(),t=l.current,n=t.offsetWidth;t.style.left="".concat(e.left+e.width/2-n/2,"px");var r=t.offsetHeight;t.style.top="".concat(e.top-r-8,"px")}}),[c]),React.createElement("div",{className:"tooltip-container",onMouseEnter:function(){return s(!0)},onMouseLeave:function(){return s(!1)}},React.createElement("gv-icon",{className:"gv-mode-condensed gv-ml-sm",src:i,ref:u}),React.createElement("div",{className:"gv-tooltip gv-arrow-bottom-center ".concat(c?"gv-visible":"gv-hidden"),ref:l},React.createElement("p",null,o)))},g=function(e){var t=e.id,n=e.label,r=e.tooltipMessage,o=e.tooltipIconSrc,i=e.value,a=e.onChange,c=e.placeholder,s=e.validationMessageId,l=e.validationMessage;return React.createElement("div",{className:"gv-mt-md"},React.createElement("div",{className:"gv-form-option oc-cache-ttl"},React.createElement("label",{htmlFor:t,className:"gv-label label-tooltip"},React.createElement("span",null,n),React.createElement(d,{message:r,iconSrc:o})),React.createElement("input",{id:t,type:"text",className:"gv-input ".concat(l?"gv-error":""),value:i,onChange:a,placeholder:c}),l&&React.createElement("span",{id:s,className:"gv-input-message gv-error"},l)))};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}const y=function(e){var t=e.frequency,n=e.setFrequency,r=e.isLoading,i=e.handleSave,a=e.frequencyLabel,c=e.frequencyOptions;return React.createElement("div",{className:"gv-mt-md"},React.createElement("div",{className:"gv-form-option"},React.createElement("label",{htmlFor:"ttl-frequency",className:"gv-label"},a),React.createElement("div",{className:"gv-input gv-input-select"},React.createElement("select",{id:"ttl-frequency",value:t,onChange:function(e){return n(e.target.value)}},Object.entries(c).map((function(e){var t,n,r=(n=2,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],i=r[1];return React.createElement("option",{key:o,value:o},i)}))),React.createElement("gv-icon",{src:"".concat(vcacheSettings.imageDIR,"assets/images/expand_more.svg")}))),React.createElement(o,{className:"gv-button gv-button-primary gv-mt-md ocwp_ocpc_cache_settings_saved_event",isLoading:r,onClick:i,disabled:r},r?vcacheSettings.labelSaving:vcacheSettings.labelSave))};function b(e){return b="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},b(e)}function w(){w=function(){return t};var e,t={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new O(r||[]);return o(a,"_invoke",{value:N(e,n,c)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var h="suspendedStart",v="suspendedYield",p="executing",d="completed",g={};function m(){}function y(){}function E(){}var _={};l(_,a,(function(){return this}));var L=Object.getPrototypeOf,S=L&&L(L(j([])));S&&S!==n&&r.call(S,a)&&(_=S);var x=E.prototype=m.prototype=Object.create(_);function C(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function n(o,i,a,c){var s=f(e[o],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==b(u)&&r.call(u,"__await")?t.resolve(u.__await).then((function(e){n("next",e,a,c)}),(function(e){n("throw",e,a,c)})):t.resolve(u).then((function(e){l.value=e,a(l)}),(function(e){return n("throw",e,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,o){n(e,r,t,o)}))}return i=i?i.then(o,o):o()}})}function N(t,n,r){var o=h;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:e,done:!0}}for(r.method=i,r.arg=a;;){var c=r.delegate;if(c){var s=T(c,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===h)throw o=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var l=f(t,n,r);if("normal"===l.type){if(o=r.done?d:v,l.arg===g)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=d,r.method="throw",r.arg=l.arg)}}}function T(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,T(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[t.resultName]=a.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function R(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 M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(R,this),this.reset(!0)}function j(t){if(t||""===t){var n=t[a];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o<t.length;)if(r.call(t,o))return n.value=t[o],n.done=!1,n;return n.value=e,n.done=!0,n};return i.next=i}}throw new TypeError(b(t)+" is not iterable")}return y.prototype=E,o(x,"constructor",{value:E,configurable:!0}),o(E,"constructor",{value:y,configurable:!0}),y.displayName=l(E,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,E):(e.__proto__=E,l(e,s,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},C(A.prototype),l(A.prototype,c,(function(){return this})),t.AsyncIterator=A,t.async=function(e,n,r,o,i){void 0===i&&(i=Promise);var a=new A(u(e,n,r,o),i);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(x),l(x,s,"Generator"),l(x,a,(function(){return this})),l(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(M),!t)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function o(r,o){return c.type="throw",c.arg=t,n.next=r,o&&(n.method="next",n.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;M(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:j(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),g}},t}function E(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}var _=function(){var e,t=(e=w().mark((function e(t){var n,o,i,a,c,s,l;return w().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.cacheTtl,o=t.vcstate,i=t.csrfToken,a=t.frequency,c=t.setCacheTtlError,s=t.setIsLoading,!(!n.trim()||isNaN(n)||parseInt(n,10)<=0)){e.next=4;break}return c(vcacheSettings.ttlValidationMsg),e.abrupt("return");case 4:return s(!0),e.prev=5,e.next=8,fetch(vcacheSettings.ajax_url,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({action:"oc_set_vc_state",vc_state:o,oc_csrf:i,vc_ttl:n,vc_ttl_unit:a})});case 8:if((l=e.sent).ok){e.next=11;break}throw new Error("HTTP error! Status: ".concat(l.status));case 11:return e.next=13,l.json();case 13:"success"===e.sent.status?r.emit("showNotice",{message:vcacheSettings.settingsSaveMessage.success,icon:"".concat(vcacheSettings.imageDIR,"assets/images/check_circle.svg"),noticeClass:"gv-notice-success"}):r.emit("showNotice",{message:vcacheSettings.settingsSaveMessage.failure,icon:"".concat(vcacheSettings.imageDIR,"assets/images/error.svg"),noticeClass:"gv-notice-alert"}),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(5),r.emit("showNotice",{message:vcacheSettings.settingsSaveMessage.failure,icon:"".concat(vcacheSettings.imageDIR,"assets/images/error.svg"),noticeClass:"gv-notice-alert"});case 20:return e.prev=20,s(!1),e.finish(20);case 23:case"end":return e.stop()}}),e,null,[[5,17,20,23]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){E(i,r,o,a,c,"next",e)}function c(e){E(i,r,o,a,c,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?S(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var x=document.getElementById("notice-placeholder");x&&(0,t.H)(x).render(React.createElement(h,null));var C=document.getElementById("clear-cache-container-desktop");C&&(0,t.H)(C).render(React.createElement(e.StrictMode,null,React.createElement(u,{ajaxUrl:vcacheSettings.ajax_url,purgeActionNonce:vcacheSettings.nonce,clearCacheMessage:vcacheSettings.clearCacheMessage,isMobilePlaceholder:!1,buttonTitle:vcacheSettings.ClearCache,loadingTitle:vcacheSettings.clearingCache})));var A=document.getElementById("clear-cache-container-mobile");A&&(0,t.H)(A).render(React.createElement(e.StrictMode,null,React.createElement(u,{ajaxUrl:vcacheSettings.ajax_url,purgeActionNonce:vcacheSettings.nonce,clearCacheMessage:vcacheSettings.clearCacheMessage,isMobilePlaceholder:!0,buttonTitle:vcacheSettings.ClearCache,loadingTitle:vcacheSettings.clearingCache})));const N=function(){var t=L((0,e.useState)((function(){return e=vcacheSettings.vc_status,["true","1",1].includes(e)?"1":"0";var e})),2),n=t[0],r=t[1],o=L((0,e.useState)(vcacheSettings.vc_ttl||""),2),i=o[0],a=o[1],c=L((0,e.useState)(vcacheSettings.vc_ttl_unit||"days"),2),s=c[0],l=c[1],u=L((0,e.useState)(""),2),f=u[0],h=u[1],p=L((0,e.useState)(!1),2),d=p[0],m=p[1],b=L((0,e.useState)(""),2),w=b[0],E=b[1];(0,e.useEffect)((function(){var e,t=(null===(e=document.querySelector('input[name="octracking"]'))||void 0===e?void 0:e.value)||"";h(t)}),[]);var S=vcacheSettings.frequency_options,x=vcacheSettings.frequency_ttl;return React.createElement("div",null,React.createElement(v,{selectedValue:n,onChange:r,activeLabel:vcacheSettings.LblActive,inactiveLabel:vcacheSettings.LblInactive,name:"vcacheStatus"}),React.createElement(g,{id:"cache-ttl",label:vcacheSettings.cache_ttl,tooltipMessage:vcacheSettings.TooltipMessage,tooltipIconSrc:"".concat(vcacheSettings.imageDIR,"assets/images/info-new.svg"),value:i,onChange:function(e){var t=e.target.value;a(t),t.trim()&&!isNaN(t)&&parseInt(t,10)>0&&E("")},placeholder:vcacheSettings.Ttlplaceholder,validationMessageId:"oc-TTL-validation-msg",validationMessage:w}),React.createElement(y,{frequency:s,setFrequency:l,isLoading:d,handleSave:function(){_({cacheTtl:i,vcstate:n,csrfToken:f,frequency:s,setCacheTtlError:E,setIsLoading:m})},frequencyLabel:x,frequencyOptions:S}))};var T=document.getElementById("vcache-root");T?(0,e.createRoot)(T).render(React.createElement(e.StrictMode,null,React.createElement(N,null))):console.error("Error: root not found in the DOM")})()})();
//# sourceMappingURL=oc-cache-settings.js.map