import{a as m,f as r,j as e}from"./FontSizeProvider-Cy0K7gvl.js";import{e as c}from"./trash-2-Dx96Ty-c.js";import{I as x}from"./SaveButton-DAQL8oi6.js";const o=({hideBorder:a})=>{const{t:s}=m("settings"),[l,n]=r("chatWithWebsiteEmbedding",!1),[i,d]=r("maxWebsiteContext",7028);return e.jsxs("div",{children:[e.jsxs("div",{className:"mb-5",children:[e.jsx("h2",{className:`${a?"text-md":"text-base font-semibold leading-7"} text-gray-900 dark:text-white`,children:s("generalSettings.sidepanelRag.heading")}),!a&&e.jsx("div",{className:"border border-b border-gray-200 dark:border-gray-600 mt-3"})]}),e.jsxs("div",{className:`${a?"":"text-sm"} space-y-4`,children:[e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between space-y-4 sm:space-y-0",children:[e.jsx("span",{className:"text-gray-700  truncate dark:text-neutral-50",children:s("generalSettings.sidepanelRag.ragEnabled.label")}),e.jsx("div",{children:e.jsx(c,{className:"mt-4 sm:mt-0",checked:l,onChange:t=>n(t)})})]}),e.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between space-y-4 sm:space-y-0",children:[e.jsx("span",{className:"text-gray-700 truncate dark:text-neutral-50",children:s("generalSettings.sidepanelRag.maxWebsiteContext.label")}),e.jsx("div",{children:e.jsx(x,{className:"mt-4 sm:mt-0",value:i,onChange:t=>d(t),placeholder:s("generalSettings.sidepanelRag.maxWebsiteContext.placeholder")})})]})]})]})};export{o as S};
