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