import{j as e}from"./react-vendor-MPLM8hiW.js";import{a as m,p}from"./index-saDuzM6I.js";import{p as g,n as r}from"./pluginAdminHelpers-BaIhTGH8.js";import{P as u}from"./PluginConfigForm-BlNoy5Cc.js";import{F as d}from"./vendor-CwCtuXvS.js";import"./tanstack-vendor-Dk_RmDT8.js";import"./radix-vendor-aVdTdbL0.js";import"./icons-vendor-H2PpUqT3.js";function w(){const{pluginSlug:n,"*":i}=d(),{t:o}=m(),s=p(t=>t.getAllSettingsSections)().find(t=>{const l=g(t.pluginName),a=r(t.path),c=r(i);return l===n&&a===c});return s?e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-semibold",children:s.label}),s.description&&e.jsx("p",{className:"text-text-secondary",children:s.description})]}),s.type==="iframe"&&s.src?e.jsx("iframe",{src:s.src,title:s.label,className:"w-full min-h-[500px] border-0 rounded-lg",sandbox:"allow-scripts allow-forms allow-popups",referrerPolicy:"no-referrer"}):e.jsx(u,{configSchema:s.pluginConfigSchema,config:s.pluginConfig,pluginDisplayName:s.pluginDisplayName})]}):e.jsx("div",{className:"space-y-6",children:e.jsxs("div",{children:[e.jsx("h2",{className:"text-xl font-semibold",children:o("errors.notFound")}),e.jsxs("p",{className:"text-text-secondary",children:[o("pluginUi.settingsNotFound"),": ",n,"/",i]})]})})}export{w as PluginSettingsRenderer};
