| 2 |
(()=>{"use strict";var e={1020(e,r,s){var o=s(1594),a=Symbol.for("react.element"),l=(Symbol.for("react.fragment"),Object.prototype.hasOwnProperty),n=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,t={key:!0,ref:!0,__self:!0,__source:!0};function i(e,r,s){var o,i={},c=null,d=null;for(o in void 0!==s&&(c=""+s),void 0!==r.key&&(c=""+r.key),void 0!==r.ref&&(d=r.ref),r)l.call(r,o)&&!t.hasOwnProperty(o)&&(i[o]=r[o]);if(e&&e.defaultProps)for(o in r=e.defaultProps)void 0===i[o]&&(i[o]=r[o]);return{$$typeof:a,type:e,key:c,ref:d,props:i,_owner:n.current}}r.jsx=i,r.jsxs=i},4848(e,r,s){e.exports=s(1020)},1594(e){e.exports=React}};const r={};function s(o){const a=r[o];if(void 0!==a)return a.exports;const l=r[o]={exports:{}};return e[o](l,l.exports,s),l.exports}const o=wp.element;s(1594);const a=wp.i18n;var l=s(4848);const n=new URLSearchParams(window.location.search).get("page"),t=()=>(0,l.jsx)("div",{className:"bs-tab-list",children:i.map((e,r)=>{const s=e.page;return(0,l.jsxs)("a",{href:e.link,target:e.target,className:"bs-tab "+(n===s?"bs-active-tab":""),children:[(0,l.jsx)("i",{className:e.icon})," ",e.title]},r)})}),i=[{title:(0,a.__)("Home","blockspare"),page:"blockspare",link:blockspare_dashboard.adminUrl,target:"_self",icon:"dashicons dashicons-admin-home"},{title:(0,a.__)("AI Settings","blockspare"),page:"blockspare-ai",link:blockspare_dashboard.blockspareAi,target:"_self",icon:"dashicons dashicons-superhero"},{title:(0,a.__)("Site Builder","blockspare"),page:"blockspare-theme-builder",link:blockspare_dashboard.blockspareThemeBuilder,target:"_self",icon:"dashicons dashicons-hammer"},{title:(0,a.__)("Starter Templates","blockspare"),page:"bspare-starter-sites",link:blockspare_dashboard.starterUrl,target:"_self",icon:"dashicons dashicons-excerpt-view"},{title:(0,a.__)("All Blocks","blockspare"),page:"bs-blocks",link:blockspare_dashboard.exploreUrl,target:"_self",icon:"dashicons dashicons-screenoptions"},{title:(0,a.__)("My Templates","blockspare"),page:"bs_templates",link:blockspare_dashboard.templateUrl,target:"_self",icon:"dashicons dashicons-store"},{title:(0,a.__)("Compare Free & Pro","blockspare"),page:"bs-free-pro",link:`${blockspare_dashboard.freevspro}`,target:"_self",icon:"dashicons dashicons-info"},{title:(0,a.__)("Docs","blockspare"),link:blockspare_dashboard.docsUrl,target:"_blank",icon:"dashicons dashicons-media-text"},{title:(0,a.__)("Support","blockspare"),link:"https://afthemes.com/supports/",target:"_blank",icon:"dashicons dashicons-hammer"}],c=()=>(new URLSearchParams(window.location.search).get("page"),window.location.hash,(0,l.jsx)("div",{class:"blockspare-dashboard",style:{minHeight:"0vh"},children:(0,l.jsx)("header",{children:(0,l.jsx)("div",{className:"blockspare-dashboard__container",children:(0,l.jsxs)("div",{className:"navigation-wrapper",children:[(0,l.jsx)("div",{className:"plugin-logo",onClick:()=>{window.location.href=blockspare_dashboard.adminUrl}}),(0,l.jsx)(t,{})]})})})})),d=()=>(0,l.jsx)("footer",{className:"bs-footer",children:(0,l.jsxs)("div",{className:"bs-footer-top navigation-wrapper",children:[(0,l.jsx)("div",{className:"bs-footer-brand plugin-logo",onClick:()=>{window.location.href=blockspare_dashboard.adminUrl},children:(0,l.jsxs)("p",{children:[" ",(0,a.__)("The Ultimate Gutenberg Toolkit for Publishers","blockspare")]})}),(0,l.jsxs)("div",{className:"bs-footer-links",children:[(0,l.jsxs)("h4",{children:[" ",(0,a.__)("Resources","blockspare")]}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:blockspare_dashboard.docsUrl,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Documentation","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:blockspare_dashboard.channel,target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Video Tutorials","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://afthemes.com/supports/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Support","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://wordpress.org/plugins/blockspare/#developers",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Changelog","blockspare")})})]})]}),(0,l.jsxs)("div",{className:"bs-footer-links",children:[(0,l.jsxs)("h4",{children:[" ",(0,a.__)("Company","blockspare")]}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://afthemes.com/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("About AF Themes","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://afthemes.com/products/category/pro/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Our Themes","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://afthemes.com/blog/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Blog","blockspare")})})]})]}),(0,l.jsxs)("div",{className:"bs-footer-links",children:[(0,l.jsxs)("h4",{children:[" ",(0,a.__)("Community","blockspare")]}),(0,l.jsxs)("ul",{children:[(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://www.facebook.com/afthemes/",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Facebook Group","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://www.youtube.com/@blockspare",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Youtube Channel","blockspare")})}),(0,l.jsx)("li",{children:(0,l.jsx)("a",{href:"https://x.com/afthemes",target:"_blank",rel:"noopener noreferrer",children:(0,a.__)("Follow on Twitter","blockspare")})})]})]}),(0,l.jsxs)("div",{className:"bs-footer-subscribe",children:[(0,l.jsxs)("h4",{children:[" ",(0,a.__)("Ready to Build with Full Site Editing?","blockspare")]}),(0,l.jsxs)("p",{children:[" ",(0,a.__)("Build lightning-fast news, magazine, and blog websites using NewSpare—our modern Full Site Editing WordPress theme designed for publishers.","blockspare")]}),(0,l.jsxs)("button",{className:"components-button is-primary",onClick:()=>window.open("https://downloads.wordpress.org/theme/newspare.zip","_blank","noopener,noreferrer"),children:[" ",(0,a.__)("Download NewSpare →","blockspare")]})]})]})}),p=()=>(0,l.jsx)(d,{});document.addEventListener("DOMContentLoaded",()=>{const e=document.getElementById("bs-ai-dashboard-header");e&&(0,o.createRoot)(e).render((0,l.jsx)(c,{}));const r=document.getElementById("bs-ai-dashboard-footer");r&&(0,o.createRoot)(r).render((0,l.jsx)(p,{}));const s=document.getElementById("bs-ai-dashboard-loader"),a=document.querySelector(".bs-ai-dashboard-content");s&&(s.style.display="none"),a&&(a.style.display="")})})(); |