OwlCyberSecurity - MANAGER
Edit File: om-settings.min.js
(()=>{var t={1549:(t,e,r)=>{var n=r(2032),o=r(3862),a=r(6721),i=r(2749),s=r(5749);function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=a,p.prototype.has=i,p.prototype.set=s,t.exports=p},79:(t,e,r)=>{var n=r(3702),o=r(80),a=r(4739),i=r(8655),s=r(1175);function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=a,p.prototype.has=i,p.prototype.set=s,t.exports=p},8223:(t,e,r)=>{var n=r(6110)(r(9325),"Map");t.exports=n},3661:(t,e,r)=>{var n=r(3040),o=r(7670),a=r(289),i=r(4509),s=r(2949);function p(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}p.prototype.clear=n,p.prototype.delete=o,p.prototype.get=a,p.prototype.has=i,p.prototype.set=s,t.exports=p},1873:(t,e,r)=>{var n=r(9325).Symbol;t.exports=n},4932:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},6025:(t,e,r)=>{var n=r(5288);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},7422:(t,e,r)=>{var n=r(1769),o=r(7797);t.exports=function(t,e){for(var r=0,a=(e=n(e,t)).length;null!=t&&r<a;)t=t[o(e[r++])];return r&&r==a?t:void 0}},2552:(t,e,r)=>{var n=r(1873),o=r(659),a=r(9350),i=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?o(t):a(t)}},5083:(t,e,r)=>{var n=r(1882),o=r(7296),a=r(3805),i=r(7473),s=/^\[object .+?Constructor\]$/,p=Function.prototype,c=Object.prototype,l=p.toString,u=c.hasOwnProperty,f=RegExp("^"+l.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?f:s).test(i(t))}},7556:(t,e,r)=>{var n=r(1873),o=r(4932),a=r(6449),i=r(4394),s=n?n.prototype:void 0,p=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return o(e,t)+"";if(i(e))return p?p.call(e):"";var r=e+"";return"0"==r&&1/e==-1/0?"-0":r}},1769:(t,e,r)=>{var n=r(6449),o=r(8586),a=r(1802),i=r(3222);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:a(i(t))}},5481:(t,e,r)=>{var n=r(9325)["__core-js_shared__"];t.exports=n},4840:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},2651:(t,e,r)=>{var n=r(4218);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},6110:(t,e,r)=>{var n=r(5083),o=r(392);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},659:(t,e,r)=>{var n=r(1873),o=Object.prototype,a=o.hasOwnProperty,i=o.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=a.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(t){}var o=i.call(t);return n&&(e?t[s]=r:delete t[s]),o}},392:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2032:(t,e,r)=>{var n=r(1042);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},6721:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},2749:(t,e,r)=>{var n=r(1042),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},5749:(t,e,r)=>{var n=r(1042);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},8586:(t,e,r)=>{var n=r(6449),o=r(4394),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||i.test(t)||!a.test(t)||null!=e&&t in Object(e)}},4218:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7296:(t,e,r)=>{var n,o=r(5481),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},3702:t=>{t.exports=function(){this.__data__=[],this.size=0}},80:(t,e,r)=>{var n=r(6025),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},4739:(t,e,r)=>{var n=r(6025);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},8655:(t,e,r)=>{var n=r(6025);t.exports=function(t){return n(this.__data__,t)>-1}},1175:(t,e,r)=>{var n=r(6025);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},3040:(t,e,r)=>{var n=r(1549),o=r(79),a=r(8223);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},7670:(t,e,r)=>{var n=r(2651);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},289:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).get(t)}},4509:(t,e,r)=>{var n=r(2651);t.exports=function(t){return n(this,t).has(t)}},2949:(t,e,r)=>{var n=r(2651);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},2224:(t,e,r)=>{var n=r(104);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},1042:(t,e,r)=>{var n=r(6110)(Object,"create");t.exports=n},9350:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},9325:(t,e,r)=>{var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,a=n||o||Function("return this")();t.exports=a},1802:(t,e,r)=>{var n=r(2224),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,i=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(a,"$1"):r||t)})),e}));t.exports=i},7797:(t,e,r)=>{var n=r(4394);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},7473:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},5288:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},8156:(t,e,r)=>{var n=r(7422);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},6449:t=>{var e=Array.isArray;t.exports=e},1882:(t,e,r)=>{var n=r(2552),o=r(3805);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},3805:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},346:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},4394:(t,e,r)=>{var n=r(2552),o=r(346);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==n(t)}},104:(t,e,r)=>{var n=r(3661);function o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=t.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(o.Cache||n),r}o.Cache=n,t.exports=o},3222:(t,e,r)=>{var n=r(7556);t.exports=function(t){return null==t?"":n(t)}},2694:(t,e,r)=>{"use strict";var n=r(6925);function o(){}function a(){}a.resetWarningCache=o,t.exports=function(){function t(t,e,r,o,a,i){if(i!==n){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 e(){return t}t.isRequired=t;var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:a,resetWarningCache:o};return r.PropTypes=r,r}},5556:(t,e,r)=>{t.exports=r(2694)()},6925:t=>{"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var a=e[n]={exports:{}};return t[n](a,a.exports,r),a.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";const t=React;var e=r(5556),n=r.n(e),o=r(8156),a=r.n(o),i=wp.data,s=i.withSelect,p=i.withDispatch,c=wp.editPost.PluginDocumentSettingPanel,l=wp.components,u=l.Button,f=l.ToggleControl;function v(e){var r=e.allDisabled,n=e.onToggle;return(0,t.createElement)(c,{name:"om-settings-panel",title:OMAPI.i18n.settings,className:"om-settings-panel"},OMAPI.customFieldsSupported?(0,t.createElement)("div",null,(0,t.createElement)(f,{label:OMAPI.i18n.disable_all,checked:!!r,onChange:n}),(0,t.createElement)("hr",null)):null,(0,t.createElement)("div",null,(0,t.createElement)(u,{href:OMAPI.templatesUri+"&type=popup",style:{display:"flex",justifyContent:"center",marginBottom:"10px",width:"100%"},target:"_blank",rel:"noopener",isPrimary:!0},OMAPI.i18n.create_new_popup),(0,t.createElement)(u,{href:OMAPI.campaignsUri,target:"_blank",rel:"noopener",isLink:!0},OMAPI.i18n.view_all," →")))}v.propTypes={allDisabled:n().bool,onToggle:n().func};var h=p((function(t){return{onToggle:function(e){return document.body.classList.toggle("om-campaigns-disabled",!!e),t("core/editor").editPost({meta:{om_disable_all_campaigns:!!e}})}}})),_=!1;const d=h(s((function(t){var e=a()(t("core/editor").getEditedPostAttribute("meta"),"om_disable_all_campaigns",!1);return _||(_=!0,document.body.classList.toggle("om-campaigns-disabled",!!e)),{allDisabled:e}}))((function(e){var r=e.allDisabled,n=e.onToggle;return(0,t.createElement)(v,{allDisabled:r,onToggle:n})})));wp.editPost.PluginDocumentSettingPanel&&wp.plugins.registerPlugin("om-global-post-settings",{render:d,icon:null,priority:999})})()})();