import { E as compilerRuntimeExports, j as jsxRuntimeExports } from "./vendor-react-DYNCg6N5.js";
import { c as createStyles, b as Box } from "./vendor-mantine-h0WlM2Mj.js";
const useStyles = createStyles((theme) => ({
  root: {
    height: "100%",
    width: "100%",
    marginBottom: theme.spacing.sm,
    backgroundColor: theme.white,
    borderRadius: theme.spacing.xs,
    padding: theme.spacing.md,
    position: "relative"
  },
  form: {
    display: "flex",
    flexDirection: "column",
    alignItems: "flex-start",
    justifyContent: "center"
  },
  title: {
    fontSize: "16px",
    marginBottom: theme.spacing.md,
    fontWeight: 600
  },
  groupButton: {
    display: "flex",
    alignItems: "center",
    justifyContent: "center",
    height: "36px",
    borderRadius: "8px",
    padding: `8px ${theme.spacing.sm}`,
    backgroundColor: theme.colors.brandGray[1],
    fontSize: "14px",
    color: "#101828",
    fontWeight: 600,
    lineHeight: "17px",
    "&:hover": {
      backgroundColor: "#eff0f4"
    },
    "&:active": {
      transform: `translateY(1px)`
    }
  },
  textField: {
    "& .mantine-TextInput-label, .mantine-InputWrapper-label": {
      color: theme.colors.brandGray[0],
      fontSize: "12px"
    }
  },
  control: {
    display: "flex",
    flexDirection: "row",
    alignItems: "center",
    justifyContent: "flex-start",
    marginTop: theme.spacing.md
  }
}));
const SectionTemplate = (t0) => {
  const $ = compilerRuntimeExports.c(11);
  const {
    title,
    children,
    dataSection
  } = t0;
  const {
    classes
  } = useStyles();
  let t1;
  if ($[0] !== classes.title || $[1] !== title) {
    t1 = title && /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { className: classes.title, children: title });
    $[0] = classes.title;
    $[1] = title;
    $[2] = t1;
  } else {
    t1 = $[2];
  }
  let t2;
  if ($[3] !== children || $[4] !== classes.form) {
    t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { className: classes.form, children });
    $[3] = children;
    $[4] = classes.form;
    $[5] = t2;
  } else {
    t2 = $[5];
  }
  let t3;
  if ($[6] !== classes.root || $[7] !== dataSection || $[8] !== t1 || $[9] !== t2) {
    t3 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { className: classes.root, "data-section": dataSection, children: [
      t1,
      t2
    ] });
    $[6] = classes.root;
    $[7] = dataSection;
    $[8] = t1;
    $[9] = t2;
    $[10] = t3;
  } else {
    t3 = $[10];
  }
  return t3;
};
export {
  SectionTemplate as S
};
//# sourceMappingURL=index-CbTPqI7c.js.map
