import{j as t,b6 as l,ak as c,T as h,at as g,W as e}from"./vendor-mui-core-CKKG_1TN.js";import{r as u}from"./vendor-react-CTtPmzVP.js";import{R as w}from"./required-DHjZE3-Y.js";function j({title:a,desc:s="",link:n="",sectionLeftSx:x={width:"384px"},sectionRightSx:d={},children:m,required:f=!1,orientation:i="horizontal",hideTitle:r=!1,...p}){const o=u.useMemo(()=>!n||typeof s!="string"?s:s?s.replace(/<b>(.*?)<\/b>/g,`<a href="${n}" target="_blank" rel="noopener noreferrer">$1</a>`):"",[s,n]);return t.jsx(y,{...p,children:t.jsxs(l,{className:"section",direction:i==="vertical"&&!r?"column":{sm:"column",md:"row"},sx:{gap:i==="vertical"?.5:{xs:3,md:6}},children:[r?null:t.jsxs(c,{className:"section-left",sx:x,children:[t.jsxs(h,{className:"section-title",children:[a," ",f&&t.jsx(w,{})]}),o&&typeof o=="string"?t.jsx(c,{className:"section-desc",sx:{color:"text.secondary"},dangerouslySetInnerHTML:{__html:o}}):o]}),t.jsx(l,{className:"section-content",direction:i==="vertical"&&!r?"column":{sm:"column",md:"row"},sx:{width:"100%",...d},children:m})]})})}j.propTypes={title:e.string.isRequired,children:e.node.isRequired,desc:e.oneOfType([e.string,e.node]),sectionLeftSx:e.object,sectionRightSx:e.object,link:e.node,required:e.bool,orientation:e.string,hideTitle:e.bool};const y=g(c)`
  display: flex;
  align-items: flex-start;
  width: 100%;

  .section {
    width: 100%;

    .section-left {
      flex-shrink: 0;
      flex-grow: 0;
    }

    .section-title {
      font-weight: 500;
      line-height: 32px;
    }

    .section-desc {
      font-weight: normal;
      font-size: 12px;
      white-space: pre-line;
    }

    .section-content {
      flex-grow: 1;
      align-self: center;
    }
  }

  @media (max-width: 900px) {
    .section-left {
      width: 100%;
    }

    .section-content {
      width: 100% !important;
    }
  }
`;export{j as S};
