"use strict";(self.webpackChunkreally_simple_ssl=self.webpackChunkreally_simple_ssl||[]).push([[588],{3588:(e,s,m)=>{m.r(s),m.d(s,{default:()=>c});var t=m(1609);const l=()=>(0,t.createElement)("div",{className:"rsssl-wizard-menu rsssl-grid-item rsssl-menu-placeholder"},(0,t.createElement)("div",{className:"rsssl-grid-item-header"},(0,t.createElement)("h1",{className:"rsssl-h4"})),(0,t.createElement)("div",{className:"rsssl-grid-item-content"}));var n=m(7723),a=m(2043);const r=e=>{const{selectedSubMenuItem:s,selectedMainMenuItem:m,subMenu:l,menu:i}=(0,a.A)(),c=u(s,e.menuItem);let d=c?" rsssl-active":"";d+=e.menuItem.featured?" rsssl-featured":"",d+=e.menuItem.new?" rsssl-new":"",d+=e.menuItem.premium&&!rsssl_settings.pro_plugin_active?" rsssl-premium":"";let E=e.menuItem.directLink||"#"+m+"/"+e.menuItem.id;return(0,t.createElement)(t.Fragment,null,e.menuItem.visible&&(0,t.createElement)(t.Fragment,null,e.isMainMenu?(0,t.createElement)("div",{className:"rsssl-main-menu"},(0,t.createElement)("div",{className:"rsssl-menu-item"+d},(0,t.createElement)("a",{href:E},(0,t.createElement)("span",null,e.menuItem.title),e.menuItem.featured&&(0,t.createElement)("span",{className:"rsssl-menu-item-beta-pill"},(0,n.__)("Beta","really-simple-ssl")),e.menuItem.new&&(0,t.createElement)("span",{className:"rsssl-menu-item-new-pill"},(0,n.__)("New","really-simple-ssl"))))):(0,t.createElement)("div",{className:"rsssl-menu-item"+d},(0,t.createElement)("a",{href:E},(0,t.createElement)("span",null,e.menuItem.title),e.menuItem.featured&&(0,t.createElement)("span",{className:"rsssl-menu-item-beta-pill"},(0,n.__)("Beta","really-simple-ssl")),e.menuItem.new&&(0,t.createElement)("span",{className:"rsssl-menu-item-new-pill"},(0,n.__)("New","really-simple-ssl")))),e.menuItem.menu_items&&c&&(0,t.createElement)("div",{className:"rsssl-submenu-item"},(p=e.menuItem.menu_items,Array.isArray(p)?p:[p]).map(((e,s)=>e.visible&&(0,t.createElement)(r,{key:"submenuItem"+s,menuItem:e,isMainMenu:!1}))))));var p},i=r,u=(e,s)=>{if(e===s.id)return!0;if(s.menu_items)for(const m of s.menu_items)if(m.id===e)return!0;return!1},c=()=>{const{subMenu:e,subMenuLoaded:s}=(0,a.A)();return s?(0,t.createElement)("div",{className:"rsssl-wizard-menu rsssl-grid-item"},(0,t.createElement)("div",{className:"rsssl-grid-item-header"},(0,t.createElement)("h1",{className:"rsssl-h4"},e.title)),(0,t.createElement)("div",{className:"rsssl-grid-item-content"},(0,t.createElement)("div",{className:"rsssl-wizard-menu-items"},e.menu_items.map(((e,s)=>(0,t.createElement)(i,{key:"menuItem-"+s,menuItem:e,isMainMenu:!0}))))),(0,t.createElement)("div",{className:"rsssl-grid-item-footer"})):(0,t.createElement)(l,null)}}}]);