/home/silvwabw/public_html/wp-content/plugins/gutenverse/assets/js/dashboard.js
/*! For license information please see dashboard.js.LICENSE.txt */
(()=>{"use strict";function e(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}function n(n,t){if(n){if("string"==typeof n)return e(n,t);var r={}.toString.call(n).slice(8,-1);return"Object"===r&&n.constructor&&(r=n.constructor.name),"Map"===r||"Set"===r?Array.from(n):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(n,t):void 0}}function t(t){return function(n){if(Array.isArray(n))return e(n)}(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}const r=window.wp.hooks,i=window.wp.i18n,s=window.ReactJSXRuntime;var o=function(){var e=window.GutenverseDashboard.gutenverseAssetURL;return(0,s.jsxs)("div",{className:"custom-notice-header",children:[(0,s.jsx)("img",{src:"".concat(e,"/img/upgrade-notice-3.2.0-bg-hero-notice.webp")}),(0,s.jsxs)("h3",{className:"upgrade-notice-title",children:[(0,i.__)("Gutenverse","gutenverse")," ",(0,s.jsx)("span",{children:(0,i.__)("Version 3.4.0","gutenverse")}),(0,s.jsxs)("svg",{width:"30",height:"32",viewBox:"0 0 30 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M10.887 21.774c2.28-6.758 4.13-8.606 10.887-10.887C15.016 8.607 13.168 6.757 10.887 0 8.607 6.757 6.757 8.606 0 10.887c6.757 2.28 8.606 4.13 10.887 10.887z",fill:"url(#170g7q8f6a)"}),(0,s.jsx)("path",{d:"M23.371 20.121c-1.244 3.687-2.253 4.695-5.94 5.94 3.687 1.244 4.696 2.252 5.94 5.939 1.244-3.687 2.253-4.695 5.94-5.94-3.687-1.244-4.696-2.252-5.94-5.939z",fill:"url(#whjndz5ptb)"}),(0,s.jsxs)("defs",{children:[(0,s.jsxs)("linearGradient",{id:"170g7q8f6a",x1:"2.844",y1:"-8.404",x2:"32.507",y2:"36.419",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#65DCF5"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#65DCF5",stopOpacity:"0"})]}),(0,s.jsxs)("linearGradient",{id:"whjndz5ptb",x1:"18.983",y1:"15.537",x2:"35.165",y2:"39.989",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{stopColor:"#65DCF5"}),(0,s.jsx)("stop",{offset:"1",stopColor:"#65DCF5",stopOpacity:"0"})]})]})]})]})]})},a=function(){var e=window.GutenverseDashboard.gutenverseAssetURL;return(0,s.jsxs)("div",{className:"inner-content",children:[(0,s.jsxs)("div",{className:"intro-section",children:[(0,s.jsx)("img",{className:"hero-image",src:"".concat(e,"/img/update-notice-3.4.0-notice-hero-speed.png"),alt:"Performance Improvements"}),(0,s.jsx)("h2",{children:(0,i.__)("Performance Improvements & Optimizations","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("This update brings several performance-focused improvements, including SVG icon support, optimized CSS and JavaScript loading, improved pagination for SEO, and a more efficient styling cache mechanism.","gutenverse")})]}),(0,s.jsxs)("div",{className:"feature-section image-left",children:[(0,s.jsx)("div",{className:"feature-image",children:(0,s.jsx)("img",{src:"".concat(e,"/img/update-notice-3.4.0-notice-svg.png"),alt:"SVG Icons"})}),(0,s.jsxs)("div",{className:"feature-text",children:[(0,s.jsx)("h3",{children:(0,i.__)("SVG Icons","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("We've been working on making Gutenverse even better and one of the improvements is giving you the option to use SVG icons instead of webfonts. This update helps deliver faster initial page loads, eliminates unused icons and extra bloat, and improves SEO through stronger Core Web Vitals.","gutenverse")})]})]}),(0,s.jsxs)("div",{className:"feature-section image-right",children:[(0,s.jsxs)("div",{className:"feature-text",children:[(0,s.jsx)("h3",{children:(0,i.__)("CSS & JS Optimization","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("CSS and JavaScript files now load only when the related block or feature is used. This significantly reduces rendered code, resulting in faster loading times and better overall performance scores.","gutenverse")})]}),(0,s.jsx)("div",{className:"feature-image",children:(0,s.jsx)("img",{src:"".concat(e,"/img/update-notice-3.4.0-notice-css.png"),alt:"CSS & JS Optimization"})})]}),(0,s.jsxs)("div",{className:"feature-section image-left",children:[(0,s.jsx)("div",{className:"feature-image",children:(0,s.jsx)("img",{src:"".concat(e,"/img/update-notice-3.4.0-notice-pagination.png"),alt:"Post Block Pagination For SEO"})}),(0,s.jsxs)("div",{className:"feature-text",children:[(0,s.jsx)("h3",{children:(0,i.__)("Post Block Pagination For SEO","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("Post block pagination has been optimized with a cleaner structure and improved underlying code, helping paginated content be crawled and indexed more effectively by search engines.","gutenverse")})]})]}),(0,s.jsxs)("div",{className:"feature-section image-right",children:[(0,s.jsxs)("div",{className:"feature-text",children:[(0,s.jsx)("h3",{children:(0,i.__)("Improve Styling Cache Mechanism","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("This has been improved to ensure styles load instantly on subsequent visits. By reducing repeated style generation and unnecessary processing, pages feel smoother and more responsive, helping improve the user experience and strengthen Core Web Vitals scores.","gutenverse")})]}),(0,s.jsx)("div",{className:"feature-image",children:(0,s.jsx)("img",{src:"".concat(e,"/img/update-notice-3.4.0-notice-cache.png"),alt:"Styling Cache Mechanism"})})]})]})},c=function(){return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"gutenverse-banner-notice",children:[(0,s.jsx)("h3",{children:(0,i.__)("Enjoy Using Gutenverse?","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("Hi! It’s been a while since you used Gutenverse, if Gutenverse has helped your site, we’d love it if you left us a rating — Thanks a lot!","gutenverse")}),(0,s.jsx)("div",{className:"gutenverse-notice-action",children:(0,s.jsx)("a",{href:"https://wordpress.org/support/plugin/gutenverse/reviews/#new-post",target:"_blank",rel:"noreferrer",className:"gutenverse-notice-action-button",children:(0,i.__)("Yes, You deserve ★★★★★","gutenverse")})})]})})},l=function(e){var n=e.data.action_url;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"gutenverse-upgrade-notice-center",children:[(0,s.jsx)("h3",{children:(0,i.__)("New Gutenverse Setup!","gutenverse")}),(0,s.jsx)("p",{children:(0,i.__)("We've made some changes on v2.0.0:","gutenverse")}),(0,s.jsxs)("ol",{children:[(0,s.jsx)("li",{children:(0,s.jsxs)("p",{children:[(0,i.__)("We've separated the ","gutenverse")," ",(0,s.jsx)("strong",{children:(0,i.__)("Gutenverse Form","gutenverse")})," ",(0,i.__)("from our main plugin to speed up Gutenverse and offer more flexibility. If you were using form before, please install & activate the form plugin.","gutenverse")]})}),(0,s.jsx)("li",{children:(0,s.jsx)("p",{children:(0,i.__)("Fonticons are now loaded locally. You can find this option and download the font in the Gutenverse Settings menu.","gutenverse")})})]}),(0,s.jsx)("div",{className:"gutenverse-upgrade-action",children:(0,s.jsx)("a",{className:"button-primary upgrade-themes",href:n,children:(0,i.__)("Setup Now!","gutenverse")})})]})})},u=function(e){var n=e.data,t=n.theme_name,r=n.action_url;return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"gutenverse-page-content-notice",children:[(0,s.jsx)("h3",{children:(0,i.__)("Gutenverse Upgrade Notice!","gutenverse")}),(0,s.jsx)("p",{children:"We detect you are using ".concat(t," theme. There are some new exciting updates we want to announce. This update will required the latest version of ").concat(t," theme to work smoothly, so we recommend to update your ").concat(t," theme.")}),(0,s.jsx)("div",{className:"gutenverse-upgrade-action",children:(0,s.jsx)("a",{className:"button-primary upgrade-themes",href:r,children:(0,i.__)("Go to theme page","gutenverse")})})]})})};function d(e,n,t,r,i,s,o){try{var a=e[s](o),c=a.value}catch(e){return void t(e)}a.done?n(c):Promise.resolve(c).then(r,i)}const h=gutenverseCore.helper,v=window.wp.element,g=gutenverseCore.icons;function f(){var e,n,t="function"==typeof Symbol?Symbol:{},r=t.iterator||"@@iterator",i=t.toStringTag||"@@toStringTag";function s(t,r,i,s){var c=r&&r.prototype instanceof a?r:a,l=Object.create(c.prototype);return p(l,"_invoke",function(t,r,i){var s,a,c,l=0,u=i||[],d=!1,h={p:0,n:0,v:e,a:v,f:v.bind(e,4),d:function(n,t){return s=n,a=0,c=e,h.n=t,o}};function v(t,r){for(a=t,c=r,n=0;!d&&l&&!i&&n<u.length;n++){var i,s=u[n],v=h.p,g=s[2];t>3?(i=g===r)&&(c=s[(a=s[4])?5:(a=3,3)],s[4]=s[5]=e):s[0]<=v&&((i=t<2&&v<s[1])?(a=0,h.v=r,h.n=s[1]):v<g&&(i=t<3||s[0]>r||r>g)&&(s[4]=t,s[5]=r,h.n=g,a=0))}if(i||t>1)return o;throw d=!0,r}return function(i,u,g){if(l>1)throw TypeError("Generator is already running");for(d&&1===u&&v(u,g),a=u,c=g;(n=a<2?e:c)||!d;){s||(a?a<3?(a>1&&(h.n=-1),v(a,c)):h.n=c:h.v=c);try{if(l=2,s){if(a||(i="next"),n=s[i]){if(!(n=n.call(s,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,a<2&&(a=0)}else 1===a&&(n=s.return)&&n.call(s),a<2&&(c=TypeError("The iterator does not provide a '"+i+"' method"),a=1);s=e}else if((n=(d=h.n<0)?c:t.call(r,h))!==o)break}catch(n){s=e,a=1,c=n}finally{l=1}}return{value:n,done:d}}}(t,i,s),!0),l}var o={};function a(){}function c(){}function l(){}n=Object.getPrototypeOf;var u=[][r]?n(n([][r]())):(p(n={},r,function(){return this}),n),d=l.prototype=a.prototype=Object.create(u);function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,l):(e.__proto__=l,p(e,i,"GeneratorFunction")),e.prototype=Object.create(d),e}return c.prototype=l,p(d,"constructor",l),p(l,"constructor",c),c.displayName="GeneratorFunction",p(l,i,"GeneratorFunction"),p(d),p(d,i,"Generator"),p(d,r,function(){return this}),p(d,"toString",function(){return"[object Generator]"}),(f=function(){return{w:s,m:h}})()}function p(e,n,t,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}p=function(e,n,t,r){function s(n,t){p(e,n,function(e){return this._invoke(n,t,e)})}n?i?i(e,n,{value:t,enumerable:!r,configurable:!r,writable:!r}):e[n]=t:(s("next",0),s("throw",1),s("return",2))},p(e,n,t,r)}var m=function(){var e,t,r=(e=(0,v.useState)((0,i.__)("Install & Activate Gutenverse Form!","gutenverse")),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,n){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var r,i,s,o,a=[],c=!0,l=!1;try{if(s=(t=t.call(e)).next,0===n){if(Object(t)!==t)return;c=!1}else for(;!(c=(r=s.call(t)).done)&&(a.push(r.value),a.length!==n);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=t.return&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return a}}(e,t)||n(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.")}()),o=r[0],a=r[1],c=[{name:"Gutenverse Form",slug:"gutenverse-form",version:"",url:""}],l=function(){var e,n=(e=f().m(function e(){return f().w(function(e){for(;;)switch(e.n){case 0:return a((0,s.jsx)(g.IconLoadingSVG,{})),e.n=1,(0,h.installingPlugins)(c).then(function(){a((0,i.__)("Done!","gutenverse")),window.location.reload()}).catch(function(){alert("Something went wrong when installing the plugin")});case 1:return e.a(2)}},e)}),function(){var n=this,t=arguments;return new Promise(function(r,i){var s=e.apply(n,t);function o(e){d(s,r,i,o,a,"next",e)}function a(e){d(s,r,i,o,a,"throw",e)}o(void 0)})});return function(){return n.apply(this,arguments)}}();return(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"gutenverse-form-entries-notice",children:[(0,s.jsx)("h3",{children:(0,i.__)("Gutenverse Form Plugin Not Installed!","gutenverse")}),(0,s.jsxs)("p",{children:[(0,i.__)("To use all the features and capabilities of Gutenverse Form, you need to ","gutenverse")," ",(0,s.jsx)("strong",{children:(0,i.__)("install and activate ","gutenverse")}),(0,i.__)("the Gutenverse Form plugin to access all functionalities and enhance your experience.","gutenverse")]}),(0,s.jsx)("div",{className:"gutenverse-upgrade-action",children:(0,s.jsx)("a",{className:"button-primary upgrade-themes",onClick:l,children:o})})]})})};(0,r.addFilter)("gutenverse.dashboard.notice.header","gutenverse/dashboard/notice/header",function(e,n,t){return"gutenverse"===n&&"3.4.0"===t&&(e=(0,s.jsx)(o,{})),e},9),(0,r.addFilter)("gutenverse.dashboard.notice.content","gutenverse/dashboard/notice/content",function(e,n,t){return"gutenverse"===n&&"3.4.0"===t&&(e=(0,s.jsx)(a,{})),e}),(0,r.addFilter)("gutenverse.notification.list","gutenverse/notification/list",function(e){var n,r=window.GutenverseDashboard,i=r.assetURL,o=r.noticeActions,a={id:"gutenverse-notice-banner",show:null===(n=o["gutenverse-notice-banner"])||void 0===n?void 0:n.show,content:(0,s.jsxs)("div",{className:"gutenverse-notification",children:[(0,s.jsx)("div",{className:"gutenverse-notification-icon",children:(0,s.jsx)("img",{src:"".concat(i,"/icon/icon-notice-gutenverse.svg")})}),(0,s.jsx)("div",{className:"gutenverse-notification-inner",children:(0,s.jsx)(c,{data:o["gutenverse-notice-banner"]})})]})};return[].concat(t(e),[a])}),(0,r.addFilter)("gutenverse.notification.list","gutenverse/notification/list",function(e){var n,r=window.GutenverseDashboard.noticeActions,i={id:"gutenverse-upgrade-notice",show:null===(n=r["gutenverse-upgrade-notice"])||void 0===n?void 0:n.show,content:(0,s.jsxs)("div",{className:"gutenverse-notification",children:[(0,s.jsx)("div",{className:"gutenverse-notification-icon",children:(0,s.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"1",y:"1",width:"24",height:"24",rx:"12",fill:"#FEF0C7"}),(0,s.jsx)("rect",{x:"1",y:"1",width:"24",height:"24",rx:"12",stroke:"#FFB200"}),(0,s.jsx)("path",{d:"M13.398 8.07918C13.2423 7.7835 12.7581 7.7835 12.6024 8.07918L8.55262 15.7651C8.51616 15.834 8.49809 15.9112 8.50016 15.9892C8.50223 16.0672 8.52437 16.1433 8.56443 16.2102C8.60449 16.277 8.6611 16.3323 8.72874 16.3706C8.79638 16.4089 8.87275 16.429 8.9504 16.4288H17.05C17.1276 16.429 17.2039 16.409 17.2715 16.3707C17.3391 16.3324 17.3957 16.2771 17.4357 16.2103C17.4757 16.1435 17.4978 16.0674 17.4998 15.9895C17.5019 15.9116 17.4838 15.8344 17.4473 15.7656L13.398 8.07918ZM13.4502 15.0725H12.5502V14.1683H13.4502V15.0725ZM12.5502 13.264V11.0035H13.4502L13.4506 13.264H12.5502Z",fill:"#FFB200"})]})}),(0,s.jsx)("div",{className:"gutenverse-notification-inner",children:(0,s.jsx)(l,{data:r["gutenverse-upgrade-notice"]})})]})};return[].concat(t(e),[i])}),(0,r.addFilter)("gutenverse.notification.list","gutenverse/notification/list",function(e){var n,r=window.GutenverseDashboard.noticeActions,i={id:"gutenverse-page-content-notice",show:null===(n=r["gutenverse-page-content-notice"])||void 0===n?void 0:n.show,content:(0,s.jsxs)("div",{className:"gutenverse-notification",children:[(0,s.jsx)("div",{className:"gutenverse-notification-icon",children:(0,s.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"1",y:"1",width:"24",height:"24",rx:"12",fill:"#FEF0C7"}),(0,s.jsx)("rect",{x:"1",y:"1",width:"24",height:"24",rx:"12",stroke:"#FFB200"}),(0,s.jsx)("path",{d:"M13.398 8.07918C13.2423 7.7835 12.7581 7.7835 12.6024 8.07918L8.55262 15.7651C8.51616 15.834 8.49809 15.9112 8.50016 15.9892C8.50223 16.0672 8.52437 16.1433 8.56443 16.2102C8.60449 16.277 8.6611 16.3323 8.72874 16.3706C8.79638 16.4089 8.87275 16.429 8.9504 16.4288H17.05C17.1276 16.429 17.2039 16.409 17.2715 16.3707C17.3391 16.3324 17.3957 16.2771 17.4357 16.2103C17.4757 16.1435 17.4978 16.0674 17.4998 15.9895C17.5019 15.9116 17.4838 15.8344 17.4473 15.7656L13.398 8.07918ZM13.4502 15.0725H12.5502V14.1683H13.4502V15.0725ZM12.5502 13.264V11.0035H13.4502L13.4506 13.264H12.5502Z",fill:"#FFB200"})]})}),(0,s.jsx)("div",{className:"gutenverse-notification-inner",children:(0,s.jsx)(u,{data:r["gutenverse-page-content-notice"]})})]})};return[].concat(t(e),[i])}),(0,r.addFilter)("gutenverse.notification.list","gutenverse/notification/list",function(e){var n,r=window.GutenverseDashboard.noticeActions,i={id:"gutenverse-form-entries-notice",show:null===(n=r["gutenverse-form-entries-notice"])||void 0===n?void 0:n.show,content:(0,s.jsxs)("div",{className:"gutenverse-notification",children:[(0,s.jsx)("div",{className:"gutenverse-notification-icon",children:(0,s.jsxs)("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("rect",{x:"1",y:"1",width:"24",height:"24",rx:"12",fill:"#FEF0C7"}),(0,s.jsx)("rect",{x:"1",y:"1",width:"24",height:"24",rx:"12",stroke:"#FFB200"}),(0,s.jsx)("path",{d:"M13.398 8.07918C13.2423 7.7835 12.7581 7.7835 12.6024 8.07918L8.55262 15.7651C8.51616 15.834 8.49809 15.9112 8.50016 15.9892C8.50223 16.0672 8.52437 16.1433 8.56443 16.2102C8.60449 16.277 8.6611 16.3323 8.72874 16.3706C8.79638 16.4089 8.87275 16.429 8.9504 16.4288H17.05C17.1276 16.429 17.2039 16.409 17.2715 16.3707C17.3391 16.3324 17.3957 16.2771 17.4357 16.2103C17.4757 16.1435 17.4978 16.0674 17.4998 15.9895C17.5019 15.9116 17.4838 15.8344 17.4473 15.7656L13.398 8.07918ZM13.4502 15.0725H12.5502V14.1683H13.4502V15.0725ZM12.5502 13.264V11.0035H13.4502L13.4506 13.264H12.5502Z",fill:"#FFB200"})]})}),(0,s.jsx)("div",{className:"gutenverse-notification-inner",children:(0,s.jsx)(m,{data:r["gutenverse-form-entries-notice"]})})]})};return[].concat(t(e),[i])})})();