{"version":3,"file":"main.CqZFPE.js","sources":["theme-59/virtual:theme","theme-59/discourse/api-initializers/theme-initializer.gjs","theme-59/virtual:entrypoint:main"],"sourcesContent":["import { getObjectForTheme } from \"discourse/lib/theme-settings-store\";\n\nexport const settings = getObjectForTheme(59);\n\nexport function themePrefix(key) {\n  return `theme_translations.59.${key}`;\n}\n","import { withPluginApi } from \"discourse/lib/plugin-api\";\n\nexport default {\n  name: \"remove-right-sidebar\",\n  initialize() {\n    withPluginApi(\"1.0.0\", (api) => {\n      let interval = null;\n      \n      function cleanup() {\n        if (interval) {\n          clearInterval(interval);\n          interval = null;\n        }\n      }\n      \n      function removeSidebar() {\n        const rightSidebar = document.querySelector('.about__right-side');\n        if (rightSidebar) {\n          rightSidebar.remove();\n          cleanup(); // Stop looking once found\n          return true;\n        }\n        return false;\n      }\n      \n      function startRemoval() {\n        cleanup(); // Clear any existing interval\n        \n        // Try immediately first\n        if (!removeSidebar()) {\n          // If not found, keep trying\n          interval = setInterval(() => {\n            if (removeSidebar()) {\n              cleanup();\n            }\n          }, 100);\n        }\n      }\n      \n      // Start on initial page load\n      startRemoval();\n      \n      // Re-run on page transitions (important for Discourse)\n      api.onPageChange(() => {\n        startRemoval();\n      });\n    });\n  }\n};","import * as Mod1 from \"./discourse/api-initializers/theme-initializer\";\nconst compatModules = {\n  \"discourse/api-initializers/theme-initializer\": Mod1,\n};\nexport { compatModules };\nexport default compatModules;\n"],"names":["getObjectForTheme","themeInitializer","name","initialize","withPluginApi","api","interval","cleanup","clearInterval","removeSidebar","rightSidebar","document","querySelector","remove","startRemoval","setInterval","onPageChange","compatModules"],"mappings":";AAEwBA,EAAkB;;ACA1C,IAAAC,EAAe,CACbC,KAAM,uBACNC,UAAAA;8BACEC,CAAc,QAAUC,IACtB,IAAIC,EAAW;AAEf,SAASC,IACHD,IACFE,cAAcF,GACdA,EAAW,KAEf,CAEA,SAASG,IACP,MAAMC,EAAeC,SAASC,cAAc;AAC5C,QAAIF,IACFA,EAAaG,SACbN,KACO,EAGX,CAEA,SAASO,IACPP,IAGKE,MAEHH,EAAWS,YAAY,KACjBN,KACFF,KAED,KAEP,CAGAO,IAGAT,EAAIW,aAAa,KACfF,OAGN;AC9CG,MAACG,EAAgB,CACpB;"}