ai-tutor-module 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -7431,6 +7431,24 @@ const Q6 = (e) => {
7431
7431
  uiView: "chat",
7432
7432
  materialsOpen: !1
7433
7433
  }),
7434
+ closeChat: () => {
7435
+ const { chats: n, activeChatId: r } = t();
7436
+ if (!r || n.length === 0) {
7437
+ e({ uiView: "sidebar" });
7438
+ return;
7439
+ }
7440
+ const a = n.findIndex((l) => l.id === r);
7441
+ if (a === -1) {
7442
+ e({ uiView: "sidebar" });
7443
+ return;
7444
+ }
7445
+ const i = n[a + 1], o = n[a - 1], s = i?.id || o?.id || null;
7446
+ e({
7447
+ activeChatId: s,
7448
+ uiView: s ? "chat" : "sidebar",
7449
+ materialsOpen: !1
7450
+ });
7451
+ },
7434
7452
  openSidebar: () => e({
7435
7453
  uiView: "sidebar"
7436
7454
  }),
@@ -51266,51 +51284,39 @@ const lN = "data:image/svg+xml,%3csvg%20width='34'%20height='34'%20viewBox='0%20
51266
51284
  backgroundColor: "#2D2D2D",
51267
51285
  borderRadius: 19
51268
51286
  }
