vue-layout-gitcode 1.6.3 → 1.6.5

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.
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-B-CtPJz6.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CqnevwX-.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-B_i8_2h4.js";
7
- import "./transWebUrl-CB3TqE09.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-DcZZV-ZX.js";
7
+ import "./transWebUrl-DBjAAWaT.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { q as useLayoutConfig, w as ThemeType, x as currentTheme, g as LANG_ZH, y as LANG_EN, z as getLocaleLang, G as GIcon, A as emitEvent, B as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-CqnevwX-.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, C as _sfc_main$1, D as loadAsideData, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, F as asideRequest, _ as _export_sfc } from "./index-CqnevwX-.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CB3TqE09.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DBjAAWaT.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { a as i18n, q as useLayoutConfig, G as GIcon, A as emitEvent, s as setLoginTriggerSource, d as useRequestReport, _ as _export_sfc } from "./index-CqnevwX-.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-CB3TqE09.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DBjAAWaT.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-B-CtPJz6.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-CqnevwX-.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CqnevwX-.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-CqnevwX-.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-B_i8_2h4.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-DcZZV-ZX.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-CqnevwX-.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-B-CtPJz6.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-CqnevwX-.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon } from "./index-B-CtPJz6.js";
2
+ import { a as i18n, h as headRequest, G as GIcon } from "./index-CqnevwX-.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
1
+ import { defineComponent, computed as computed$1, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -64,7 +64,7 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
64
64
  },
