import { E as compilerRuntimeExports, j as jsxRuntimeExports } from "./vendor-react-DYNCg6N5.js";
import { H as HEADER_HEIGHT, c as useAppSelector, E as ErrorBoundary, L as Layout } from "./index-DfebxkL9.js";
import { c as createStyles, F as Flex, b as Box } from "./vendor-mantine-h0WlM2Mj.js";
import { P as PaymentSection, U as UsersSection, D as DiskSpaceSection } from "./index-BIbihtfI.js";
import "./vendor-i18n-wisIXUFi.js";
import "./vendor-icons-xWhXK_Ui.js";
import "./index-C7llsr9G.js";
import "./styles-3NoIlzov.js";
import "./index-DqcA8P_y.js";
import "./index-TL41xEJi.js";
import "./index-B7nmdYVM.js";
import "./utils-D5kCyTRM.js";
import "./types-B9VC9FeZ.js";
import "./validation-Ds00Zghx.js";
import "./validate-Bw-sUlFj.js";
import "./useGeneratePolicy-B4rO5xUa.js";
import "./passwordUtils-B3CN2t6O.js";
import "./types-espwwxTQ.js";
import "./options-CRIRDAK6.js";
import "./index-C-CFogWu.js";
import "./index-3c9En-DB.js";
import "./index-CfN7Ll0p.js";
import "./errorIcon-PZO0f1IY.js";
import "./index.es-BTZFX8B-.js";
import "./useUpdateUser-innD962A.js";
import "./index-C6QQOvbB.js";
import "./index-CcqTjOWY.js";
import "./useDebounce-DTubzIUC.js";
import "./index-C_Fw_IUU.js";
import "./index-_NgMYV3i.js";
import "./index-CNv4hlnY.js";
import "./index-B9yUPW9X.js";
import "./index-leRPH4yM.js";
import "./index-D4BAIihc.js";
import "./useCopyToClipboard-C-S2RacD.js";
import "./useTerminateSessions-Cb3ukMTY.js";
import "./index-DMTgSMwy.js";
import "./index-DFEP7Sv_.js";
import "./index-woYEqWvh.js";
import "./index-Ds4Bnwmy.js";
import "./date-bOIw2uwV.js";
import "./format-CMT-x-V3.js";
import "./papaparse.min-Ds9XhCoe.js";
import "./ru-Bush41s2.js";
import "./index-CUcivY9l.js";
import "./index-BvQfhnV_.js";
import "./styles-C9HVNQJ0.js";
import "./index-72JBTuLT.js";
import "./index-DnphFLKH.js";
import "./index-CslanKI5.js";
import "./styles-Dnu4P1Zm.js";
import "./index-C2HWmCvh.js";
import "./index-BWhdniX1.js";
import "./index-BoQKW1g7.js";
import "./index-zpOhy7mV.js";
import "./index-CEv9Eejp.js";
import "./validateTextInput-2E2Z5K9Z.js";
import "./index-DFZKJmic.js";
import "./index-DOixMRp5.js";
import "./passwordOptions-b-kjbiiT.js";
const useStyles = createStyles((theme) => ({
  subscriptionContainer: {
    width: "100%",
    flexGrow: 1,
    backgroundColor: "#f6f7f9",
    height: `calc(100vh - ${HEADER_HEIGHT}px)`,
    overflow: "scroll",
    padding: `${theme.spacing.md}`
  },
  flexContainer: {
    flexWrap: "wrap",
    [`@media (max-width: 735px)`]: {
      justifyContent: "center"
    }
  }
}));
const Subscription = () => {
  const $ = compilerRuntimeExports.c(12);
  const {
    classes
  } = useStyles();
  const currentUserFilial = useAppSelector(_temp) ?? 0;
  let t0;
  let t1;
  let t2;
  if ($[0] !== currentUserFilial) {
    t0 = /* @__PURE__ */ jsxRuntimeExports.jsx(PaymentSection, { filialId: currentUserFilial, paymentsDate: null, subscriptionPage: true });
    t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(UsersSection, { filialId: currentUserFilial, subscriptionPage: true });
    t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(DiskSpaceSection, { filialId: currentUserFilial, subscriptionPage: true });
    $[0] = currentUserFilial;
    $[1] = t0;
    $[2] = t1;
    $[3] = t2;
  } else {
    t0 = $[1];
    t1 = $[2];
    t2 = $[3];
  }
  let t3;
  if ($[4] !== classes.flexContainer || $[5] !== t0 || $[6] !== t1 || $[7] !== t2) {
    t3 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: "8px", className: classes.flexContainer, children: [
      t0,
      t1,
      t2
    ] });
    $[4] = classes.flexContainer;
    $[5] = t0;
    $[6] = t1;
    $[7] = t2;
    $[8] = t3;
  } else {
    t3 = $[8];
  }
  let t4;
  if ($[9] !== classes.subscriptionContainer || $[10] !== t3) {
    t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(ErrorBoundary, { componentTitle: "Subscription page", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Layout, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { className: classes.subscriptionContainer, children: t3 }) }) });
    $[9] = classes.subscriptionContainer;
    $[10] = t3;
    $[11] = t4;
  } else {
    t4 = $[11];
  }
  return t4;
};
function _temp(state) {
  var _a, _b;
  return (_b = (_a = state.userInfo) == null ? void 0 : _a.User) == null ? void 0 : _b.Customer.Id;
}
export {
  Subscription
};
//# sourceMappingURL=index-DM5_T2JW.js.map