51269
- };
51270
- function fN() {
51271
- window.parent?.postMessage(
51272
- {
51273
- type: "AI_TUTOR_MODULE_CLOSE",
51274
- payload: {
51275
- source: "ai-tutor",
51276
- timestamp: Date.now()
51277
- }
51278
- },
51279
- "*"
51280
- );
51281
- }
51282
- const hN = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.704%2015.3688L18.0735%2018.9993L21.704%2022.6299C22.3231%2023.249%2022.3231%2024.2497%2021.704%2024.8688C21.3953%2025.1776%2020.99%2025.3327%2020.5846%2025.3327C20.1793%2025.3327%2019.774%2025.1776%2019.4653%2024.8688L14.7153%2020.1188C14.0962%2019.4997%2014.0962%2018.499%2014.7153%2017.8799L19.4653%2013.1299C20.0843%2012.5108%2021.0849%2012.5108%2021.704%2013.1299C22.3231%2013.749%2022.3231%2014.7497%2021.704%2015.3688ZM34.8346%2018.9993C34.8346%2027.7298%2027.7318%2034.8327%2019.0013%2034.8327C10.2708%2034.8327%203.16797%2027.7298%203.16797%2018.9993C3.16797%2010.2688%2010.2708%203.16602%2019.0013%203.16602C27.7318%203.16602%2034.8346%2010.2688%2034.8346%2018.9993ZM31.668%2018.9993C31.668%2012.0153%2025.9854%206.33268%2019.0013%206.33268C12.0172%206.33268%206.33464%2012.0153%206.33464%2018.9993C6.33464%2025.9834%2012.0172%2031.666%2019.0013%2031.666C25.9854%2031.666%2031.668%2025.9834%2031.668%2018.9993Z'%20fill='white'/%3e%3c/svg%3e", b4 = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24.8707%2015.3688L21.2401%2018.9993L24.8707%2022.6299C25.4898%2023.249%2025.4898%2024.2497%2024.8707%2024.8688C24.5619%2025.1776%2024.1566%2025.3327%2023.7513%2025.3327C23.346%2025.3327%2022.9407%2025.1776%2022.6319%2024.8688L19.0013%2021.2381L15.3707%2024.8688C15.0619%2025.1776%2014.6566%2025.3327%2014.2513%2025.3327C13.846%2025.3327%2013.4407%2025.1776%2013.1319%2024.8688C12.5128%2024.2497%2012.5128%2023.249%2013.1319%2022.6299L16.7625%2018.9993L13.1319%2015.3688C12.5128%2014.7497%2012.5128%2013.749%2013.1319%2013.1299C13.751%2012.5108%2014.7516%2012.5108%2015.3707%2013.1299L19.0013%2016.7606L22.6319%2013.1299C23.251%2012.5108%2024.2516%2012.5108%2024.8707%2013.1299C25.4898%2013.749%2025.4898%2014.7497%2024.8707%2015.3688ZM34.8346%2014.2493V23.7493C34.8346%2029.8594%2029.863%2034.8327%2023.7513%2034.8327H14.2513C8.13964%2034.8327%203.16797%2029.8594%203.16797%2023.7493V14.2493C3.16797%208.13927%208.13964%203.16602%2014.2513%203.16602H23.7513C29.863%203.16602%2034.8346%208.13927%2034.8346%2014.2493ZM31.668%2014.2493C31.668%209.8841%2028.1166%206.33268%2023.7513%206.33268H14.2513C9.88605%206.33268%206.33464%209.8841%206.33464%2014.2493V23.7493C6.33464%2028.1146%209.88605%2031.666%2014.2513%2031.666H23.7513C28.1166%2031.666%2031.668%2028.1146%2031.668%2023.7493V14.2493Z'%20fill='white'/%3e%3c/svg%3e", Qm = () => {
51283
- const { activeChatId: e, toggleSidebar: t, sidebarOpen: n, openSidebar: r, chats: a } = Ct(
51284
- (p) => ({
51285
- activeChatId: p.activeChatId,
51286
- toggleSidebar: p.toggleSidebar,
51287
- sidebarOpen: p.sidebarOpen,
51288
- openSidebar: p.openSidebar,
51289
- chats: p.chats
51287
+ }, fN = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M21.704%2015.3688L18.0735%2018.9993L21.704%2022.6299C22.3231%2023.249%2022.3231%2024.2497%2021.704%2024.8688C21.3953%2025.1776%2020.99%2025.3327%2020.5846%2025.3327C20.1793%2025.3327%2019.774%2025.1776%2019.4653%2024.8688L14.7153%2020.1188C14.0962%2019.4997%2014.0962%2018.499%2014.7153%2017.8799L19.4653%2013.1299C20.0843%2012.5108%2021.0849%2012.5108%2021.704%2013.1299C22.3231%2013.749%2022.3231%2014.7497%2021.704%2015.3688ZM34.8346%2018.9993C34.8346%2027.7298%2027.7318%2034.8327%2019.0013%2034.8327C10.2708%2034.8327%203.16797%2027.7298%203.16797%2018.9993C3.16797%2010.2688%2010.2708%203.16602%2019.0013%203.16602C27.7318%203.16602%2034.8346%2010.2688%2034.8346%2018.9993ZM31.668%2018.9993C31.668%2012.0153%2025.9854%206.33268%2019.0013%206.33268C12.0172%206.33268%206.33464%2012.0153%206.33464%2018.9993C6.33464%2025.9834%2012.0172%2031.666%2019.0013%2031.666C25.9854%2031.666%2031.668%2025.9834%2031.668%2018.9993Z'%20fill='white'/%3e%3c/svg%3e", b4 = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%200%2038%2038'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M24.8707%2015.3688L21.2401%2018.9993L24.8707%2022.6299C25.4898%2023.249%2025.4898%2024.2497%2024.8707%2024.8688C24.5619%2025.1776%2024.1566%2025.3327%2023.7513%2025.3327C23.346%2025.3327%2022.9407%2025.1776%2022.6319%2024.8688L19.0013%2021.2381L15.3707%2024.8688C15.0619%2025.1776%2014.6566%2025.3327%2014.2513%2025.3327C13.846%2025.3327%2013.4407%2025.1776%2013.1319%2024.8688C12.5128%2024.2497%2012.5128%2023.249%2013.1319%2022.6299L16.7625%2018.9993L13.1319%2015.3688C12.5128%2014.7497%2012.5128%2013.749%2013.1319%2013.1299C13.751%2012.5108%2014.7516%2012.5108%2015.3707%2013.1299L19.0013%2016.7606L22.6319%2013.1299C23.251%2012.5108%2024.2516%2012.5108%2024.8707%2013.1299C25.4898%2013.749%2025.4898%2014.7497%2024.8707%2015.3688ZM34.8346%2014.2493V23.7493C34.8346%2029.8594%2029.863%2034.8327%2023.7513%2034.8327H14.2513C8.13964%2034.8327%203.16797%2029.8594%203.16797%2023.7493V14.2493C3.16797%208.13927%208.13964%203.16602%2014.2513%203.16602H23.7513C29.863%203.16602%2034.8346%208.13927%2034.8346%2014.2493ZM31.668%2014.2493C31.668%209.8841%2028.1166%206.33268%2023.7513%206.33268H14.2513C9.88605%206.33268%206.33464%209.8841%206.33464%2014.2493V23.7493C6.33464%2028.1146%209.88605%2031.666%2014.2513%2031.666H23.7513C28.1166%2031.666%2031.668%2028.1146%2031.668%2023.7493V14.2493Z'%20fill='white'/%3e%3c/svg%3e", Qm = () => {
51288
+ const { activeChatId: e, toggleSidebar: t, sidebarOpen: n, openSidebar: r, closeChat: a, chats: i } = Ct(
51289
+ (f) => ({
51290
+ activeChatId: f.activeChatId,
51291
+ toggleSidebar: f.toggleSidebar,
51292
+ sidebarOpen: f.sidebarOpen,
51293
+ openSidebar: f.openSidebar,
51294
+ closeChat: f.closeChat,
51295
+ chats: f.chats
51290
51296
  })
51291
- ), i = a.find((p) => p.id === e), o = window.innerWidth <= 768, [s, l] = Te.useState(!1), [u, c] = Te.useState(!1);
51292
- if (!i) return null;
51293
- const d = i.messages.length === 0;
51297
+ ), o = i.find((f) => f.id === e), s = window.innerWidth <= 768, [l, u] = Te.useState(!1), [c, d] = Te.useState(!1);
51298
+ if (!o) return null;
51299
+ const p = o.messages.length === 0;
51294
51300
  return /* @__PURE__ */ D.jsxs("div", { style: pa.page, children: [
51295
- /* @__PURE__ */ D.jsx(ex, { chatId: i.id }),
51301
+ /* @__PURE__ */ D.jsx(ex, { chatId: o.id }),
51296
51302
  /* @__PURE__ */ D.jsxs("div", { style: pa.container, children: [
51297
51303
  /* @__PURE__ */ D.jsxs("div", { style: pa.topControls, children: [
51298
51304
  /* @__PURE__ */ D.jsx(
51299
51305
  "button",
51300
51306
  {
51301
51307
  onClick: () => {
51302
- o ? r() : t();
51308
+ s ? r() : t();
51303
51309
  },
51304
- onMouseEnter: () => l(!0),
51305
- onMouseLeave: () => l(!1),
51310
+ onMouseEnter: () => u(!0),
51311
+ onMouseLeave: () => u(!1),
51306
51312
  style: {
51307
51313
  ...pa.icon,
51308
- background: s ? "#333333" : "transparent"
51314
+ background: l ? "#333333" : "transparent"
51309
51315
  },
51310
51316
  children: /* @__PURE__ */ D.jsx(
51311
51317
  "img",
51312
51318
  {
51313
- src: hN,
51319
+ src: fN,
51314
51320
  width: 38,
51315
51321
  height: 38,
51316
51322
  alt: "To sidebar",
@@ -51326,12 +51332,12 @@ const hN = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%20
51326
51332
  /* @__PURE__ */ D.jsx(
51327
51333
  "button",
51328
51334
  {
51329
- onClick: fN,
51330
- onMouseEnter: () => c(!0),
51331
- onMouseLeave: () => c(!1),
51335
+ onClick: a,
51336
+ onMouseEnter: () => d(!0),
51337
+ onMouseLeave: () => d(!1),
51332
51338
  style: {
51333
51339
  ...pa.icon,
51334
- background: u ? "#333333" : "transparent"
51340
+ background: c ? "#333333" : "transparent"
51335
51341
  },
51336
51342
  children: /* @__PURE__ */ D.jsx(
51337
51343
  "img",
@@ -51339,15 +51345,15 @@ const hN = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%20
51339
51345
  src: b4,
51340
51346
  width: 38,
51341
51347
  height: 38,
51342
- alt: "Close module",
51348
+ alt: "Close Chat",
51343
51349
  style: { display: "block" }
51344
51350
  }
51345
51351
  )
51346
51352
  }
51347
51353
  )
51348
51354
  ] }),
51349
- d ? /* @__PURE__ */ D.jsx(pN, {}) : /* @__PURE__ */ D.jsx(iN, { chatId: i.id }),
51350
- /* @__PURE__ */ D.jsx(dN, { chatId: i.id })
51355
+ p ? /* @__PURE__ */ D.jsx(pN, {}) : /* @__PURE__ */ D.jsx(iN, { chatId: o.id }),
51356
+ /* @__PURE__ */ D.jsx(dN, { chatId: o.id })
51351
51357
  ] })
51352
51358
  ] });
51353
51359
  }, pa = {
@@ -51386,7 +51392,7 @@ const hN = "data:image/svg+xml,%3csvg%20width='38'%20height='38'%20viewBox='0%20
51386
51392
  WebkitAppearance: "none"
51387
51393
  }
51388
51394
  };
51389
- async function gN() {
51395
+ async function hN() {
51390
51396
  return await new Promise((e) => setTimeout(e, 400)), {
51391
51397
  materials: [
51392
51398
  {
@@ -51407,14 +51413,14 @@ async function gN() {
51407
51413
  ]
51408
51414
  };
51409
51415
  }
51410
- async function mN() {
51411
- return gN();
51416
+ async function gN() {
51417
+ return hN();
51412
51418
  }
51413
- const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%2016C13.0012%2016.6571%2012.8729%2017.3079%2012.6224%2017.9153C12.3718%2018.5227%2012.0041%2019.0748%2011.54%2019.54L10.12%2021C9.17703%2021.9108%207.91402%2022.4148%206.60304%2022.4034C5.29205%2022.392%204.03799%2021.8661%203.11095%2020.9391C2.18391%2020.0121%201.65807%2018.758%201.64667%2017.447C1.63528%2016.136%202.13925%2014.873%203.05004%2013.93L4.46004%2012.51C4.9211%2012.037%205.47133%2011.6599%206.07894%2011.4008C6.68655%2011.1416%207.33949%2011.0054%208.00004%2011C8.26526%2011%208.51961%2011.1054%208.70715%2011.2929C8.89469%2011.4804%209.00004%2011.7348%209.00004%2012C9.00004%2012.2652%208.89469%2012.5196%208.70715%2012.7071C8.51961%2012.8947%208.26526%2013%208.00004%2013C7.20466%2013.0007%206.44211%2013.3172%205.88004%2013.88L4.46004%2015.29C3.89646%2015.8536%203.57984%2016.618%203.57984%2017.415C3.57984%2018.212%203.89646%2018.9764%204.46004%2019.54C5.02363%2020.1036%205.78801%2020.4202%206.58504%2020.4202C7.38207%2020.4202%208.14646%2020.1036%208.71004%2019.54L10.12%2018.12C10.6828%2017.5579%2010.9993%2016.7954%2011%2016C11%2015.7348%2011.1054%2015.4804%2011.2929%2015.2929C11.4805%2015.1054%2011.7348%2015%2012%2015C12.2653%2015%2012.5196%2015.1054%2012.7072%2015.2929C12.8947%2015.4804%2013%2015.7348%2013%2016ZM22.41%206.59001C22.4098%205.60186%2022.1168%204.63593%2021.568%203.81418C21.0192%202.99244%2020.2393%202.35173%2019.3266%201.97296C18.4139%201.5942%2017.4095%201.49436%2016.4401%201.68605C15.4707%201.87774%2014.5799%202.35237%2013.88%203.05001L12.46%204.46001C11.996%204.9252%2011.6282%205.47728%2011.3777%206.0847C11.1272%206.69212%2010.9989%207.34296%2011%208.00001C11%208.26522%2011.1054%208.51958%2011.2929%208.70711C11.4805%208.89465%2011.7348%209.00001%2012%209.00001C12.2653%209.00001%2012.5196%208.89465%2012.7072%208.70711C12.8947%208.51958%2013%208.26522%2013%208.00001C13.0007%207.20463%2013.3173%206.44208%2013.88%205.88001L15.29%204.46001C15.5691%204.18095%2015.9004%203.95959%2016.265%203.80856C16.6296%203.65754%2017.0204%203.5798%2017.415%203.5798C17.8097%203.5798%2018.2005%203.65754%2018.5651%203.80856C18.9297%203.95959%2019.261%204.18095%2019.54%204.46001C19.8191%204.73907%2020.0405%205.07036%2020.1915%205.43497C20.3425%205.79957%2020.4202%206.19036%2020.4202%206.58501C20.4202%206.97966%2020.3425%207.37044%2020.1915%207.73505C20.0405%208.09966%2019.8191%208.43095%2019.54%208.71001L18.12%2010.12C17.558%2010.6828%2016.7954%2010.9993%2016%2011C15.7348%2011%2015.4805%2011.1054%2015.2929%2011.2929C15.1054%2011.4804%2015%2011.7348%2015%2012C15%2012.2652%2015.1054%2012.5196%2015.2929%2012.7071C15.4805%2012.8947%2015.7348%2013%2016%2013C16.6571%2013.0012%2017.3079%2012.8728%2017.9153%2012.6223C18.5228%2012.3718%2019.0749%2012.004%2019.54%2011.54L21%2010.12C21.9164%209.17485%2022.4231%207.90641%2022.41%206.59001ZM8.29004%2015.71C8.38301%2015.8037%208.49361%2015.8781%208.61547%2015.9289C8.73733%2015.9797%208.86803%2016.0058%209.00004%2016.0058C9.13206%2016.0058%209.26276%2015.9797%209.38462%2015.9289C9.50648%2015.8781%209.61708%2015.8037%209.71004%2015.71L15.71%209.71001C15.8983%209.5217%2016.0041%209.26631%2016.0041%209.00001C16.0041%208.73371%2015.8983%208.47831%2015.71%208.29001C15.5217%208.1017%2015.2663%207.99592%2015%207.99592C14.7337%207.99592%2014.4783%208.1017%2014.29%208.29001L8.29004%2014.29C8.19631%2014.383%208.12192%2014.4936%208.07115%2014.6154C8.02038%2014.7373%207.99425%2014.868%207.99425%2015C7.99425%2015.132%208.02038%2015.2627%208.07115%2015.3846C8.12192%2015.5064%208.19631%2015.617%208.29004%2015.71Z'%20fill='white'/%3e%3c/svg%3e", Jm = () => {
51419
+ const mN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M13%2016C13.0012%2016.6571%2012.8729%2017.3079%2012.6224%2017.9153C12.3718%2018.5227%2012.0041%2019.0748%2011.54%2019.54L10.12%2021C9.17703%2021.9108%207.91402%2022.4148%206.60304%2022.4034C5.29205%2022.392%204.03799%2021.8661%203.11095%2020.9391C2.18391%2020.0121%201.65807%2018.758%201.64667%2017.447C1.63528%2016.136%202.13925%2014.873%203.05004%2013.93L4.46004%2012.51C4.9211%2012.037%205.47133%2011.6599%206.07894%2011.4008C6.68655%2011.1416%207.33949%2011.0054%208.00004%2011C8.26526%2011%208.51961%2011.1054%208.70715%2011.2929C8.89469%2011.4804%209.00004%2011.7348%209.00004%2012C9.00004%2012.2652%208.89469%2012.5196%208.70715%2012.7071C8.51961%2012.8947%208.26526%2013%208.00004%2013C7.20466%2013.0007%206.44211%2013.3172%205.88004%2013.88L4.46004%2015.29C3.89646%2015.8536%203.57984%2016.618%203.57984%2017.415C3.57984%2018.212%203.89646%2018.9764%204.46004%2019.54C5.02363%2020.1036%205.78801%2020.4202%206.58504%2020.4202C7.38207%2020.4202%208.14646%2020.1036%208.71004%2019.54L10.12%2018.12C10.6828%2017.5579%2010.9993%2016.7954%2011%2016C11%2015.7348%2011.1054%2015.4804%2011.2929%2015.2929C11.4805%2015.1054%2011.7348%2015%2012%2015C12.2653%2015%2012.5196%2015.1054%2012.7072%2015.2929C12.8947%2015.4804%2013%2015.7348%2013%2016ZM22.41%206.59001C22.4098%205.60186%2022.1168%204.63593%2021.568%203.81418C21.0192%202.99244%2020.2393%202.35173%2019.3266%201.97296C18.4139%201.5942%2017.4095%201.49436%2016.4401%201.68605C15.4707%201.87774%2014.5799%202.35237%2013.88%203.05001L12.46%204.46001C11.996%204.9252%2011.6282%205.47728%2011.3777%206.0847C11.1272%206.69212%2010.9989%207.34296%2011%208.00001C11%208.26522%2011.1054%208.51958%2011.2929%208.70711C11.4805%208.89465%2011.7348%209.00001%2012%209.00001C12.2653%209.00001%2012.5196%208.89465%2012.7072%208.70711C12.8947%208.51958%2013%208.26522%2013%208.00001C13.0007%207.20463%2013.3173%206.44208%2013.88%205.88001L15.29%204.46001C15.5691%204.18095%2015.9004%203.95959%2016.265%203.80856C16.6296%203.65754%2017.0204%203.5798%2017.415%203.5798C17.8097%203.5798%2018.2005%203.65754%2018.5651%203.80856C18.9297%203.95959%2019.261%204.18095%2019.54%204.46001C19.8191%204.73907%2020.0405%205.07036%2020.1915%205.43497C20.3425%205.79957%2020.4202%206.19036%2020.4202%206.58501C20.4202%206.97966%2020.3425%207.37044%2020.1915%207.73505C20.0405%208.09966%2019.8191%208.43095%2019.54%208.71001L18.12%2010.12C17.558%2010.6828%2016.7954%2010.9993%2016%2011C15.7348%2011%2015.4805%2011.1054%2015.2929%2011.2929C15.1054%2011.4804%2015%2011.7348%2015%2012C15%2012.2652%2015.1054%2012.5196%2015.2929%2012.7071C15.4805%2012.8947%2015.7348%2013%2016%2013C16.6571%2013.0012%2017.3079%2012.8728%2017.9153%2012.6223C18.5228%2012.3718%2019.0749%2012.004%2019.54%2011.54L21%2010.12C21.9164%209.17485%2022.4231%207.90641%2022.41%206.59001ZM8.29004%2015.71C8.38301%2015.8037%208.49361%2015.8781%208.61547%2015.9289C8.73733%2015.9797%208.86803%2016.0058%209.00004%2016.0058C9.13206%2016.0058%209.26276%2015.9797%209.38462%2015.9289C9.50648%2015.8781%209.61708%2015.8037%209.71004%2015.71L15.71%209.71001C15.8983%209.5217%2016.0041%209.26631%2016.0041%209.00001C16.0041%208.73371%2015.8983%208.47831%2015.71%208.29001C15.5217%208.1017%2015.2663%207.99592%2015%207.99592C14.7337%207.99592%2014.4783%208.1017%2014.29%208.29001L8.29004%2014.29C8.19631%2014.383%208.12192%2014.4936%208.07115%2014.6154C8.02038%2014.7373%207.99425%2014.868%207.99425%2015C7.99425%2015.132%208.02038%2015.2627%208.07115%2015.3846C8.12192%2015.5064%208.19631%2015.617%208.29004%2015.71Z'%20fill='white'/%3e%3c/svg%3e", Jm = () => {
51414
51420
  const e = Ct((p) => p.closeMaterials), [t, n] = Ze(!1), [r, a] = Ze(null), [i, o] = Ze([]), [s, l] = Ze(!0), [u, c] = Ze(null);
51415
51421
  je(() => {
51416
51422
  const p = new AbortController();
51417
- return mN({ signal: p.signal }).then((f) => {
51423
+ return gN({ signal: p.signal }).then((f) => {
51418
51424
  o(f.materials);
51419
51425
  }).catch((f) => {
51420
51426
  f.name !== "AbortError" && c("Не удалось загрузить материалы");
@@ -51460,7 +51466,7 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51460
51466
  children: /* @__PURE__ */ D.jsx(
51461
51467
  "img",
51462
51468
  {
51463
- src: bN,
51469
+ src: mN,
51464
51470
  width: 24,
51465
51471
  height: 24,
51466
51472
  alt: "Open link"
@@ -51535,7 +51541,7 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51535
51541
  appearance: "none",
51536
51542
  WebkitAppearance: "none"
51537
51543
  }
51538
- }, yN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.7777%2015.1242V9.32029M9.87577%2012.2223H15.6797M12.7777%2020.4445C17.3187%2020.4445%2021%2016.7633%2021%2012.2223C21%207.68124%2017.3187%204%2012.7777%204C8.23672%204%204.55548%207.68124%204.55548%2012.2223C4.55548%2013.1412%204.70624%2014.025%204.98437%2014.8501C5.08903%2015.1606%205.14136%2015.3159%205.1508%2015.4351C5.16013%2015.553%205.15308%2015.6356%205.12394%2015.75C5.09443%2015.866%205.02928%2015.9866%204.89898%2016.2278L3.31676%2019.1564C3.09108%2019.5741%202.97823%2019.783%203.00348%2019.9442C3.02548%2020.0846%203.10812%2020.2082%203.22945%2020.2822C3.36875%2020.3672%203.60489%2020.3428%204.07719%2020.294L9.03088%2019.7819C9.18089%2019.7664%209.2559%2019.7587%209.32427%2019.7613C9.39151%2019.7638%209.43898%2019.7702%209.50455%2019.7853C9.57122%2019.8007%209.65506%2019.833%209.82272%2019.8975C10.7398%2020.2509%2011.7361%2020.4445%2012.7777%2020.4445Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", vN = "data:image/svg+xml,%3csvg%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M23.75%203.75H19.3012C18.7625%203.75%2018.2863%203.40752%2018.115%202.89627L17.72%201.70868C17.3788%200.687429%2016.425%200%2015.3487%200H9.64996C8.57246%200%207.61875%200.687552%207.27875%201.71005L6.88377%202.89505C6.71377%203.4063%206.23623%203.75%205.69748%203.75H1.25C0.56%203.75%200%204.30875%200%205C0%205.69125%200.56%206.25%201.25%206.25H2.58125L3.51997%2020.3325C3.69372%2022.95%205.88501%2025%208.50876%2025H16.4925C19.1162%2025%2021.3075%2022.9487%2021.4812%2020.3325L22.42%206.25H23.75C24.44%206.25%2025%205.69125%2025%205C25%204.30875%2024.44%203.75%2023.75%203.75ZM9.65126%202.5L15.35%202.49878L15.745%203.68622C15.7525%203.70872%2015.7637%203.7275%2015.7725%203.75H9.22997C9.23746%203.7275%209.25001%203.7075%209.25751%203.685L9.65126%202.5ZM18.9863%2020.1663C18.8988%2021.4751%2017.8037%2022.5%2016.4912%2022.5H8.50754C7.19629%2022.5%206.1%2021.4751%206.0125%2020.1663L5.08621%206.25H5.69878C5.83253%206.25%205.96372%206.23247%206.09497%206.21872C6.14872%206.22622%206.19497%206.25%206.25122%206.25H18.7512C18.8062%206.25%2018.8537%206.22497%2018.9075%206.21872C19.0387%206.23247%2019.1687%206.25%2019.3037%206.25H19.9162L18.9863%2020.1663ZM16.25%2011.25V17.5C16.25%2018.1912%2015.69%2018.75%2015%2018.75C14.31%2018.75%2013.75%2018.1912%2013.75%2017.5V11.25C13.75%2010.5588%2014.31%2010%2015%2010C15.69%2010%2016.25%2010.5588%2016.25%2011.25ZM11.25%2011.25V17.5C11.25%2018.1912%2010.69%2018.75%2010%2018.75C9.31%2018.75%208.75%2018.1912%208.75%2017.5V11.25C8.75%2010.5588%209.31%2010%2010%2010C10.69%2010%2011.25%2010.5588%2011.25%2011.25Z'%20fill='white'/%3e%3c/svg%3e", EN = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.5%202.5H7.5C6.50544%202.5%205.55161%202.89509%204.84835%203.59835C4.14509%204.30161%203.75%205.25544%203.75%206.25V23.75C3.75%2024.7446%204.14509%2025.6984%204.84835%2026.4017C5.55161%2027.1049%206.50544%2027.5%207.5%2027.5H22.5C23.4946%2027.5%2024.4484%2027.1049%2025.1517%2026.4017C25.8549%2025.6984%2026.25%2024.7446%2026.25%2023.75V6.25C26.25%205.25544%2025.8549%204.30161%2025.1517%203.59835C24.4484%202.89509%2023.4946%202.5%2022.5%202.5ZM22.5%2025H7.5C7.16848%2025%206.85054%2024.8683%206.61612%2024.6339C6.3817%2024.3995%206.25%2024.0815%206.25%2023.75V20H8.75C9.08152%2020%209.39946%2019.8683%209.63388%2019.6339C9.8683%2019.3995%2010%2019.0815%2010%2018.75C10%2018.4185%209.8683%2018.1005%209.63388%2017.8661C9.39946%2017.6317%209.08152%2017.5%208.75%2017.5H6.25V12.5H8.75C9.08152%2012.5%209.39946%2012.3683%209.63388%2012.1339C9.8683%2011.8995%2010%2011.5815%2010%2011.25C10%2010.9185%209.8683%2010.6005%209.63388%2010.3661C9.39946%2010.1317%209.08152%2010%208.75%2010H6.25V6.25C6.25%205.91848%206.3817%205.60054%206.61612%205.36612C6.85054%205.1317%207.16848%205%207.5%205H22.5C22.8315%205%2023.1495%205.1317%2023.3839%205.36612C23.6183%205.60054%2023.75%205.91848%2023.75%206.25V10H15C14.6685%2010%2014.3505%2010.1317%2014.1161%2010.3661C13.8817%2010.6005%2013.75%2010.9185%2013.75%2011.25C13.75%2011.5815%2013.8817%2011.8995%2014.1161%2012.1339C14.3505%2012.3683%2014.6685%2012.5%2015%2012.5H23.75V17.5H15C14.6685%2017.5%2014.3505%2017.6317%2014.1161%2017.8661C13.8817%2018.1005%2013.75%2018.4185%2013.75%2018.75C13.75%2019.0815%2013.8817%2019.3995%2014.1161%2019.6339C14.3505%2019.8683%2014.6685%2020%2015%2020H23.75V23.75C23.75%2024.0815%2023.6183%2024.3995%2023.3839%2024.6339C23.1495%2024.8683%2022.8315%2025%2022.5%2025Z'%20fill='white'/%3e%3c/svg%3e", wN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.587%209.17297L17%208.58606L17.001%206.36401C17.685%205.43601%2018%204.026%2018%203C18%202.448%2017.553%202%2017%202H7C6.447%202%206%202.448%206%203C6%204.026%206.315%205.43701%207%206.36401V8.58606L6.41302%209.17297C4.85702%2010.729%204%2012.798%204%2015C4%2015.266%204.10503%2015.52%204.29303%2015.707C4.48103%2015.894%204.735%2016%205%2016H11V21C11%2021.553%2011.447%2022%2012%2022C12.553%2022%2013%2021.553%2013%2021V16H19C19.553%2016%2020%2015.553%2020%2015C20%2012.798%2019.143%2010.729%2017.587%209.17297ZM6.07898%2013.999C6.28498%2012.712%206.88803%2011.526%207.82703%2010.587L8.70697%209.70703C8.89497%209.51903%209%209.265%209%209L8.99902%205.99902C8.99902%205.73302%208.89399%205.47899%208.70599%205.29199C8.46699%205.05299%208.25001%204.552%208.12201%204H15.878C15.749%204.552%2015.533%205.05297%2015.293%205.29297C15.105%205.48097%2015%205.734%2015%206V9C15%209.266%2015.105%209.52003%2015.293%209.70703L16.173%2010.587C17.112%2011.526%2017.715%2012.713%2017.921%2014L6.07898%2013.999Z'%20fill='white'/%3e%3c/svg%3e", e1 = () => {
51544
+ }, bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M12.7777%2015.1242V9.32029M9.87577%2012.2223H15.6797M12.7777%2020.4445C17.3187%2020.4445%2021%2016.7633%2021%2012.2223C21%207.68124%2017.3187%204%2012.7777%204C8.23672%204%204.55548%207.68124%204.55548%2012.2223C4.55548%2013.1412%204.70624%2014.025%204.98437%2014.8501C5.08903%2015.1606%205.14136%2015.3159%205.1508%2015.4351C5.16013%2015.553%205.15308%2015.6356%205.12394%2015.75C5.09443%2015.866%205.02928%2015.9866%204.89898%2016.2278L3.31676%2019.1564C3.09108%2019.5741%202.97823%2019.783%203.00348%2019.9442C3.02548%2020.0846%203.10812%2020.2082%203.22945%2020.2822C3.36875%2020.3672%203.60489%2020.3428%204.07719%2020.294L9.03088%2019.7819C9.18089%2019.7664%209.2559%2019.7587%209.32427%2019.7613C9.39151%2019.7638%209.43898%2019.7702%209.50455%2019.7853C9.57122%2019.8007%209.65506%2019.833%209.82272%2019.8975C10.7398%2020.2509%2011.7361%2020.4445%2012.7777%2020.4445Z'%20stroke='white'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'/%3e%3c/svg%3e", yN = "data:image/svg+xml,%3csvg%20width='25'%20height='25'%20viewBox='0%200%2025%2025'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M23.75%203.75H19.3012C18.7625%203.75%2018.2863%203.40752%2018.115%202.89627L17.72%201.70868C17.3788%200.687429%2016.425%200%2015.3487%200H9.64996C8.57246%200%207.61875%200.687552%207.27875%201.71005L6.88377%202.89505C6.71377%203.4063%206.23623%203.75%205.69748%203.75H1.25C0.56%203.75%200%204.30875%200%205C0%205.69125%200.56%206.25%201.25%206.25H2.58125L3.51997%2020.3325C3.69372%2022.95%205.88501%2025%208.50876%2025H16.4925C19.1162%2025%2021.3075%2022.9487%2021.4812%2020.3325L22.42%206.25H23.75C24.44%206.25%2025%205.69125%2025%205C25%204.30875%2024.44%203.75%2023.75%203.75ZM9.65126%202.5L15.35%202.49878L15.745%203.68622C15.7525%203.70872%2015.7637%203.7275%2015.7725%203.75H9.22997C9.23746%203.7275%209.25001%203.7075%209.25751%203.685L9.65126%202.5ZM18.9863%2020.1663C18.8988%2021.4751%2017.8037%2022.5%2016.4912%2022.5H8.50754C7.19629%2022.5%206.1%2021.4751%206.0125%2020.1663L5.08621%206.25H5.69878C5.83253%206.25%205.96372%206.23247%206.09497%206.21872C6.14872%206.22622%206.19497%206.25%206.25122%206.25H18.7512C18.8062%206.25%2018.8537%206.22497%2018.9075%206.21872C19.0387%206.23247%2019.1687%206.25%2019.3037%206.25H19.9162L18.9863%2020.1663ZM16.25%2011.25V17.5C16.25%2018.1912%2015.69%2018.75%2015%2018.75C14.31%2018.75%2013.75%2018.1912%2013.75%2017.5V11.25C13.75%2010.5588%2014.31%2010%2015%2010C15.69%2010%2016.25%2010.5588%2016.25%2011.25ZM11.25%2011.25V17.5C11.25%2018.1912%2010.69%2018.75%2010%2018.75C9.31%2018.75%208.75%2018.1912%208.75%2017.5V11.25C8.75%2010.5588%209.31%2010%2010%2010C10.69%2010%2011.25%2010.5588%2011.25%2011.25Z'%20fill='white'/%3e%3c/svg%3e", vN = "data:image/svg+xml,%3csvg%20width='30'%20height='30'%20viewBox='0%200%2030%2030'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M22.5%202.5H7.5C6.50544%202.5%205.55161%202.89509%204.84835%203.59835C4.14509%204.30161%203.75%205.25544%203.75%206.25V23.75C3.75%2024.7446%204.14509%2025.6984%204.84835%2026.4017C5.55161%2027.1049%206.50544%2027.5%207.5%2027.5H22.5C23.4946%2027.5%2024.4484%2027.1049%2025.1517%2026.4017C25.8549%2025.6984%2026.25%2024.7446%2026.25%2023.75V6.25C26.25%205.25544%2025.8549%204.30161%2025.1517%203.59835C24.4484%202.89509%2023.4946%202.5%2022.5%202.5ZM22.5%2025H7.5C7.16848%2025%206.85054%2024.8683%206.61612%2024.6339C6.3817%2024.3995%206.25%2024.0815%206.25%2023.75V20H8.75C9.08152%2020%209.39946%2019.8683%209.63388%2019.6339C9.8683%2019.3995%2010%2019.0815%2010%2018.75C10%2018.4185%209.8683%2018.1005%209.63388%2017.8661C9.39946%2017.6317%209.08152%2017.5%208.75%2017.5H6.25V12.5H8.75C9.08152%2012.5%209.39946%2012.3683%209.63388%2012.1339C9.8683%2011.8995%2010%2011.5815%2010%2011.25C10%2010.9185%209.8683%2010.6005%209.63388%2010.3661C9.39946%2010.1317%209.08152%2010%208.75%2010H6.25V6.25C6.25%205.91848%206.3817%205.60054%206.61612%205.36612C6.85054%205.1317%207.16848%205%207.5%205H22.5C22.8315%205%2023.1495%205.1317%2023.3839%205.36612C23.6183%205.60054%2023.75%205.91848%2023.75%206.25V10H15C14.6685%2010%2014.3505%2010.1317%2014.1161%2010.3661C13.8817%2010.6005%2013.75%2010.9185%2013.75%2011.25C13.75%2011.5815%2013.8817%2011.8995%2014.1161%2012.1339C14.3505%2012.3683%2014.6685%2012.5%2015%2012.5H23.75V17.5H15C14.6685%2017.5%2014.3505%2017.6317%2014.1161%2017.8661C13.8817%2018.1005%2013.75%2018.4185%2013.75%2018.75C13.75%2019.0815%2013.8817%2019.3995%2014.1161%2019.6339C14.3505%2019.8683%2014.6685%2020%2015%2020H23.75V23.75C23.75%2024.0815%2023.6183%2024.3995%2023.3839%2024.6339C23.1495%2024.8683%2022.8315%2025%2022.5%2025Z'%20fill='white'/%3e%3c/svg%3e", EN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M17.587%209.17297L17%208.58606L17.001%206.36401C17.685%205.43601%2018%204.026%2018%203C18%202.448%2017.553%202%2017%202H7C6.447%202%206%202.448%206%203C6%204.026%206.315%205.43701%207%206.36401V8.58606L6.41302%209.17297C4.85702%2010.729%204%2012.798%204%2015C4%2015.266%204.10503%2015.52%204.29303%2015.707C4.48103%2015.894%204.735%2016%205%2016H11V21C11%2021.553%2011.447%2022%2012%2022C12.553%2022%2013%2021.553%2013%2021V16H19C19.553%2016%2020%2015.553%2020%2015C20%2012.798%2019.143%2010.729%2017.587%209.17297ZM6.07898%2013.999C6.28498%2012.712%206.88803%2011.526%207.82703%2010.587L8.70697%209.70703C8.89497%209.51903%209%209.265%209%209L8.99902%205.99902C8.99902%205.73302%208.89399%205.47899%208.70599%205.29199C8.46699%205.05299%208.25001%204.552%208.12201%204H15.878C15.749%204.552%2015.533%205.05297%2015.293%205.29297C15.105%205.48097%2015%205.734%2015%206V9C15%209.266%2015.105%209.52003%2015.293%209.70703L16.173%2010.587C17.112%2011.526%2017.715%2012.713%2017.921%2014L6.07898%2013.999Z'%20fill='white'/%3e%3c/svg%3e", e1 = () => {
51539
51545
  const {
51540
51546
  chats: e,
51541
51547
  activeChatId: t,
@@ -51589,7 +51595,7 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51589
51595
  children: /* @__PURE__ */ D.jsx(
51590
51596
  "img",
51591
51597
  {
51592
- src: wN,
51598
+ src: EN,
51593
51599
  width: 24,
51594
51600
  height: 24,
51595
51601
  alt: "Pin chat",
@@ -51618,7 +51624,7 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51618
51624
  background: p ? "#2A2A2A" : "#181818"
51619
51625
  },
51620
51626
  children: [
51621
- /* @__PURE__ */ D.jsx("img", { src: yN, width: 25, height: 25, alt: "" }),
51627
+ /* @__PURE__ */ D.jsx("img", { src: bN, width: 25, height: 25, alt: "" }),
51622
51628
  "Новый чат"
51623
51629
  ]
51624
51630
  }
@@ -51635,7 +51641,7 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51635
51641
  background: h ? "#402020" : "#201010"
51636
51642
  },
51637
51643
  children: [
51638
- /* @__PURE__ */ D.jsx("img", { src: vN, width: 24, height: 24, alt: "" }),
51644
+ /* @__PURE__ */ D.jsx("img", { src: yN, width: 24, height: 24, alt: "" }),
51639
51645
  "Удалить чат"
51640
51646
  ]
51641
51647
  }
@@ -51651,7 +51657,7 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51651
51657
  background: v ? "#2A2A2A" : "#181818"
51652
51658
  },
51653
51659
  children: [
51654
- /* @__PURE__ */ D.jsx("img", { src: EN, width: 25, height: 25, alt: "" }),
51660
+ /* @__PURE__ */ D.jsx("img", { src: vN, width: 25, height: 25, alt: "" }),
51655
51661
  "Материалы"
51656
51662
  ]
51657
51663
  }
@@ -51757,14 +51763,14 @@ const bN = "data:image/svg+xml,%3csvg%20width='24'%20height='24'%20viewBox='0%20
51757
51763
  pinAnimating: {
51758
51764
  animation: "pinPop 0.3s ease"
51759
51765
  }
51760
- }, SN = typeof window < "u" && window.location.hostname === "localhost", xN = "http://85.234.22.160:1111/api/stats/module/metrics";
51766
+ }, wN = typeof window < "u" && window.location.hostname === "localhost", SN = "http://85.234.22.160:1111/api/stats/module/metrics";
51761
51767
  let zl = null;
51762
- const kN = (e) => {
51768
+ const xN = (e) => {
51763
51769
  zl = e;
51764
- }, TN = async (e) => {
51770
+ }, kN = async (e) => {
51765
51771
  if (zl)
51766
51772
  try {
51767
- const t = await fetch(xN, {
51773
+ const t = await fetch(SN, {
51768
51774
  method: "PUT",
51769
51775
  headers: {
51770
51776
  "Content-Type": "application/json",
@@ -51782,7 +51788,7 @@ const kN = (e) => {
51782
51788
  console.error("[Stats] Network error", t);
51783
51789
  }
51784
51790
  };
51785
- function AN(e, t = 1e3) {
51791
+ function TN(e, t = 1e3) {
51786
51792
  let n;
51787
51793
  return (...r) => {
51788
51794
  clearTimeout(n), n = setTimeout(() => {
@@ -51790,14 +51796,14 @@ function AN(e, t = 1e3) {
51790
51796
  }, t);
51791
51797
  };
51792
51798
  }
51793
- const CN = () => {
51794
- const e = AN((n) => {
51799
+ const AN = () => {
51800
+ const e = TN((n) => {
51795
51801
  if (!n.widgetInfo?.widgetId) return;
51796
51802
  const r = n.chats.reduce(
51797
51803
  (a, i) => a + i.messages.length,
51798
51804
  0
51799
51805
  );
51800
- TN({
51806
+ kN({
51801
51807
  meta: {
51802
51808
  module: "ai-tutor",
51803
51809
  widgetId: n.widgetInfo.widgetId,
@@ -51826,7 +51832,7 @@ const CN = () => {
51826
51832
  }
51827
51833
  );
51828
51834
  };
51829
- function _N({ onOpen: e, onClose: t }) {
51835
+ function CN({ onOpen: e, onClose: t }) {
51830
51836
  const n = He(0), r = He(0), a = He(!1);
51831
51837
  return {
51832
51838
  onTouchStart: (l) => {
@@ -51847,15 +51853,15 @@ function _N({ onOpen: e, onClose: t }) {
51847
51853
  }
51848
51854
  };
51849
51855
  }
51850
- const RN = () => {
51856
+ const NN = () => {
51851
51857
  const e = Ct((l) => l.closeSidebar), t = Ct((l) => l.sidebarOpen), n = Ct((l) => l.materialsOpen), r = Ct((l) => l.uiView), a = typeof window < "u" && window.innerWidth <= 768;
51852
51858
  je(() => {
51853
- const l = CN();
51859
+ const l = AN();
51854
51860
  return () => {
51855
51861
  l?.();
51856
51862
  };
51857
51863
  }, []);
51858
- const i = Ct((l) => l.openSidebar), o = Ct((l) => l.openChat), s = _N({
51864
+ const i = Ct((l) => l.openSidebar), o = Ct((l) => l.openChat), s = CN({
51859
51865
  onOpen: () => {
51860
51866
  a && r !== "sidebar" && i?.();
51861
51867
  },
@@ -51864,7 +51870,7 @@ const RN = () => {
51864
51870
  }
51865
51871
  });
51866
51872
  return /* @__PURE__ */ D.jsx(z6, { children: /* @__PURE__ */ D.jsxs("div", { className: "ai-tutor-root", ...s, children: [
51867
- !SN && /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
51873
+ !wN && /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
51868
51874
  /* @__PURE__ */ D.jsx(Hr, { type: "target", position: ge.Left }),
51869
51875
  /* @__PURE__ */ D.jsx(Hr, { type: "source", position: ge.Right })
51870
51876
  ] }),
@@ -51895,12 +51901,12 @@ const RN = () => {
51895
51901
  right: "100%",
51896
51902
  top: 0
51897
51903
  }
51904
+ }, RN = (e) => {
51905
+ xN(e);
51898
51906
  }, ON = (e) => {
51899
- kN(e);
51900
- }, LN = (e) => {
51901
51907
  };
51902
51908
  export {
51903
- ON as acceptToken,
51904
- RN as default,
51905
- LN as getInfo
51909
+ RN as acceptToken,
51910
+ NN as default,
51911
+ ON as getInfo
51906
51912
  };
package/package.json CHANGED
@@ -1,15 +1,17 @@
1
1
  {
2
2
  "name": "ai-tutor-module",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.es.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "private": false,
8
- "files": ["dist"],
8
+ "files": [
9
+ "dist"
10
+ ],
9
11
  "peerDependencies": {
10
- "@xyflow/react": "^12.0.0",
11
- "react": "^18.0.0",
12
- "react-dom": "^18.0.0"
12
+ "@xyflow/react": ">=12",
13
+ "react": ">=18",
14
+ "react-dom": ">=18"
13
15
  },
14
16
  "devDependencies": {
15
17
  "@vitejs/plugin-react": "^5.1.2",
@@ -27,4 +29,4 @@
27
29
  "remark-gfm": "^4.0.1",
28
30
  "remark-math": "^6.0.0"
29
31
  }
30
- }
32
+ }