65
65
  setup(__props) {
66
66
  const props = __props;
67
- const fontSize = computed(() => {
67
+ const fontSize = computed$1(() => {
68
68
  return /px$/i.test(props.size) ? props.size : `${props.size}px`;
69
69
  });
70
70
  return (_ctx, _cache) => {
@@ -5549,14 +5549,14 @@ function createComposer(options = {}, VueI18nLegacy) {
5549
5549
  _numberFormats.value
5550
5550
  ];
5551
5551
  }
5552
- const locale2 = computed({
5552
+ const locale2 = computed$1({
5553
5553
  get: () => _locale.value,
5554
5554
  set: (val) => {
5555
5555
  _locale.value = val;
5556
5556
  _context.locale = _locale.value;
5557
5557
  }
5558
5558
  });
5559
- const fallbackLocale = computed({
5559
+ const fallbackLocale = computed$1({
5560
5560
  get: () => _fallbackLocale.value,
5561
5561
  set: (val) => {
5562
5562
  _fallbackLocale.value = val;
@@ -5564,9 +5564,9 @@ function createComposer(options = {}, VueI18nLegacy) {
5564
5564
  updateFallbackLocale(_context, _locale.value, val);
5565
5565
  }
5566
5566
  });
5567
- const messages = computed(() => _messages.value);
5568
- const datetimeFormats = /* @__PURE__ */ computed(() => _datetimeFormats.value);
5569
- const numberFormats = /* @__PURE__ */ computed(() => _numberFormats.value);
5567
+ const messages = computed$1(() => _messages.value);
5568
+ const datetimeFormats = /* @__PURE__ */ computed$1(() => _datetimeFormats.value);
5569
+ const numberFormats = /* @__PURE__ */ computed$1(() => _numberFormats.value);
5570
5570
  function getPostTranslationHandler() {
5571
5571
  return isFunction$1(_postTranslation) ? _postTranslation : null;
5572
5572
  }
@@ -7278,7 +7278,7 @@ function useI18nForLegacy(instance, scope, root, options = {}) {
7278
7278
  _numberFormats.value
7279
7279
  ];
7280
7280
  }
7281
- const locale2 = computed({
7281
+ const locale2 = computed$1({
7282
7282
  get: () => {
7283
7283
  return _composer.value ? _composer.value.locale.value : _locale.value;
7284
7284
  },
@@ -7289,7 +7289,7 @@ function useI18nForLegacy(instance, scope, root, options = {}) {
7289
7289
  _locale.value = val;
7290
7290
  }
7291
7291
  });
7292
- const fallbackLocale = computed({
7292
+ const fallbackLocale = computed$1({
7293
7293
  get: () => {
7294
7294
  return _composer.value ? _composer.value.fallbackLocale.value : _fallbackLocale.value;
7295
7295
  },
@@ -7300,15 +7300,15 @@ function useI18nForLegacy(instance, scope, root, options = {}) {
7300
7300
  _fallbackLocale.value = val;
7301
7301
  }
7302
7302
  });
7303
- const messages = computed(() => {
7303
+ const messages = computed$1(() => {
7304
7304
  if (_composer.value) {
7305
7305
  return _composer.value.messages.value;
7306
7306
  } else {
7307
7307
  return _messages.value;
7308
7308
  }
7309
7309
  });
7310
- const datetimeFormats = computed(() => _datetimeFormats.value);
7311
- const numberFormats = computed(() => _numberFormats.value);
7310
+ const datetimeFormats = computed$1(() => _datetimeFormats.value);
7311
+ const numberFormats = computed$1(() => _numberFormats.value);
7312
7312
  function getPostTranslationHandler() {
7313
7313
  return _composer.value ? _composer.value.getPostTranslationHandler() : _postTranslation;
7314
7314
  }
@@ -11031,13 +11031,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11031
11031
  const layoutConfig2 = useLayoutConfig();
11032
11032
  const { t: t2 } = i18n.global;
11033
11033
  const props = __props;
11034
- provide("globalStore", computed(() => props.globalStore));
11034
+ provide("globalStore", computed$1(() => props.globalStore));
11035
11035
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
11036
11036
  provide("useReport", useReport2);
11037
- const isSignIn = computed(() => {
11037
+ const isSignIn = computed$1(() => {
11038
11038
  return props.globalStore.isSignIn;
11039
11039
  });
11040
- const visibleItems = computed(() => {
11040
+ const visibleItems = computed$1(() => {
11041
11041
  switch (props.sceneValue) {
11042
11042
  case SceneValue.news:
11043
11043
  return [ToolsFloatDisplayItem.ELSE, ToolsFloatDisplayItem.AD];
@@ -11120,7 +11120,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11120
11120
  }, 500);
11121
11121
  };
11122
11122
  const activeAdJson = ref();
11123
- const activeAdItem = computed(() => {
11123
+ const activeAdItem = computed$1(() => {
11124
11124
  var _a;
11125
11125
  if (((_a = activeAdJson.value) == null ? void 0 : _a.adList.length) > 0) {
11126
11126
  return activeAdJson.value.adList.filter((item) => item.showThis)[0];
@@ -11733,7 +11733,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11733
11733
  setup(__props) {
11734
11734
  const props = __props;
11735
11735
  const defaultHref = ref("javascript:void(0)");
11736
- const targetHref = computed(() => {
11736
+ const targetHref = computed$1(() => {
11737
11737
  const pattern = /https?:\/\//i;
11738
11738
  const urlData = props.outSideLink && !pattern.test(props.href) ? `//${props.href}` : props.href;
11739
11739
  return urlData;
@@ -12182,11 +12182,11 @@ const themeColorMap = {
12182
12182
  [ThemeType.BLACK]: black,
12183
12183
  [ThemeType.WHITE]: white
12184
12184
  };
12185
- computed(() => {
12185
+ computed$1(() => {
12186
12186
  return themeColorMap[currentTheme.value];
12187
12187
  });
12188
12188
  const setThemeVal = ref();
12189
- const currentTheme = computed(() => {
12189
+ const currentTheme = computed$1(() => {
12190
12190
  return setThemeVal.value || currentThemeStorage.value || ThemeType.WHITE;
12191
12191
  });
12192
12192
  const setTheme = (theme2) => {
@@ -12249,7 +12249,7 @@ const usePageResize = () => {
12249
12249
  md: 1024,
12250
12250
  lg: 768
12251
12251
  };
12252
- const widthType = computed(() => {
12252
+ const widthType = computed$1(() => {
12253
12253
  if (width.value > widthConfig.xxl) {
12254
12254
  return "xxl";
12255
12255
  } else if (width.value <= widthConfig.xxl && width.value > widthConfig.xl) {
@@ -12262,7 +12262,7 @@ const usePageResize = () => {
12262
12262
  return "sm";
12263
12263
  }
12264
12264
  });
12265
- const isMobile = computed(() => {
12265
+ const isMobile = computed$1(() => {
12266
12266
  return width.value <= widthConfig["md"];
12267
12267
  });
12268
12268
  return { widthType, width, widthConfig, isMobile };
@@ -12357,7 +12357,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
12357
12357
  setup(__props, { emit: __emit }) {
12358
12358
  const props = __props;
12359
12359
  const emits = __emit;
12360
- const iconUrl = computed(() => {
12360
+ const iconUrl = computed$1(() => {
12361
12361
  const tagType = OSS_IMAGES[props.type] || "gstar";
12362
12362
  return getCNDImageUrl(tagType);
12363
12363
  });
@@ -12396,7 +12396,7 @@ const FIRST_NAMESPACE_KEY = "parent_org_path";
12396
12396
  const useBreadcrumb = () => {
12397
12397
  const router2 = useRouter();
12398
12398
  const repoInfo = inject("repoInfo");
12399
- const breadcrumb = computed(() => {
12399
+ const breadcrumb = computed$1(() => {
12400
12400
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
12401
12401
  const isSubOrg = !!((_b = (_a = router2.currentRoute) == null ? void 0 : _a.value) == null ? void 0 : _b.params[FIRST_NAMESPACE_KEY]);
12402
12402
  const full_name = ((_d = (_c = repoInfo.value) == null ? void 0 : _c.namespace) == null ? void 0 : _d.full_name) || "";
@@ -13276,7 +13276,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13276
13276
  const orgInfo = inject("orgInfo");
13277
13277
  const otherUserInfo = inject("otherUserInfo");
13278
13278
  const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
13279
- computed(() => aiHubSceneValue.includes(props.scene));
13279
+ computed$1(() => aiHubSceneValue.includes(props.scene));
13280
13280
  const emits = __emit;
13281
13281
  const handleOrgFollow = (val) => {
13282
13282
  if (props.scene !== SceneValue.org) return;
@@ -13286,7 +13286,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13286
13286
  }
13287
13287
  emits("followDevCommunity", !val);
13288
13288
  };
13289
- const topicTag = computed(() => {
13289
+ const topicTag = computed$1(() => {
13290
13290
  var _a, _b;
13291
13291
  if (props.scene !== SceneValue.repo) return false;
13292
13292
  let repoType = 1;
@@ -13311,7 +13311,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13311
13311
  };
13312
13312
  return obj;
13313
13313
  });
13314
- const isOrg = computed(() => {
13314
+ const isOrg = computed$1(() => {
13315
13315
  var _a, _b;
13316
13316
  if (props.scene === SceneValue.repo) {
13317
13317
  return ((_b = (_a = repoInfo.value) == null ? void 0 : _a.namespace) == null ? void 0 : _b.kind) === "group";
@@ -13326,7 +13326,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13326
13326
  window.location.href = aiUrl;
13327
13327
  }
13328
13328
  };
13329
- const showTimeTopic = computed(() => {
13329
+ const showTimeTopic = computed$1(() => {
13330
13330
  var _a, _b;
13331
13331
  if (props.scene !== SceneValue.repo) return false;
13332
13332
  if (!((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at)) {
@@ -13338,7 +13338,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
13338
13338
  return false;
13339
13339
  }
13340
13340
  });
13341
- const formatTime = computed(() => {
13341
+ const formatTime = computed$1(() => {
13342
13342
  var _a;
13343
13343
  return formatTimeFromNow((_a = repoInfo.value) == null ? void 0 : _a.last_activity_at);
13344
13344
  });
@@ -13660,13 +13660,13 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
13660
13660
  }
13661
13661
  };
13662
13662
  getTianqiRouteConfig();
13663
- const logo = computed(() => {
13663
+ const logo = computed$1(() => {
13664
13664
  if (tianqiButtonConfig.value.img) {
13665
13665
  return currentTheme.value === ThemeType.BLACK ? tianqiButtonConfig.value.img_black : tianqiButtonConfig.value.img;
13666
13666
  }
13667
13667
  return currentTheme.value === ThemeType.BLACK ? logoBlack : logoWhite;
13668
13668
  });
13669
- const customClass = computed(() => {
13669
+ const customClass = computed$1(() => {
13670
13670
  return {
13671
13671
  "custom": tianqiButtonConfig.value.img
13672
13672
  };
@@ -16305,7 +16305,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16305
16305
  };
16306
16306
  const useReport2 = inject("useReport");
16307
16307
  const router2 = useRouter();
16308
- const userLevel = computed(() => {
16308
+ const userLevel = computed$1(() => {
16309
16309
  return props.accountInfo.level;
16310
16310
  });
16311
16311
  const handleUpgrade = () => {
@@ -16317,7 +16317,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
16317
16317
  location.href = `${layoutConfig2.VITE_HOST}/setting/points`;
16318
16318
  }
16319
16319
  };
16320
- const levelInfo = computed(() => {
16320
+ const levelInfo = computed$1(() => {
16321
16321
  const lv = `v${userLevel.value}`;
16322
16322
  if (userLevel.value > maxLevel) {
16323
16323
  return levelMap.v3;
@@ -16417,7 +16417,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16417
16417
  ...params
16418
16418
  };
16419
16419
  };
16420
- const blockList = computed(() => {
16420
+ const blockList = computed$1(() => {
16421
16421
  if (props.independence) {
16422
16422
  return hrefList.value;
16423
16423
  }
@@ -16435,7 +16435,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16435
16435
  });
16436
16436
  return data;
16437
16437
  };
16438
- const userMenusFormat = computed(() => {
16438
+ const userMenusFormat = computed$1(() => {
16439
16439
  if (props.userMenus) {
16440
16440
  return menueDataFormat(props.userMenus);
16441
16441
  }
@@ -16456,7 +16456,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16456
16456
  { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
16457
16457
  ]
16458
16458
  ];
16459
- const routerHref = computed(() => {
16459
+ const routerHref = computed$1(() => {
16460
16460
  var _a;
16461
16461
  return [
16462
16462
  ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseRouterMeus,
@@ -16480,7 +16480,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16480
16480
  { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", target: "_blank", href: HELP_DOCS_URL }
16481
16481
  ]
16482
16482
  ];
16483
- const hrefList = computed(() => {
16483
+ const hrefList = computed$1(() => {
16484
16484
  var _a;
16485
16485
  return [
16486
16486
  ...((_a = userMenusFormat.value) == null ? void 0 : _a.length) ? userMenusFormat.value : baseHrefMeus,
@@ -16599,7 +16599,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16599
16599
  const { isMobile } = usePageResize();
16600
16600
  const drawerVisible = ref(false);
16601
16601
  const userInfo = inject("userInfo");
16602
- const accountInfo = computed(() => {
16602
+ const accountInfo = computed$1(() => {
16603
16603
  return userInfo.value || JSON.parse(localStorage$2.getItem("userInfo") || "{}");
16604
16604
  });
16605
16605
  const haveVisited = ref(false);
@@ -16856,19 +16856,19 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16856
16856
  var _a;
16857
16857
  const layoutConfig2 = useLayoutConfig();
16858
16858
  const { t: $t } = i18n.global;
16859
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-C-oV_vbR.js"));
16860
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-C2DnE4Ya.js"));
16861
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-B1y9viOF.js"));
16862
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CXL7OVIR.js"));
16863
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-tnuquaI9.js"));
16864
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-DogL6Pcq.js"));
16865
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-UqZ4S5zL.js"));
16859
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B2_Bs4dq.js"));
16860
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DLQs0LOK.js"));
16861
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-42acLJYW.js"));
16862
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CodGih5P.js"));
16863
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-cDaVhVoT.js"));
16864
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BHcWysZR.js"));
16865
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BmW9DG_l.js"));
16866
16866
  const props = __props;
16867
16867
  const repoInfo = inject("repoInfo");
16868
16868
  const orgInfo = inject("orgInfo");
16869
16869
  const otherUserInfo = inject("otherUserInfo");
16870
16870
  const useReport2 = inject("useReport");
16871
- const searchInfo = computed(() => {
16871
+ const searchInfo = computed$1(() => {
16872
16872
  var _a2, _b;
16873
16873
  if (props.sceneValue === SceneValue.org && orgInfo.value) {
16874
16874
  return {
@@ -16893,12 +16893,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16893
16893
  };
16894
16894
  }
16895
16895
  });
16896
- const showRecommend = computed(() => {
16896
+ const showRecommend = computed$1(() => {
16897
16897
  return props.sceneValue === SceneValue.home || props.sceneValue === SceneValue.repo || props.sceneValue === SceneValue.org || props.sceneValue === SceneValue.user;
16898
16898
  });
16899
16899
  const isFocus = ref(false);
16900
16900
  const searchDropDownVisible = ref(false);
16901
- const dropDownVisible = computed(() => {
16901
+ const dropDownVisible = computed$1(() => {
16902
16902
  return searchDropDownVisible.value;
16903
16903
  });
16904
16904
  const route = useRoute();
@@ -16911,7 +16911,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16911
16911
  const searchHotWords = ref([]);
16912
16912
  const activeSearchKey = ref(0);
16913
16913
  const interval = ref(null);
16914
- const showRecommendSearch = computed(() => {
16914
+ const showRecommendSearch = computed$1(() => {
16915
16915
  return !searchStr.value && !projectTagVisible.value && !languageTagVisible.value && !inputIng.value;
16916
16916
  });
16917
16917
  const scrollRecommend = () => {
@@ -16927,7 +16927,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16927
16927
  localSearchInfo.value = { ...searchInfo.value };
16928
16928
  }
16929
16929
  };
16930
- const placeholderVisible = computed(() => {
16930
+ const placeholderVisible = computed$1(() => {
16931
16931
  if (!isSearchPage.value) {
16932
16932
  return !isFocus.value && !searchStr.value;
16933
16933
  }
@@ -16958,7 +16958,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16958
16958
  isSearchPage.value = true;
16959
16959
  setQueryTag();
16960
16960
  }
16961
- const projectTagVisible = computed(() => {
16961
+ const projectTagVisible = computed$1(() => {
16962
16962
  return (isSearchPage.value || isFocus.value) && localSearchInfo.value.searchScopeName;
16963
16963
  });
16964
16964
  const cnScopeMap = {
@@ -16966,10 +16966,10 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16966
16966
  group: $t("gitCodeLayout.header.org"),
16967
16967
  user: $t("gitCodeLayout.header.user")
16968
16968
  };
16969
- const languageTagVisible = computed(() => {
16969
+ const languageTagVisible = computed$1(() => {
16970
16970
  return (isSearchPage.value || isFocus.value) && searchStr && language.value;
16971
16971
  });
16972
- const searchScopeList = computed(() => {
16972
+ const searchScopeList = computed$1(() => {
16973
16973
  if (localSearchInfo.value.searchScope) {
16974
16974
  switch (localSearchInfo.value.searchScope) {
16975
16975
  case "repo":
@@ -17291,7 +17291,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17291
17291
  }
17292
17292
  });
17293
17293
  });
17294
- const aiSearchType = computed(() => {
17294
+ const aiSearchType = computed$1(() => {
17295
17295
  if (repoInfo.repo_type === repoTypeEnum.DATASET) {
17296
17296
  return "dataset";
17297
17297
  } else if (repoInfo.repo_type === repoTypeEnum.MODEL) {
@@ -17516,7 +17516,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
17516
17516
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
17517
17517
  }
17518
17518
  };
17519
- const NoticeModal = defineAsyncComponent(() => import("./notice-CfHUCasp.js"));
17519
+ const NoticeModal = defineAsyncComponent(() => import("./notice-DxF9Ng4p.js"));
17520
17520
  function clearNotice() {
17521
17521
  if (localStorage$2.getItem("validator_email")) {
17522
17522
  localStorage$2.removeItem("validator_email");
@@ -17606,15 +17606,15 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17606
17606
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
17607
17607
  const emit = __emit;
17608
17608
  provide("request", props.request);
17609
- provide("globalStore", computed(() => props.globalStore));
17610
- provide("repoInfo", computed(() => props.repoInfo));
17611
- provide("orgInfo", computed(() => props.orgInfo));
17612
- provide("userInfo", computed(() => props.userInfo));
17613
- provide("otherUserInfo", computed(() => props.otherUserInfo));
17609
+ provide("globalStore", computed$1(() => props.globalStore));
17610
+ provide("repoInfo", computed$1(() => props.repoInfo));
17611
+ provide("orgInfo", computed$1(() => props.orgInfo));
17612
+ provide("userInfo", computed$1(() => props.userInfo));
17613
+ provide("otherUserInfo", computed$1(() => props.otherUserInfo));
17614
17614
  provide("useReport", useReport2);
17615
- provide("isLogin", computed(() => props.isLogin));
17615
+ provide("isLogin", computed$1(() => props.isLogin));
17616
17616
  const closeStickyNotice = ref(false);
17617
- const visibleItems = computed(() => {
17617
+ const visibleItems = computed$1(() => {
17618
17618
  if (props.headerFunctions && props.headerFunctions.length > 0) {
17619
17619
  return props.headerFunctions;
17620
17620
  }
@@ -17641,7 +17641,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17641
17641
  const isModuleVisible = (auth) => {
17642
17642
  return visibleItems.value.includes(auth);
17643
17643
  };
17644
- const isHomePageHiddenMenuBtn = computed(() => {
17644
+ const isHomePageHiddenMenuBtn = computed$1(() => {
17645
17645
  return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge"].includes(route.name) && !["sm", "lg"].includes(widthType.value);
17646
17646
  });
17647
17647
  const { isMobile } = usePageResize();
@@ -17649,7 +17649,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17649
17649
  const headerRef = ref(null);
17650
17650
  const { height = 56 } = useElementSize(headerRef);
17651
17651
  const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
17652
- const headerClassName = computed(() => {
17652
+ const headerClassName = computed$1(() => {
17653
17653
  var _a2, _b;
17654
17654
  if ((_a2 = route == null ? void 0 : route.meta) == null ? void 0 : _a2.headerClassName) {
17655
17655
  return (_b = route == null ? void 0 : route.meta) == null ? void 0 : _b.headerClassName;
@@ -17659,17 +17659,17 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17659
17659
  }
17660
17660
  return "";
17661
17661
  });
17662
- const hideNav = computed(() => {
17662
+ const hideNav = computed$1(() => {
17663
17663
  var _a2;
17664
17664
  return (_a2 = route == null ? void 0 : route.meta) == null ? void 0 : _a2.hideNav;
17665
17665
  });
17666
17666
  const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
17667
- const inAIHub = computed(() => aiHubSceneValue.includes(props.sceneValue));
17667
+ const inAIHub = computed$1(() => aiHubSceneValue.includes(props.sceneValue));
17668
17668
  if (!((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.hiddenThemeSetting)) {
17669
17669
  theme.initAutoTheme();
17670
17670
  }
17671
17671
  const isChatBot = ref(false);
17672
- const isHome = computed(() => props.sceneValue === SceneValue.home);
17672
+ const isHome = computed$1(() => props.sceneValue === SceneValue.home);
17673
17673
  const showHeaderShadow = ref(false);
17674
17674
  window.addEventListener("scroll", function() {
17675
17675
  if (window.scrollY > 1 && !showHeaderShadow.value) {
@@ -17679,7 +17679,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17679
17679
  showHeaderShadow.value = false;
17680
17680
  }
17681
17681
  });
17682
- const showNameAndIcon = computed(() => {
17682
+ const showNameAndIcon = computed$1(() => {
17683
17683
  var _a2, _b, _c;
17684
17684
  if (isModuleVisible(HeaderDisplayItem.NAME_AND_ICON) || ((_a2 = props.headerCustomProps) == null ? void 0 : _a2.errorCode)) {
17685
17685
  return true;
@@ -17715,29 +17715,29 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17715
17715
  notice();
17716
17716
  }
17717
17717
  };
17718
- const isIndexHead = computed(() => {
17718
+ const isIndexHead = computed$1(() => {
17719
17719
  return props.bgConfig.index_head && isHome.value && window.location.pathname === "/";
17720
17720
  });
17721
17721
  const homeTabPage = ["/issues", "/pulls", "/kanban", "/discussions"];
17722
- const isShowStickyNotice = computed(() => {
17722
+ const isShowStickyNotice = computed$1(() => {
17723
17723
  return ([SceneValue.repo, SceneValue.org, SceneValue.user, SceneValue.aiHome, SceneValue.aiRepo, SceneValue.aiGuide, SceneValue.blog].includes(props.sceneValue) || isHome.value && window.location.pathname != "/" && !homeTabPage.includes(window.location.pathname)) && props.bgConfig.detail_toolbar;
17724
17724
  });
17725
- const detailToolbarImg = computed(() => {
17725
+ const detailToolbarImg = computed$1(() => {
17726
17726
  return (currentTheme.value === ThemeType.WHITE && props.sceneValue !== SceneValue.aiHome ? props.bgConfig.detail_toolbar : props.bgConfig.detail_toolbar_black) || props.bgConfig.detail_toolbar;
17727
17727
  });
17728
- const detailTopImg = computed(() => {
17728
+ const detailTopImg = computed$1(() => {
17729
17729
  return (currentTheme.value === ThemeType.WHITE ? props.bgConfig.detail_top : props.bgConfig.detail_top_black) || props.bgConfig.detail_top;
17730
17730
  });
17731
- const stickyNoticeInfo = computed(() => {
17731
+ const stickyNoticeInfo = computed$1(() => {
17732
17732
  return isShowStickyNotice.value ? detailTopImg.value : "";
17733
17733
  });
17734
- const isShowStickyNoticeByClose = computed(() => {
17734
+ const isShowStickyNoticeByClose = computed$1(() => {
17735
17735
  return Boolean(stickyNoticeInfo.value) && !closeStickyNotice.value;
17736
17736
  });
17737
- const detailBgInfo = computed(() => {
17737
+ const detailBgInfo = computed$1(() => {
17738
17738
  return isShowStickyNotice.value ? detailToolbarImg.value : "";
17739
17739
  });
17740
- const detailBgStyle = computed(() => {
17740
+ const detailBgStyle = computed$1(() => {
17741
17741
  return detailBgInfo.value ? {
17742
17742
  backgroundImage: `url(${detailBgInfo.value})`,
17743
17743
  backgroundPosition: "center",
@@ -17745,7 +17745,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17745
17745
  backgroundSize: "cover"
17746
17746
  } : {};
17747
17747
  });
17748
- const stickyNoticeStyle = computed(() => {
17748
+ const stickyNoticeStyle = computed$1(() => {
17749
17749
  return stickyNoticeInfo.value ? {
17750
17750
  backgroundImage: `url(${stickyNoticeInfo.value})`,
17751
17751
  backgroundPosition: "center",
@@ -17789,14 +17789,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17789
17789
  childComponents: props == null ? void 0 : props.loginChildComponents
17790
17790
  };
17791
17791
  };
17792
- const isQuickAppLogin = computed(() => {
17792
+ const isQuickAppLogin = computed$1(() => {
17793
17793
  const urlParams = new URLSearchParams(window.location.search);
17794
17794
  const isLogin = urlParams.get("isLogin");
17795
17795
  const fromId = urlParams.get("from_id");
17796
17796
  const webId = urlParams.get("web_id");
17797
17797
  return isLogin === "1" && fromId && webId;
17798
17798
  });
17799
- const isQuickAppLoginReportParams = computed(() => {
17799
+ const isQuickAppLoginReportParams = computed$1(() => {
17800
17800
  return api.get("isRegister") && api.get("success") && api.get("registerLoginMethod");
17801
17801
  });
17802
17802
  const reportHuoShan = () => {
@@ -17819,14 +17819,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17819
17819
  env: void 0,
17820
17820
  ...reportParams
17821
17821
  };
17822
+ window.collectEvent("config", {
17823
+ web_id: reportParams["web_id"] || "",
17824
+ ssid: reportParams["ssid"] || ""
17825
+ });
17822
17826
  (_a2 = window == null ? void 0 : window.collectEvent) == null ? void 0 : _a2.call(
17823
17827
  window,
17824
17828
  api.get("isRegister") === "true" ? "register" : "login",
17825
17829
  reportData
17826
17830
  );
17827
- api.remove("isRegister");
17828
- api.remove("success");
17829
- api.remove("registerLoginMethod");
17831
+ api.remove("isRegister", { domain: layoutConfig2.VITE_COOKIE_DOMAIN });
17832
+ api.remove("success", { domain: layoutConfig2.VITE_COOKIE_DOMAIN });
17833
+ api.remove("registerLoginMethod", { domain: layoutConfig2.VITE_COOKIE_DOMAIN });
17830
17834
  localStorage$2.removeItem("quickAppLoginReportParams");
17831
17835
  }
17832
17836
  };
@@ -18071,14 +18075,14 @@ const useConfigSide = (request, sceneValue) => {
18071
18075
  const API = asideRequest(request);
18072
18076
  const route = useRoute();
18073
18077
  const sideLoading = ref(false);
18074
- const isEn = computed(() => {
18078
+ const isEn = computed$1(() => {
18075
18079
  return getLocaleLang() === LANG_EN;
18076
18080
  });
18077
- const showBgColor = computed(() => {
18081
+ const showBgColor = computed$1(() => {
18078
18082
  return route.meta.showBgColor || false;
18079
18083
  });
18080
18084
  const area = ref([]);
18081
- const assetMenus = computed(() => {
18085
+ const assetMenus = computed$1(() => {
18082
18086
  return [
18083
18087
  {
18084
18088
  left_menu_name_cn: "首页",
@@ -18248,9 +18252,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18248
18252
  const layoutConfig2 = useLayoutConfig();
18249
18253
  const { t: t2 } = i18n.global;
18250
18254
  const route = useRoute();
18251
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-DFjJITXY.js"));
18252
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CLJ8KkET.js"));
18253
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-NhmiYPLe.js"));
18255
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-o4XuYYY-.js"));
18256
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-sFIykN_7.js"));
18257
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BbmN1eg_.js"));
18254
18258
  const props = __props;
18255
18259
  console.log("slotKeys", props.slotKeys);
18256
18260
  console.log("props", props);
@@ -18268,8 +18272,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18268
18272
  const isOrganization = (item) => {
18269
18273
  return item.jump_type === JumpType.Search && item.search_type === SearchType.Organization;
18270
18274
  };
18271
- const username = computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18272
- const projectProps = computed(() => {
18275
+ const username = computed$1(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18276
+ const projectProps = computed$1(() => {
18273
18277
  return {
18274
18278
  subShow: subShow.value.project,
18275
18279
  key: "project",
@@ -18279,7 +18283,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18279
18283
  username: username.value
18280
18284
  };
18281
18285
  });
18282
- const orgProps = computed(() => {
18286
+ const orgProps = computed$1(() => {
18283
18287
  return {
18284
18288
  subShow: subShow.value.team,
18285
18289
  type: "team",
@@ -18315,13 +18319,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18315
18319
  }
18316
18320
  return MenuItem;
18317
18321
  };
18318
- const hasOrg = computed(() => {
18322
+ const hasOrg = computed$1(() => {
18319
18323
  return props.list.some((item) => isOrganization(item));
18320
18324
  });
18321
- const hasProject = computed(() => {
18325
+ const hasProject = computed$1(() => {
18322
18326
  return props.list.some((item) => isProject(item));
18323
18327
  });
18324
- const filterList = computed(() => {
18328
+ const filterList = computed$1(() => {
18325
18329
  return props.list.filter((item) => {
18326
18330
  if (!item.select_scene || item.select_scene.length === 0) {
18327
18331
  return true;
@@ -18330,10 +18334,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18330
18334
  });
18331
18335
  });
18332
18336
  const searchKeys = ["project", "team"];
18333
- const layoutSlotKeys = computed(() => {
18337
+ const layoutSlotKeys = computed$1(() => {
18334
18338
  return props.slotKeys.filter((key) => searchKeys.includes(key));
18335
18339
  });
18336
- const mainSiteSlotKeys = computed(() => {
18340
+ const mainSiteSlotKeys = computed$1(() => {
18337
18341
  return props.slotKeys.filter((key) => !searchKeys.includes(key));
18338
18342
  });
18339
18343
  const LayoutSlotComponent = (item) => {
@@ -18616,10 +18620,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18616
18620
  __name: "SubMenuList",
18617
18621
  setup(__props) {
18618
18622
  const { t: t2 } = i18n.global;
18619
- const isEn = computed(() => {
18623
+ const isEn = computed$1(() => {
18620
18624
  return getLocaleLang() === LANG_EN;
18621
18625
  });
18622
- const linkList = computed(() => {
18626
+ const linkList = computed$1(() => {
18623
18627
  return [
18624
18628
  {
18625
18629
  name: t2("gitCodeLayout.header.helpDocument"),
@@ -18708,7 +18712,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18708
18712
  const { t: t2 } = i18n.global;
18709
18713
  const setting = createSetting();
18710
18714
  const { copyright } = setting;
18711
- const isEn = computed(() => {
18715
+ const isEn = computed$1(() => {
18712
18716
  return getLocaleLang() === LANG_EN;
18713
18717
  });
18714
18718
  return (_ctx, _cache) => {
@@ -18801,7 +18805,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18801
18805
  const route = useRoute();
18802
18806
  const request = inject("request");
18803
18807
  const props = __props;
18804
- const layoutSlotKeys = computed(() => {
18808
+ const layoutSlotKeys = computed$1(() => {
18805
18809
  return [...props.slotKeys, "project", "team"];
18806
18810
  });
18807
18811
  const useReport2 = inject("useReport");
@@ -18810,7 +18814,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18810
18814
  fetchArea();
18811
18815
  const isScroll = ref(false);
18812
18816
  const timer = ref(null);
18813
- const visibleItems = computed(() => {
18817
+ const visibleItems = computed$1(() => {
18814
18818
  switch (props.sceneValue) {
18815
18819
  case SceneValue.news:
18816
18820
  return [];
@@ -18843,8 +18847,8 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18843
18847
  const isModuleVisible = (auth) => {
18844
18848
  return visibleItems.value.includes(auth);
18845
18849
  };
18846
- computed(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18847
- const showPreferencesSetting = computed(() => {
18850
+ computed$1(() => (userInfo == null ? void 0 : userInfo.username) || JSON.parse(localStorage.getItem("userInfo") || "{}").username);
18851
+ const showPreferencesSetting = computed$1(() => {
18848
18852
  if (props.showPreferencesSetting !== void 0) return props.showPreferencesSetting;
18849
18853
  return route.name !== AICopilot_ROUTE_NAME && isModuleVisible(AsideDisplayItem.PREFERENCE);
18850
18854
  });
@@ -18880,7 +18884,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18880
18884
  return item2;
18881
18885
  });
18882
18886
  };
18883
- const displayArea = computed(() => {
18887
+ const displayArea = computed$1(() => {
18884
18888
  return area.value.filter((item) => {
18885
18889
  return getAreaItem(item).length;
18886
18890
  });
@@ -18986,29 +18990,29 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18986
18990
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
18987
18991
  provide(
18988
18992
  "globalStore",
18989
- computed(() => props.globalStore)
18993
+ computed$1(() => props.globalStore)
18990
18994
  );
18991
18995
  provide("request", props.request);
18992
18996
  provide(
18993
18997
  "userInfo",
18994
- computed(() => props.userInfo)
18998
+ computed$1(() => props.userInfo)
18995
18999
  );
18996
19000
  provide("useReport", useReport2);
18997
- computed(() => {
19001
+ computed$1(() => {
18998
19002
  if (route.meta.showBgColor) return true;
18999
19003
  return false;
19000
19004
  });
19001
19005
  const sizeStore = usePageResize();
19002
- const asideSetShow = computed(() => {
19006
+ const asideSetShow = computed$1(() => {
19003
19007
  return (props.sceneValue === SceneValue.home && !sizeStore.isMobile.value || props.collapseMode) && !props.disableFlatMode;
19004
19008
  });
19005
19009
  provide("asideSetShow", asideSetShow);
19006
19010
  console.log("indexasideSetShow", asideSetShow.value);
19007
- const isHome = computed(() => {
19011
+ const isHome = computed$1(() => {
19008
19012
  return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard"].includes(route.name);
19009
19013
  });
19010
19014
  usePageResize();
19011
- const asideSize = computed(() => {
19015
+ const asideSize = computed$1(() => {
19012
19016
  if (props.collapseMode) {
19013
19017
  return ASIDE_MENU_MODE.collapse;
19014
19018
  } else {
@@ -19016,7 +19020,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19016
19020
  }
19017
19021
  });
19018
19022
  const asideSetShowLittle = useStorage("asideSetShowLittle", false);
19019
- const asideSetShowLittleMode = computed(() => {
19023
+ const asideSetShowLittleMode = computed$1(() => {
19020
19024
  if (props.collapseMode) {
19021
19025
  return true;
19022
19026
  } else if (isHome.value) {
@@ -19026,7 +19030,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
19026
19030
  }
19027
19031
  });
19028
19032
  const asideDefaultWidth = useStorage("asideDefaultWidth", sizeStore.isMobile.value ? 0 : asideSize.value.expand);
19029
- const mainMarginLeftWidth = computed(() => {
19033
+ const mainMarginLeftWidth = computed$1(() => {
19030
19034
  if (!asideSetShow.value || sizeStore.isMobile.value) {
19031
19035
  return 0;
19032
19036
  }
@@ -20406,7 +20410,7 @@ const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
20406
20410
  default: logoWechat
20407
20411
  }, Symbol.toStringTag, { value: "Module" }));
20408
20412
  function useModel(props, emits) {
20409
- const vModels = computed({
20413
+ const vModels = computed$1({
20410
20414
  get() {
20411
20415
  return props.modelValue;
20412
20416
  },
@@ -20465,7 +20469,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20465
20469
  if (status) {
20466
20470
  toCountDown();
20467
20471
  }
20468
- const BtnText = computed(() => {
20472
+ const BtnText = computed$1(() => {
20469
20473
  if (DisabledBtn.value) {
20470
20474
  return `${$t("gitCodeLayout.common.hasBeenSent")} ${CountDown.value}`;
20471
20475
  } else {
@@ -20826,7 +20830,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
20826
20830
  };
20827
20831
  }
20828
20832
  };
20829
- const getItemWidth = computed(() => {
20833
+ const getItemWidth = computed$1(() => {
20830
20834
  return function(FormItem2) {
20831
20835
  if (FormItem2.width === "auto") {
20832
20836
  return "auto";
@@ -23627,7 +23631,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23627
23631
  },
23628
23632
  emits: ["success", "back", "fail"],
23629
23633
  setup(__props, { emit: __emit }) {
23630
- const currentLogo = computed(() => {
23634
+ const currentLogo = computed$1(() => {
23631
23635
  if (currentTheme.value === ThemeType.BLACK) {
23632
23636
  return GIT_CODE_LOGO_WHITE;
23633
23637
  }
@@ -23639,7 +23643,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23639
23643
  const props = __props;
23640
23644
  const coverCode = ref("");
23641
23645
  const loading = ref(false);
23642
- const modeTitle = computed(() => {
23646
+ const modeTitle = computed$1(() => {
23643
23647
  return mode.value === "code" ? t2("gitCodeLayout.LoginModal.mfatip3") : t2("gitCodeLayout.LoginModal.mfatip4");
23644
23648
  });
23645
23649
  const inputList = ref([
@@ -23674,7 +23678,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23674
23678
  });
23675
23679
  mode.value = mo;
23676
23680
  };
23677
- const confirmDisabled = computed(() => {
23681
+ const confirmDisabled = computed$1(() => {
23678
23682
  var _a;
23679
23683
  if (mode.value === "code") {
23680
23684
  return inputList.value.find((item) => !item.value);
@@ -23850,7 +23854,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
23850
23854
  }
23851
23855
  });
23852
23856
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-vue-layout-gitcode"]]);
23853
- const SlidCaptcha = defineAsyncComponent(() => import("./index-Bz0h--Iu.js"));
23857
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Dq1WwXIQ.js"));
23854
23858
  const useSlidCaptcha = () => {
23855
23859
  const { mount, unMount } = usePopup("slid-captcha-popup");
23856
23860
  const open = (config) => {
@@ -24076,7 +24080,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24076
24080
  emits: ["update:modelValue", "login", "close", "link", "openHarmonyGuide", "directClose"],
24077
24081
  setup(__props, { emit: __emit }) {
24078
24082
  const layoutConfig2 = useLayoutConfig();
24079
- computed(() => {
24083
+ computed$1(() => {
24080
24084
  var _a;
24081
24085
  return layoutConfig2.VITE_AI_HOST === ((_a = window == null ? void 0 : window.location) == null ? void 0 : _a.origin);
24082
24086
  });
@@ -24395,7 +24399,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24395
24399
  handleConfirm();
24396
24400
  };
24397
24401
  const MiniProgramForm = reactive([]);
24398
- const FormConfig = computed(() => {
24402
+ const FormConfig = computed$1(() => {
24399
24403
  if (formType.value === "register") {
24400
24404
  return {
24401
24405
  dict: RegisterForm.map((item) => {
@@ -24820,7 +24824,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
24820
24824
  const handleFormInput = (val) => {
24821
24825
  disabled.value = val;
24822
24826
  };
24823
- const errorMsg = computed(() => {
24827
+ const errorMsg = computed$1(() => {
24824
24828
  var _a;
24825
24829
  const keys = Object.keys(formErrors);
24826
24830
  const currentForm = FormConfig.value.dict;
@@ -25569,6 +25573,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25569
25573
  openHarmonyGuide: { type: Boolean, default: true }
25570
25574
  },
25571
25575
  setup(__props) {
25576
+ const layoutConfig2 = useLayoutConfig();
25572
25577
  const props = __props;
25573
25578
  const status = ref(false);
25574
25579
  const { login, isMounted } = useLogin(props.request, props.globalStore);
@@ -25579,6 +25584,51 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25579
25584
  notice();
25580
25585
  }
25581
25586
  };
25587
+ const isQuickAppLogin = computed(() => {
25588
+ const urlParams = new URLSearchParams(window.location.search);
25589
+ const isLogin = urlParams.get("isLogin");
25590
+ const fromId = urlParams.get("from_id");
25591
+ const webId = urlParams.get("web_id");
25592
+ return isLogin === "1" && fromId && webId;
25593
+ });
25594
+ const isQuickAppLoginReportParams = computed(() => {
25595
+ return api.get("isRegister") && api.get("success") && api.get("registerLoginMethod");
25596
+ });
25597
+ const reportHuoShan = () => {
25598
+ var _a;
25599
+ if (isQuickAppLogin.value && !props.isLogin) {
25600
+ const reportParams = Object.fromEntries(new URLSearchParams(location.search).entries());
25601
+ localStorage$2.setItem("quickAppLoginReportParams", JSON.stringify(reportParams));
25602
+ }
25603
+ if (props.isLogin && localStorage$2.getItem("quickAppLoginReportParams") && isQuickAppLoginReportParams.value) {
25604
+ const reportParams = JSON.parse(localStorage$2.getItem("quickAppLoginReportParams") || "{}");
25605
+ const reportData = {
25606
+ register_login_type: api.get("isRegister") === "true" ? "注册" : "登录",
25607
+ register_login_result: api.get("success") === "true" ? "成功" : "失败",
25608
+ register_login_source: "快应用",
25609
+ register_login_method: registerLoginMethodMap[api.get("registerLoginMethod")] || "",
25610
+ article_id: reportParams["from_id"] || "",
25611
+ userid_fast_application: reportParams["uuid_tt_dd"] || "",
25612
+ gitcode_utm_source: reportParams["utm_source"] || "",
25613
+ // page_url: location.href || '',
25614
+ env: void 0,
25615
+ ...reportParams
25616
+ };
25617
+ window.collectEvent("config", {
25618
+ web_id: reportParams["web_id"] || "",
25619
+ ssid: reportParams["ssid"] || ""
25620
+ });
25621
+ (_a = window == null ? void 0 : window.collectEvent) == null ? void 0 : _a.call(
25622
+ window,
25623
+ api.get("isRegister") === "true" ? "register" : "login",
25624
+ reportData
25625
+ );
25626
+ api.remove("isRegister", { domain: layoutConfig2.VITE_COOKIE_DOMAIN });
25627
+ api.remove("success", { domain: layoutConfig2.VITE_COOKIE_DOMAIN });
25628
+ api.remove("registerLoginMethod", { domain: layoutConfig2.VITE_COOKIE_DOMAIN });
25629
+ localStorage$2.removeItem("quickAppLoginReportParams");
25630
+ }
25631
+ };
25582
25632
  onMounted(() => {
25583
25633
  toNotice();
25584
25634
  addEventListener("logout", (options) => {
@@ -25604,6 +25654,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25604
25654
  login(data, props.loginSuccess, props.openHarmonyGuide);
25605
25655
  }
25606
25656
  });
25657
+ reportHuoShan();
25607
25658
  addEventListener("login", (options) => {
25608
25659
  console.log("唤起Login");
25609
25660
  login(options, props.loginSuccess, props.openHarmonyGuide);
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { t as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$b, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-B-CtPJz6.js";
4
- import { t as transWebUrl } from "./transWebUrl-CB3TqE09.js";
3
+ import { t as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, d as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, f as useTimeFormat, L as LANG_KEY, g as LANG_ZH, j as usePageResize, k as isGstarRepo, m as _sfc_main$b, n as isIncubationRepo, o as highlightWords, p as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-CqnevwX-.js";
4
+ import { t as transWebUrl } from "./transWebUrl-DBjAAWaT.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, onMounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
2
  import { FixedOverlay } from "vue-devui-lal/overlay";
3
- import { q as useLayoutConfig, _ as _export_sfc } from "./index-B-CtPJz6.js";
3
+ import { q as useLayoutConfig, _ as _export_sfc } from "./index-CqnevwX-.js";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const _sfc_main = /* @__PURE__ */ defineComponent({
6
6
  __name: "index",
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-B-CtPJz6.js";
1
+ import { J, K, O, I, S, H, x, Q, N, P, M } from "./index-CqnevwX-.js";
2
2
  export {
3
3
  J as GitCodeAside,
4
4
  K as GitCodeHeader,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createBlock, openBlock, unref, isRef, withCtx, createElementVNode, normalizeClass, createVNode, createTextVNode } from "vue";
2
- import { i as isPhone, u as useModel } from "./index-B-CtPJz6.js";
2
+ import { i as isPhone, u as useModel } from "./index-CqnevwX-.js";
3
3
  import { Notification } from "vue-devui-lal/notification";
4
4
  import { Button } from "vue-devui-lal/button";
5
5
  import "vue-devui-lal/notification/style.css";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-layout-gitcode",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
4
4
  "description": "用于 gitcode 站点生产环境使用",
5
5
  "main": "index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
- import { q as useLayoutConfig } from "./index-B-CtPJz6.js";
1
+ import { q as useLayoutConfig } from "./index-CqnevwX-.js";
2
2
  const layoutConfig = useLayoutConfig();
3
3
  const transWebUrl = (url, params) => {
4
4
  if (!url) return url;