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