Server IP : 192.158.238.246 / Your IP : 3.17.135.12 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/gutenkit-blocks-addon/build/admin/popup-builder/ |
Upload File : |
(()=>{var t={5338:(t,e,i)=>{"use strict";var n=i(5795);e.H=n.createRoot,n.hydrateRoot},5795:t=>{"use strict";t.exports=window.ReactDOM},6942:(t,e)=>{var i;!function(){"use strict";var n={}.hasOwnProperty;function s(){for(var t="",e=0;e<arguments.length;e++){var i=arguments[e];i&&(t=o(t,u(i)))}return t}function u(t){if("string"==typeof t||"number"==typeof t)return t;if("object"!=typeof t)return"";if(Array.isArray(t))return s.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes("[native code]"))return t.toString();var e="";for(var i in t)n.call(t,i)&&t[i]&&(e=o(e,i));return e}function o(t,e){return e?t?t+" "+e:t+e:t}t.exports?(s.default=s,t.exports=s):void 0===(i=function(){return s}.apply(e,[]))||(t.exports=i)}()}},e={};function i(n){var s=e[n];if(void 0!==s)return s.exports;var u=e[n]={exports:{}};return t[n](u,u.exports,i),u.exports}i.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return i.d(e,{a:e}),e},i.d=(t,e)=>{for(var n in e)i.o(e,n)&&!i.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=i(5338);window.React;const e=window.wp.i18n,n=window.wp.apiFetch;var s=i.n(n);const u=window.wp.element,o=window.wp.url;var a=i(6942),r=i.n(a);const c=window.ReactJSXRuntime,p=function(){const t="popup-builder-block",[i,n]=(0,u.useState)("Loading..."),[a,p]=(0,u.useState)("notInstalled"),[d,M]=(0,u.useState)(r()("gkit-popup-button","gkit-popup-builder--install_plugin")),[l,w]=(0,u.useState)({}),[L,g]=(0,u.useState)([]);(0,u.useEffect)((()=>{s()({path:`/wp/v2/plugins/${t}/${t}`}).then((t=>{w(t),p(t.status),n("active"===t.status?(0,e.__)("Activated","gutenkit-blocks-addon"):(0,e.__)("Activate Now","gutenkit-blocks-addon")),M(r()(d,{activated:"active"===t.status}))})).catch((t=>{n((0,e.__)("Install Now","gutenkit-blocks-addon"))})),s()({path:"/gutenkit/v1/modules"}).then((t=>{g(t.modules)}))}),[]);const j=()=>{const t={...L,"popup-builder":{...L["popup-builder"],status:"active"}};s()({path:"/gutenkit/v1/modules",method:"POST",data:{modules:t}}).then((t=>{}))},y=()=>{const t=location.href.split("/wp-admin")[0];location.href=t+"/wp-admin/edit.php?post_type=gutenkit-popup"},v=()=>{n((0,e.__)("Activating...","gutenkit-blocks-addon")),M(r()(d,"gkit-plugin-install-activate")),s()({path:`/wp/v2/plugins/${t}/${t}`,method:"POST",data:{...l,status:"active"}}).then((t=>{n((0,e.__)("Activated","gutenkit-blocks-addon")),M(r()(d,"activated")),j(),y()})).catch((t=>{n((0,e.__)("Activate Now","gutenkit-blocks-addon")),M(r()("gkit-popup-button","gkit-popup-builder--install_plugin"))}))};return(0,c.jsxs)("div",{className:"gkit-popup-builder",children:[(0,c.jsxs)("label",{children:[(0,c.jsx)("img",{className:"gkit-popup-builder--logo",src:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MiA0MiI+CjxwYXRoIGZpbGw9IiMxMTE1MjIiIGQ9Ik0zNy40LDBINC42QzIuMSwwLDAsMi4yLDAsNXYzMmMwLDIuOCwyLjEsNSw0LjYsNWgzMi44YzIuNSwwLDQuNi0yLjIsNC42LTVWNUM0MiwyLjIsMzkuOSwwLDM3LjQsMHogTTQwLDM3CgljMCwxLjctMS4yLDMtMi42LDNINC42QzMuMiw0MCwyLDM4LjcsMiwzN1Y1YzAtMS43LDEuMi0zLDIuNi0zaDMyLjhDMzguOCwyLDQwLDMuMyw0MCw1VjM3eiBNMjksMjYuNEgxM2MtMC42LDAtMSwwLjQtMSwxCglzMC40LDEsMSwxaDE2YzAuNiwwLDEtMC40LDEtMVMyOS42LDI2LjQsMjksMjYuNHogTTMzLDE5LjRIOWMtMC42LDAtMSwwLjQtMSwxczAuNCwxLDEsMWgyNGMwLjYsMCwxLTAuNCwxLTFTMzMuNiwxOS40LDMzLDE5LjR6CgkgTTE5LjQsOS4yaDAuMmMwLjcsMCwxLjItMC42LDEuMi0xLjJzLTAuNi0xLjItMS4yLTEuMmgtMC4yYy0wLjcsMC0xLjIsMC42LTEuMiwxLjJTMTguNyw5LjIsMTkuNCw5LjJ6IE0xNC4yLDkuMmgwLjIKCWMwLjcsMCwxLjItMC42LDEuMi0xLjJzLTAuNi0xLjItMS4yLTEuMmgtMC4yQzEzLjUsNi44LDEzLDcuMywxMyw4UzEzLjUsOS4yLDE0LjIsOS4yeiBNOSw5LjJoMC4yYzAuNywwLDEuMi0wLjYsMS4yLTEuMgoJUzkuOSw2LjgsOS4yLDYuOEg5QzguMyw2LjgsNy44LDcuMyw3LjgsOFM4LjMsOS4yLDksOS4yeiIvPgo8L3N2Zz4=",alt:t}),(0,c.jsx)("p",{className:"gkit-popup-builder--description",children:(0,e.__)("Easily create and customize engaging popups to capture your audience's attention, increase conversions, and enhance user experience on your WordPress site. Intuitive and user-friendly, Popup Builder offers a wide range of design options and triggers to match your specific needs.","gutenkit-blocks-addon")})]}),(0,c.jsx)("a",{onClick:()=>{"inactive"===a?v():"notInstalled"===a&&(n("Installing..."),M(r()(d,"gkit-plugin-install-activate")),s()({path:`/wp/v2/plugins?slug=${t}&status=active`,method:"POST",parse:!1}).then((t=>{n("Activated"),M(r()(d,"activated")),j(),y()})).catch((e=>{(()=>{const e={plugin:"https://demo.wpmet.com/gutenberg/wp-content/uploads/gutenkit/popup-builder-block.zip",slug:t};s()({path:(0,o.addQueryArgs)("/gutenkit/v1/install-active-plugin",e),method:"POST"}).then((t=>{t.success&&v()}))})()})))},className:d,children:i})]})};window.addEventListener("load",(()=>{const e=document.querySelector(".gutenkit-admin-popup-builder");e&&(0,t.H)(e).render((0,c.jsx)(p,{}))}))})()})();