import { E as compilerRuntimeExports, r as reactExports, j as jsxRuntimeExports } from "./vendor-react-DYNCg6N5.js";
import { S as Search } from "./index-CcqTjOWY.js";
import { y as SearchIcon, af as LicenseStatus, b as useActions, c as useAppSelector, ag as selectActivationParams, ah as selectDeactivationParams, ai as useGetLicensesQuery, aj as useActivateLicenseMutation, ak as useDeactivateLicenseMutation } from "./index-DfebxkL9.js";
import { c as createStyles, b as Box, T as Text, a6 as notifications, V as LoadingOverlay, a7 as Card, S as Stack, G as Group, I as Image, k as Tooltip, h as ActionIcon, B as Button, a0 as SimpleGrid, a8 as Pagination } from "./vendor-mantine-h0WlM2Mj.js";
import { u as useTranslation, i as instance } from "./vendor-i18n-wisIXUFi.js";
import { o as IconLink, p as iO, t as IQe } from "./vendor-icons-xWhXK_Ui.js";
import { u as useCopyToClipboard } from "./useCopyToClipboard-C-S2RacD.js";
import { d as drawIcon } from "./icon-draw-BHY0kAVH.js";
const useStyles = createStyles((theme, _, utils) => ({
  searchWrapper: {
    backgroundColor: theme.colors.backgroundGray[0],
    padding: "0 24px 0 24px",
    width: "100%",
    margin: "24px 0 20px 0",
    display: "flex",
    justifyContent: "space-between",
    alignItems: "flex-start",
    [utils.largerThan("xs")]: {
      alignItems: "center"
    }
  },
  search: {
    marginRight: "27px",
    "& input": {
      backgroundColor: theme.colors.backgroundGray[6],
      paddingLeft: "56px",
      height: "45px",
      fontSize: "16px"
    },
    "& .mantine-Input-section": {
      marginLeft: "15px"
    },
    [utils.smallerThan("xs")]: {
      marginBottom: 15
    }
  }
}));
const LicensesSearch = () => {
  const $ = compilerRuntimeExports.c(10);
  const {
    classes
  } = useStyles();
  const {
    t
  } = useTranslation();
  const [text, setText] = reactExports.useState("");
  const t0 = classes.searchWrapper;
  let t1;
  if ($[0] !== t) {
    t1 = t("license.searchActivations");
    $[0] = t;
    $[1] = t1;
  } else {
    t1 = $[1];
  }
  let t2;
  if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
    t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(SearchIcon, {});
    $[2] = t2;
  } else {
    t2 = $[2];
  }
  let t3;
  if ($[3] !== classes.search || $[4] !== t1 || $[5] !== text) {
    t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(Search, { fullSize: true, placeholder: t1, value: text, setSearch: setText, icon: t2, className: classes.search });
    $[3] = classes.search;
    $[4] = t1;
    $[5] = text;
    $[6] = t3;
  } else {
    t3 = $[6];
  }
  let t4;
  if ($[7] !== classes.searchWrapper || $[8] !== t3) {
    t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { className: t0, children: t3 });
    $[7] = classes.searchWrapper;
    $[8] = t3;
    $[9] = t4;
  } else {
    t4 = $[9];
  }
  return t4;
};
const iconDesktopActivatedSrc = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M35%2020V25C35%2025.442%2034.8244%2025.8659%2034.5118%2026.1785C34.1993%2026.491%2033.7754%2026.6666%2033.3333%2026.6666H6.66667C6.22464%2026.6666%205.80072%2026.491%205.48816%2026.1785C5.17559%2025.8659%205%2025.442%205%2025V8.33329C5%207.89127%205.17559%207.46734%205.48816%207.15478C5.80072%206.84222%206.22464%206.66663%206.66667%206.66663H21.6667M11.6667%2033.3333H28.3333M15%2026.6666V33.3333M25%2026.6666V33.3333'%20stroke='%23343A40'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3cpath%20d='M27.4307%209.16676L29.8612%2011.5973L34.7223%206.73621'%20stroke='%23343A40'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
const iconDesktopDeactivatedSrc = "data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M35%2020V25C35%2025.442%2034.8244%2025.8659%2034.5118%2026.1785C34.1993%2026.491%2033.7754%2026.6666%2033.3333%2026.6666H6.66667C6.22464%2026.6666%205.80072%2026.491%205.48816%2026.1785C5.17559%2025.8659%205%2025.442%205%2025V8.33329C5%207.89127%205.17559%207.46734%205.48816%207.15478C5.80072%206.84222%206.22464%206.66663%206.66667%206.66663H21.6667M11.6667%2033.3333H28.3333M15%2026.6666V33.3333M25%2026.6666V33.3333M28.3333%2013.3333L31.6667%209.99996L35%206.66663M28.3333%206.66663L35%2013.3333'%20stroke='%23C92A2A'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e";
const r7EditorIconSrc = "/assets/icon-r7-editor-D5wnw0kn.svg";
const organizerIconSrc = "data:image/svg+xml,%3csvg%20width='32'%20height='33'%20viewBox='0%200%2032%2033'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_1589_1293)'%3e%3cpath%20d='M27.846%200.5H4.15396C1.85979%200.5%200%202.35979%200%204.65396V28.346C0%2030.6402%201.85979%2032.5%204.15396%2032.5H27.846C30.1402%2032.5%2032%2030.6402%2032%2028.346V4.65396C32%202.35979%2030.1402%200.5%2027.846%200.5Z'%20fill='%2322B8CF'/%3e%3cpath%20d='M24.7547%206.99658H7.24526C6.18866%206.99658%205.3313%207.85394%205.3313%208.91054V24.0834C5.3313%2025.14%206.18866%2025.9973%207.24526%2025.9973H24.7547C25.8113%2025.9973%2026.6687%2025.14%2026.6687%2024.0834V8.91054C26.6687%207.85394%2025.8113%206.99658%2024.7547%206.99658ZM25.28%2024.0834C25.28%2024.3732%2025.0445%2024.6087%2024.7547%2024.6087H7.24526C6.95545%2024.6087%206.71998%2024.3732%206.71998%2024.0834V8.91054C6.71998%208.62073%206.95545%208.38526%207.24526%208.38526H24.7547C25.0445%208.38526%2025.28%208.62073%2025.28%208.91054V24.0834Z'%20fill='white'/%3e%3cpath%20d='M23.2331%2010.3535H17.2256C16.8452%2010.3535%2016.5312%2010.6614%2016.5312%2011.0479C16.5312%2011.4343%2016.8392%2011.7422%2017.2256%2011.7422H23.2331C23.6135%2011.7422%2023.9275%2011.4343%2023.9275%2011.0479C23.9275%2010.6614%2023.6196%2010.3535%2023.2331%2010.3535Z'%20fill='white'/%3e%3cpath%20d='M23.2331%2013.125H17.2256C16.8452%2013.125%2016.5312%2013.4329%2016.5312%2013.8193C16.5312%2014.2058%2016.8392%2014.5137%2017.2256%2014.5137H23.2331C23.6135%2014.5137%2023.9275%2014.2058%2023.9275%2013.8193C23.9275%2013.4329%2023.6196%2013.125%2023.2331%2013.125Z'%20fill='white'/%3e%3cpath%20d='M23.2331%2015.9023H17.2256C16.8452%2015.9023%2016.5312%2016.2103%2016.5312%2016.5967C16.5312%2016.9831%2016.8392%2017.291%2017.2256%2017.291H23.2331C23.6135%2017.291%2023.9275%2016.9831%2023.9275%2016.5967C23.9275%2016.2103%2023.6196%2015.9023%2023.2331%2015.9023Z'%20fill='white'/%3e%3cpath%20d='M23.2331%2018.6736H17.2256C16.8452%2018.6736%2016.5312%2018.9815%2016.5312%2019.3679C16.5312%2019.7543%2016.8392%2020.0623%2017.2256%2020.0623H23.2331C23.6135%2020.0623%2023.9275%2019.7543%2023.9275%2019.3679C23.9275%2018.9815%2023.6196%2018.6736%2023.2331%2018.6736Z'%20fill='white'/%3e%3cpath%20d='M23.2331%2021.4448H17.2256C16.8452%2021.4448%2016.5312%2021.7527%2016.5312%2022.1392C16.5312%2022.5256%2016.8392%2022.8335%2017.2256%2022.8335H23.2331C23.6135%2022.8335%2023.9275%2022.5256%2023.9275%2022.1392C23.9275%2021.7527%2023.6196%2021.4448%2023.2331%2021.4448Z'%20fill='white'/%3e%3cpath%20d='M13.6694%2010.3535H9.72674C8.99617%2010.3535%208.39844%2010.9513%208.39844%2011.6818V15.9565C8.39844%2016.6871%208.99617%2017.2848%209.72674%2017.2848H13.6694C14.3999%2017.2848%2014.9977%2016.6871%2014.9977%2015.9565V11.6818C14.9977%2010.9513%2014.3999%2010.3535%2013.6694%2010.3535ZM13.615%2015.8962H9.78712V11.7362H13.615V15.8962Z'%20fill='white'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_1589_1293'%3e%3crect%20width='32'%20height='32'%20fill='white'%20transform='translate(0%200.5)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
const organizerProIconSrc = "/assets/icon-organizer-pro-DdN2J65f.svg";
const productTypesMap = {
  DTB: {
    src: r7EditorIconSrc,
    label: instance.t("license.editorDesktop")
  },
  DAU: {
    src: r7EditorIconSrc,
    label: instance.t("license.auroraDesktop")
  },
  DTP: {
    src: organizerIconSrc,
    label: instance.t("license.organiser")
  },
  DTR: {
    src: organizerProIconSrc,
    label: instance.t("license.organiserPro")
  },
  DGR: {
    src: drawIcon,
    label: instance.t("license.desktopDraw")
  }
};
const LicensesList = (t0) => {
  const $ = compilerRuntimeExports.c(36);
  const {
    isActive,
    isLoading,
    data,
    page,
    total,
    onActionClick,
    onPageChange
  } = t0;
  const {
    copy
  } = useCopyToClipboard();
  const {
    t
  } = useTranslation();
  let t1;
  if ($[0] !== copy || $[1] !== t) {
    t1 = async (text) => {
      await copy(text);
      notifications.show({
        message: t("license.copied")
      });
    };
    $[0] = copy;
    $[1] = t;
    $[2] = t1;
  } else {
    t1 = $[2];
  }
  const handleCopyText = t1;
  let t2;
  if ($[3] !== isLoading) {
    t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(LoadingOverlay, { visible: isLoading });
    $[3] = isLoading;
    $[4] = t2;
  } else {
    t2 = $[4];
  }
  let t3;
  if ($[5] !== isActive || $[6] !== t) {
    t3 = isActive ? t("license.activated") : t("license.deactivated");
    $[5] = isActive;
    $[6] = t;
    $[7] = t3;
  } else {
    t3 = $[7];
  }
  let t4;
  if ($[8] !== t3) {
    t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { fz: 18, fw: 500, children: t3 });
    $[8] = t3;
    $[9] = t4;
  } else {
    t4 = $[9];
  }
  let t5;
  if ($[10] !== data.length) {
    t5 = !data.length && /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: "Лицензий нет" });
    $[10] = data.length;
    $[11] = t5;
  } else {
    t5 = $[11];
  }
  let t6;
  if ($[12] !== data || $[13] !== handleCopyText || $[14] !== isActive || $[15] !== onActionClick || $[16] !== t) {
    let t72;
    if ($[18] !== handleCopyText || $[19] !== isActive || $[20] !== onActionClick || $[21] !== t) {
      t72 = (item) => /* @__PURE__ */ jsxRuntimeExports.jsx(Card, { withBorder: true, radius: "md", padding: "sm", children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { gap: "xs", children: [
        /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { gap: "sm", children: [
          /* @__PURE__ */ jsxRuntimeExports.jsx(Image, { src: isActive ? iconDesktopActivatedSrc : iconDesktopDeactivatedSrc }),
          /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { gap: 2, children: [
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", fw: 500, children: item.OperatingSystem }),
            /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { gap: "xs", children: [
              /* @__PURE__ */ jsxRuntimeExports.jsx(Image, { w: 20, src: productTypesMap[item.ProductType].src }),
              /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", children: productTypesMap[item.ProductType].label })
            ] })
          ] })
        ] }),
        /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { gap: 2, children: [
          /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { gap: "xs", children: [
            /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { size: "sm", c: "dimmed", children: [
              t("license.device"),
              ":"
            ] }),
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: item.MachineId.slice(0, 10) }),
            !!item.InstallationGuid && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
              /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: item.InstallationGuid }),
              /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { withArrow: true, label: t("copy"), children: /* @__PURE__ */ jsxRuntimeExports.jsx(ActionIcon, { color: "dark", size: "sm", mt: -4, onClick: () => handleCopyText(item.InstallationGuid), children: /* @__PURE__ */ jsxRuntimeExports.jsx(IconLink, { size: 16 }) }) })
            ] })
          ] }),
          /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { gap: "xs", children: [
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: "IP-adress:" }),
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: item.MachineIp })
          ] }),
          /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { gap: "xs", children: [
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: "Host name:" }),
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: item.MachineHostname }),
            /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { size: "sm", c: "dimmed", children: [
              isActive ? t("license.activationDate") : t("license.deactivationDate"),
              ":"
            ] }),
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: new Date(item.StartDate).toLocaleDateString() })
          ] }),
          /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { gap: "xs", children: [
            /* @__PURE__ */ jsxRuntimeExports.jsxs(Text, { size: "sm", c: "dimmed", children: [
              t("users.status"),
              ":"
            ] }),
            /* @__PURE__ */ jsxRuntimeExports.jsx(Text, { size: "sm", c: "dimmed", children: item.Status === LicenseStatus.Active ? t("license.activeLicense") : t("license.deactiveLicense") })
          ] }),
          /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { children: [
            !isActive && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "transparent", px: 0, fw: 400, onClick: () => onActionClick(item), leftSection: /* @__PURE__ */ jsxRuntimeExports.jsx(iO, {}), children: t("license.activate") }),
            isActive && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { variant: "transparent", color: "red", px: 0, fw: 400, onClick: () => onActionClick(item), leftSection: /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: IQe, sx: {
              transform: "rotate(90deg)"
            } }), children: t("license.deactivate") })
          ] })
        ] })
      ] }) }, item.Id);
      $[18] = handleCopyText;
      $[19] = isActive;
      $[20] = onActionClick;
      $[21] = t;
      $[22] = t72;
    } else {
      t72 = $[22];
    }
    t6 = data.map(t72);
    $[12] = data;
    $[13] = handleCopyText;
    $[14] = isActive;
    $[15] = onActionClick;
    $[16] = t;
    $[17] = t6;
  } else {
    t6 = $[17];
  }
  let t7;
  if ($[23] !== t5 || $[24] !== t6) {
    t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs(SimpleGrid, { cols: 3, children: [
      t5,
      t6
    ] });
    $[23] = t5;
    $[24] = t6;
    $[25] = t7;
  } else {
    t7 = $[25];
  }
  let t8;
  if ($[26] === Symbol.for("react.memo_cache_sentinel")) {
    t8 = {
      root: {
        alignSelf: "center"
      }
    };
    $[26] = t8;
  } else {
    t8 = $[26];
  }
  let t9;
  if ($[27] !== onPageChange || $[28] !== page || $[29] !== total) {
    t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(Pagination, { size: "sm", value: page, total, onChange: onPageChange, styles: t8 });
    $[27] = onPageChange;
    $[28] = page;
    $[29] = total;
    $[30] = t9;
  } else {
    t9 = $[30];
  }
  let t10;
  if ($[31] !== t2 || $[32] !== t4 || $[33] !== t7 || $[34] !== t9) {
    t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { bg: "white", p: "sm", pos: "relative", children: [
      t2,
      t4,
      t7,
      t9
    ] });
    $[31] = t2;
    $[32] = t4;
    $[33] = t7;
    $[34] = t9;
    $[35] = t10;
  } else {
    t10 = $[35];
  }
  return t10;
};
const Licenses = (t0) => {
  var _a, _b, _c, _d, _e, _f, _g, _h;
  const $ = compilerRuntimeExports.c(39);
  const {
    withSearch: t1
  } = t0;
  const withSearch = t1 === void 0 ? false : t1;
  const {
    t
  } = useTranslation();
  const {
    setLicenseActivationParams,
    setLicenseDeactivationParams
  } = useActions();
  const activationParams = useAppSelector(selectActivationParams);
  const deactivationParams = useAppSelector(selectDeactivationParams);
  const activated = useGetLicensesQuery(activationParams);
  const deactivated = useGetLicensesQuery(deactivationParams);
  const [activate] = useActivateLicenseMutation();
  const [deactivate] = useDeactivateLicenseMutation();
  let t2;
  if ($[0] !== activationParams || $[1] !== deactivationParams || $[2] !== setLicenseActivationParams || $[3] !== setLicenseDeactivationParams) {
    t2 = (page, t32) => {
      const isActivated = t32 === void 0 ? true : t32;
      return isActivated ? setLicenseActivationParams({
        ...activationParams,
        offset: activationParams.count * (page - 1)
      }) : setLicenseDeactivationParams({
        ...deactivationParams,
        offset: deactivationParams.count * (page - 1)
      });
    };
    $[0] = activationParams;
    $[1] = deactivationParams;
    $[2] = setLicenseActivationParams;
    $[3] = setLicenseDeactivationParams;
    $[4] = t2;
  } else {
    t2 = $[4];
  }
  const handlePageChange = t2;
  let t3;
  if ($[5] !== activate || $[6] !== deactivate || $[7] !== t) {
    t3 = async (item, t42) => {
      const isActivated_0 = t42 === void 0 ? true : t42;
      if (isActivated_0) {
        await deactivate(item.Id);
        notifications.show({
          message: t("license.deactivateLicense"),
          color: "green"
        });
      } else {
        await activate({
          InstallationGuid: item.InstallationGuid,
          MachineHostname: item.MachineHostname,
          MachineId: item.MachineId,
          MachineIp: item.MachineIp,
          OperatingSystem: item.OperatingSystem,
          ProductType: item.ProductType,
          ProductVersion: item.ProductVersion,
          GroupId: item.GroupId,
          SubscriptionId: item.SubscriptionId
        });
        notifications.show({
          message: t("license.activateLicense"),
          color: "green"
        });
      }
    };
    $[5] = activate;
    $[6] = deactivate;
    $[7] = t;
    $[8] = t3;
  } else {
    t3 = $[8];
  }
  const handleActionClick = t3;
  let t4;
  if ($[9] !== withSearch) {
    t4 = withSearch && /* @__PURE__ */ jsxRuntimeExports.jsx(LicensesSearch, {});
    $[9] = withSearch;
    $[10] = t4;
  } else {
    t4 = $[10];
  }
  const t5 = activated.isLoading;
  let t6;
  if ($[11] !== ((_a = activated.data) == null ? void 0 : _a.Items)) {
    t6 = ((_b = activated.data) == null ? void 0 : _b.Items) ?? [];
    $[11] = (_c = activated.data) == null ? void 0 : _c.Items;
    $[12] = t6;
  } else {
    t6 = $[12];
  }
  const t7 = activationParams.offset / activationParams.count + 1;
  const t8 = Math.ceil((((_d = activated.data) == null ? void 0 : _d.TotalCount) ?? 0) / 2);
  let t9;
  if ($[13] !== activated.isLoading || $[14] !== handleActionClick || $[15] !== handlePageChange || $[16] !== t6 || $[17] !== t7 || $[18] !== t8) {
    t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(LicensesList, { isActive: true, isLoading: t5, data: t6, page: t7, total: t8, onPageChange: handlePageChange, onActionClick: handleActionClick });
    $[13] = activated.isLoading;
    $[14] = handleActionClick;
    $[15] = handlePageChange;
    $[16] = t6;
    $[17] = t7;
    $[18] = t8;
    $[19] = t9;
  } else {
    t9 = $[19];
  }
  const t10 = deactivated.isLoading;
  let t11;
  if ($[20] !== ((_e = deactivated.data) == null ? void 0 : _e.Items)) {
    t11 = ((_f = deactivated.data) == null ? void 0 : _f.Items) ?? [];
    $[20] = (_g = deactivated.data) == null ? void 0 : _g.Items;
    $[21] = t11;
  } else {
    t11 = $[21];
  }
  const t12 = deactivationParams.offset / deactivationParams.count + 1;
  const t13 = Math.ceil((((_h = deactivated.data) == null ? void 0 : _h.TotalCount) ?? 0) / 2);
  let t14;
  if ($[22] !== handlePageChange) {
    t14 = (page_0) => handlePageChange(page_0, false);
    $[22] = handlePageChange;
    $[23] = t14;
  } else {
    t14 = $[23];
  }
  let t15;
  if ($[24] !== handleActionClick) {
    t15 = (item_0) => handleActionClick(item_0, false);
    $[24] = handleActionClick;
    $[25] = t15;
  } else {
    t15 = $[25];
  }
  let t16;
  if ($[26] !== deactivated.isLoading || $[27] !== t11 || $[28] !== t12 || $[29] !== t13 || $[30] !== t14 || $[31] !== t15) {
    t16 = /* @__PURE__ */ jsxRuntimeExports.jsx(LicensesList, { isActive: false, isLoading: t10, data: t11, page: t12, total: t13, onPageChange: t14, onActionClick: t15 });
    $[26] = deactivated.isLoading;
    $[27] = t11;
    $[28] = t12;
    $[29] = t13;
    $[30] = t14;
    $[31] = t15;
    $[32] = t16;
  } else {
    t16 = $[32];
  }
  let t17;
  if ($[33] !== t16 || $[34] !== t9) {
    t17 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { gap: "sm", children: [
      t9,
      t16
    ] });
    $[33] = t16;
    $[34] = t9;
    $[35] = t17;
  } else {
    t17 = $[35];
  }
  let t18;
  if ($[36] !== t17 || $[37] !== t4) {
    t18 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { w: "100%", children: [
      t4,
      t17
    ] });
    $[36] = t17;
    $[37] = t4;
    $[38] = t18;
  } else {
    t18 = $[38];
  }
  return t18;
};
export {
  Licenses
};
//# sourceMappingURL=index-BmZnwe2q.js.map
