import{j as e,r as n}from"./client-BbMi5ewG.js";import{B as c}from"./badge-C2Ir4HoT.js";import{S as o}from"./switch-BXH9Uq5p.js";import{L as x}from"./label-1wXMewvs.js";function v({title:a,description:r,children:t,icon:s,required:i=!1,optional:l=!1,className:d=""}){return e.jsxs("div",{className:`rtrb-card overflow-hidden ${d}`,children:[(a||r)&&e.jsx("div",{className:"px-6 py-4 bg-lighter-2 border-b border-[#DAE0E5]",children:e.jsxs("div",{className:"flex items-center gap-3",children:[s&&e.jsx("div",{className:"w-10 h-10 bg-gradient-to-br from-blue-100 to-blue-50 rounded-[8px] flex items-center justify-center border border-blue-200",children:e.jsx(s,{className:"w-5 h-5 text-[#1d4ed8]"})}),e.jsxs("div",{className:"flex-1",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("h2",{className:"rtrb-title-18",children:a}),i&&e.jsx(c,{variant:"outline",className:"text-xs bg-red-50 text-red-700 border-red-200",children:"Required"}),l&&e.jsx(c,{variant:"outline",className:"text-xs",children:"Optional"})]}),r&&e.jsx("p",{className:"text-[14px] text-small-font mt-0.5",children:r})]})]})}),e.jsx("div",{className:"p-8 space-y-6",children:t})]})}const m=n.memo(({value:a,onValueChange:r,content:t})=>{const s=a==="active"||a==null,i=l=>{r(l?"active":"inactive")};return e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"grid gap-1",children:[e.jsx(x,{className:"rtrb-label",children:s?"Active":"Inactive"}),e.jsx("span",{className:"text-sm text-title2",children:s?`${t} is visible on your booking page.`:`${t} is not visible on your booking page.`})]}),e.jsx(o,{checked:s,onCheckedChange:i})]})});m.displayName="StatusSwitcher";export{v as F,m as S};
//# sourceMappingURL=StatusSwitcher-C3TepXSt.js.map
