vue-layout-gitcode 1.12.60-multiple-account → 1.12.67

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,13 +1,13 @@
1
1
  var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
- import { reactive, readonly, inject, effectScope, computed, watch, isRef, getCurrentInstance, ref, shallowRef, defineComponent, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, openBlock, createElementBlock, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createCommentVNode, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, withKeys, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots } from "vue";
4
+ import { reactive, readonly, inject, effectScope, computed, watch, isRef, getCurrentInstance, ref, shallowRef, defineComponent, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, openBlock, createElementBlock, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createCommentVNode, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, withKeys, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots, Teleport, vModelText } from "vue";
5
5
  import axios from "axios";
6
6
  import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
7
7
  import { Icon } from "vue-devui-lal/icon";
8
8
  import "vue-devui-lal/icon/style.css";
9
9
  import { Button } from "vue-devui-lal/button";
10
- import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
10
+ import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
11
11
  import { Avatar } from "vue-devui-lal/avatar";
12
12
  import "vue-devui-lal/avatar/style.css";
13
13
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -242,29 +242,77 @@ const handleReportParamsByDomain = (reportString) => {
242
242
  }
243
243
  return reportString;
244
244
  };
245
- const isBrowser$1 = typeof window !== "undefined" && typeof window.localStorage !== "undefined";
245
+ const getBrowserStorage = () => {
246
+ try {
247
+ return typeof window === "undefined" ? null : window.localStorage;
248
+ } catch {
249
+ return null;
250
+ }
251
+ };
246
252
  let localStorage$1;
247
- if (isBrowser$1) {
248
- localStorage$1 = window.localStorage;
249
- } else {
253
+ {
250
254
  const data = {};
255
+ const fallbackKeys = /* @__PURE__ */ new Set();
251
256
  localStorage$1 = {
252
257
  setItem(id, val) {
253
- data[id] = String(val);
258
+ const value = String(val);
259
+ data[id] = value;
260
+ fallbackKeys.add(id);
261
+ try {
262
+ const storage = getBrowserStorage();
263
+ if (storage) {
264
+ storage.setItem(id, value);
265
+ fallbackKeys.delete(id);
266
+ }
267
+ } catch {
268
+ }
254
269
  },
255
270
  getItem(id) {
271
+ try {
272
+ const storage = getBrowserStorage();
273
+ if (storage && !fallbackKeys.has(id)) {
274
+ return storage.getItem(id);
275
+ }
276
+ } catch {
277
+ }
256
278
  return Object.prototype.hasOwnProperty.call(data, id) ? data[id] : null;
257
279
  },
258
280
  removeItem(id) {
281
+ var _a;
259
282
  delete data[id];
283
+ fallbackKeys.delete(id);
284
+ try {
285
+ (_a = getBrowserStorage()) == null ? void 0 : _a.removeItem(id);
286
+ } catch {
287
+ }
260
288
  },
261
289
  clear() {
290
+ var _a;
291
+ try {
292
+ (_a = getBrowserStorage()) == null ? void 0 : _a.clear();
293
+ } catch {
294
+ }
262
295
  Object.keys(data).forEach((key) => delete data[key]);
296
+ fallbackKeys.clear();
263
297
  },
264
298
  get length() {
299
+ try {
300
+ const storage = getBrowserStorage();
301
+ if (storage) {
302
+ return storage.length;
303
+ }
304
+ } catch {
305
+ }
265
306
  return Object.keys(data).length;
266
307
  },
267
308
  key(index2) {
309
+ try {
310
+ const storage = getBrowserStorage();
311
+ if (storage) {
312
+ return storage.key(index2);
313
+ }
314
+ } catch {
315
+ }
268
316
  const keys = Object.keys(data);
269
317
  return index2 < keys.length ? keys[index2] : null;
270
318
  }
@@ -341,7 +389,7 @@ function encodeUTF8(s) {
341
389
  }
342
390
  return r;
343
391
  }
344
- function udeskInit(config = {}, open = false) {
392
+ function udeskInit(config2 = {}, open = false) {
345
393
  var _a, _b, _c;
346
394
  if (window.ud && !open) return;
347
395
  const randomNum = generateRandomString(16);
@@ -382,7 +430,7 @@ function udeskInit(config = {}, open = false) {
382
430
  c_email: cEmail,
383
431
  signature: strSignature
384
432
  },
385
- ...config
433
+ ...config2
386
434
  });
387
435
  }
388
436
  }
@@ -1457,11 +1505,11 @@ function createDOMPurify() {
1457
1505
  const originalDocument = document2;
1458
1506
  const currentScript = originalDocument.currentScript;
1459
1507
  window2.DocumentFragment;
1460
- const HTMLTemplateElement = window2.HTMLTemplateElement, Node2 = window2.Node, Element = window2.Element, NodeFilter = window2.NodeFilter;
1508
+ const HTMLTemplateElement = window2.HTMLTemplateElement, Node2 = window2.Node, Element2 = window2.Element, NodeFilter = window2.NodeFilter;
1461
1509
  window2.NamedNodeMap === void 0 && (window2.NamedNodeMap || window2.MozNamedAttrMap);
1462
1510
  window2.HTMLFormElement;
1463
1511
  const DOMParser = window2.DOMParser, trustedTypes = window2.trustedTypes;
1464
- const ElementPrototype = Element.prototype;
1512
+ const ElementPrototype = Element2.prototype;
1465
1513
  const cloneNode = lookupGetter(ElementPrototype, "cloneNode");
1466
1514
  const remove = lookupGetter(ElementPrototype, "remove");
1467
1515
  const removeAttributeNode = lookupGetter(ElementPrototype, "removeAttributeNode");
@@ -2671,8 +2719,8 @@ function generateCodeFrame(source, start = 0, end = source.length) {
2671
2719
  return res.join("\n");
2672
2720
  }
2673
2721
  function incrementer(code2) {
2674
- let current = code2;
2675
- return () => ++current;
2722
+ let current2 = code2;
2723
+ return () => ++current2;
2676
2724
  }
2677
2725
  function warn(msg, err) {
2678
2726
  if (typeof console !== "undefined") {
@@ -3275,10 +3323,10 @@ function createTokenizer(source, options = {}) {
3275
3323
  literal += ch;
3276
3324
  }
3277
3325
  }
3278
- const current = scnr.currentChar();
3279
- if (current === CHAR_LF || current === EOF) {
3326
+ const current2 = scnr.currentChar();
3327
+ if (current2 === CHAR_LF || current2 === EOF) {
3280
3328
  emitError(CompileErrorCodes.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, currentPosition(), 0);
3281
- if (current === CHAR_LF) {
3329
+ if (current2 === CHAR_LF) {
3282
3330
  scnr.next();
3283
3331
  eat(scnr, `'`);
3284
3332
  }
@@ -7234,11 +7282,11 @@ const baseFormatProps = {
7234
7282
  function getInterpolateArg({ slots }, keys) {
7235
7283
  if (keys.length === 1 && keys[0] === "default") {
7236
7284
  const ret = slots.default ? slots.default() : [];
7237
- return ret.reduce((slot, current) => {
7285
+ return ret.reduce((slot, current2) => {
7238
7286
  return [
7239
7287
  ...slot,
7240
7288
  // prettier-ignore
7241
- ...current.type === Fragment ? current.children : [current]
7289
+ ...current2.type === Fragment ? current2.children : [current2]
7242
7290
  ];
7243
7291
  }, []);
7244
7292
  } else {
@@ -8157,14 +8205,14 @@ function getGlobalComposer(i18n2) {
8157
8205
  function getComposer(i18n2, target, useComponent = false) {
8158
8206
  let composer = null;
8159
8207
  const root = target.root;
8160
- let current = getParentComponentInstance(target, useComponent);
8161
- while (current != null) {
8208
+ let current2 = getParentComponentInstance(target, useComponent);
8209
+ while (current2 != null) {
8162
8210
  const i18nInternal = i18n2;
8163
8211
  if (i18n2.mode === "composition") {
8164
- composer = i18nInternal.__getInstance(current);
8212
+ composer = i18nInternal.__getInstance(current2);
8165
8213
  } else {
8166
8214
  if (__VUE_I18N_LEGACY_API__) {
8167
- const vueI18n = i18nInternal.__getInstance(current);
8215
+ const vueI18n = i18nInternal.__getInstance(current2);
8168
8216
  if (vueI18n != null) {
8169
8217
  composer = vueI18n.__composer;
8170
8218
  if (useComponent && composer && !composer[InejctWithOptionSymbol]) {
@@ -8176,10 +8224,10 @@ function getComposer(i18n2, target, useComponent = false) {
8176
8224
  if (composer != null) {
8177
8225
  break;
8178
8226
  }
8179
- if (root === current) {
8227
+ if (root === current2) {
8180
8228
  break;
8181
8229
  }
8182
- current = current.parent;
8230
+ current2 = current2.parent;
8183
8231
  }
8184
8232
  return composer;
8185
8233
  }
@@ -8560,6 +8608,63 @@ if (process.env.NODE_ENV !== "production" || __INTLIFY_PROD_DEVTOOLS__) {
8560
8608
  setDevToolsHook(target.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__);
8561
8609
  }
8562
8610
  if (process.env.NODE_ENV !== "production") ;
8611
+ const shortcut$1 = {
8612
+ list: {
8613
+ search: "聚焦筛选框",
8614
+ create: "创建 Issue 或 Pull Request",
8615
+ author: "按作者筛选",
8616
+ label: "选择标签",
8617
+ milestone: "选择里程碑",
8618
+ assignee: "选择负责人"
8619
+ },
8620
+ detail: {
8621
+ reviewer: "选择评审人",
8622
+ quote: "引用选中文本回复",
8623
+ fullscreen: "切换日志全屏",
8624
+ related: "关联条目"
8625
+ },
8626
+ dialog: {
8627
+ title: "键盘快捷键",
8628
+ close: "关闭"
8629
+ },
8630
+ entry: {
8631
+ help: "键盘快捷键"
8632
+ },
8633
+ group: {
8634
+ site: "站点级",
8635
+ repo: "仓库",
8636
+ code: "代码浏览",
8637
+ editor: "编辑器",
8638
+ list: "列表",
8639
+ detail: "详情"
8640
+ },
8641
+ site: {
8642
+ search: "聚焦搜索框",
8643
+ help: "打开快捷键清单",
8644
+ notifications: "打开通知",
8645
+ commands: "命令面板"
8646
+ },
8647
+ repo: {
8648
+ code: "转到「代码」",
8649
+ issues: "转到「Issues」",
8650
+ pulls: "转到「Pull Requests」",
8651
+ wiki: "转到「Wiki」",
8652
+ discussion: "转到「讨论」",
8653
+ actions: "转到「Actions」"
8654
+ },
8655
+ code: {
8656
+ fileFinder: "搜索文件名",
8657
+ branch: "切换分支或标签",
8658
+ blame: "打开 Blame 视图"
8659
+ },
8660
+ a11y: {
8661
+ characterKeys: "启用字符键快捷键"
8662
+ },
8663
+ commands: {
8664
+ search: "搜索可用命令",
8665
+ empty: "没有匹配的命令"
8666
+ }
8667
+ };
8563
8668
  const gitCodeLayout$1 = {
8564
8669
  home: {
8565
8670
  migrationAnnounce: {
@@ -8992,8 +9097,66 @@ const gitCodeLayout$1 = {
8992
9097
  }
8993
9098
  };
8994
9099
  const zh = {
9100
+ shortcut: shortcut$1,
8995
9101
  gitCodeLayout: gitCodeLayout$1
8996
9102
  };
9103
+ const shortcut = {
9104
+ list: {
9105
+ search: "Focus the filter field",
9106
+ create: "Create an issue or pull request",
9107
+ author: "Filter by author",
9108
+ label: "Choose labels",
9109
+ milestone: "Choose a milestone",
9110
+ assignee: "Choose an assignee"
9111
+ },
9112
+ detail: {
9113
+ reviewer: "Choose reviewers",
9114
+ quote: "Quote selected text in a reply",
9115
+ fullscreen: "Toggle log fullscreen",
9116
+ related: "Link a related item"
9117
+ },
9118
+ dialog: {
9119
+ title: "Keyboard shortcuts",
9120
+ close: "Close"
9121
+ },
9122
+ entry: {
9123
+ help: "Keyboard shortcuts"
9124
+ },
9125
+ group: {
9126
+ site: "Site wide",
9127
+ repo: "Repositories",
9128
+ code: "Source code browsing",
9129
+ editor: "Editor",
9130
+ list: "Lists",
9131
+ detail: "Details"
9132
+ },
9133
+ site: {
9134
+ search: "Focus the search bar",
9135
+ help: "Show keyboard shortcuts",
9136
+ notifications: "Go to your notifications",
9137
+ commands: "Command palette"
9138
+ },
9139
+ repo: {
9140
+ code: "Go to the Code tab",
9141
+ issues: "Go to the Issues tab",
9142
+ pulls: "Go to the Pull requests tab",
9143
+ wiki: "Go to the Wiki tab",
9144
+ discussion: "Go to the Discussions tab",
9145
+ actions: "Go to the Actions tab"
9146
+ },
9147
+ code: {
9148
+ fileFinder: "Go to file",
9149
+ branch: "Switch branch or tag",
9150
+ blame: "Open blame view"
9151
+ },
9152
+ a11y: {
9153
+ characterKeys: "Enable character key shortcuts"
9154
+ },
9155
+ commands: {
9156
+ search: "Search available commands",
9157
+ empty: "No matching commands"
9158
+ }
9159
+ };
8997
9160
  const gitCodeLayout = {
8998
9161
  home: {
8999
9162
  migrationAnnounce: {
@@ -9426,6 +9589,7 @@ const gitCodeLayout = {
9426
9589
  }
9427
9590
  };
9428
9591
  const en = {
9592
+ shortcut,
9429
9593
  gitCodeLayout
9430
9594
  };
9431
9595
  const LANG_ZH = "zh";
@@ -9456,7 +9620,7 @@ const COOKIE_OPTIONS = {
9456
9620
  };
9457
9621
  const SUPPORT_LOCALES = [LANG_EN, LANG_ZH];
9458
9622
  const currentDomainCookie = api.get(LANG_KEY);
9459
- if (currentDomainCookie && "." + window.location.hostname !== COOKIE_DOMAIN() || !SUPPORT_LOCALES.includes(currentDomainCookie)) {
9623
+ if (typeof window !== "undefined" && (currentDomainCookie && "." + window.location.hostname !== COOKIE_DOMAIN() || !SUPPORT_LOCALES.includes(currentDomainCookie))) {
9460
9624
  api.remove(LANG_KEY);
9461
9625
  }
9462
9626
  function isComposer(instance, mode) {
@@ -9830,22 +9994,22 @@ const proxyService = (params, customConfigs) => {
9830
9994
  return whiteList.some((str) => url.includes(str));
9831
9995
  };
9832
9996
  service.interceptors.request.use(
9833
- (config) => {
9997
+ (config2) => {
9834
9998
  var _a, _b;
9835
9999
  const access_token = localStorage$2.getItem("access_token");
9836
- const { url } = config;
10000
+ const { url } = config2;
9837
10001
  if (access_token && !notAuthorization(url)) {
9838
- config.headers.Authorization = `Bearer ${access_token}`;
10002
+ config2.headers.Authorization = `Bearer ${access_token}`;
9839
10003
  }
9840
- config.headers["page-title"] = "%E9%A6%96%E9%A1%B5";
9841
- config.headers["page-ref"] = "https%3A%2F%2Ftest.gitcode.net%2Fdashboard";
9842
- config.headers["page-uri"] = ((_a = config.headers) == null ? void 0 : _a["page-uri"]) || encodeURIComponent(window.location.href || "");
9843
- config.headers["gitcode-utm-source"] = ((_b = config.headers) == null ? void 0 : _b["gitcode-utm-source"]) || encodeURIComponent(getUtmSourceSign());
9844
- Object.assign(config.headers, {
10004
+ config2.headers["page-title"] = "%E9%A6%96%E9%A1%B5";
10005
+ config2.headers["page-ref"] = "https%3A%2F%2Ftest.gitcode.net%2Fdashboard";
10006
+ config2.headers["page-uri"] = ((_a = config2.headers) == null ? void 0 : _a["page-uri"]) || encodeURIComponent(window.location.href || "");
10007
+ config2.headers["gitcode-utm-source"] = ((_b = config2.headers) == null ? void 0 : _b["gitcode-utm-source"]) || encodeURIComponent(getUtmSourceSign());
10008
+ Object.assign(config2.headers, {
9845
10009
  ...getCommonHeadInfo(false)
9846
10010
  });
9847
- config.url = setPassportPrefix(config.url, config.method);
9848
- return config;
10011
+ config2.url = setPassportPrefix(config2.url, config2.method);
10012
+ return config2;
9849
10013
  },
9850
10014
  (error) => {
9851
10015
  return Promise.reject(error);
@@ -9857,7 +10021,7 @@ const proxyService = (params, customConfigs) => {
9857
10021
  },
9858
10022
  async (error) => {
9859
10023
  const { response } = error;
9860
- const { config } = response || {};
10024
+ const { config: config2 } = response || {};
9861
10025
  if (response) {
9862
10026
  const errData = response.data;
9863
10027
  errData.http_status = response.status;
@@ -10039,17 +10203,17 @@ const currentHelpDocsAiCommunityUrl = () => {
10039
10203
  const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
10040
10204
  return appendLangPathToHelpDocsUrl(baseUrl);
10041
10205
  };
10042
- const _hoisted_1$K = { class: "gitcode-tools-float-root home-nav-right" };
10043
- const _hoisted_2$y = { class: "float-tooltip" };
10044
- const _hoisted_3$w = { class: "float-tooltip-content" };
10045
- const _hoisted_4$p = {
10206
+ const _hoisted_1$M = { class: "gitcode-tools-float-root home-nav-right" };
10207
+ const _hoisted_2$z = { class: "float-tooltip" };
10208
+ const _hoisted_3$x = { class: "float-tooltip-content" };
10209
+ const _hoisted_4$q = {
10046
10210
  key: 0,
10047
10211
  class: "tools-float-bar"
10048
10212
  };
10049
- const _hoisted_5$k = { class: "float-tooltip" };
10050
- const _hoisted_6$j = { class: "float-tooltip-content" };
10051
- const _hoisted_7$g = { class: "float-tooltip" };
10052
- const _hoisted_8$e = { class: "float-tooltip-content" };
10213
+ const _hoisted_5$l = { class: "float-tooltip" };
10214
+ const _hoisted_6$k = { class: "float-tooltip-content" };
10215
+ const _hoisted_7$h = { class: "float-tooltip" };
10216
+ const _hoisted_8$f = { class: "float-tooltip-content" };
10053
10217
  const _hoisted_9$d = { class: "float-tooltip" };
10054
10218
  const _hoisted_10$a = { class: "float-tooltip-content" };
10055
10219
  const _hoisted_11$8 = { class: "float-tooltip" };
@@ -10057,7 +10221,7 @@ const _hoisted_12$8 = { class: "float-tooltip-content" };
10057
10221
  const _hoisted_13$6 = { class: "float-tooltip" };
10058
10222
  const _hoisted_14$3 = { class: "float-tooltip-content" };
10059
10223
  const _hoisted_15$3 = ["src", "alt"];
10060
- const _sfc_main$R = /* @__PURE__ */ defineComponent({
10224
+ const _sfc_main$U = /* @__PURE__ */ defineComponent({
10061
10225
  ...{ name: "ToolsFloat" },
10062
10226
  __name: "index",
10063
10227
  props: {
@@ -10256,7 +10420,7 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10256
10420
  window.removeEventListener("scroll", handleScroll);
10257
10421
  });
10258
10422
  return (_ctx, _cache) => {
10259
- return openBlock(), createElementBlock("div", _hoisted_1$K, [
10423
+ return openBlock(), createElementBlock("div", _hoisted_1$M, [
10260
10424
  createVNode(Transition, { name: "tools-float-fade" }, {
10261
10425
  default: withCtx(() => [
10262
10426
  showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
@@ -10286,15 +10450,15 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10286
10450
  })
10287
10451
  ])
10288
10452
  ], -1)),
10289
- createElementVNode("div", _hoisted_2$y, [
10290
- createElementVNode("span", _hoisted_3$w, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.backToTop")), 1),
10453
+ createElementVNode("div", _hoisted_2$z, [
10454
+ createElementVNode("span", _hoisted_3$x, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.backToTop")), 1),
10291
10455
  _cache[3] || (_cache[3] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
10292
10456
  ])
10293
10457
  ], 2)) : createCommentVNode("", true)
10294
10458
  ]),
10295
10459
  _: 1
10296
10460
  }),
10297
- !isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
10461
+ !isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$q, [
10298
10462
  isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createElementBlock("div", {
10299
10463
  key: 0,
10300
10464
  id: "guide-step4",
@@ -10302,8 +10466,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10302
10466
  onClick: toggleGrowthCenter
10303
10467
  }, [
10304
10468
  _cache[6] || (_cache[6] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><g transform="translate(1, 0.26)" data-v-vue-layout-gitcode><path d="M6.37369 9.73359H7.67369V12.7336H6.37371L6.37369 9.73359Z" data-v-vue-layout-gitcode></path><path d="M9.8064 4.18587L8.34306 5.28613L8.88219 7.02454C8.88219 7.03555 8.89319 7.05755 8.89319 7.06855C8.89319 7.12357 8.87118 7.16758 8.82717 7.20058C8.79416 7.22259 8.76116 7.23359 8.72815 7.23359C8.69514 7.23359 8.66213 7.22259 8.64013 7.20058L7.12177 6.17734L5.61441 7.22259C5.5594 7.2666 5.48238 7.2666 5.42737 7.22259C5.38336 7.17858 5.36135 7.13457 5.36135 7.07956C5.36135 7.05755 5.36135 7.04655 5.37235 7.02454L5.90048 5.28613L4.43713 4.18587C4.38212 4.14186 4.36011 4.06484 4.38212 3.99883C4.40413 3.93281 4.47014 3.8888 4.53616 3.8888L6.37359 3.85579L6.97873 2.12838C7.00074 2.06237 7.06676 2.01836 7.13277 2.01836C7.19879 2.01836 7.2648 2.06237 7.28681 2.12838L7.89195 3.85579L9.72939 3.8888C10.7954 3.8888 10.8614 3.93281 10.8834 3.99883C10.8834 4.06484 10.8614 4.14186 10.8064 4.18587Z" data-v-vue-layout-gitcode></path><path d="M2.32766 2.22724V3.17963C2.26417 3.16693 2.18798 3.15423 2.11179 3.15423C2.0229 3.15423 1.94671 3.15423 1.87052 3.17963C1.10861 3.3701 0.727662 4.48756 1.01973 5.60502C2.2483 6.50661 1.88322 7.19232 2.53084 7.33201C2.53084 7.30661 2.87369 8.24629 2.87369 8.2209C2.8229 8.23359 2.75941 8.23359 2.70861 8.23359C1.60385 8.23359 0.511789 7.25582 0.130837 5.83359C-0.300909 4.2082 0.372107 2.6082 1.61655 2.27804C1.78163 2.23994 1.94671 2.21455 2.11179 2.21455C2.17528 2.21455 2.25147 2.21455 2.32766 2.22724Z" data-v-vue-layout-gitcode></path><path d="M11.6769 2.24629V3.19867C11.7403 3.18597 11.8165 3.17328 11.8927 3.17328C11.9816 3.17328 12.0578 3.17328 13.134 3.19867C12.8959 3.38915 13.2769 4.50661 12.9848 5.62407C12.7562 6.52566 12.1213 7.21137 12.4737 7.35105C12.4737 7.32566 11.1308 8.26534 11.1308 8.23994C11.1816 8.25264 11.2451 8.25264 11.2959 8.25264C12.4007 8.25264 13.4927 7.27486 14.8737 5.85264C14.3054 4.22724 13.6324 2.62724 12.388 2.29709C12.2229 2.25899 12.0578 2.23359 11.8927 2.23359C11.8292 2.23359 11.753 2.23359 11.6769 2.24629Z" data-v-vue-layout-gitcode></path><path d="M7.00412 10.236C6.20909 10.236 5.41406 10.0373 4.7184 9.73913C3.12834 9.24225 2.23393 7.75155 2.23393 6.06211V0.695656C2.23393 0.298125 2.53206 0 2.92959 0H11.178C11.5755 0 11.8737 0.298125 11.8737 0.695656V6.06211C11.8737 7.65217 10.8799 9.14286 9.38921 9.73914C8.59418 10.1366 7.79915 10.236 7.00412 10.236ZM3.22771 0.993781V6.06211C3.22771 7.25466 3.92337 8.34783 5.11592 8.84472C6.40785 9.34161 7.79915 9.34161 8.9917 8.84472C10.0849 8.34783 10.8799 7.25466 10.8799 6.06211V0.993781H3.22771Z" data-v-vue-layout-gitcode></path><path fill-rule="evenodd" clip-rule="evenodd" d="M9.191 13.4781H4.88525L4.71859 14.4781H9.35766L9.191 13.4781ZM4.88525 12.4781H9.191C9.67984 12.4781 10.097 12.8315 10.1774 13.3137L10.3441 14.3137C10.4456 14.9233 9.9756 15.4781 9.35766 15.4781H4.71859C4.10065 15.4781 3.6306 14.9233 3.73219 14.3137L3.89886 13.3137C3.97922 12.8315 4.39641 12.4781 4.88525 12.4781Z" data-v-vue-layout-gitcode></path></g></svg></div>', 1)),
10305
- createElementVNode("div", _hoisted_5$k, [
10306
- createElementVNode("span", _hoisted_6$j, toDisplayString$1(growthCenterTooltip.value), 1),
10469
+ createElementVNode("div", _hoisted_5$l, [
10470
+ createElementVNode("span", _hoisted_6$k, toDisplayString$1(growthCenterTooltip.value), 1),
10307
10471
  _cache[5] || (_cache[5] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
10308
10472
  ])
10309
10473
  ])) : createCommentVNode("", true),
@@ -10313,8 +10477,8 @@ const _sfc_main$R = /* @__PURE__ */ defineComponent({
10313
10477
  onClick: handleInvite
10314
10478
  }, [
10315
10479
  _cache[8] || (_cache[8] = createStaticVNode('<div class="tools-float-item__icon" data-v-vue-layout-gitcode><svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-vue-layout-gitcode><path d="M5.76106 0.835284V0.836261C6.72931 0.885228 7.49934 1.6864 7.49934 2.66732V4.49935H5.66731L5.56282 4.49642C4.68866 4.44778 3.97761 3.7865 3.85286 2.93489L3.83625 2.76107L3.83333 2.66732C3.83333 1.65629 4.65197 0.835756 5.66243 0.833331L5.76106 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M10.2389 0.835284V0.836261C9.27067 0.885228 8.50064 1.6864 8.50064 2.66732V4.49935H10.3327L10.4372 4.49642C11.3113 4.44778 12.0224 3.7865 12.1471 2.93489L12.1637 2.76107L12.1667 2.66732C12.1667 1.65629 11.348 0.835756 10.3375 0.833331L10.2389 0.835284Z" stroke="currentColor" data-v-vue-layout-gitcode></path><path d="M2.50039 7.52441L2.02578 7.50098L1.90957 7.49512C1.49211 7.45034 1.16657 7.09627 1.16641 6.66699V5.33301L1.17031 5.24805C1.21307 4.82811 1.56865 4.5 2.00039 4.5H14.0004C14.4604 4.50019 14.8332 4.87305 14.8334 5.33301V6.66699L14.8295 6.74707C14.7918 7.14014 14.4809 7.4537 14.0893 7.49512L13.975 7.50098L13.5004 7.52441V14.333C13.5004 14.7932 13.1266 15.167 12.6664 15.167H3.3334C2.87364 15.167 2.50039 14.7937 2.50039 14.333V7.52441Z" stroke="currentColor" data-v-vue-layout-gitcode></path><rect x="5.25" y="12.25" width="5.5" height="0.5" rx="0.25" stroke="currentColor" stroke-width="0.5" stroke-linejoin="round" data-v-vue-layout-gitcode></rect><rect x="2.25" y="7.25" width="11.5" height="0.5" stroke="currentColor" stroke-width="0.5" data-v-vue-layout-gitcode></rect></svg></div>', 1)),
10316
- createElementVNode("div", _hoisted_7$g, [
10317
- createElementVNode("span", _hoisted_8$e, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
10480
+ createElementVNode("div", _hoisted_7$h, [
10481
+ createElementVNode("span", _hoisted_8$f, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
10318
10482
  _cache[7] || (_cache[7] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
10319
10483
  ])
10320
10484
  ])) : createCommentVNode("", true),
@@ -10416,7 +10580,7 @@ const _export_sfc = (sfc, props) => {
10416
10580
  }
10417
10581
  return target;
10418
10582
  };
10419
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["__scopeId", "data-v-vue-layout-gitcode"]]);
10583
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["__scopeId", "data-v-vue-layout-gitcode"]]);
10420
10584
  var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
10421
10585
  repoTypeEnum2["NORMAL"] = "0";
10422
10586
  repoTypeEnum2["MODEL"] = "1";
@@ -10559,9 +10723,9 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
10559
10723
  delete reportData["utm_source"];
10560
10724
  window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
10561
10725
  };
10562
- const _hoisted_1$J = ["xlink:href"];
10563
- const _hoisted_2$x = ["xlink:href"];
10564
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10726
+ const _hoisted_1$L = ["xlink:href"];
10727
+ const _hoisted_2$y = ["xlink:href"];
10728
+ const _sfc_main$T = /* @__PURE__ */ defineComponent({
10565
10729
  __name: "index",
10566
10730
  props: {
10567
10731
  name: { default: "gt-run" },
@@ -10590,7 +10754,7 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10590
10754
  }, [
10591
10755
  createElementVNode("use", {
10592
10756
  "xlink:href": `#${__props.name}`
10593
- }, null, 8, _hoisted_1$J)
10757
+ }, null, 8, _hoisted_1$L)
10594
10758
  ], 6)),
10595
10759
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
10596
10760
  ], 2)) : (openBlock(), createElementBlock("svg", {
@@ -10601,14 +10765,14 @@ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
10601
10765
  }, [
10602
10766
  createElementVNode("use", {
10603
10767
  "xlink:href": `#${__props.name}`
10604
- }, null, 8, _hoisted_2$x)
10768
+ }, null, 8, _hoisted_2$y)
10605
10769
  ], 6));
10606
10770
  };
10607
10771
  }
10608
10772
  });
10609
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
10610
- const _hoisted_1$I = ["href", "target", "disabled"];
10611
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
10773
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["__scopeId", "data-v-vue-layout-gitcode"]]);
10774
+ const _hoisted_1$K = ["href", "target", "disabled"];
10775
+ const _sfc_main$S = /* @__PURE__ */ defineComponent({
10612
10776
  ...{
10613
10777
  name: "GLink"
10614
10778
  },
@@ -10653,11 +10817,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
10653
10817
  disabled: __props.disabled || __props.noPointer
10654
10818
  }, [
10655
10819
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
10656
- ], 10, _hoisted_1$I));
10820
+ ], 10, _hoisted_1$K));
10657
10821
  };
10658
10822
  }
10659
10823
  });
10660
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
10824
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-vue-layout-gitcode"]]);
10661
10825
  const headerHeight = ref(56);
10662
10826
  const useHeaderHeight = () => {
10663
10827
  const setHeaderHeight = (height) => {
@@ -11197,18 +11361,18 @@ async function loadConfig() {
11197
11361
  return inflight;
11198
11362
  }
11199
11363
  async function isMigratedHref(href) {
11200
- const config = await loadConfig();
11201
- if (!config) return false;
11364
+ const config2 = await loadConfig();
11365
+ if (!config2) return false;
11202
11366
  let path;
11203
11367
  try {
11204
11368
  path = new URL(href, typeof window !== "undefined" ? window.location.origin : "http://placeholder").pathname;
11205
11369
  } catch {
11206
11370
  return false;
11207
11371
  }
11208
- const hit = config.matchers.some(
11372
+ const hit = config2.matchers.some(
11209
11373
  (m) => m.type === "exact" ? m.value === path : m.regex.test(path)
11210
11374
  );
11211
- return config.mode === "allowlist" ? hit : !hit;
11375
+ return config2.mode === "allowlist" ? hit : !hit;
11212
11376
  }
11213
11377
  async function navigateWithMigrationGuard(router2, to) {
11214
11378
  let href;
@@ -11290,7 +11454,7 @@ if (isBrowser) {
11290
11454
  }
11291
11455
  const sessionStorage$1 = sessionStorage;
11292
11456
  const _imports_0 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAmsSURBVHgB7VpdbxxnFT7nfccmRam6/gXZXIBy1y3qRe8YR6kUoUpdbhACJNtShFJUSCyBBFd2I1ClAoklVAE32BYXRAJqIwEyUOrNL4h70dtm+wvqNG7deGbe03PO+7Gzlr27/kpzsSeazO5kZvZ95jnnOR8TgLGNbWxjG9vYDjWEp8zyNjUg22lBiS1TuOeNo5YFbBgyTUMAFgz4PXYnDEzf3XimO+h+GTwFls9S43G5O2NLaLtqp2VKaJiSCB0yGEQEJAHFIMkwKXxMjl8AopwvXxl07y8V4EvXdnMo3cye+6xtK3jOVISmYCAlb/KZgTBT4Pd8TD+TfGegiApyiH0pAF+6vpvzOhegoNxUvNiSwZS88II32VcAniVhTIAya6AgeS9/AK0AFXKH2BMFmN+kxqfF4wVXwA0snQdUgQcXtwoFgLJk/T6xqG7Kx2w4xi5Mw37ziQF88fXd/NHe58scZxfYBdGzBQkYFkxVpSBQAXkXZJC8CYMUXTQCxZEU0sATsG/c+PwOL3/TVnhBY0vYqyABk7jjGJSnvc0L72qMeQaxB8gIWGGPgtjw+fRw2G+fKYMv/nQ3dwUuG2VNGfPMCagYd+yiWFGXH8Dcfzae7cRr2y/vzHJKuM3gGh4cX+tUXKAHHLvD1nDqAFuLnMc+ezyLlXnVFS5XN4ziUQpbAgySqGAF3Qmqpjc2prr1+6z/7/zK917e2XJg70eXtMFtmT3vtkDbw9ZzKon+0pvUnHhc5FTiDC+a8xg1AqAeuCIATIqpqUCUcva/G+dXD7v39y/v3WGtvGlDHhT2VGD4+zkwU0sdHAjyWAxeukPN0rk2L/J5jp0c98omRcGoakCKnoik3BZFpRQmDHz1XPGPQb9ljemgo5uqrME1hRWpZIaBOzLA5u+paQtYLsX1Ks8ABpZEJDAy0wcuuWUQFU0FZFBiCmh9fWrgIvmah2iikqJPH8j3Q3h/lDWPrKLNt9n1CrrP+csn5+hyhVN2cE/VkIL7UQIXXJKBkX8QoTLhLeNE/cqVR/nABRpq8oNgl/R50fKDsfp0cG2UdY8EsLnMMVXBGi/4OSvMFE4XbXnxtopMyTEXlNFFEQmqGR6IVigQVVBSAWQ2mxn023zWgj4MERjJg6wslv3OTMC9UdY+EsDsISx4qYeecIgCMns+j0VBCUAkaSc2fcxZ513MahaLUs/XOJz5zpXdhf2/eZO7imt5cYfBNbkk89UN/2Wt7jtLG8NThD6gYSc0WVAy5x54twzMiEDsOS8a+/KaFXctqFah+PhM8aN1pCFflYSqhUQMcIvBrPDnh/xvF9glZxUcqKCw2PBemBOA6OZ+/e9sBUawoQC/dts9QGEvyb1DDyLGmcP+dKAu7MWHY9CD6wGJUh9rTHG/UHv6mtMBxHNDyabgBJjN+GEZ7L71L3MRRrSBKvr13xJX/K5py6CWQe49uAgUA9CacqrCgiRxBReSMwYwmBbv/PFQY1I6FyXeQu3JMafgdOPjhlbhCHYoQMl1VLhFLFMq6CXp0ss+ps91Nw0PoFIgqXAOe5V7jF2BB5diUhllcCgs8lkh5lBc0wOELv/CCpwGQCroDvbnsH4gyhz0qpJ6T1ehFxBfYlESlBqbsWnt6xS0BZIYkwTvgSX2BCSz98t3TBeOYAfG4KU3ixwcbpr9zNVbnCIJSmSOcE/Usq8TT66Zvke2yAMSN62XXypE/CVL4CiIC3Z/9ffRYw8GMUgOb2S9uDuIuRCLdRfl4YmLAKJi1kQDtFHt7+sAUroQcJzEGQhhxh8YEMeegGOWeZ9N4DQcww4EyMm8lUQlxlMCF5SzSK7pK5Z6zGm+gygUDLWW96AmJnXBAc+c5jmvmOgFRkYT8Mbi3dHy3n47MNEjuG/bgrZToSzlWFBOTfBclmEsrKtQRGs745N4HDlEoKl/A8+irXUF0uvptfyFFRJqiklh3731N7sIx7QDGfxgcXKr9fPdF0xpZpjJpq14CZXTeQlUjmeU1LAFflNd1Lugd0+o5bveyCG5pSWsl2qQ4s5qKsAAKqgmPzQ+MTPuDTiBHbsfnH7lExlB5LXRQm3EkJJ5YJFrVj8Ng16CD6ADY3W19PUmCeDuwl+OLix1O/ZMxpbY6WND48r/8SoJyT2TgjrwM5U4ejBQT+ReVEL8yT7LTsae2LFHFnzhPaxJvwmioi2NqqKh9AB6M03vxj7PxdoSA3PskqKerJiqoPJvpgMntJEYlPcFl9uP1vJv8TuDYBs8IGK366TOoDfew1ploqzG2EsTamFuXxKXOLS6MThR0Azu/WLleMpZt6EM6ssQ+HQTKmhxLPFnSPkoq9w8w7kfhAXrc0uLWC/HQicuSokQSi8VFE0DNpRk1gNX0BO4DqdgZhRwnAZakhZ4LfnVq70OnCdfW8aZeY0pCnNLrSf9GyDjAjBhTjvx0BHYmkpmQWgyVKDqnpnQX440kjg2wDo4yYVZSuDY14G/8+65JSbjlk/aRgXEhpFEHL2r+5rohqjllzKVEZhYivETUbCBwZ/9YaIDZwkQYIcHtk7BCQvowhgdcLZ9ld8K1ezuu88sctjMsQt/JC6JFAe0Rl2Vi2Sf2zxbJHspx2RLzPnc5/OhwQ6ckh0K0Mo7uirlLazFklQvy9+9utusn//n9yZXVt+bvIhEcxnRvfSiJDSrPgWI/OsGsQyzNbeMdSczuwVnDfD//3x2+vxXqqmswhdSJ06hM+BRAlRm8wdXuOvYZ3/qTK78sZNNy1CWF7uqOU3Z8e6X1DMd90OkkOxD/JmRBkonAigmM0t+yg27r8XxsQVNbjs2Zy/vLV87AKgMZTNrHphepRJryyQq3j1DUpcyLdNOovvjpdNR0KEAxfg3W2mkUJuraCog7Q1moMLNH+buw+t5P1BTYybLVDUpxCKpm6ZeT87V7kEGSieuXo4EkJ/zq71SLPV2aHsvJH1sAl3k5JD33TxUK6FhpSyopWctdQuh7lT3nH/t9mjTslFtaKKX/+Vgomv29pReK8euHczK2x1c7Lv5pNOXzCE1qFJpM5tRck3f97FqUjn/o99Mnpq4jASwnX/cCFVJlxN6B8m9n7lJjo9ShrGbCSgquLn91xumS1XReLc0me/5bOr54GNm+dbrS2YJzsgGAlzvTG2323Txr+v9b3Gu57vgaBJC4bx6EDi9eVZ9pNWo1pYI/eCwU1mc+8nSyevNQXbsfvC13K2xi24fBk5scZYaWUUfcgxOxZqT43Cbg3d+/nenG2uH2Zn/T6e3ZvdarCJrIjA8w181k9nS/NLw93pjG9vYxja2p8G+ADz7MtW/3lU1AAAAAElFTkSuQmCC";
11293
- const _sfc_main$O = /* @__PURE__ */ defineComponent({
11457
+ const _sfc_main$R = /* @__PURE__ */ defineComponent({
11294
11458
  ...{
11295
11459
  name: "GAvatar"
11296
11460
  },
@@ -11336,8 +11500,8 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
11336
11500
  };
11337
11501
  }
11338
11502
  });
11339
- const _hoisted_1$H = ["src"];
11340
- const _sfc_main$N = /* @__PURE__ */ defineComponent({
11503
+ const _hoisted_1$J = ["src"];
11504
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
11341
11505
  ...{ name: "FlashTag" },
11342
11506
  __name: "FlashTag",
11343
11507
  props: {
@@ -11382,7 +11546,7 @@ const _sfc_main$N = /* @__PURE__ */ defineComponent({
11382
11546
  key: 0,
11383
11547
  class: "gc-flash-tag__icon",
11384
11548
  src: iconUrl.value
11385
- }, null, 8, _hoisted_1$H)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)
11549
+ }, null, 8, _hoisted_1$J)) : renderSlot(_ctx.$slots, "default", {}, void 0, void 0, 1)
11386
11550
  ], 16)
11387
11551
  ]),
11388
11552
  _: 3
@@ -14158,25 +14322,25 @@ const useTimeFormat = () => {
14158
14322
  formatTime
14159
14323
  };
14160
14324
  };
14161
- const _hoisted_1$G = {
14325
+ const _hoisted_1$I = {
14162
14326
  key: 0,
14163
14327
  class: "org-layout-toolbar"
14164
14328
  };
14165
- const _hoisted_2$w = { class: "org-layout-toolbar-title ellipsis-two-line" };
14166
- const _hoisted_3$v = { class: "org-layout-toolbar-name" };
14167
- const _hoisted_4$o = { class: "header-custom-btn-label" };
14168
- const _hoisted_5$j = { class: "g-repo-breadcrumb-custom" };
14169
- const _hoisted_6$i = {
14329
+ const _hoisted_2$x = { class: "org-layout-toolbar-title ellipsis-two-line" };
14330
+ const _hoisted_3$w = { class: "org-layout-toolbar-name" };
14331
+ const _hoisted_4$p = { class: "header-custom-btn-label" };
14332
+ const _hoisted_5$k = { class: "g-repo-breadcrumb-custom" };
14333
+ const _hoisted_6$j = {
14170
14334
  key: 1,
14171
14335
  class: "header-custom-mirrors-avatar"
14172
14336
  };
14173
- const _hoisted_7$f = {
14337
+ const _hoisted_7$g = {
14174
14338
  key: 0,
14175
14339
  src: _imports_0,
14176
14340
  alt: "mirrors-avatar-phone",
14177
14341
  class: "header-custom-mirrors-img"
14178
14342
  };
14179
- const _hoisted_8$d = {
14343
+ const _hoisted_8$e = {
14180
14344
  key: 1,
14181
14345
  src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
14182
14346
  alt: "mirrors-avatar",
@@ -14218,7 +14382,7 @@ const _hoisted_21$2 = {
14218
14382
  };
14219
14383
  const _hoisted_22$2 = { class: "user-layout-toolbar-title ellipsis-two-line" };
14220
14384
  const _hoisted_23$2 = { class: "header-custom-btn-label" };
14221
- const _sfc_main$M = /* @__PURE__ */ defineComponent({
14385
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
14222
14386
  __name: "HeaderCustom",
14223
14387
  props: {
14224
14388
  scene: { default: SceneValue.home },
@@ -14317,9 +14481,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14317
14481
  if (cached !== void 0) {
14318
14482
  return Promise.resolve(cached);
14319
14483
  }
14320
- const pending = pendingEnterpriseMemberReqs.get(enterpriseId);
14321
- if (pending) {
14322
- return pending;
14484
+ const pending2 = pendingEnterpriseMemberReqs.get(enterpriseId);
14485
+ if (pending2) {
14486
+ return pending2;
14323
14487
  }
14324
14488
  const req = (async () => {
14325
14489
  var _a, _b;
@@ -14393,7 +14557,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14393
14557
  });
14394
14558
  return (_ctx, _cache) => {
14395
14559
  var _a, _b, _c;
14396
- return __props.scene === unref(SceneValue).org && !__props.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$G, [
14560
+ return __props.scene === unref(SceneValue).org && !__props.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$I, [
14397
14561
  createVNode(GLink, {
14398
14562
  href: ((_a = __props.orgProps) == null ? void 0 : _a.orgHomepageUrl) || "",
14399
14563
  class: "header-custom-link"
@@ -14401,7 +14565,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14401
14565
  default: withCtx(() => {
14402
14566
  var _a2, _b2, _c2;
14403
14567
  return [
14404
- createVNode(_sfc_main$O, {
14568
+ createVNode(_sfc_main$R, {
14405
14569
  class: "g-border",
14406
14570
  src: ((_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar) || "",
14407
14571
  name: ((_b2 = unref(orgInfo)) == null ? void 0 : _b2.name) || "",
@@ -14409,8 +14573,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14409
14573
  height: 28,
14410
14574
  is_round: false
14411
14575
  }, null, 8, ["src", "name"]),
14412
- createElementVNode("div", _hoisted_2$w, [
14413
- createElementVNode("span", _hoisted_3$v, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
14576
+ createElementVNode("div", _hoisted_2$x, [
14577
+ createElementVNode("span", _hoisted_3$w, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
14414
14578
  ]),
14415
14579
  orgEnterpriseId.value ? (openBlock(), createBlock(unref(Tooltip), {
14416
14580
  key: 0,
@@ -14445,7 +14609,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14445
14609
  default: withCtx(() => {
14446
14610
  var _a2;
14447
14611
  return [
14448
- createElementVNode("span", _hoisted_4$o, toDisplayString$1(((_a2 = __props.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
14612
+ createElementVNode("span", _hoisted_4$p, toDisplayString$1(((_a2 = __props.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
14449
14613
  ];
14450
14614
  }),
14451
14615
  _: 1
@@ -14467,7 +14631,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14467
14631
  default: withCtx(() => {
14468
14632
  var _a2, _b2, _c2, _d, _e, _f, _g, _h, _i, _j, _k;
14469
14633
  return [
14470
- createElementVNode("h2", _hoisted_5$j, [
14634
+ createElementVNode("h2", _hoisted_5$k, [
14471
14635
  createVNode(GLink, {
14472
14636
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
14473
14637
  class: "header-custom-avatar-link"
@@ -14475,7 +14639,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14475
14639
  default: withCtx(() => {
14476
14640
  var _a3, _b3, _c3, _d2;
14477
14641
  return [
14478
- !((_a3 = __props.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$O, {
14642
+ !((_a3 = __props.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$R, {
14479
14643
  key: 0,
14480
14644
  class: normalizeClass({ "g-border": isOrg.value }),
14481
14645
  src: ((_c3 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c3.avatar_url) || "",
@@ -14483,8 +14647,8 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14483
14647
  width: 28,
14484
14648
  height: 28,
14485
14649
  is_round: !isOrg.value
14486
- }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$i, [
14487
- unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$f)) : (openBlock(), createElementBlock("img", _hoisted_8$d))
14650
+ }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$j, [
14651
+ unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$g)) : (openBlock(), createElementBlock("img", _hoisted_8$e))
14488
14652
  ]))
14489
14653
  ];
14490
14654
  }),
@@ -14543,7 +14707,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14543
14707
  _: 1
14544
14708
  }, 8, ["href"]),
14545
14709
  unref(isGstarRepo)((_e = unref(repoInfo)) == null ? void 0 : _e.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$5, [
14546
- createVNode(_sfc_main$N, {
14710
+ createVNode(_sfc_main$Q, {
14547
14711
  origin: "repo",
14548
14712
  icon: "",
14549
14713
  type: "gstar",
@@ -14555,7 +14719,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14555
14719
  _: 1
14556
14720
  }, 8, ["message"])
14557
14721
  ])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$2, [
14558
- createVNode(_sfc_main$N, {
14722
+ createVNode(_sfc_main$Q, {
14559
14723
  origin: "repo",
14560
14724
  icon: "",
14561
14725
  type: "incubation",
@@ -14587,7 +14751,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14587
14751
  _: 1
14588
14752
  }, 8, ["content"])) : createCommentVNode("", true),
14589
14753
  unref(isTrustedRepo)((_g = unref(repoInfo)) == null ? void 0 : _g.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_15$2, [
14590
- createVNode(_sfc_main$N, {
14754
+ createVNode(_sfc_main$Q, {
14591
14755
  trusted: "",
14592
14756
  message: unref(t2)("gitCodeLayout.trusted.title"),
14593
14757
  icon: "",
@@ -14636,7 +14800,7 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14636
14800
  default: withCtx(() => {
14637
14801
  var _a2, _b2, _c2, _d, _e;
14638
14802
  return [
14639
- createVNode(_sfc_main$O, {
14803
+ createVNode(_sfc_main$R, {
14640
14804
  src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
14641
14805
  name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c2 = unref(otherUserInfo)) == null ? void 0 : _c2.nickname),
14642
14806
  width: 28,
@@ -14663,9 +14827,9 @@ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14663
14827
  };
14664
14828
  }
14665
14829
  });
14666
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14667
- const _hoisted_1$F = ["src"];
14668
- const _sfc_main$L = /* @__PURE__ */ defineComponent({
14830
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14831
+ const _hoisted_1$H = ["src"];
14832
+ const _sfc_main$O = /* @__PURE__ */ defineComponent({
14669
14833
  ...{ name: "OperationEntry" },
14670
14834
  __name: "OperationEntry",
14671
14835
  setup(__props) {
@@ -14709,14 +14873,14 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
14709
14873
  class: "operation-entry__img",
14710
14874
  src: img.value,
14711
14875
  alt: "operation-entry"
14712
- }, null, 8, _hoisted_1$F)
14876
+ }, null, 8, _hoisted_1$H)
14713
14877
  ])) : createCommentVNode("", true);
14714
14878
  };
14715
14879
  }
14716
14880
  });
14717
- const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14718
- const _hoisted_1$E = ["src"];
14719
- const _sfc_main$K = /* @__PURE__ */ defineComponent({
14881
+ const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14882
+ const _hoisted_1$G = ["src"];
14883
+ const _sfc_main$N = /* @__PURE__ */ defineComponent({
14720
14884
  __name: "ClaimPower",
14721
14885
  props: {
14722
14886
  config: {}
@@ -14739,12 +14903,12 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
14739
14903
  createElementVNode("img", {
14740
14904
  src: __props.config.logo_url,
14741
14905
  alt: "claim power"
14742
- }, null, 8, _hoisted_1$E)
14906
+ }, null, 8, _hoisted_1$G)
14743
14907
  ])) : createCommentVNode("", true);
14744
14908
  };
14745
14909
  }
14746
14910
  });
14747
- const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14911
+ const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14748
14912
  const DEFAULT_APPLICATION_HOST = "https://gitcode.com";
14749
14913
  function normalizeApplicationHost(host) {
14750
14914
  return (host || DEFAULT_APPLICATION_HOST).replace(/\/+$/, "");
@@ -14780,24 +14944,24 @@ const HEADER_CREATE_MENU_PATHS = [
14780
14944
  "/org/create"
14781
14945
  ];
14782
14946
  const HEADER_CREATE_ENTERPRISE_PATH = "/enterprises/new";
14783
- const _hoisted_1$D = { class: "g-header-create dashboard-create-menu" };
14784
- const _hoisted_2$v = ["title", "aria-label", "aria-expanded"];
14785
- const _hoisted_3$u = { class: "dashboard-create-menu__trigger-text" };
14786
- const _hoisted_4$n = ["aria-label"];
14787
- const _hoisted_5$i = {
14947
+ const _hoisted_1$F = { class: "g-header-create dashboard-create-menu" };
14948
+ const _hoisted_2$w = ["title", "aria-label", "aria-expanded"];
14949
+ const _hoisted_3$v = { class: "dashboard-create-menu__trigger-text" };
14950
+ const _hoisted_4$o = ["aria-label"];
14951
+ const _hoisted_5$j = {
14788
14952
  key: 0,
14789
14953
  class: "dashboard-create-menu__divider",
14790
14954
  role: "separator"
14791
14955
  };
14792
- const _hoisted_6$h = ["href", "onClick", "onKeydown"];
14793
- const _hoisted_7$e = { class: "dashboard-create-menu__title-row" };
14794
- const _hoisted_8$c = { class: "dashboard-create-menu__title" };
14956
+ const _hoisted_6$i = ["href", "onClick", "onKeydown"];
14957
+ const _hoisted_7$f = { class: "dashboard-create-menu__title-row" };
14958
+ const _hoisted_8$d = { class: "dashboard-create-menu__title" };
14795
14959
  const _hoisted_9$b = {
14796
14960
  key: 0,
14797
14961
  class: "dashboard-create-menu__desc"
14798
14962
  };
14799
14963
  const menuId = "gitcode-header-create-menu";
14800
- const _sfc_main$J = /* @__PURE__ */ defineComponent({
14964
+ const _sfc_main$M = /* @__PURE__ */ defineComponent({
14801
14965
  ...{
14802
14966
  name: "HeaderCreateMenu"
14803
14967
  },
@@ -14996,7 +15160,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
14996
15160
  () => closeMenu()
14997
15161
  );
14998
15162
  return (_ctx, _cache) => {
14999
- return openBlock(), createElementBlock("div", _hoisted_1$D, [
15163
+ return openBlock(), createElementBlock("div", _hoisted_1$F, [
15000
15164
  createVNode(unref(Dropdown), {
15001
15165
  position: ["bottom-end", "bottom-start"],
15002
15166
  "destroy-on-hide": false,
@@ -15021,7 +15185,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15021
15185
  return openBlock(), createElementBlock(Fragment, {
15022
15186
  key: item.key
15023
15187
  }, [
15024
- item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$i)) : createCommentVNode("", true),
15188
+ item.dividerBefore ? (openBlock(), createElementBlock("div", _hoisted_5$j)) : createCommentVNode("", true),
15025
15189
  createElementVNode("a", {
15026
15190
  href: unref(toApplicationUrl)(unref(layoutConfig2).VITE_HOST, item.href),
15027
15191
  class: normalizeClass(["dashboard-create-menu__item", { "dashboard-create-menu__item--with-desc": Boolean(item.desc) }]),
@@ -15030,7 +15194,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15030
15194
  onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
15031
15195
  onKeydown: ($event) => onMenuItemKeydown($event, index2)
15032
15196
  }, [
15033
- createElementVNode("div", _hoisted_7$e, [
15197
+ createElementVNode("div", _hoisted_7$f, [
15034
15198
  createVNode(GIcon, {
15035
15199
  name: item.icon,
15036
15200
  size: "16px",
@@ -15038,13 +15202,13 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15038
15202
  class: "dashboard-create-menu__icon",
15039
15203
  "aria-hidden": "true"
15040
15204
  }, null, 8, ["name"]),
15041
- createElementVNode("span", _hoisted_8$c, toDisplayString$1(item.label), 1)
15205
+ createElementVNode("span", _hoisted_8$d, toDisplayString$1(item.label), 1)
15042
15206
  ]),
15043
15207
  item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$b, toDisplayString$1(item.desc), 1)) : createCommentVNode("", true)
15044
- ], 42, _hoisted_6$h)
15208
+ ], 42, _hoisted_6$i)
15045
15209
  ], 64);
15046
15210
  }), 128))
15047
- ], 8, _hoisted_4$n)
15211
+ ], 8, _hoisted_4$o)
15048
15212
  ]),
15049
15213
  default: withCtx(() => [
15050
15214
  createElementVNode("button", {
@@ -15067,8 +15231,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15067
15231
  class: "dashboard-create-menu__trigger-icon",
15068
15232
  "aria-hidden": "true"
15069
15233
  }),
15070
- createElementVNode("span", _hoisted_3$u, toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
15071
- ], 40, _hoisted_2$v)
15234
+ createElementVNode("span", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.header.create")), 1)
15235
+ ], 40, _hoisted_2$w)
15072
15236
  ]),
15073
15237
  _: 1
15074
15238
  }, 8, ["visible"])
@@ -15076,8 +15240,8 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15076
15240
  };
15077
15241
  }
15078
15242
  });
15079
- const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15080
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
15243
+ const HeaderCreateMenu = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15244
+ const _sfc_main$L = /* @__PURE__ */ defineComponent({
15081
15245
  ...{
15082
15246
  name: "DocumentCenter"
15083
15247
  },
@@ -15102,12 +15266,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
15102
15266
  };
15103
15267
  }
15104
15268
  });
15105
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15106
- const _hoisted_1$C = {
15269
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$L, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15270
+ const _hoisted_1$E = {
15107
15271
  key: 1,
15108
15272
  class: "g-text-all"
15109
15273
  };
15110
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
15274
+ const _sfc_main$K = /* @__PURE__ */ defineComponent({
15111
15275
  ...{ name: "GText" },
15112
15276
  __name: "index",
15113
15277
  props: {
@@ -15184,24 +15348,24 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
15184
15348
  class: "watch-all",
15185
15349
  onClick: onShowAll
15186
15350
  }, toDisplayString$1(_ctx.$t("gitCodeLayout.notice.msg.viewAll")), 1)) : createCommentVNode("", true)
15187
- ], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$C, [
15351
+ ], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$E, [
15188
15352
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
15189
15353
  ])) : createCommentVNode("", true);
15190
15354
  };
15191
15355
  }
15192
15356
  });
15193
- const GText = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15194
- const _hoisted_1$B = { class: "message-item" };
15195
- const _hoisted_2$u = { class: "message-item-footer" };
15196
- const _hoisted_3$t = ["title"];
15197
- const _hoisted_4$m = ["href"];
15198
- const _hoisted_5$h = { class: "message-item-info-content" };
15199
- const _hoisted_6$g = { class: "message-item-body" };
15200
- const _hoisted_7$d = ["title", "innerHTML"];
15201
- const _hoisted_8$b = ["title"];
15357
+ const GText = /* @__PURE__ */ _export_sfc(_sfc_main$K, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15358
+ const _hoisted_1$D = { class: "message-item" };
15359
+ const _hoisted_2$v = { class: "message-item-footer" };
15360
+ const _hoisted_3$u = ["title"];
15361
+ const _hoisted_4$n = ["href"];
15362
+ const _hoisted_5$i = { class: "message-item-info-content" };
15363
+ const _hoisted_6$h = { class: "message-item-body" };
15364
+ const _hoisted_7$e = ["title", "innerHTML"];
15365
+ const _hoisted_8$c = ["title"];
15202
15366
  const _hoisted_9$a = { class: "message-item-info" };
15203
15367
  const _hoisted_10$8 = { class: "message-item-rightTx message-item-date" };
15204
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
15368
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
15205
15369
  __name: "index",
15206
15370
  props: {
15207
15371
  data: { default: () => ({}) },
@@ -15213,8 +15377,8 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15213
15377
  const { formatTimeFromNow } = useTimeFormat();
15214
15378
  return (_ctx, _cache) => {
15215
15379
  var _a;
15216
- return openBlock(), createElementBlock("div", _hoisted_1$B, [
15217
- createElementVNode("div", _hoisted_2$u, [
15380
+ return openBlock(), createElementBlock("div", _hoisted_1$D, [
15381
+ createElementVNode("div", _hoisted_2$v, [
15218
15382
  createElementVNode("div", {
15219
15383
  class: "message-item__avatar-wrap",
15220
15384
  title: __props.data.nickname
@@ -15224,17 +15388,17 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15224
15388
  target: "_blank",
15225
15389
  class: "user-info linktx message-item__user-info"
15226
15390
  }, [
15227
- createVNode(_sfc_main$O, {
15391
+ createVNode(_sfc_main$R, {
15228
15392
  name: __props.data.nickname,
15229
15393
  src: __props.data.avatar,
15230
15394
  width: 32,
15231
15395
  height: 32
15232
15396
  }, null, 8, ["name", "src"])
15233
- ], 8, _hoisted_4$m)
15234
- ], 8, _hoisted_3$t)
15397
+ ], 8, _hoisted_4$n)
15398
+ ], 8, _hoisted_3$u)
15235
15399
  ]),
15236
- createElementVNode("div", _hoisted_5$h, [
15237
- createElementVNode("div", _hoisted_6$g, [
15400
+ createElementVNode("div", _hoisted_5$i, [
15401
+ createElementVNode("div", _hoisted_6$h, [
15238
15402
  createVNode(GLink, {
15239
15403
  href: unref(transformUrl)(__props.data.url),
15240
15404
  target: "_blank",
@@ -15249,10 +15413,10 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15249
15413
  title: __props.data.title,
15250
15414
  innerHTML: unref(xssPurify)(__props.data.title) || "",
15251
15415
  class: "message-item__title"
15252
- }, null, 8, _hoisted_7$d)) : (openBlock(), createElementBlock("span", {
15416
+ }, null, 8, _hoisted_7$e)) : (openBlock(), createElementBlock("span", {
15253
15417
  key: 1,
15254
15418
  title: __props.data.title
15255
- }, toDisplayString$1(__props.data.title || "-"), 9, _hoisted_8$b))
15419
+ }, toDisplayString$1(__props.data.title || "-"), 9, _hoisted_8$c))
15256
15420
  ]),
15257
15421
  _: 1
15258
15422
  })
@@ -15281,30 +15445,30 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15281
15445
  };
15282
15446
  }
15283
15447
  });
15284
- const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15285
- const _hoisted_1$A = { class: "message-header-nav" };
15286
- const _hoisted_2$t = {
15448
+ const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15449
+ const _hoisted_1$C = { class: "message-header-nav" };
15450
+ const _hoisted_2$u = {
15287
15451
  key: 0,
15288
15452
  class: "item-count-icon"
15289
15453
  };
15290
- const _hoisted_3$s = {
15454
+ const _hoisted_3$t = {
15291
15455
  key: 1,
15292
15456
  class: "g-number"
15293
15457
  };
15294
- const _hoisted_4$l = {
15458
+ const _hoisted_4$m = {
15295
15459
  key: 0,
15296
15460
  class: "g-number message-box__count"
15297
15461
  };
15298
- const _hoisted_5$g = { class: "message-content-cover" };
15299
- const _hoisted_6$f = {
15462
+ const _hoisted_5$h = { class: "message-content-cover" };
15463
+ const _hoisted_6$g = {
15300
15464
  key: 0,
15301
15465
  class: "message-content-header"
15302
15466
  };
15303
- const _hoisted_7$c = {
15467
+ const _hoisted_7$d = {
15304
15468
  key: 0,
15305
15469
  class: "g-number"
15306
15470
  };
15307
- const _hoisted_8$a = {
15471
+ const _hoisted_8$b = {
15308
15472
  key: 0,
15309
15473
  class: "g-number"
15310
15474
  };
@@ -15325,7 +15489,7 @@ const _hoisted_12$6 = {
15325
15489
  class: "no-more"
15326
15490
  };
15327
15491
  const _hoisted_13$4 = { class: "message-footer-nav" };
15328
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
15492
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
15329
15493
  __name: "MessageBox",
15330
15494
  setup(__props, { expose: __expose }) {
15331
15495
  var _a;
@@ -15605,7 +15769,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15605
15769
  class: "message-box",
15606
15770
  onClick: _cache[6] || (_cache[6] = withModifiers(($event) => console.log("stop"), ["stop"]))
15607
15771
  }, [
15608
- createElementVNode("div", _hoisted_1$A, [
15772
+ createElementVNode("div", _hoisted_1$C, [
15609
15773
  createVNode(unref(Tabs), {
15610
15774
  modelValue: checkedId.value,
15611
15775
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedId.value = $event),
@@ -15621,7 +15785,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15621
15785
  createElementVNode("div", {
15622
15786
  class: normalizeClass(["message-header-nav-item", { "message-header-nav-item-active": item.messageType === checkedId.value }])
15623
15787
  }, [
15624
- item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$t, [
15788
+ item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$u, [
15625
15789
  createVNode(GIcon, {
15626
15790
  name: item.icon,
15627
15791
  size: "16px",
@@ -15634,7 +15798,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15634
15798
  }, null, 8, ["name"])
15635
15799
  ])) : createCommentVNode("", true),
15636
15800
  createElementVNode("span", null, toDisplayString$1(item.text), 1),
15637
- item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$s, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
15801
+ item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$t, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
15638
15802
  ], 2)
15639
15803
  ]),
15640
15804
  _: 2
@@ -15648,7 +15812,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15648
15812
  onClick: _cache[1] || (_cache[1] = ($event) => toPage("unread"))
15649
15813
  }, [
15650
15814
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.notice.msg.allUnread")), 1),
15651
- msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$l, toDisplayString$1(msgCount.value), 1)) : createCommentVNode("", true)
15815
+ msgCount.value > 0 ? (openBlock(), createElementBlock("span", _hoisted_4$m, toDisplayString$1(msgCount.value), 1)) : createCommentVNode("", true)
15652
15816
  ])
15653
15817
  ]),
15654
15818
  createElementVNode("div", {
@@ -15656,21 +15820,21 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15656
15820
  ref: scrollContainer,
15657
15821
  class: "message-content"
15658
15822
  }, [
15659
- withDirectives((openBlock(), createElementBlock("div", _hoisted_5$g, [
15660
- currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$f, [
15823
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_5$h, [
15824
+ currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$g, [
15661
15825
  createElementVNode("div", {
15662
15826
  class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "project" }]),
15663
15827
  onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
15664
15828
  }, [
15665
15829
  _cache[7] || (_cache[7] = createTextVNode(" 项目相关 ", -1)),
15666
- mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$c, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
15830
+ mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$d, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
15667
15831
  ], 2),
15668
15832
  createElementVNode("div", {
15669
15833
  class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "private" }]),
15670
15834
  onClick: _cache[3] || (_cache[3] = ($event) => switchMentionSubTab("private"))
15671
15835
  }, [
15672
15836
  _cache[8] || (_cache[8] = createTextVNode(" 私信 ", -1)),
15673
- mentionSubTabCount.value.private > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$a, toDisplayString$1(mentionSubTabCount.value.private), 1)) : createCommentVNode("", true)
15837
+ mentionSubTabCount.value.private > 0 ? (openBlock(), createElementBlock("span", _hoisted_8$b, toDisplayString$1(mentionSubTabCount.value.private), 1)) : createCommentVNode("", true)
15674
15838
  ], 2),
15675
15839
  createElementVNode("div", {
15676
15840
  class: normalizeClass(["message-content-header-item", { active: mentionSubTab.value === "discussion" }]),
@@ -15706,8 +15870,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15706
15870
  };
15707
15871
  }
15708
15872
  });
15709
- const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15710
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
15873
+ const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15874
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
15711
15875
  ...{
15712
15876
  name: "Notice"
15713
15877
  },
@@ -15822,9 +15986,9 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15822
15986
  };
15823
15987
  }
15824
15988
  });
15825
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15826
- const _hoisted_1$z = { class: "devui-select__item g-option-link" };
15827
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
15989
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15990
+ const _hoisted_1$B = { class: "devui-select__item g-option-link" };
15991
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
15828
15992
  ...{
15829
15993
  name: "OptionLink"
15830
15994
  },
@@ -15842,7 +16006,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
15842
16006
  },
15843
16007
  setup(__props) {
15844
16008
  return (_ctx, _cache) => {
15845
- return openBlock(), createElementBlock("li", _hoisted_1$z, [
16009
+ return openBlock(), createElementBlock("li", _hoisted_1$B, [
15846
16010
  createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
15847
16011
  default: withCtx(() => [
15848
16012
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -15853,7 +16017,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
15853
16017
  };
15854
16018
  }
15855
16019
  });
15856
- const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16020
+ const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15857
16021
  function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
15858
16022
  const allCookies = api.get() || {};
15859
16023
  const storedValue = allCookies[key] || localStorage$2.getItem(key);
@@ -15877,10 +16041,10 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
15877
16041
  );
15878
16042
  return value;
15879
16043
  }
15880
- const _hoisted_1$y = { class: "tools-item-wrapper" };
15881
- const _hoisted_2$s = { class: "tools-item-wrapper-checkbox" };
15882
- const _hoisted_3$r = ["onClick", "title"];
15883
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
16044
+ const _hoisted_1$A = { class: "tools-item-wrapper" };
16045
+ const _hoisted_2$t = { class: "tools-item-wrapper-checkbox" };
16046
+ const _hoisted_3$s = ["onClick", "title"];
16047
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
15884
16048
  __name: "Lang",
15885
16049
  setup(__props) {
15886
16050
  const lang = useCookie(LANG_KEY, LANG_ZH);
@@ -15902,9 +16066,9 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
15902
16066
  window.location.reload();
15903
16067
  };
15904
16068
  return (_ctx, _cache) => {
15905
- return openBlock(), createElementBlock("div", _hoisted_1$y, [
16069
+ return openBlock(), createElementBlock("div", _hoisted_1$A, [
15906
16070
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
15907
- createElementVNode("div", _hoisted_2$s, [
16071
+ createElementVNode("div", _hoisted_2$t, [
15908
16072
  (openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
15909
16073
  return openBlock(), createElementBlock("div", mergeProps({
15910
16074
  key: item.label
@@ -15919,26 +16083,26 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
15919
16083
  color: "var(--theme-icon-fill-weak)",
15920
16084
  class: "checkbox-item-icon"
15921
16085
  }, null, 8, ["name"])
15922
- ], 16, _hoisted_3$r);
16086
+ ], 16, _hoisted_3$s);
15923
16087
  }), 128))
15924
16088
  ])
15925
16089
  ]);
15926
16090
  };
15927
16091
  }
15928
16092
  });
15929
- const _hoisted_1$x = {
16093
+ const _hoisted_1$z = {
15930
16094
  key: 0,
15931
16095
  class: "user-level-avatar-badge"
15932
16096
  };
15933
- const _hoisted_2$r = { class: "user-level__row" };
15934
- const _hoisted_3$q = ["src"];
15935
- const _hoisted_4$k = { class: "level-name" };
15936
- const _hoisted_5$f = { class: "level-icon" };
15937
- const _hoisted_6$e = ["src"];
15938
- const _hoisted_7$b = { class: "custom-btn" };
15939
- const _hoisted_8$9 = { class: "user-level__btn-text" };
16097
+ const _hoisted_2$s = { class: "user-level__row" };
16098
+ const _hoisted_3$r = ["src"];
16099
+ const _hoisted_4$l = { class: "level-name" };
16100
+ const _hoisted_5$g = { class: "level-icon" };
16101
+ const _hoisted_6$f = ["src"];
16102
+ const _hoisted_7$c = { class: "custom-btn" };
16103
+ const _hoisted_8$a = { class: "user-level__btn-text" };
15940
16104
  const maxLevel = 3;
15941
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
16105
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
15942
16106
  ...{ name: "UserLevel" },
15943
16107
  __name: "UserLevel",
15944
16108
  props: ["accountInfo"],
@@ -15989,44 +16153,46 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
15989
16153
  class: normalizeClass(["user-level", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
15990
16154
  onClick: handleUpgrade
15991
16155
  }, [
15992
- __props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$x)) : createCommentVNode("", true),
15993
- createElementVNode("div", _hoisted_2$r, [
16156
+ __props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$z)) : createCommentVNode("", true),
16157
+ createElementVNode("div", _hoisted_2$s, [
15994
16158
  createElementVNode("img", {
15995
16159
  class: "level-avatar",
15996
16160
  src: levelInfo.value.avatar,
15997
16161
  alt: ""
15998
- }, null, 8, _hoisted_3$q),
15999
- createElementVNode("div", _hoisted_4$k, [
16162
+ }, null, 8, _hoisted_3$r),
16163
+ createElementVNode("div", _hoisted_4$l, [
16000
16164
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
16001
- createElementVNode("div", _hoisted_5$f, [
16165
+ createElementVNode("div", _hoisted_5$g, [
16002
16166
  createElementVNode("img", {
16003
16167
  src: levelInfo.value.level,
16004
16168
  alt: ""
16005
- }, null, 8, _hoisted_6$e)
16169
+ }, null, 8, _hoisted_6$f)
16006
16170
  ])
16007
16171
  ])
16008
16172
  ]),
16009
- createElementVNode("div", _hoisted_7$b, [
16010
- createElementVNode("div", _hoisted_8$9, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.tips.getPoints")), 1)
16173
+ createElementVNode("div", _hoisted_7$c, [
16174
+ createElementVNode("div", _hoisted_8$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.tips.getPoints")), 1)
16011
16175
  ])
16012
16176
  ], 2);
16013
16177
  };
16014
16178
  }
16015
16179
  });
16016
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16017
- const _hoisted_1$w = { class: "g-account-switch-menu" };
16018
- const _hoisted_2$q = { class: "g-account-switch-title" };
16019
- const _hoisted_3$p = ["disabled", "onClick"];
16020
- const _hoisted_4$j = ["title"];
16021
- const _hoisted_5$e = {
16180
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16181
+ const _hoisted_1$y = { class: "g-account-switch-menu" };
16182
+ const _hoisted_2$r = {
16183
+ key: 0,
16184
+ class: "g-account-switch-title"
16185
+ };
16186
+ const _hoisted_3$q = ["disabled", "onClick"];
16187
+ const _hoisted_4$k = ["title"];
16188
+ const _hoisted_5$f = {
16022
16189
  key: 0,
16023
16190
  class: "g-account-switch-status"
16024
16191
  };
16025
- const _hoisted_6$d = ["disabled", "aria-label", "title", "onClick"];
16026
- const _hoisted_7$a = { class: "g-account-switch-actions" };
16027
- const _hoisted_8$8 = ["disabled"];
16028
- const _hoisted_9$8 = ["disabled"];
16029
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
16192
+ const _hoisted_6$e = ["disabled", "aria-label", "title", "onClick"];
16193
+ const _hoisted_7$b = ["disabled"];
16194
+ const _hoisted_8$9 = ["disabled"];
16195
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
16030
16196
  __name: "AccountSessionList",
16031
16197
  props: {
16032
16198
  items: { default: () => [] },
@@ -16042,8 +16208,8 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
16042
16208
  const otherAccounts = computed(() => props.items.filter((item) => item.ref !== props.activeRef && !item.active));
16043
16209
  const canAdd = computed(() => props.items.length < props.max);
16044
16210
  return (_ctx, _cache) => {
16045
- return openBlock(), createElementBlock("div", _hoisted_1$w, [
16046
- createElementVNode("div", _hoisted_2$q, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountSwitchTitle")), 1),
16211
+ return openBlock(), createElementBlock("div", _hoisted_1$y, [
16212
+ otherAccounts.value.length ? (openBlock(), createElementBlock("div", _hoisted_2$r, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountSwitchTitle")), 1)) : createCommentVNode("", true),
16047
16213
  (openBlock(true), createElementBlock(Fragment, null, renderList(otherAccounts.value, (item) => {
16048
16214
  return openBlock(), createElementBlock("div", {
16049
16215
  key: item.ref,
@@ -16055,7 +16221,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
16055
16221
  disabled: __props.busy,
16056
16222
  onClick: ($event) => item.status === "need_reauth" ? emit("reauthorize", item.ref) : emit("switch", item.ref)
16057
16223
  }, [
16058
- createVNode(_sfc_main$O, {
16224
+ createVNode(_sfc_main$R, {
16059
16225
  name: item.nickname || item.username,
16060
16226
  src: item.avatarUrl || "",
16061
16227
  width: 28,
@@ -16064,9 +16230,9 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
16064
16230
  createElementVNode("span", {
16065
16231
  class: "g-account-switch-name",
16066
16232
  title: item.username
16067
- }, toDisplayString$1(item.username), 9, _hoisted_4$j),
16068
- item.status === "need_reauth" ? (openBlock(), createElementBlock("span", _hoisted_5$e, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountNeedReauth")), 1)) : createCommentVNode("", true)
16069
- ], 8, _hoisted_3$p),
16233
+ }, toDisplayString$1(item.username), 9, _hoisted_4$k),
16234
+ item.status === "need_reauth" ? (openBlock(), createElementBlock("span", _hoisted_5$f, toDisplayString$1(unref(t2)("gitCodeLayout.header.accountNeedReauth")), 1)) : createCommentVNode("", true)
16235
+ ], 8, _hoisted_3$q),
16070
16236
  createElementVNode("button", {
16071
16237
  class: "g-account-switch-remove",
16072
16238
  type: "button",
@@ -16074,10 +16240,12 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
16074
16240
  "aria-label": `${unref(t2)("gitCodeLayout.header.accountRemove")} ${item.username}`,
16075
16241
  title: unref(t2)("gitCodeLayout.header.accountRemove"),
16076
16242
  onClick: ($event) => emit("remove", item.ref)
16077
- }, "×", 8, _hoisted_6$d)
16243
+ }, "×", 8, _hoisted_6$e)
16078
16244
  ]);
16079
16245
  }), 128)),
16080
- createElementVNode("div", _hoisted_7$a, [
16246
+ createElementVNode("div", {
16247
+ class: normalizeClass(["g-account-switch-actions", { "g-account-switch-actions--divided": otherAccounts.value.length }])
16248
+ }, [
16081
16249
  canAdd.value ? (openBlock(), createElementBlock("button", {
16082
16250
  key: 0,
16083
16251
  type: "button",
@@ -16085,65 +16253,410 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
16085
16253
  disabled: __props.busy,
16086
16254
  onClick: _cache[0] || (_cache[0] = ($event) => emit("add"))
16087
16255
  }, [
16088
- _cache[2] || (_cache[2] = createElementVNode("svg", {
16089
- width: "18",
16090
- height: "18",
16091
- viewBox: "0 0 24 24",
16092
- fill: "none",
16093
- "aria-hidden": "true"
16094
- }, [
16095
- createElementVNode("path", {
16096
- d: "M15 20v-2a5 5 0 0 0-10 0v2M10 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8m9-6v6m-3-3h6",
16097
- stroke: "currentColor",
16098
- "stroke-width": "1.7",
16099
- "stroke-linecap": "round",
16100
- "stroke-linejoin": "round"
16101
- })
16102
- ], -1)),
16256
+ createVNode(GIcon, {
16257
+ name: "gt-plane-users",
16258
+ size: "16px"
16259
+ }),
16103
16260
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.accountAdd")), 1)
16104
- ], 8, _hoisted_8$8)) : createCommentVNode("", true),
16105
- createElementVNode("button", {
16261
+ ], 8, _hoisted_7$b)) : createCommentVNode("", true),
16262
+ otherAccounts.value.length ? (openBlock(), createElementBlock("button", {
16263
+ key: 1,
16106
16264
  type: "button",
16107
16265
  class: "g-account-switch-action",
16108
16266
  disabled: __props.busy,
16109
16267
  onClick: _cache[1] || (_cache[1] = ($event) => emit("logout"))
16110
16268
  }, [
16111
- _cache[3] || (_cache[3] = createElementVNode("svg", {
16112
- width: "18",
16113
- height: "18",
16114
- viewBox: "0 0 24 24",
16115
- fill: "none",
16116
- "aria-hidden": "true"
16117
- }, [
16118
- createElementVNode("path", {
16119
- d: "M9 4H4v16h5M13 8l4 4-4 4m-5-4h12",
16120
- stroke: "currentColor",
16121
- "stroke-width": "1.7",
16122
- "stroke-linecap": "round",
16123
- "stroke-linejoin": "round"
16124
- })
16125
- ], -1)),
16269
+ createVNode(GIcon, {
16270
+ name: "gt-default",
16271
+ size: "16px"
16272
+ }),
16126
16273
  createTextVNode(" " + toDisplayString$1(unref(t2)("gitCodeLayout.header.logout")), 1)
16127
- ], 8, _hoisted_9$8)
16128
- ])
16274
+ ], 8, _hoisted_8$9)) : createCommentVNode("", true)
16275
+ ], 2)
16129
16276
  ]);
16130
16277
  };
16131
16278
  }
16132
16279
  });
16133
- const AccountSessionList = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16134
- const _hoisted_1$v = { class: "g-user-drawer-account-heading" };
16135
- const _hoisted_2$p = { class: "g-user-drawer-info-list" };
16136
- const _hoisted_3$o = { class: "g-user-drawer-info-list__name-wrap" };
16137
- const _hoisted_4$i = ["title"];
16138
- const _hoisted_5$d = ["title"];
16139
- const _hoisted_6$c = ["onKeydown"];
16140
- const _hoisted_7$9 = ["aria-label", "aria-expanded", "disabled"];
16141
- const _hoisted_8$7 = ["aria-label"];
16142
- const _hoisted_9$7 = {
16280
+ const AccountSessionList = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16281
+ const SHORTCUT_STORAGE_KEY = "atomgit.character-shortcuts";
16282
+ const SHORTCUT_SEQUENCE_TIMEOUT = 1500;
16283
+ const SHORTCUT_GROUPS = ["site", "repo", "code", "editor", "list", "detail"];
16284
+ const BUILTIN_SHORTCUTS = [
16285
+ { id: "site.search", keys: "/", group: "site", labelKey: "shortcut.site.search" },
16286
+ { id: "site.searchLetter", keys: "s", group: "site", labelKey: "shortcut.site.search" },
16287
+ { id: "site.help", keys: "?", group: "site", labelKey: "shortcut.site.help" },
16288
+ { id: "site.notifications", keys: "g n", group: "site", labelKey: "shortcut.site.notifications" },
16289
+ { id: "site.commands", keys: "mod+k", group: "site", labelKey: "shortcut.site.commands" },
16290
+ { id: "site.escape", keys: "escape", group: "site", labelKey: "shortcut.dialog.close" }
16291
+ ];
16292
+ const isMacPlatform = () => typeof navigator !== "undefined" && /Mac|iPhone|iPad/.test(navigator.platform);
16293
+ const parseShortcut = (keys, isMac = isMacPlatform()) => {
16294
+ if (!keys.trim()) {
16295
+ throw new Error("Shortcut keys must not be empty");
16296
+ }
16297
+ return keys.trim().split(/\s+/).map((token) => {
16298
+ const parts = token.toLowerCase().split("+");
16299
+ let key = parts.pop();
16300
+ if (key === "esc") {
16301
+ key = "escape";
16302
+ }
16303
+ if (key === "space") {
16304
+ key = " ";
16305
+ }
16306
+ const modifiers = new Set(parts);
16307
+ if (!key || parts.some((part) => !["ctrl", "meta", "alt", "shift", "mod"].includes(part)) || modifiers.size !== parts.length) {
16308
+ throw new Error(`Invalid shortcut: ${keys}`);
16309
+ }
16310
+ if (key.length !== 1 && !["escape", "enter", "tab", "backspace", "delete", "arrowup", "arrowdown", "arrowleft", "arrowright", "home", "end", "pageup", "pagedown"].includes(key)) {
16311
+ throw new Error(`Unsupported shortcut key: ${key}`);
16312
+ }
16313
+ return {
16314
+ key,
16315
+ ctrl: modifiers.has("ctrl") || modifiers.has("mod") && !isMac,
16316
+ meta: modifiers.has("meta") || modifiers.has("mod") && isMac,
16317
+ alt: modifiers.has("alt"),
16318
+ shift: modifiers.has("shift")
16319
+ };
16320
+ });
16321
+ };
16322
+ const matchesStroke = (event, stroke) => {
16323
+ const key = event.key.length === 1 && !stroke.shift ? event.key : event.key.toLowerCase();
16324
+ return key === stroke.key && event.ctrlKey === stroke.ctrl && event.metaKey === stroke.meta && event.altKey === stroke.alt && (stroke.key === "?" || event.shiftKey === stroke.shift);
16325
+ };
16326
+ const isCharacterShortcut = (strokes) => strokes.every((stroke) => stroke.key.length === 1 && !stroke.ctrl && !stroke.meta && !stroke.alt);
16327
+ const normalizeShortcut = (keys, isMac) => parseShortcut(keys, isMac).map((stroke) => JSON.stringify({ ...stroke, shift: stroke.key === "?" ? false : stroke.shift }));
16328
+ const config = shallowRef({ actions: [] });
16329
+ const shortcutConfig = readonly(config);
16330
+ const shortcutRevision = shallowRef(0);
16331
+ function setShortcutConfig(next) {
16332
+ if (typeof window === "undefined") {
16333
+ return;
16334
+ }
16335
+ const actions = [...BUILTIN_SHORTCUTS, ...next.actions];
16336
+ try {
16337
+ for (const isMac of [false, true]) {
16338
+ const normalized = actions.map((action) => normalizeShortcut(action.keys, isMac));
16339
+ for (let i = 0; i < actions.length; i++) {
16340
+ for (let j = i + 1; j < actions.length; j++) {
16341
+ const a = normalized[i];
16342
+ const b = normalized[j];
16343
+ const prefix = a.slice(0, Math.min(a.length, b.length)).every((key, index2) => key === b[index2]);
16344
+ if (actions[i].id === actions[j].id || prefix) {
16345
+ throw new Error(`Shortcut conflict: ${actions[i].id} (${actions[i].keys}) / ${actions[j].id} (${actions[j].keys})`);
16346
+ }
16347
+ }
16348
+ }
16349
+ }
16350
+ } catch (error) {
16351
+ console.error(error);
16352
+ return;
16353
+ }
16354
+ config.value = { actions: next.actions.map((action) => ({ ...action })), isBlocked: next.isBlocked };
16355
+ shortcutRevision.value++;
16356
+ }
16357
+ function useShortcutConfig() {
16358
+ return readonly({
16359
+ get actions() {
16360
+ return config.value.actions;
16361
+ },
16362
+ get isBlocked() {
16363
+ return config.value.isBlocked;
16364
+ }
16365
+ });
16366
+ }
16367
+ const isEditableTarget = (target) => {
16368
+ if (!target || typeof Element === "undefined" || !(target instanceof Element)) {
16369
+ return false;
16370
+ }
16371
+ return Boolean(target.closest("input, textarea, select, .CodeMirror-focused, .cm-editor.cm-focused")) || target.isContentEditable === true || Boolean(target.closest('[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]'));
16372
+ };
16373
+ const isComposingEvent = (event) => event.isComposing || event.keyCode === 229;
16374
+ const shouldIgnoreShortcut = (event) => event.defaultPrevented || event.repeat || isComposingEvent(event) || event.composedPath().some(isEditableTarget) || isEditableTarget(event.target) || typeof document !== "undefined" && isEditableTarget(document.activeElement);
16375
+ let current = null;
16376
+ const enabled = ref(true);
16377
+ const characterShortcutsEnabled = readonly(enabled);
16378
+ const parsePreference = (raw) => {
16379
+ try {
16380
+ const record = JSON.parse(raw || "null");
16381
+ if (record && (record.value === "on" || record.value === "off") && Number.isSafeInteger(record.updatedAt) && record.updatedAt >= 0) {
16382
+ return { value: record.value, updatedAt: record.updatedAt };
16383
+ }
16384
+ } catch {
16385
+ }
16386
+ return null;
16387
+ };
16388
+ const newestPreference = (records) => records.reduce((latest, record) => {
16389
+ if (!record) {
16390
+ return latest;
16391
+ }
16392
+ if (!latest || record.updatedAt > latest.updatedAt || record.updatedAt === latest.updatedAt && record.value === "off") {
16393
+ return record;
16394
+ }
16395
+ return latest;
16396
+ }, null);
16397
+ function refreshShortcutPreference() {
16398
+ if (typeof window === "undefined") {
16399
+ return;
16400
+ }
16401
+ let cookie = null;
16402
+ try {
16403
+ cookie = parsePreference(api.get(SHORTCUT_STORAGE_KEY));
16404
+ } catch {
16405
+ }
16406
+ current = newestPreference([current, cookie, parsePreference(localStorage$2.getItem(SHORTCUT_STORAGE_KEY))]);
16407
+ enabled.value = (current == null ? void 0 : current.value) !== "off";
16408
+ }
16409
+ function setCharacterShortcutsEnabled(value) {
16410
+ if (typeof window === "undefined") {
16411
+ return;
16412
+ }
16413
+ refreshShortcutPreference();
16414
+ current = { value: value ? "on" : "off", updatedAt: Math.max(Date.now(), ((current == null ? void 0 : current.updatedAt) ?? -1) + 1) };
16415
+ enabled.value = value;
16416
+ const serialized = JSON.stringify(current);
16417
+ localStorage$2.setItem(SHORTCUT_STORAGE_KEY, serialized);
16418
+ try {
16419
+ const domain = COOKIE_DOMAIN().replace(/^\./, "");
16420
+ const hostname = window.location.hostname;
16421
+ const shared = hostname === domain || hostname.endsWith(`.${domain}`);
16422
+ api.set(SHORTCUT_STORAGE_KEY, serialized, {
16423
+ expires: 365,
16424
+ path: "/",
16425
+ sameSite: "Lax",
16426
+ secure: window.location.protocol === "https:",
16427
+ ...shared ? { domain: `.${domain}` } : {}
16428
+ });
16429
+ if (api.get(SHORTCUT_STORAGE_KEY) !== serialized) {
16430
+ return;
16431
+ }
16432
+ } catch {
16433
+ }
16434
+ }
16435
+ const providers = shallowRef([]);
16436
+ const searches = shallowRef([]);
16437
+ const notices = shallowRef([]);
16438
+ const blockers = shallowRef([]);
16439
+ const isBlocked = () => {
16440
+ var _a, _b;
16441
+ return Boolean(((_b = (_a = shortcutConfig.value).isBlocked) == null ? void 0 : _b.call(_a)) || blockers.value.some((blocked) => blocked()));
16442
+ };
16443
+ const dialog = ref(null);
16444
+ const shortcutDialog = readonly(dialog);
16445
+ const hasShortcutProvider = computed(() => providers.value.length > 0);
16446
+ let returnFocus = null;
16447
+ let pending = [];
16448
+ let timer;
16449
+ let detach;
16450
+ function resetShortcutSequence() {
16451
+ pending = [];
16452
+ clearTimeout(timer);
16453
+ timer = void 0;
16454
+ }
16455
+ function openShortcutHelp() {
16456
+ openDialog("help");
16457
+ }
16458
+ function openShortcutCommands() {
16459
+ openDialog("commands");
16460
+ }
16461
+ function openDialog(mode) {
16462
+ if (!hasShortcutProvider.value || typeof document === "undefined" || isBlocked()) {
16463
+ return;
16464
+ }
16465
+ if (!dialog.value) {
16466
+ returnFocus = document.activeElement;
16467
+ }
16468
+ resetShortcutSequence();
16469
+ dialog.value = mode;
16470
+ }
16471
+ function closeShortcutDialog(restoreFocus = true) {
16472
+ dialog.value = null;
16473
+ const previous = returnFocus;
16474
+ returnFocus = null;
16475
+ if (restoreFocus && typeof document !== "undefined") {
16476
+ void nextTick(() => {
16477
+ const target = (previous == null ? void 0 : previous.isConnected) ? previous : document.querySelector("[data-shortcut-help]");
16478
+ target == null ? void 0 : target.focus();
16479
+ });
16480
+ }
16481
+ }
16482
+ const activeTarget = (targets) => [...targets].reverse().find((target) => target.when());
16483
+ const builtinActions = computed(() => BUILTIN_SHORTCUTS.filter((item) => item.id !== "site.escape").map((item) => {
16484
+ if (item.id === "site.search" || item.id === "site.searchLetter") {
16485
+ return { ...item, when: () => Boolean(activeTarget(searches.value)), run: () => {
16486
+ var _a;
16487
+ return (_a = activeTarget(searches.value)) == null ? void 0 : _a.run();
16488
+ } };
16489
+ }
16490
+ if (item.id === "site.notifications") {
16491
+ return { ...item, when: () => Boolean(activeTarget(notices.value)), run: () => {
16492
+ var _a;
16493
+ return (_a = activeTarget(notices.value)) == null ? void 0 : _a.run();
16494
+ } };
16495
+ }
16496
+ return { ...item, run: item.id === "site.help" ? openShortcutHelp : openShortcutCommands };
16497
+ }));
16498
+ const getAvailableShortcutActions = () => {
16499
+ if (!hasShortcutProvider.value) {
16500
+ return builtinActions.value.filter((action) => action.id === "site.search" && (!action.when || action.when()));
16501
+ }
16502
+ return [...builtinActions.value, ...shortcutConfig.value.actions].filter((action) => !action.when || action.when());
16503
+ };
16504
+ const selectionRevision = ref(0);
16505
+ const onSelectionChange = () => {
16506
+ selectionRevision.value += 1;
16507
+ };
16508
+ const availableShortcutActions = computed(() => {
16509
+ void selectionRevision.value;
16510
+ return getAvailableShortcutActions();
16511
+ });
16512
+ function executeShortcutAction(action) {
16513
+ if (isBlocked() || !getAvailableShortcutActions().some((item) => item.id === action.id) || action.when && !action.when()) {
16514
+ return;
16515
+ }
16516
+ closeShortcutDialog(false);
16517
+ void nextTick(() => {
16518
+ const current2 = getAvailableShortcutActions().find((item) => item.id === action.id);
16519
+ if (!isBlocked() && current2) {
16520
+ current2.run();
16521
+ }
16522
+ });
16523
+ }
16524
+ function onKeydown(event) {
16525
+ if (shouldIgnoreShortcut(event)) {
16526
+ resetShortcutSequence();
16527
+ return;
16528
+ }
16529
+ if (dialog.value || isBlocked()) {
16530
+ resetShortcutSequence();
16531
+ return;
16532
+ }
16533
+ if (event.key === "Escape") {
16534
+ if (pending.length) {
16535
+ event.preventDefault();
16536
+ resetShortcutSequence();
16537
+ }
16538
+ return;
16539
+ }
16540
+ const candidates = getAvailableShortcutActions().map((action) => ({ action, strokes: parseShortcut(action.keys) })).filter(({ strokes }) => characterShortcutsEnabled.value || !isCharacterShortcut(strokes));
16541
+ const matches = candidates.filter(({ strokes }) => strokes.length > pending.length && pending.every((key, index2) => key === JSON.stringify(strokes[index2])) && matchesStroke(event, strokes[pending.length]));
16542
+ const complete = matches.find(({ strokes }) => strokes.length === pending.length + 1);
16543
+ if (complete) {
16544
+ resetShortcutSequence();
16545
+ if (!complete.action.when || complete.action.when()) {
16546
+ event.preventDefault();
16547
+ complete.action.run();
16548
+ }
16549
+ } else if (matches.length) {
16550
+ pending.push(JSON.stringify(matches[0].strokes[pending.length]));
16551
+ clearTimeout(timer);
16552
+ timer = setTimeout(resetShortcutSequence, SHORTCUT_SEQUENCE_TIMEOUT);
16553
+ } else {
16554
+ resetShortcutSequence();
16555
+ }
16556
+ }
16557
+ function syncListener() {
16558
+ if (typeof document === "undefined") {
16559
+ return;
16560
+ }
16561
+ const needed = providers.value.length + searches.value.length > 0;
16562
+ if (!needed) {
16563
+ detach == null ? void 0 : detach();
16564
+ detach = void 0;
16565
+ resetShortcutSequence();
16566
+ return;
16567
+ }
16568
+ if (detach) {
16569
+ return;
16570
+ }
16571
+ refreshShortcutPreference();
16572
+ const onFocus = (event) => {
16573
+ if (isEditableTarget(event.target)) {
16574
+ resetShortcutSequence();
16575
+ }
16576
+ };
16577
+ document.addEventListener("keydown", onKeydown);
16578
+ document.addEventListener("focusin", onFocus);
16579
+ document.addEventListener("compositionstart", resetShortcutSequence);
16580
+ document.addEventListener("selectionchange", onSelectionChange);
16581
+ window.addEventListener("blur", resetShortcutSequence);
16582
+ window.addEventListener("focus", refreshShortcutPreference);
16583
+ const scope = effectScope(true);
16584
+ scope.run(() => {
16585
+ watch(shortcutRevision, resetShortcutSequence, { flush: "sync" });
16586
+ watch(characterShortcutsEnabled, resetShortcutSequence, { flush: "sync" });
16587
+ watch(isBlocked, resetShortcutSequence, { flush: "sync" });
16588
+ });
16589
+ detach = () => {
16590
+ document.removeEventListener("keydown", onKeydown);
16591
+ document.removeEventListener("focusin", onFocus);
16592
+ document.removeEventListener("compositionstart", resetShortcutSequence);
16593
+ document.removeEventListener("selectionchange", onSelectionChange);
16594
+ window.removeEventListener("blur", resetShortcutSequence);
16595
+ window.removeEventListener("focus", refreshShortcutPreference);
16596
+ scope.stop();
16597
+ };
16598
+ }
16599
+ function registerShortcutProvider() {
16600
+ const id = Symbol("shortcut-provider");
16601
+ providers.value = [...providers.value, id];
16602
+ syncListener();
16603
+ return {
16604
+ isOwner: computed(() => providers.value[0] === id),
16605
+ dispose: () => {
16606
+ providers.value = providers.value.filter((item) => item !== id);
16607
+ if (!providers.value.length) {
16608
+ closeShortcutDialog();
16609
+ resetShortcutSequence();
16610
+ }
16611
+ syncListener();
16612
+ }
16613
+ };
16614
+ }
16615
+ function registerTarget(target, collection) {
16616
+ collection.value = [...collection.value, target];
16617
+ syncListener();
16618
+ return () => {
16619
+ collection.value = collection.value.filter((item) => item !== target);
16620
+ syncListener();
16621
+ };
16622
+ }
16623
+ const registerShortcutSearch = (target) => registerTarget(target, searches);
16624
+ const registerShortcutNotice = (target) => registerTarget(target, notices);
16625
+ function useShortcutSearch(target) {
16626
+ let dispose;
16627
+ onMounted(() => {
16628
+ dispose = registerShortcutSearch(target);
16629
+ });
16630
+ onUnmounted(() => dispose == null ? void 0 : dispose());
16631
+ }
16632
+ function useShortcutNotice(target) {
16633
+ let dispose;
16634
+ onMounted(() => {
16635
+ dispose = registerShortcutNotice(target);
16636
+ });
16637
+ onUnmounted(() => dispose == null ? void 0 : dispose());
16638
+ }
16639
+ function useShortcutBlocker(blocked) {
16640
+ onMounted(() => {
16641
+ blockers.value = [...blockers.value, blocked];
16642
+ });
16643
+ onUnmounted(() => {
16644
+ blockers.value = blockers.value.filter((item) => item !== blocked);
16645
+ });
16646
+ }
16647
+ const _hoisted_1$x = { class: "g-user-drawer-account-heading" };
16648
+ const _hoisted_2$q = { class: "g-user-drawer-info-list" };
16649
+ const _hoisted_3$p = { class: "g-user-drawer-info-list__name-wrap" };
16650
+ const _hoisted_4$j = ["title"];
16651
+ const _hoisted_5$e = ["title"];
16652
+ const _hoisted_6$d = ["onKeydown"];
16653
+ const _hoisted_7$a = ["aria-label", "aria-expanded", "disabled"];
16654
+ const _hoisted_8$8 = ["aria-label"];
16655
+ const _hoisted_9$8 = {
16143
16656
  key: 0,
16144
16657
  class: "g-user-drawer-lang-row"
16145
16658
  };
16146
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
16659
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
16147
16660
  __name: "UserAvatarMenu",
16148
16661
  props: {
16149
16662
  isChatBot: { type: Boolean },
@@ -16297,7 +16810,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16297
16810
  });
16298
16811
  const avatarLangBlock = {
16299
16812
  id: "avatar-lang",
16300
- component: markRaw(_sfc_main$C),
16813
+ component: markRaw(_sfc_main$F),
16301
16814
  avatarLangRow: true
16302
16815
  };
16303
16816
  const shouldShowEnterpriseLang = computed(
@@ -16308,6 +16821,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16308
16821
  );
16309
16822
  const accountMenuId = `toolbar-account-switcher-${(_a = getCurrentInstance()) == null ? void 0 : _a.uid}`;
16310
16823
  const accountMenuOpen = ref(false);
16824
+ useShortcutBlocker(() => accountMenuOpen.value);
16311
16825
  const accountSwitcherRef = ref(null);
16312
16826
  const accountSwitchButton = ref(null);
16313
16827
  const accountMenuPanel = ref(null);
@@ -16406,7 +16920,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16406
16920
  ref_key: "menuContainerRef",
16407
16921
  ref: menuContainerRef
16408
16922
  }, [
16409
- createElementVNode("div", _hoisted_1$v, [
16923
+ createElementVNode("div", _hoisted_1$x, [
16410
16924
  createVNode(GLink, {
16411
16925
  class: "g-user-drawer-info",
16412
16926
  href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
@@ -16414,22 +16928,22 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16414
16928
  target: __props.isChatBot ? "_blank" : ""
16415
16929
  }, {
16416
16930
  default: withCtx(() => [
16417
- createVNode(_sfc_main$O, {
16931
+ createVNode(_sfc_main$R, {
16418
16932
  name: __props.accountInfo.nickname || "",
16419
16933
  src: __props.accountInfo.avatar || "",
16420
16934
  width: 52,
16421
16935
  height: 52
16422
16936
  }, null, 8, ["name", "src"]),
16423
- createElementVNode("div", _hoisted_2$p, [
16424
- createElementVNode("div", _hoisted_3$o, [
16937
+ createElementVNode("div", _hoisted_2$q, [
16938
+ createElementVNode("div", _hoisted_3$p, [
16425
16939
  createElementVNode("p", {
16426
16940
  class: "g-user-drawer-info-list-name ellipsis",
16427
16941
  title: __props.accountInfo.nickname
16428
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_4$i),
16942
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_4$j),
16429
16943
  createElementVNode("p", {
16430
16944
  class: "g-user-drawer-info-list-id ellipsis",
16431
16945
  title: __props.accountInfo.username
16432
- }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_5$d)
16946
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_5$e)
16433
16947
  ]),
16434
16948
  !__props.accountSessionSupported ? (openBlock(), createBlock(GIcon, {
16435
16949
  key: 0,
@@ -16474,7 +16988,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16474
16988
  "stroke-linejoin": "round"
16475
16989
  })
16476
16990
  ], -1)
16477
- ])], 8, _hoisted_7$9),
16991
+ ])], 8, _hoisted_7$a),
16478
16992
  accountMenuOpen.value ? (openBlock(), createElementBlock("div", {
16479
16993
  key: 0,
16480
16994
  id: accountMenuId,
@@ -16499,8 +17013,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16499
17013
  handleLogout();
16500
17014
  })
16501
17015
  }, null, 8, ["items", "active-ref", "max", "busy"])
16502
- ], 8, _hoisted_8$7)) : createCommentVNode("", true)
16503
- ], 40, _hoisted_6$c)) : createCommentVNode("", true)
17016
+ ], 8, _hoisted_8$8)) : createCommentVNode("", true)
17017
+ ], 40, _hoisted_6$d)) : createCommentVNode("", true)
16504
17018
  ]),
16505
17019
  !__props.inAIHub ? (openBlock(), createBlock(UserLevel, {
16506
17020
  key: 0,
@@ -16512,7 +17026,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16512
17026
  key: index2
16513
17027
  }, [
16514
17028
  block.component ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
16515
- block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_9$7, [
17029
+ block.avatarLangRow ? (openBlock(), createElementBlock("div", _hoisted_9$8, [
16516
17030
  (openBlock(), createBlock(resolveDynamicComponent(block.component), {
16517
17031
  key: block.id
16518
17032
  }))
@@ -16544,20 +17058,20 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
16544
17058
  };
16545
17059
  }
16546
17060
  });
16547
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16548
- const _hoisted_1$u = { class: "g-user-avatar flex-center" };
16549
- const _hoisted_2$o = {
17061
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17062
+ const _hoisted_1$w = { class: "g-user-avatar flex-center" };
17063
+ const _hoisted_2$p = {
16550
17064
  key: 0,
16551
17065
  class: "g-user-avatar__badge"
16552
17066
  };
16553
- const _hoisted_3$n = { class: "g-user-avatar flex-center" };
16554
- const _hoisted_4$h = {
17067
+ const _hoisted_3$o = { class: "g-user-avatar flex-center" };
17068
+ const _hoisted_4$i = {
16555
17069
  key: 0,
16556
17070
  class: "g-user-avatar__badge"
16557
17071
  };
16558
- const _hoisted_5$c = { class: "g-user-drawer" };
16559
- const _hoisted_6$b = { class: "user-avatar__drawer-header" };
16560
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
17072
+ const _hoisted_5$d = { class: "g-user-drawer" };
17073
+ const _hoisted_6$c = { class: "user-avatar__drawer-header" };
17074
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
16561
17075
  ...{
16562
17076
  name: "UserAvatar"
16563
17077
  },
@@ -16719,12 +17233,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16719
17233
  key: 0,
16720
17234
  onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
16721
17235
  }, [
16722
- createElementVNode("div", _hoisted_1$u, [
16723
- createVNode(_sfc_main$O, {
17236
+ createElementVNode("div", _hoisted_1$w, [
17237
+ createVNode(_sfc_main$R, {
16724
17238
  name: accountInfo.value.nickname,
16725
17239
  src: unref(transformUrl)(accountInfo.value.avatar)
16726
17240
  }, null, 8, ["name", "src"]),
16727
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$o, [..._cache[4] || (_cache[4] = [
17241
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$p, [..._cache[4] || (_cache[4] = [
16728
17242
  createElementVNode("div", null, null, -1)
16729
17243
  ])])) : createCommentVNode("", true)
16730
17244
  ])
@@ -16737,7 +17251,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16737
17251
  onToggle: handleToggle
16738
17252
  }, {
16739
17253
  menu: withCtx(() => [
16740
- createElementVNode("div", _hoisted_5$c, [
17254
+ createElementVNode("div", _hoisted_5$d, [
16741
17255
  createVNode(UserAvatarMenu, mergeProps({
16742
17256
  "menu-visible": avatarMenuVisible.value,
16743
17257
  independence: __props.independence,
@@ -16751,12 +17265,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16751
17265
  ])
16752
17266
  ]),
16753
17267
  default: withCtx(() => [
16754
- createElementVNode("div", _hoisted_3$n, [
16755
- createVNode(_sfc_main$O, {
17268
+ createElementVNode("div", _hoisted_3$o, [
17269
+ createVNode(_sfc_main$R, {
16756
17270
  name: accountInfo.value.nickname,
16757
17271
  src: unref(transformUrl)(accountInfo.value.avatar)
16758
17272
  }, null, 8, ["name", "src"]),
16759
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$h, [..._cache[5] || (_cache[5] = [
17273
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$i, [..._cache[5] || (_cache[5] = [
16760
17274
  createElementVNode("div", null, null, -1)
16761
17275
  ])])) : createCommentVNode("", true)
16762
17276
  ])
@@ -16772,7 +17286,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16772
17286
  }, {
16773
17287
  default: withCtx(() => [
16774
17288
  createElementVNode("div", null, [
16775
- createElementVNode("div", _hoisted_6$b, [
17289
+ createElementVNode("div", _hoisted_6$c, [
16776
17290
  createVNode(unref(Button), {
16777
17291
  class: "draw-side-bar-close",
16778
17292
  icon: "close",
@@ -16801,7 +17315,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
16801
17315
  };
16802
17316
  }
16803
17317
  });
16804
- const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17318
+ const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
16805
17319
  var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
16806
17320
  EVENT_NAME2["START_SEARCH"] = "开始搜索";
16807
17321
  EVENT_NAME2["SEARCH"] = "搜索";
@@ -16876,8 +17390,8 @@ const sameSearchHistory = (left, right) => {
16876
17390
  const leftEntry = normalizeSearchHistoryEntry(left);
16877
17391
  return leftEntry.q === right.q && leftEntry.type === right.type && leftEntry.scope === right.scope && leftEntry.repo === right.repo && leftEntry.org === right.org && leftEntry.user === right.user && leftEntry.namespace === right.namespace;
16878
17392
  };
16879
- const upsertSearchHistory = (current, data, limit = 10) => {
16880
- const next = current.filter((item) => Boolean(normalizeSearchHistoryEntry(item).q));
17393
+ const upsertSearchHistory = (current2, data, limit = 10) => {
17394
+ const next = current2.filter((item) => Boolean(normalizeSearchHistoryEntry(item).q));
16881
17395
  const normalizedData = { ...data, type: data.type || "repo" };
16882
17396
  const existingIndex = next.findIndex((item) => sameSearchHistory(item, normalizedData));
16883
17397
  if (existingIndex === -1) {
@@ -17065,16 +17579,16 @@ const buildSearchInput = (params = {}) => {
17065
17579
  if (input.q) parts.push(text2(input.q));
17066
17580
  return parts.join(" ");
17067
17581
  };
17068
- const _hoisted_1$t = {
17582
+ const _hoisted_1$v = {
17069
17583
  key: 0,
17070
17584
  class: "devui-input-slot__prefix"
17071
17585
  };
17072
- const _hoisted_2$n = ["value"];
17073
- const _hoisted_3$m = {
17586
+ const _hoisted_2$o = ["value"];
17587
+ const _hoisted_3$n = {
17074
17588
  key: 1,
17075
17589
  class: "devui-input-slot__suffix"
17076
17590
  };
17077
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
17591
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
17078
17592
  ...{
17079
17593
  name: "HighlightInput",
17080
17594
  inheritAttrs: false
@@ -17228,6 +17742,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17228
17742
  }
17229
17743
  });
17230
17744
  __expose({
17745
+ isFocusable: () => Boolean(nativeRef.value && !nativeRef.value.disabled && nativeRef.value.getClientRects().length),
17231
17746
  focus: () => {
17232
17747
  var _a;
17233
17748
  return (_a = nativeRef.value) == null ? void 0 : _a.focus();
@@ -17242,7 +17757,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17242
17757
  class: normalizeClass(["devui-input__wrapper devui-input--glow-style hl-search-input", [rootClass.value, { "devui-input--focus": isFocused.value }]]),
17243
17758
  style: normalizeStyle(rootStyle.value)
17244
17759
  }, [
17245
- _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
17760
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$v, [
17246
17761
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
17247
17762
  ])) : createCommentVNode("", true),
17248
17763
  createElementVNode("div", {
@@ -17268,16 +17783,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
17268
17783
  ref: nativeRef,
17269
17784
  class: "devui-input__inner hl-search-input__native",
17270
17785
  value: __props.modelValue
17271
- }, inputAttrs.value, { onInput }), null, 16, _hoisted_2$n)
17786
+ }, inputAttrs.value, { onInput }), null, 16, _hoisted_2$o)
17272
17787
  ], 512),
17273
- _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$m, [
17788
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$n, [
17274
17789
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
17275
17790
  ])) : createCommentVNode("", true)
17276
17791
  ], 6);
17277
17792
  };
17278
17793
  }
17279
17794
  });
17280
- const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17795
+ const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17281
17796
  const SEARCH_ROUTE_PATHS = /* @__PURE__ */ new Set(["/search", "/search/"]);
17282
17797
  const SEARCH_SCOPE_QUERY_KEYS = ["scope", "repo", "org", "user", "namespace"];
17283
17798
  const firstNonEmpty = (...values) => {
@@ -17332,18 +17847,18 @@ const normalizeSearchHotWordUrl = (original, defaultGlobalSearchType, sourceModu
17332
17847
  }
17333
17848
  return serializeHotWordUrl(url, original);
17334
17849
  };
17335
- const _hoisted_1$s = { class: "g-header-search-prefix" };
17336
- const _hoisted_2$m = ["innerHTML"];
17337
- const _hoisted_3$l = { class: "g-header-search-suffix-splitline" };
17338
- const _hoisted_4$g = { class: "g-header-search-suffix-suffixIcon" };
17339
- const _hoisted_5$b = { class: "history-list" };
17340
- const _hoisted_6$a = {
17850
+ const _hoisted_1$u = { class: "g-header-search-prefix" };
17851
+ const _hoisted_2$n = ["innerHTML"];
17852
+ const _hoisted_3$m = { class: "g-header-search-suffix-splitline" };
17853
+ const _hoisted_4$h = { class: "g-header-search-suffix-suffixIcon" };
17854
+ const _hoisted_5$c = { class: "history-list" };
17855
+ const _hoisted_6$b = {
17341
17856
  key: 1,
17342
17857
  class: "aireposearch aireposearch--flex"
17343
17858
  };
17344
17859
  const RECOMMEND_RESERVE = 60;
17345
17860
  const HISTORY_DISPLAY_COUNT = 3;
17346
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
17861
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
17347
17862
  __name: "index",
17348
17863
  props: {
17349
17864
  inAIHub: { type: Boolean },
@@ -17354,12 +17869,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17354
17869
  setup(__props) {
17355
17870
  const layoutConfig2 = useLayoutConfig();
17356
17871
  const { t: $t } = i18n.global;
17357
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-tRTrAuIP.js"));
17358
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BUPIBFFs.js"));
17359
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-d9jVn7yF.js"));
17360
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-C2ww3OtA.js"));
17361
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CHREVt9w.js"));
17362
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DCaqaCO4.js"));
17872
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-CwxvyjLk.js"));
17873
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-Do0T56gf.js"));
17874
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Dty9RV_o.js"));
17875
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-UKbYAe00.js"));
17876
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DWLaZ4qm.js"));
17877
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C-lCDHYL.js"));
17363
17878
  const props = __props;
17364
17879
  const repoInfo = inject("repoInfo", computed(() => void 0));
17365
17880
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -17797,19 +18312,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17797
18312
  const resetIndex = () => {
17798
18313
  activeIndex.value = -1;
17799
18314
  };
17800
- useEventListener(document, "keydown", (e) => {
17801
- if (document.querySelector(".CodeMirror-focused")) {
17802
- return;
17803
- }
17804
- if (typeof document !== "undefined" && document.activeElement) {
17805
- if (document.activeElement.tagName === "INPUT" || document.activeElement.tagName === "TEXTAREA") {
17806
- return;
17807
- }
17808
- }
17809
- if (e.key === "/" && !isFocus.value) {
17810
- onInputClick();
17811
- e.preventDefault();
17812
- }
18315
+ useShortcutSearch({
18316
+ when: () => {
18317
+ var _a;
18318
+ return Boolean((_a = inputRef.value) == null ? void 0 : _a.isFocusable()) && !isFocus.value;
18319
+ },
18320
+ run: onInputClick
17813
18321
  });
17814
18322
  const getSearchHot = async () => {
17815
18323
  try {
@@ -17891,7 +18399,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17891
18399
  }, {
17892
18400
  menu: withCtx(() => [
17893
18401
  createElementVNode("div", null, [
17894
- withDirectives(createElementVNode("div", _hoisted_5$b, [
18402
+ withDirectives(createElementVNode("div", _hoisted_5$c, [
17895
18403
  createVNode(unref(SearchScopeList), {
17896
18404
  searchScopeList: searchScopeList.value,
17897
18405
  onScopeSearch
@@ -17959,7 +18467,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17959
18467
  ref: inputRef
17960
18468
  }, {
17961
18469
  prefix: withCtx(() => [
17962
- createElementVNode("div", _hoisted_1$s, [
18470
+ createElementVNode("div", _hoisted_1$u, [
17963
18471
  createVNode(GIcon, {
17964
18472
  name: "gt-search",
17965
18473
  class: "g-header-search-icon",
@@ -17983,7 +18491,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
17983
18491
  class: "quick-tips",
17984
18492
  innerHTML: unref(quickTips),
17985
18493
  onClick: onInputClick
17986
- }, null, 8, _hoisted_2$m)), [
18494
+ }, null, 8, _hoisted_2$n)), [
17987
18495
  [vShow, placeholderVisible.value]
17988
18496
  ])
17989
18497
  ]),
@@ -18000,10 +18508,10 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
18000
18508
  }, null, 512), [
18001
18509
  [vShow, searchStr.value]
18002
18510
  ]),
18003
- withDirectives(createElementVNode("span", _hoisted_3$l, "|", 512), [
18511
+ withDirectives(createElementVNode("span", _hoisted_3$m, "|", 512), [
18004
18512
  [vShow, searchStr.value]
18005
18513
  ]),
18006
- createElementVNode("div", _hoisted_4$g, [
18514
+ createElementVNode("div", _hoisted_4$h, [
18007
18515
  createVNode(GIcon, {
18008
18516
  name: "search",
18009
18517
  class: "g-header-search-icon",
@@ -18021,7 +18529,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
18021
18529
  _: 3
18022
18530
  }, 8, ["overlay-class", "visible"])
18023
18531
  ], 2)) : createCommentVNode("", true),
18024
- __props.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
18532
+ __props.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$b, [
18025
18533
  createVNode(unref(Input), {
18026
18534
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
18027
18535
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -18041,16 +18549,16 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
18041
18549
  };
18042
18550
  }
18043
18551
  });
18044
- const Search = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18045
- const _hoisted_1$r = { class: "announce-mobile-top" };
18046
- const _hoisted_2$l = { class: "announce-mobile-bottom" };
18047
- const _hoisted_3$k = ["href"];
18048
- const _hoisted_4$f = { class: "announce-content" };
18049
- const _hoisted_5$a = { class: "announce-content-inner" };
18050
- const _hoisted_6$9 = ["href"];
18051
- const _hoisted_7$8 = { class: "announce-handle-wrapper" };
18552
+ const Search = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18553
+ const _hoisted_1$t = { class: "announce-mobile-top" };
18554
+ const _hoisted_2$m = { class: "announce-mobile-bottom" };
18555
+ const _hoisted_3$l = ["href"];
18556
+ const _hoisted_4$g = { class: "announce-content" };
18557
+ const _hoisted_5$b = { class: "announce-content-inner" };
18558
+ const _hoisted_6$a = ["href"];
18559
+ const _hoisted_7$9 = { class: "announce-handle-wrapper" };
18052
18560
  const ANNOUNCE_STATUS_KEY = "site_announcement_status";
18053
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
18561
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
18054
18562
  ...{ name: "SiteAnnouncement" },
18055
18563
  __name: "SiteAnnouncement",
18056
18564
  setup(__props) {
@@ -18098,7 +18606,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
18098
18606
  class: normalizeClass(["announce-wrapper", { mobile: unref(isMobile) }])
18099
18607
  }, [
18100
18608
  unref(isMobile) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18101
- createElementVNode("div", _hoisted_1$r, [
18609
+ createElementVNode("div", _hoisted_1$t, [
18102
18610
  createElementVNode("div", null, [
18103
18611
  createVNode(GIcon, {
18104
18612
  name: "gt-plane-warningCircular-blue",
@@ -18108,19 +18616,19 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
18108
18616
  ]),
18109
18617
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1)
18110
18618
  ]),
18111
- createElementVNode("div", _hoisted_2$l, [
18619
+ createElementVNode("div", _hoisted_2$m, [
18112
18620
  createElementVNode("a", {
18113
18621
  class: "announce-detail",
18114
18622
  href: migrationAnnounceUrl.value
18115
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$k),
18623
+ }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail_mobile")), 9, _hoisted_3$l),
18116
18624
  createElementVNode("span", {
18117
18625
  class: "announce-handle",
18118
18626
  onClick: _cache[0] || (_cache[0] = ($event) => handleClose())
18119
18627
  }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.close")), 1)
18120
18628
  ])
18121
18629
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
18122
- createElementVNode("div", _hoisted_4$f, [
18123
- createElementVNode("div", _hoisted_5$a, [
18630
+ createElementVNode("div", _hoisted_4$g, [
18631
+ createElementVNode("div", _hoisted_5$b, [
18124
18632
  createVNode(GIcon, {
18125
18633
  name: "gt-plane-warningCircular-blue",
18126
18634
  size: "16",
@@ -18130,10 +18638,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
18130
18638
  createElementVNode("a", {
18131
18639
  class: "announce-detail",
18132
18640
  href: migrationAnnounceUrl.value
18133
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$9)
18641
+ }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$a)
18134
18642
  ])
18135
18643
  ]),
18136
- createElementVNode("div", _hoisted_7$8, [
18644
+ createElementVNode("div", _hoisted_7$9, [
18137
18645
  createElementVNode("span", {
18138
18646
  class: "announce-handle",
18139
18647
  onClick: _cache[1] || (_cache[1] = ($event) => handleClose())
@@ -18144,7 +18652,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
18144
18652
  };
18145
18653
  }
18146
18654
  });
18147
- const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18655
+ const SiteAnnouncement = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18148
18656
  const DEFAULT_LOGIN_REDIRECT_STORAGE_KEY = "ag_login_pending_redirect";
18149
18657
  function useLoginRedirect(options) {
18150
18658
  const {
@@ -18274,10 +18782,10 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
18274
18782
  workspace: resolve("workspace")
18275
18783
  };
18276
18784
  }
18277
- const _hoisted_1$q = { class: "home-header-actions" };
18278
- const _hoisted_2$k = { class: "home-header-actions__menu" };
18279
- const _hoisted_3$j = ["href"];
18280
- const _hoisted_4$e = {
18785
+ const _hoisted_1$s = { class: "home-header-actions" };
18786
+ const _hoisted_2$l = { class: "home-header-actions__menu" };
18787
+ const _hoisted_3$k = ["href"];
18788
+ const _hoisted_4$f = {
18281
18789
  key: 0,
18282
18790
  class: "home-header-actions__menu-icon",
18283
18791
  width: "16",
@@ -18287,10 +18795,10 @@ const _hoisted_4$e = {
18287
18795
  xmlns: "http://www.w3.org/2000/svg",
18288
18796
  "aria-hidden": "true"
18289
18797
  };
18290
- const _hoisted_5$9 = { class: "home-header-actions__menu-text" };
18291
- const _hoisted_6$8 = ["href"];
18292
- const _hoisted_7$7 = { class: "home-header-actions__workspace-text" };
18293
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
18798
+ const _hoisted_5$a = { class: "home-header-actions__menu-text" };
18799
+ const _hoisted_6$9 = ["href"];
18800
+ const _hoisted_7$8 = { class: "home-header-actions__workspace-text" };
18801
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
18294
18802
  ...{
18295
18803
  name: "HomeHeaderActions"
18296
18804
  },
@@ -18425,7 +18933,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
18425
18933
  }
18426
18934
  });
18427
18935
  return (_ctx, _cache) => {
18428
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
18936
+ return openBlock(), createElementBlock("div", _hoisted_1$s, [
18429
18937
  createVNode(unref(Dropdown), {
18430
18938
  position: ["bottom-start"],
18431
18939
  "destroy-on-hide": false,
@@ -18435,7 +18943,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
18435
18943
  onToggle: handleDiscoverToggle
18436
18944
  }, {
18437
18945
  menu: withCtx(() => [
18438
- createElementVNode("div", _hoisted_2$k, [
18946
+ createElementVNode("div", _hoisted_2$l, [
18439
18947
  (openBlock(true), createElementBlock(Fragment, null, renderList(discoverLinks.value, (item) => {
18440
18948
  return openBlock(), createElementBlock("a", {
18441
18949
  key: item.label,
@@ -18443,7 +18951,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
18443
18951
  class: "home-header-actions__menu-item",
18444
18952
  onClick: _cache[0] || (_cache[0] = ($event) => isDiscoverOpen.value = false)
18445
18953
  }, [
18446
- item.customIcon === "growthCenter" ? (openBlock(), createElementBlock("svg", _hoisted_4$e, [..._cache[1] || (_cache[1] = [
18954
+ item.customIcon === "growthCenter" ? (openBlock(), createElementBlock("svg", _hoisted_4$f, [..._cache[1] || (_cache[1] = [
18447
18955
  createElementVNode("path", {
18448
18956
  d: "M13.8286 2.4381C13.6889 2.4 13.5238 2.3746 13.346 2.3746C13.2698 2.3746 13.1937 2.3746 13.1302 2.3873V0.850794C13.1302 0.546032 12.8889 0.304762 12.5968 0.304762H3.41587C3.11111 0.304762 2.86984 0.546032 2.86984 0.850794V2.3873C2.79365 2.3746 2.71746 2.3746 2.65397 2.3746C2.48889 2.3746 2.32381 2.4 2.15873 2.4381C0.914286 2.76825 0.24127 4.36825 0.673016 5.99365C1.05397 7.41587 2.14603 8.39365 3.25079 8.39365C3.30159 8.39365 3.36508 8.39365 3.41587 8.38095C3.46667 8.48254 3.51746 8.59683 3.58095 8.69841C3.56825 8.68571 3.56825 8.68571 3.58095 8.69841C3.59365 8.73651 3.61905 8.76191 3.63175 8.7873C3.64444 8.8 3.64444 8.8127 3.65714 8.8254C3.70794 8.91429 3.77143 9.01587 3.83492 9.10476C3.82222 9.10476 3.82222 9.09206 3.83492 9.10476C3.84762 9.11746 3.84762 9.13016 3.86032 9.14286C3.91111 9.21905 3.9619 9.29524 4.0127 9.35873C4.0381 9.38413 4.05079 9.42222 4.07619 9.44762L4.08889 9.46032C4.26667 9.70159 4.46984 9.91746 4.68571 10.1206L4.69841 10.1333C4.8 10.2349 4.91429 10.3238 5.02857 10.4127L5.04127 10.4254C5.51111 10.7937 6.04444 11.073 6.61587 11.2381C6.75556 11.2762 6.90794 11.3143 7.04762 11.3524V12.9778H5.82857C5.5746 12.9778 5.34603 13.1556 5.26984 13.3968L4.8381 14.9587C4.7873 15.1365 4.8254 15.3143 4.93968 15.4667C5.05397 15.6063 5.21905 15.6952 5.39683 15.6952H10.5905C10.9079 15.6952 11.1619 15.4413 11.1619 15.1238C11.1619 15.0476 11.1492 14.9714 11.1238 14.8952L10.7048 13.4095C10.6413 13.1556 10.4127 12.9905 10.146 12.9905H8.92698V11.3524C9.09206 11.3143 9.24444 11.2762 9.40952 11.2254L9.39683 11.2381C9.46032 11.2254 9.51111 11.2 9.5746 11.1746C9.5873 11.1746 9.5873 11.1746 9.6 11.1619C9.67619 11.1365 9.75238 11.0984 9.82857 11.073C9.89206 11.0476 9.95556 11.0222 10.019 10.9841L10.1714 10.9079C10.1587 10.9206 10.1333 10.9206 10.1206 10.9333C10.4127 10.781 10.7048 10.6159 10.9587 10.4127L10.9714 10.4C11.0857 10.3111 11.2 10.2222 11.3016 10.1206L11.3143 10.1079C11.5302 9.90476 11.7333 9.68889 11.9238 9.44762L11.9365 9.43492C12.0254 9.32063 12.1016 9.20635 12.1905 9.07936C12.2032 9.06667 12.2032 9.05397 12.2159 9.04127C12.3429 8.85079 12.4444 8.66032 12.546 8.45714C12.5587 8.44444 12.5587 8.43175 12.5714 8.41905C12.5968 8.36825 12.7238 8.38095 12.7619 8.38095C13.8667 8.38095 14.9714 7.40317 15.3397 5.98095C15.7587 4.36825 15.0857 2.78095 13.8286 2.4381ZM1.5619 5.76508C1.26984 4.64762 1.65079 3.53016 2.4127 3.33968C2.48889 3.31429 2.56508 3.31429 2.65397 3.31429C2.73016 3.31429 2.80635 3.32698 2.86984 3.33968V5.90476C2.86984 6.05714 2.88254 6.20952 2.89524 6.3619V6.4254C2.90794 6.56508 2.92063 6.71746 2.94603 6.85714C2.94603 6.88254 2.95873 6.90794 2.95873 6.93333C2.98413 7.07302 3.00952 7.2127 3.04762 7.35238C3.04762 7.37778 3.06032 7.39048 3.06032 7.41587C3.06032 7.44127 3.07302 7.46667 3.07302 7.49206C2.4254 7.35238 1.79048 6.66667 1.5619 5.76508ZM11.0984 4.72381L9.40952 5.99365L10.0317 8C10.0317 8.0127 10.0444 8.0381 10.0444 8.05079C10.0444 8.11429 10.019 8.16508 9.96825 8.20317C9.93016 8.22857 9.89206 8.24127 9.85397 8.24127C9.81587 8.24127 9.77778 8.22857 9.75238 8.20317L8 7.02222L6.26032 8.22857C6.19683 8.27937 6.10794 8.27937 6.04444 8.22857C5.99365 8.17778 5.96825 8.12698 5.96825 8.06349C5.96825 8.0381 5.96825 8.0254 5.98095 8L6.59048 5.99365L4.90159 4.72381C4.8381 4.67302 4.8127 4.58413 4.8381 4.50794C4.86349 4.43175 4.93968 4.38095 5.01587 4.38095L7.13651 4.34286L7.83492 2.34921C7.86032 2.27302 7.93651 2.22222 8.0127 2.22222C8.08889 2.22222 8.16508 2.27302 8.19048 2.34921L8.88889 4.34286L11.0095 4.38095C11.0857 4.38095 11.1619 4.43175 11.1873 4.50794C11.1873 4.58413 11.1619 4.67302 11.0984 4.72381ZM14.4381 5.76508C14.1968 6.66667 13.5619 7.36508 12.9143 7.46667C12.927 7.44127 12.927 7.41587 12.927 7.39048C12.927 7.36508 12.9397 7.35238 12.9397 7.32698C12.9778 7.1746 13.0159 7.00952 13.0413 6.84444C13.0413 6.83175 13.054 6.70476 13.1048 6.13333C13.1048 6.33651 13.0794 6.53968 13.054 6.73016C13.0794 6.59048 13.0921 6.45079 13.0921 6.29841C13.0921 6.24762 13.1048 6.14603 13.1048 5.95556V3.32698C13.181 3.31429 13.2571 3.30159 13.3206 3.30159C13.3968 3.30159 13.4857 3.31429 13.5619 3.32698C14.3492 3.53016 14.7429 4.64762 14.4381 5.76508Z",
18449
18957
  fill: "#BCBCD0"
@@ -18459,8 +18967,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
18459
18967
  color: "currentColor",
18460
18968
  class: "home-header-actions__menu-icon"
18461
18969
  }, null, 8, ["name"])) : createCommentVNode("", true),
18462
- createElementVNode("span", _hoisted_5$9, toDisplayString$1(item.label), 1)
18463
- ], 8, _hoisted_3$j);
18970
+ createElementVNode("span", _hoisted_5$a, toDisplayString$1(item.label), 1)
18971
+ ], 8, _hoisted_3$k);
18464
18972
  }), 128))
18465
18973
  ])
18466
18974
  ]),
@@ -18491,29 +18999,29 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
18491
18999
  size: "16px",
18492
19000
  color: "currentColor"
18493
19001
  }),
18494
- createElementVNode("span", _hoisted_7$7, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
18495
- ], 8, _hoisted_6$8)
19002
+ createElementVNode("span", _hoisted_7$8, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
19003
+ ], 8, _hoisted_6$9)
18496
19004
  ]);
18497
19005
  };
18498
19006
  }
18499
19007
  });
18500
- const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18501
- const _hoisted_1$p = ["aria-label", "aria-expanded"];
18502
- const _hoisted_2$j = { class: "atomcode-launcher-text" };
18503
- const _hoisted_3$i = {
19008
+ const HomeHeaderActions = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19009
+ const _hoisted_1$r = ["aria-label", "aria-expanded"];
19010
+ const _hoisted_2$k = { class: "atomcode-launcher-text" };
19011
+ const _hoisted_3$j = {
18504
19012
  id: "atomCodeLaunchMenu",
18505
19013
  class: "atomcode-launch-menu",
18506
19014
  role: "menu"
18507
19015
  };
18508
- const _hoisted_4$d = { class: "atomcode-launch-item__title-row" };
18509
- const _hoisted_5$8 = { class: "atomcode-launch-item__title" };
18510
- const _hoisted_6$7 = {
19016
+ const _hoisted_4$e = { class: "atomcode-launch-item__title-row" };
19017
+ const _hoisted_5$9 = { class: "atomcode-launch-item__title" };
19018
+ const _hoisted_6$8 = {
18511
19019
  id: "atomCodeContextHint",
18512
19020
  class: "atomcode-launch-item__desc"
18513
19021
  };
18514
- const _hoisted_7$6 = ["href"];
18515
- const _hoisted_8$6 = { class: "atomcode-launch-item__title-row" };
18516
- const _hoisted_9$6 = { class: "atomcode-launch-item__title" };
19022
+ const _hoisted_7$7 = ["href"];
19023
+ const _hoisted_8$7 = { class: "atomcode-launch-item__title-row" };
19024
+ const _hoisted_9$7 = { class: "atomcode-launch-item__title" };
18517
19025
  const _hoisted_10$6 = ["href"];
18518
19026
  const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
18519
19027
  const _hoisted_12$5 = {
@@ -18527,7 +19035,7 @@ const _hoisted_12$5 = {
18527
19035
  "aria-hidden": "true"
18528
19036
  };
18529
19037
  const _hoisted_13$3 = { class: "atomcode-launch-item__title" };
18530
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
19038
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
18531
19039
  ...{
18532
19040
  name: "AtomCodeLauncher"
18533
19041
  },
@@ -18611,7 +19119,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
18611
19119
  onToggle: handleToggle
18612
19120
  }, {
18613
19121
  menu: withCtx(() => [
18614
- createElementVNode("div", _hoisted_3$i, [
19122
+ createElementVNode("div", _hoisted_3$j, [
18615
19123
  createElementVNode("button", {
18616
19124
  type: "button",
18617
19125
  class: "atomcode-launch-item atomcode-launch-item--with-desc",
@@ -18619,16 +19127,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
18619
19127
  "data-atomcode-open": "",
18620
19128
  onClick: openAtomCode
18621
19129
  }, [
18622
- createElementVNode("div", _hoisted_4$d, [
19130
+ createElementVNode("div", _hoisted_4$e, [
18623
19131
  createVNode(GIcon, {
18624
19132
  name: "gt-plane-share",
18625
19133
  size: "16px",
18626
19134
  color: "currentColor",
18627
19135
  class: "atomcode-item-icon"
18628
19136
  }),
18629
- createElementVNode("span", _hoisted_5$8, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.openInWorkbench")), 1)
19137
+ createElementVNode("span", _hoisted_5$9, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.openInWorkbench")), 1)
18630
19138
  ]),
18631
- createElementVNode("div", _hoisted_6$7, toDisplayString$1(contextHintText.value), 1)
19139
+ createElementVNode("div", _hoisted_6$8, toDisplayString$1(contextHintText.value), 1)
18632
19140
  ]),
18633
19141
  createElementVNode("a", {
18634
19142
  href: resolvedOfficialUrl.value,
@@ -18638,16 +19146,16 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
18638
19146
  role: "menuitem",
18639
19147
  "data-atomcode-official": ""
18640
19148
  }, [
18641
- createElementVNode("div", _hoisted_8$6, [
19149
+ createElementVNode("div", _hoisted_8$7, [
18642
19150
  createVNode(GIcon, {
18643
19151
  name: "gt-plane-consulting",
18644
19152
  size: "16px",
18645
19153
  color: "currentColor",
18646
19154
  class: "atomcode-item-icon"
18647
19155
  }),
18648
- createElementVNode("span", _hoisted_9$6, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.atomCodeOfficial")), 1)
19156
+ createElementVNode("span", _hoisted_9$7, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.atomCodeOfficial")), 1)
18649
19157
  ])
18650
- ], 8, _hoisted_7$6),
19158
+ ], 8, _hoisted_7$7),
18651
19159
  createElementVNode("a", {
18652
19160
  href: resolvedCliDownloadUrl.value,
18653
19161
  target: "_blank",
@@ -18695,7 +19203,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
18695
19203
  size: "16px",
18696
19204
  class: "atomcode-icon atomcode-icon--dark"
18697
19205
  }),
18698
- createElementVNode("span", _hoisted_2$j, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.title")), 1),
19206
+ createElementVNode("span", _hoisted_2$k, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.title")), 1),
18699
19207
  createVNode(GIcon, {
18700
19208
  name: "gt-line-down",
18701
19209
  size: "16px",
@@ -18703,7 +19211,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
18703
19211
  rotate: isOpen.value ? "180deg" : "0deg",
18704
19212
  class: "atomcode-launcher-chevron"
18705
19213
  }, null, 8, ["rotate"])
18706
- ], 8, _hoisted_1$p)
19214
+ ], 8, _hoisted_1$r)
18707
19215
  ]),
18708
19216
  _: 1
18709
19217
  })
@@ -18711,7 +19219,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
18711
19219
  };
18712
19220
  }
18713
19221
  });
18714
- const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19222
+ const AtomCodeLauncher = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18715
19223
  const vElementExposure = {
18716
19224
  mounted(el, binding) {
18717
19225
  const observer = new IntersectionObserver(function(entries2, observer2) {
@@ -18728,7 +19236,7 @@ const vElementExposure = {
18728
19236
  beforeUnmount() {
18729
19237
  }
18730
19238
  };
18731
- const NoticeModal = defineAsyncComponent(() => import("./notice-DrorJOhW.js"));
19239
+ const NoticeModal = defineAsyncComponent(() => import("./notice-Cs9Tl869.js"));
18732
19240
  function clearNotice() {
18733
19241
  if (localStorage$2.getItem("validator_email")) {
18734
19242
  localStorage$2.removeItem("validator_email");
@@ -18755,32 +19263,32 @@ function useNotification() {
18755
19263
  notice
18756
19264
  };
18757
19265
  }
18758
- const _hoisted_1$o = { class: "g-toolbar-left allow-click-stop" };
18759
- const _hoisted_2$i = { key: 0 };
18760
- const _hoisted_3$h = {
19266
+ const _hoisted_1$q = { class: "g-toolbar-left allow-click-stop" };
19267
+ const _hoisted_2$j = { key: 0 };
19268
+ const _hoisted_3$i = {
18761
19269
  key: 1,
18762
19270
  class: "search-avatar"
18763
19271
  };
18764
- const _hoisted_4$c = {
19272
+ const _hoisted_4$d = {
18765
19273
  key: 2,
18766
19274
  class: "g-toolbar-right__claim-row"
18767
19275
  };
18768
- const _hoisted_5$7 = {
19276
+ const _hoisted_5$8 = {
18769
19277
  key: 0,
18770
19278
  class: "g-toolbar-right-divider"
18771
19279
  };
18772
- const _hoisted_6$6 = {
19280
+ const _hoisted_6$7 = {
18773
19281
  key: 0,
18774
19282
  class: "g-toolbar-right-divider"
18775
19283
  };
18776
- const _hoisted_7$5 = {
19284
+ const _hoisted_7$6 = {
18777
19285
  key: 1,
18778
19286
  class: "g-header-body"
18779
19287
  };
18780
- const _hoisted_8$5 = { class: "g-header-body-left" };
18781
- const _hoisted_9$5 = { class: "g-header-body-right" };
19288
+ const _hoisted_8$6 = { class: "g-header-body-left" };
19289
+ const _hoisted_9$6 = { class: "g-header-body-right" };
18782
19290
  const _hoisted_10$5 = { key: 2 };
18783
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
19291
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
18784
19292
  ...{
18785
19293
  name: "GitCodeHeader"
18786
19294
  },
@@ -18837,6 +19345,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
18837
19345
  "cb0d2906": detailBgInfo.value
18838
19346
  }));
18839
19347
  const layoutConfig2 = useLayoutConfig();
19348
+ useShortcutNotice({
19349
+ when: () => props.isLogin && Boolean(layoutConfig2.VITE_HOST),
19350
+ run: () => window.location.assign(`${transformUrl(layoutConfig2.VITE_HOST)}/notice?message_sate=countNotRead`)
19351
+ });
18840
19352
  const route = useRoute();
18841
19353
  const router2 = useRouter();
18842
19354
  async function handleLogoClick(e) {
@@ -19249,7 +19761,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19249
19761
  class: "g-toolbar allow-click-stop",
19250
19762
  onClick: withModifiers(handleToolbarClick, ["stop"])
19251
19763
  }, [
19252
- createElementVNode("div", _hoisted_1$o, [
19764
+ createElementVNode("div", _hoisted_1$q, [
19253
19765
  createElementVNode("div", {
19254
19766
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
19255
19767
  }, ["stop"])),
@@ -19299,10 +19811,10 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19299
19811
  }, 8, ["scene", "isLogin", "errorCode", "orgProps", "repoProps", "userProps"])) : createCommentVNode("", true)
19300
19812
  ], 2)) : createCommentVNode("", true)
19301
19813
  ]),
19302
- _ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$i, [
19814
+ _ctx.$slots.headerMiddleRight ? (openBlock(), createElementBlock("div", _hoisted_2$j, [
19303
19815
  renderSlot(_ctx.$slots, "headerMiddleRight", {}, void 0, true)
19304
19816
  ])) : createCommentVNode("", true),
19305
- !inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
19817
+ !inAIHub.value ? (openBlock(), createElementBlock("div", _hoisted_3$i, [
19306
19818
  isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", {}, () => [
19307
19819
  (openBlock(), createBlock(Search, {
19308
19820
  inAIHub: inAIHub.value,
@@ -19345,12 +19857,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19345
19857
  independence: props.independence
19346
19858
  }, null, 8, ["workspace-navigate", "isLogin", "independence"])
19347
19859
  ], true, 1) : createCommentVNode("", true),
19348
- isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
19860
+ isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$d, [
19349
19861
  createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
19350
19862
  isModuleVisible(unref(HeaderDisplayItem).OPERATION_ENTRY) ? (openBlock(), createBlock(OperationEntry, { key: 0 })) : createCommentVNode("", true)
19351
19863
  ])) : createCommentVNode("", true),
19352
19864
  !__props.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
19353
- !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_5$7)) : createCommentVNode("", true),
19865
+ !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_5$8)) : createCommentVNode("", true),
19354
19866
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19355
19867
  unref(isMobile) ? (openBlock(), createElementBlock("section", {
19356
19868
  key: 0,
@@ -19386,7 +19898,7 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19386
19898
  ], 64)) : createCommentVNode("", true)
19387
19899
  ], 64)) : createCommentVNode("", true)
19388
19900
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 4 }, [
19389
- !["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_6$6)) : createCommentVNode("", true),
19901
+ !["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_6$7)) : createCommentVNode("", true),
19390
19902
  !["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
19391
19903
  key: 1,
19392
19904
  dropdownVisible: props.openCreateDropdown,
@@ -19411,12 +19923,12 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19411
19923
  ])), [
19412
19924
  [unref(vElementExposure), { trigger: () => handleToolbarExpo() }]
19413
19925
  ]),
19414
- _ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
19926
+ _ctx.$slots.info || _ctx.$slots.menu || _ctx.$slots.bodyHeader ? (openBlock(), createElementBlock("div", _hoisted_7$6, [
19415
19927
  renderSlot(_ctx.$slots, "bodyHeader", {}, () => [
19416
- createElementVNode("div", _hoisted_8$5, [
19928
+ createElementVNode("div", _hoisted_8$6, [
19417
19929
  renderSlot(_ctx.$slots, "info", {}, void 0, true)
19418
19930
  ]),
19419
- createElementVNode("div", _hoisted_9$5, [
19931
+ createElementVNode("div", _hoisted_9$6, [
19420
19932
  renderSlot(_ctx.$slots, "menu", {}, void 0, true)
19421
19933
  ])
19422
19934
  ], true)
@@ -19429,11 +19941,11 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19429
19941
  };
19430
19942
  }
19431
19943
  });
19432
- const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19433
- const _hoisted_1$n = { class: "tools-item-wrapper" };
19434
- const _hoisted_2$h = { class: "tools-item-wrapper-checkbox" };
19435
- const _hoisted_3$g = ["onClick", "title"];
19436
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
19944
+ const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19945
+ const _hoisted_1$p = { class: "tools-item-wrapper" };
19946
+ const _hoisted_2$i = { class: "tools-item-wrapper-checkbox" };
19947
+ const _hoisted_3$h = ["onClick", "title"];
19948
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
19437
19949
  __name: "Theme",
19438
19950
  setup(__props) {
19439
19951
  const { t: t2 } = i18n.global;
@@ -19458,9 +19970,9 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
19458
19970
  setTheme(activeTheme.value);
19459
19971
  };
19460
19972
  return (_ctx, _cache) => {
19461
- return openBlock(), createElementBlock("div", _hoisted_1$n, [
19973
+ return openBlock(), createElementBlock("div", _hoisted_1$p, [
19462
19974
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.theme")), 1),
19463
- createElementVNode("div", _hoisted_2$h, [
19975
+ createElementVNode("div", _hoisted_2$i, [
19464
19976
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeList.value, (item) => {
19465
19977
  return openBlock(), createElementBlock("div", mergeProps({
19466
19978
  key: item.value
@@ -19475,17 +19987,17 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
19475
19987
  color: "var(--theme-icon-fill-weak)",
19476
19988
  class: "checkbox-item-icon"
19477
19989
  }, null, 8, ["name"])
19478
- ], 16, _hoisted_3$g);
19990
+ ], 16, _hoisted_3$h);
19479
19991
  }), 128))
19480
19992
  ])
19481
19993
  ]);
19482
19994
  };
19483
19995
  }
19484
19996
  });
19485
- const _hoisted_1$m = { class: "aside-footer-tools-item" };
19486
- const _hoisted_2$g = { class: "aside-footer-tools-item-dropdown-item" };
19487
- const _hoisted_3$f = { class: "aside-footer-tools-item-dropdown-item" };
19488
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
19997
+ const _hoisted_1$o = { class: "aside-footer-tools-item" };
19998
+ const _hoisted_2$h = { class: "aside-footer-tools-item-dropdown-item" };
19999
+ const _hoisted_3$g = { class: "aside-footer-tools-item-dropdown-item" };
20000
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
19489
20001
  ...{ name: "AsideFooterTools" },
19490
20002
  __name: "index",
19491
20003
  props: {
@@ -19502,19 +20014,19 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
19502
20014
  "overlay-class": "footer-tools-setting-dropdown"
19503
20015
  }, {
19504
20016
  menu: withCtx(() => [
19505
- withDirectives(createElementVNode("div", _hoisted_2$g, [
19506
- createVNode(_sfc_main$r)
20017
+ withDirectives(createElementVNode("div", _hoisted_2$h, [
20018
+ createVNode(_sfc_main$u)
19507
20019
  ], 512), [
19508
20020
  [vShow, __props.showThemeSetting]
19509
20021
  ]),
19510
- withDirectives(createElementVNode("div", _hoisted_3$f, [
19511
- createVNode(_sfc_main$C)
20022
+ withDirectives(createElementVNode("div", _hoisted_3$g, [
20023
+ createVNode(_sfc_main$F)
19512
20024
  ], 512), [
19513
20025
  [vShow, __props.showLangSetting]
19514
20026
  ])
19515
20027
  ]),
19516
20028
  default: withCtx(() => [
19517
- createElementVNode("div", _hoisted_1$m, [
20029
+ createElementVNode("div", _hoisted_1$o, [
19518
20030
  createVNode(GIcon, {
19519
20031
  name: "gt-line-setting",
19520
20032
  size: "16",
@@ -19533,8 +20045,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
19533
20045
  };
19534
20046
  }
19535
20047
  });
19536
- const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19537
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
20048
+ const AsideFooterTools = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
20049
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
19538
20050
  ...{
19539
20051
  name: "ScrollActiveContainer",
19540
20052
  inheritAttrs: false
@@ -19742,7 +20254,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
19742
20254
  };
19743
20255
  }
19744
20256
  });
19745
- const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
20257
+ const ScrollActiveContainer = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
19746
20258
  function asideV2Request(request) {
19747
20259
  return {
19748
20260
  /**
@@ -19851,29 +20363,29 @@ const getChannelTagType = (item) => {
19851
20363
  if (item.is_new === true) return "new";
19852
20364
  return null;
19853
20365
  };
19854
- const _hoisted_1$l = { class: "home-channel-side-nav" };
19855
- const _hoisted_2$f = {
20366
+ const _hoisted_1$n = { class: "home-channel-side-nav" };
20367
+ const _hoisted_2$g = {
19856
20368
  key: 0,
19857
20369
  class: "home-channel-side-nav__list",
19858
20370
  "aria-busy": "true",
19859
20371
  "aria-label": "加载中"
19860
20372
  };
19861
- const _hoisted_3$e = {
20373
+ const _hoisted_3$f = {
19862
20374
  key: 0,
19863
20375
  class: "home-channel-side-nav__group-title home-channel-side-nav__group-title--skeleton"
19864
20376
  };
19865
- const _hoisted_4$b = { class: "home-channel-side-nav__info" };
19866
- const _hoisted_5$6 = { class: "home-channel-side-nav__label-row" };
19867
- const _hoisted_6$5 = {
20377
+ const _hoisted_4$c = { class: "home-channel-side-nav__info" };
20378
+ const _hoisted_5$7 = { class: "home-channel-side-nav__label-row" };
20379
+ const _hoisted_6$6 = {
19868
20380
  key: 1,
19869
20381
  class: "home-channel-side-nav__list"
19870
20382
  };
19871
- const _hoisted_7$4 = {
20383
+ const _hoisted_7$5 = {
19872
20384
  key: 0,
19873
20385
  class: "home-channel-side-nav__group-title"
19874
20386
  };
19875
- const _hoisted_8$4 = ["aria-current", "title", "onClick"];
19876
- const _hoisted_9$4 = ["src", "alt", "onClick"];
20387
+ const _hoisted_8$5 = ["aria-current", "title", "onClick"];
20388
+ const _hoisted_9$5 = ["src", "alt", "onClick"];
19877
20389
  const _hoisted_10$4 = { class: "home-channel-side-nav__info" };
19878
20390
  const _hoisted_11$4 = { class: "home-channel-side-nav__label-row" };
19879
20391
  const _hoisted_12$4 = { class: "home-channel-side-nav__label" };
@@ -19964,7 +20476,7 @@ const _hoisted_25$1 = {
19964
20476
  class: "home-channel-side-nav__footer-tools-container"
19965
20477
  };
19966
20478
  const _hoisted_26$1 = { class: "home-channel-side-nav__footer-tools-inner" };
19967
- const _sfc_main$o = /* @__PURE__ */ defineComponent({
20479
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
19968
20480
  ...{ name: "AsideV2Content", inheritAttrs: false },
19969
20481
  __name: "asideV2Content",
19970
20482
  props: {
@@ -20177,7 +20689,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20177
20689
  return openBlock(), createElementBlock("div", {
20178
20690
  class: normalizeClass(["gitcode-aside-v2-content home-channel-navigation", { "is-single-col": props.singleCol }])
20179
20691
  }, [
20180
- createElementVNode("div", _hoisted_1$l, [
20692
+ createElementVNode("div", _hoisted_1$n, [
20181
20693
  createVNode(ScrollActiveContainer, {
20182
20694
  ref_key: "scrollContainerRef",
20183
20695
  ref: scrollContainerRef,
@@ -20187,12 +20699,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20187
20699
  "aria-label": "首页频道"
20188
20700
  }, {
20189
20701
  default: withCtx(() => [
20190
- loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$f, [
20702
+ loading.value && (!channelsList.value || channelsList.value.length === 0) ? (openBlock(), createElementBlock("ul", _hoisted_2$g, [
20191
20703
  (openBlock(), createElementBlock(Fragment, null, renderList(skeletonItems, (sk, idx) => {
20192
20704
  return openBlock(), createElementBlock(Fragment, {
20193
20705
  key: `skeleton-${idx}`
20194
20706
  }, [
20195
- sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
20707
+ sk.isGroupTitle ? (openBlock(), createElementBlock("div", _hoisted_3$f, [
20196
20708
  createElementVNode("span", {
20197
20709
  class: "home-channel-side-nav__skeleton-block home-channel-side-nav__group-skeleton",
20198
20710
  style: normalizeStyle({ width: sk.width })
@@ -20205,8 +20717,8 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20205
20717
  class: normalizeClass(["home-channel-side-nav__item home-channel-side-nav__item--skeleton", { "has-desc": !!sk.descWidth }])
20206
20718
  }, [
20207
20719
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "home-channel-side-nav__skeleton-block home-channel-side-nav__logo-skeleton" }, null, -1)),
20208
- createElementVNode("div", _hoisted_4$b, [
20209
- createElementVNode("span", _hoisted_5$6, [
20720
+ createElementVNode("div", _hoisted_4$c, [
20721
+ createElementVNode("span", _hoisted_5$7, [
20210
20722
  createElementVNode("span", {
20211
20723
  class: "home-channel-side-nav__skeleton-block home-channel-side-nav__label-skeleton",
20212
20724
  style: normalizeStyle({ width: sk.width })
@@ -20222,12 +20734,12 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20222
20734
  ], 2))
20223
20735
  ], 64);
20224
20736
  }), 64))
20225
- ])) : (openBlock(), createElementBlock("ul", _hoisted_6$5, [
20737
+ ])) : (openBlock(), createElementBlock("ul", _hoisted_6$6, [
20226
20738
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleChannels.value, (item) => {
20227
20739
  return openBlock(), createElementBlock(Fragment, {
20228
20740
  key: item.object_id
20229
20741
  }, [
20230
- item.group && item.groupIndex === 0 ? (openBlock(), createElementBlock("div", _hoisted_7$4, toDisplayString$1(isEn.value && item.group.name_en ? item.group.name_en : item.group.name), 1)) : createCommentVNode("", true),
20742
+ item.group && item.groupIndex === 0 ? (openBlock(), createElementBlock("div", _hoisted_7$5, toDisplayString$1(isEn.value && item.group.name_en ? item.group.name_en : item.group.name), 1)) : createCommentVNode("", true),
20231
20743
  createElementVNode("li", {
20232
20744
  class: normalizeClass(["home-channel-side-nav__row", {
20233
20745
  "is-group-last": item.group && typeof item.group.len === "number" && item.group.len - 1 === item.groupIndex
@@ -20253,7 +20765,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20253
20765
  alt: item.name,
20254
20766
  class: "home-channel-side-nav__logo",
20255
20767
  onClick: ($event) => onPrefixLogoClick($event, item)
20256
- }, null, 8, _hoisted_9$4)) : getPrefixLogo(item) ? (openBlock(), createBlock(GIcon, {
20768
+ }, null, 8, _hoisted_9$5)) : getPrefixLogo(item) ? (openBlock(), createBlock(GIcon, {
20257
20769
  key: 2,
20258
20770
  name: getPrefixLogo(item),
20259
20771
  size: "18px",
@@ -20274,7 +20786,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20274
20786
  !isRecommendedChannel(item) && item.children && item.children.length > 0 ? (openBlock(), createElementBlock("svg", _hoisted_16$1, [..._cache[1] || (_cache[1] = [
20275
20787
  createElementVNode("path", { d: "m9 18 6-6-6-6" }, null, -1)
20276
20788
  ])])) : createCommentVNode("", true)
20277
- ], 10, _hoisted_8$4)
20789
+ ], 10, _hoisted_8$5)
20278
20790
  ], 2)
20279
20791
  ], 64);
20280
20792
  }), 128))
@@ -20285,29 +20797,29 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20285
20797
  _cache[8] || (_cache[8] = createElementVNode("div", { class: "home-channel-side-nav__footer-divider" }, null, -1)),
20286
20798
  createElementVNode("footer", _hoisted_18$1, [
20287
20799
  createElementVNode("nav", _hoisted_19$1, [
20288
- (openBlock(true), createElementBlock(Fragment, null, renderList(siteShortcutLinks.value, (shortcut) => {
20800
+ (openBlock(true), createElementBlock(Fragment, null, renderList(siteShortcutLinks.value, (shortcut2) => {
20289
20801
  return openBlock(), createElementBlock("a", {
20290
- key: shortcut.name,
20802
+ key: shortcut2.name,
20291
20803
  class: "nav-site-shortcut",
20292
- href: shortcut.url,
20804
+ href: shortcut2.url,
20293
20805
  target: "_blank",
20294
20806
  rel: "noopener noreferrer"
20295
20807
  }, [
20296
- shortcut.icon === "newspaper" ? (openBlock(), createElementBlock("svg", _hoisted_21$1, [..._cache[4] || (_cache[4] = [
20808
+ shortcut2.icon === "newspaper" ? (openBlock(), createElementBlock("svg", _hoisted_21$1, [..._cache[4] || (_cache[4] = [
20297
20809
  createElementVNode("path", { d: "M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2" }, null, -1),
20298
20810
  createElementVNode("path", { d: "M18 14h-8" }, null, -1),
20299
20811
  createElementVNode("path", { d: "M15 18h-5" }, null, -1),
20300
20812
  createElementVNode("path", { d: "M10 6h8v4h-8V6Z" }, null, -1)
20301
- ])])) : shortcut.icon === "book-open" ? (openBlock(), createElementBlock("svg", _hoisted_22$1, [..._cache[5] || (_cache[5] = [
20813
+ ])])) : shortcut2.icon === "book-open" ? (openBlock(), createElementBlock("svg", _hoisted_22$1, [..._cache[5] || (_cache[5] = [
20302
20814
  createElementVNode("path", { d: "M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z" }, null, -1),
20303
20815
  createElementVNode("path", { d: "M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z" }, null, -1)
20304
- ])])) : shortcut.icon === "message-square" ? (openBlock(), createElementBlock("svg", _hoisted_23$1, [..._cache[6] || (_cache[6] = [
20816
+ ])])) : shortcut2.icon === "message-square" ? (openBlock(), createElementBlock("svg", _hoisted_23$1, [..._cache[6] || (_cache[6] = [
20305
20817
  createElementVNode("path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" }, null, -1)
20306
20818
  ])])) : (openBlock(), createElementBlock("svg", _hoisted_24$1, [..._cache[7] || (_cache[7] = [
20307
20819
  createElementVNode("path", { d: "M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1" }, null, -1),
20308
20820
  createElementVNode("path", { d: "M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1" }, null, -1)
20309
20821
  ])])),
20310
- createElementVNode("span", null, toDisplayString$1(shortcut.name), 1)
20822
+ createElementVNode("span", null, toDisplayString$1(shortcut2.name), 1)
20311
20823
  ], 8, _hoisted_20$1);
20312
20824
  }), 128))
20313
20825
  ])
@@ -20330,9 +20842,9 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
20330
20842
  };
20331
20843
  }
20332
20844
  });
20333
- const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
20334
- const _hoisted_1$k = { class: "aside-drawer-header" };
20335
- const _sfc_main$n = /* @__PURE__ */ defineComponent({
20845
+ const AsideV2Content = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
20846
+ const _hoisted_1$m = { class: "aside-drawer-header" };
20847
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
20336
20848
  ...{ name: "GitCodeAsideV2", inheritAttrs: false },
20337
20849
  __name: "index",
20338
20850
  props: {
@@ -20516,7 +21028,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
20516
21028
  class: "draw-side-bar"
20517
21029
  }, {
20518
21030
  default: withCtx(() => [
20519
- createElementVNode("div", _hoisted_1$k, [
21031
+ createElementVNode("div", _hoisted_1$m, [
20520
21032
  createVNode(GLink, {
20521
21033
  class: "g-toolbar-left-logo",
20522
21034
  style: normalizeStyle(logoStyle.value),
@@ -20547,22 +21059,22 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
20547
21059
  };
20548
21060
  }
20549
21061
  });
20550
- const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
20551
- const _hoisted_1$j = { class: "g-toolbar allow-click-stop" };
20552
- const _hoisted_2$e = { class: "g-toolbar-left allow-click-stop" };
20553
- const _hoisted_3$d = {
21062
+ const GitCodeAsideV2 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21063
+ const _hoisted_1$l = { class: "g-toolbar allow-click-stop" };
21064
+ const _hoisted_2$f = { class: "g-toolbar-left allow-click-stop" };
21065
+ const _hoisted_3$e = {
20554
21066
  key: 1,
20555
21067
  class: "g-toolbar-custom"
20556
21068
  };
20557
- const _hoisted_4$a = { class: "enterprise-name" };
20558
- const _hoisted_5$5 = { class: "enterprise-flag" };
20559
- const _hoisted_6$4 = { class: "search-avatar" };
20560
- const _hoisted_7$3 = { class: "g-toolbar-right allow-click-stop" };
20561
- const _hoisted_8$3 = {
21069
+ const _hoisted_4$b = { class: "enterprise-name" };
21070
+ const _hoisted_5$6 = { class: "enterprise-flag" };
21071
+ const _hoisted_6$5 = { class: "search-avatar" };
21072
+ const _hoisted_7$4 = { class: "g-toolbar-right allow-click-stop" };
21073
+ const _hoisted_8$4 = {
20562
21074
  key: 0,
20563
21075
  class: "g-toolbar-right-divider"
20564
21076
  };
20565
- const _hoisted_9$3 = {
21077
+ const _hoisted_9$4 = {
20566
21078
  key: 0,
20567
21079
  class: "g-toolbar-right-divider"
20568
21080
  };
@@ -20573,7 +21085,7 @@ const _hoisted_10$3 = {
20573
21085
  const _hoisted_11$3 = { class: "g-header-body-left" };
20574
21086
  const _hoisted_12$3 = { class: "g-header-body-right" };
20575
21087
  const _hoisted_13$1 = { key: 1 };
20576
- const _sfc_main$m = /* @__PURE__ */ defineComponent({
21088
+ const _sfc_main$p = /* @__PURE__ */ defineComponent({
20577
21089
  ...{
20578
21090
  name: "EnterpriseHeader"
20579
21091
  },
@@ -20820,8 +21332,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20820
21332
  class: normalizeClass(["g-header allow-click-stop", [showHeaderShadow.value ? "head-shadow" : "", __props.headerBorder ? "oldBorder" : "", headerClassName.value]])
20821
21333
  }, [
20822
21334
  createVNode(SiteAnnouncement),
20823
- withDirectives((openBlock(), createElementBlock("div", _hoisted_1$j, [
20824
- createElementVNode("div", _hoisted_2$e, [
21335
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_1$l, [
21336
+ createElementVNode("div", _hoisted_2$f, [
20825
21337
  isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) ? (openBlock(), createBlock(GIcon, {
20826
21338
  key: 0,
20827
21339
  onClick: handleHamburgerClick,
@@ -20830,8 +21342,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20830
21342
  class: "g-toolbar-left-asideicon",
20831
21343
  color: "var(--theme-aide-text)"
20832
21344
  })) : createCommentVNode("", true),
20833
- hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$d, [
20834
- createVNode(_sfc_main$O, {
21345
+ hasEnterpriseInfo.value ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
21346
+ createVNode(_sfc_main$R, {
20835
21347
  src: (_a2 = __props.enterpriseInfo) == null ? void 0 : _a2.avatar,
20836
21348
  name: (_b = __props.enterpriseInfo) == null ? void 0 : _b.name,
20837
21349
  isRound: false,
@@ -20839,8 +21351,8 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20839
21351
  height: 32,
20840
21352
  class: "enterprise-avatar"
20841
21353
  }, null, 8, ["src", "name"]),
20842
- createElementVNode("span", _hoisted_4$a, toDisplayString$1((_c = __props.enterpriseInfo) == null ? void 0 : _c.name), 1),
20843
- createElementVNode("span", _hoisted_5$5, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
21354
+ createElementVNode("span", _hoisted_4$b, toDisplayString$1((_c = __props.enterpriseInfo) == null ? void 0 : _c.name), 1),
21355
+ createElementVNode("span", _hoisted_5$6, toDisplayString$1(unref(t2)("gitCodeLayout.header.enterpriseFlag")), 1)
20844
21356
  ])) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
20845
21357
  __props.independence ? (openBlock(), createBlock(GLink, {
20846
21358
  key: 0,
@@ -20855,7 +21367,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20855
21367
  }, null, 8, ["style"]))
20856
21368
  ], 64))
20857
21369
  ]),
20858
- createElementVNode("div", _hoisted_6$4, [
21370
+ createElementVNode("div", _hoisted_6$5, [
20859
21371
  isModuleVisible(unref(HeaderDisplayItem).SEARCH_BUTTON) ? renderSlot(_ctx.$slots, "search", {}, () => [
20860
21372
  (openBlock(), createBlock(Search, {
20861
21373
  inAIHub: false,
@@ -20881,7 +21393,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20881
21393
  ]), 1032, ["sceneValue", "defaultGlobalSearchType"]))
20882
21394
  ], true, 0) : createCommentVNode("", true)
20883
21395
  ]),
20884
- createElementVNode("div", _hoisted_7$3, [
21396
+ createElementVNode("div", _hoisted_7$4, [
20885
21397
  __props.showAtomCodeLauncher ? renderSlot(_ctx.$slots, "atomCodeLauncher", {}, () => [
20886
21398
  createVNode(AtomCodeLauncher, {
20887
21399
  atomcodeLaunchQs: __props.atomcodeLaunchQs,
@@ -20894,7 +21406,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20894
21406
  independence: __props.independence
20895
21407
  }, null, 8, ["isLogin", "independence"]),
20896
21408
  !__props.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20897
- !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$3)) : createCommentVNode("", true),
21409
+ !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$4)) : createCommentVNode("", true),
20898
21410
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20899
21411
  unref(isMobile) ? (openBlock(), createElementBlock("section", {
20900
21412
  key: 0,
@@ -20929,7 +21441,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20929
21441
  ], 64))
20930
21442
  ], 64)) : createCommentVNode("", true)
20931
21443
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
20932
- !["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$3)) : createCommentVNode("", true),
21444
+ !["sm"].includes(unref(widthType)) ? (openBlock(), createElementBlock("div", _hoisted_9$4)) : createCommentVNode("", true),
20933
21445
  !["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(HeaderCreateMenu, {
20934
21446
  key: 1,
20935
21447
  dropdownVisible: __props.openCreateDropdown,
@@ -20983,7 +21495,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
20983
21495
  };
20984
21496
  }
20985
21497
  });
20986
- const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21498
+ const EnterpriseHeader = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-vue-layout-gitcode"]]);
20987
21499
  const layoutConfig$2 = useLayoutConfig();
20988
21500
  const useConfigSide = (request, sceneValue) => {
20989
21501
  const API = asideRequest(request);
@@ -21189,9 +21701,9 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
21189
21701
  SearchType2[SearchType2["Enterprise"] = 3] = "Enterprise";
21190
21702
  return SearchType2;
21191
21703
  })(SearchType || {});
21192
- const _hoisted_1$i = { class: "area" };
21193
- const _hoisted_2$d = { class: "area__layout-slot" };
21194
- const _sfc_main$l = /* @__PURE__ */ defineComponent({
21704
+ const _hoisted_1$k = { class: "area" };
21705
+ const _hoisted_2$e = { class: "area__layout-slot" };
21706
+ const _sfc_main$o = /* @__PURE__ */ defineComponent({
21195
21707
  __name: "Area",
21196
21708
  props: {
21197
21709
  list: {},
@@ -21204,9 +21716,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
21204
21716
  const layoutConfig2 = useLayoutConfig();
21205
21717
  const { t: t2 } = i18n.global;
21206
21718
  const route = useRoute();
21207
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-BEndVsWS.js"));
21208
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-EXoyOFZI.js"));
21209
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D8_C7FLf.js"));
21719
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-4Snoi1Jr.js"));
21720
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-Bd8GGUTU.js"));
21721
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Bw_8xPQ7.js"));
21210
21722
  const props = __props;
21211
21723
  const useReport2 = inject("useReport");
21212
21724
  const userInfo = inject("userInfo");
@@ -21411,7 +21923,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
21411
21923
  window.open(url, openMode);
21412
21924
  };
21413
21925
  return (_ctx, _cache) => {
21414
- return openBlock(), createElementBlock("div", _hoisted_1$i, [
21926
+ return openBlock(), createElementBlock("div", _hoisted_1$k, [
21415
21927
  createVNode(unref(Menu), {
21416
21928
  class: "menu",
21417
21929
  onSelect: onMenuClick,
@@ -21437,7 +21949,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
21437
21949
  return {
21438
21950
  name: key,
21439
21951
  fn: withCtx(() => [
21440
- createElementVNode("div", _hoisted_2$d, [
21952
+ createElementVNode("div", _hoisted_2$e, [
21441
21953
  createVNode(unref(Menu), {
21442
21954
  class: "menu",
21443
21955
  onSelect: onMenuClick,
@@ -21465,11 +21977,11 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
21465
21977
  };
21466
21978
  }
21467
21979
  });
21468
- const Area = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21469
- const _hoisted_1$h = { class: "settings__label" };
21470
- const _hoisted_2$c = { class: "aside-footer-tools-item-dropdown-item" };
21471
- const _hoisted_3$c = { class: "aside-footer-tools-item-dropdown-item" };
21472
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
21980
+ const Area = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21981
+ const _hoisted_1$j = { class: "settings__label" };
21982
+ const _hoisted_2$d = { class: "aside-footer-tools-item-dropdown-item" };
21983
+ const _hoisted_3$d = { class: "aside-footer-tools-item-dropdown-item" };
21984
+ const _sfc_main$n = /* @__PURE__ */ defineComponent({
21473
21985
  __name: "Settings",
21474
21986
  props: {
21475
21987
  showThemeSetting: { type: Boolean },
@@ -21485,13 +21997,13 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
21485
21997
  "overlay-class": "footer-tools-setting-dropdown"
21486
21998
  }, {
21487
21999
  menu: withCtx(() => [
21488
- withDirectives(createElementVNode("div", _hoisted_2$c, [
21489
- createVNode(_sfc_main$r)
22000
+ withDirectives(createElementVNode("div", _hoisted_2$d, [
22001
+ createVNode(_sfc_main$u)
21490
22002
  ], 512), [
21491
22003
  [vShow, __props.showThemeSetting]
21492
22004
  ]),
21493
- withDirectives(createElementVNode("div", _hoisted_3$c, [
21494
- createVNode(_sfc_main$C)
22005
+ withDirectives(createElementVNode("div", _hoisted_3$d, [
22006
+ createVNode(_sfc_main$F)
21495
22007
  ], 512), [
21496
22008
  [vShow, __props.showLangSetting]
21497
22009
  ])
@@ -21510,7 +22022,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
21510
22022
  size: "16",
21511
22023
  class: "active-icon settings__icon-min"
21512
22024
  }),
21513
- createElementVNode("span", _hoisted_1$h, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.preSettingLittle")), 1)
22025
+ createElementVNode("span", _hoisted_1$j, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.preSettingLittle")), 1)
21514
22026
  ], 2)
21515
22027
  ]),
21516
22028
  _: 1
@@ -21518,9 +22030,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
21518
22030
  };
21519
22031
  }
21520
22032
  });
21521
- const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-vue-layout-gitcode"]]);
22033
+ const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21522
22034
  const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues";
21523
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
22035
+ const _sfc_main$m = /* @__PURE__ */ defineComponent({
21524
22036
  __name: "SubMenuList",
21525
22037
  setup(__props) {
21526
22038
  const layoutConfig2 = useLayoutConfig();
@@ -21575,7 +22087,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
21575
22087
  };
21576
22088
  }
21577
22089
  });
21578
- const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-vue-layout-gitcode"]]);
22090
+ const SubMenuList = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21579
22091
  const createSetting = () => {
21580
22092
  const { t: t2 } = i18n.global;
21581
22093
  const isGitCodeHost2 = typeof window !== "undefined" && window.location.hostname.includes("gitcode");
@@ -21615,29 +22127,29 @@ const createSetting = () => {
21615
22127
  }
21616
22128
  return settings;
21617
22129
  };
21618
- const _hoisted_1$g = { class: "aside-footer" };
21619
- const _hoisted_2$b = { class: "remake-message" };
21620
- const _hoisted_3$b = ["title"];
21621
- const _hoisted_4$9 = { class: "remake-message__line" };
21622
- const _hoisted_5$4 = {
22130
+ const _hoisted_1$i = { class: "aside-footer" };
22131
+ const _hoisted_2$c = { class: "remake-message" };
22132
+ const _hoisted_3$c = ["title"];
22133
+ const _hoisted_4$a = { class: "remake-message__line" };
22134
+ const _hoisted_5$5 = {
21623
22135
  href: "https://beian.miit.gov.cn/#/Integrated/index",
21624
22136
  target: "_blank"
21625
22137
  };
21626
- const _hoisted_6$3 = {
22138
+ const _hoisted_6$4 = {
21627
22139
  key: 0,
21628
22140
  class: "remake-message__line public-security"
21629
22141
  };
21630
- const _hoisted_7$2 = ["href"];
21631
- const _hoisted_8$2 = {
22142
+ const _hoisted_7$3 = ["href"];
22143
+ const _hoisted_8$3 = {
21632
22144
  href: "https://www.huaweicloud.com/",
21633
22145
  target: "_blank",
21634
22146
  rel: "noopener noreferrer"
21635
22147
  };
21636
- const _hoisted_9$2 = { class: "contact-info__about-row" };
22148
+ const _hoisted_9$3 = { class: "contact-info__about-row" };
21637
22149
  const _hoisted_10$2 = { class: "footer-work-info" };
21638
22150
  const _hoisted_11$2 = { class: "footer-work-info__item footer-work-info__item--mt" };
21639
22151
  const _hoisted_12$2 = { class: "" };
21640
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
22152
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
21641
22153
  __name: "ContactInfo",
21642
22154
  setup(__props) {
21643
22155
  const { t: t2 } = i18n.global;
@@ -21647,21 +22159,21 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
21647
22159
  return getLocaleLang() === LANG_EN;
21648
22160
  });
21649
22161
  return (_ctx, _cache) => {
21650
- return openBlock(), createElementBlock("div", _hoisted_1$g, [
21651
- createElementVNode("div", _hoisted_2$b, [
22162
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
22163
+ createElementVNode("div", _hoisted_2$c, [
21652
22164
  createElementVNode("p", {
21653
22165
  class: "remake-message__line remake-message__line--break",
21654
22166
  title: unref(copyright).digestAbbr
21655
- }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$b),
21656
- createElementVNode("p", _hoisted_4$9, [
21657
- createElementVNode("a", _hoisted_5$4, toDisplayString$1(unref(copyright).icp), 1)
22167
+ }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$c),
22168
+ createElementVNode("p", _hoisted_4$a, [
22169
+ createElementVNode("a", _hoisted_5$5, toDisplayString$1(unref(copyright).icp), 1)
21658
22170
  ]),
21659
- unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$3, [
22171
+ unref(copyright).publicSecurity_url ? (openBlock(), createElementBlock("p", _hoisted_6$4, [
21660
22172
  _cache[0] || (_cache[0] = createElementVNode("img", { src: "//g.csdnimg.cn/common/csdn-footer/images/badge.png" }, null, -1)),
21661
22173
  createElementVNode("a", {
21662
22174
  href: unref(copyright).publicSecurity_url,
21663
22175
  target: "_blank"
21664
- }, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$2)
22176
+ }, toDisplayString$1(unref(copyright).publicSecurity), 9, _hoisted_7$3)
21665
22177
  ])) : createCommentVNode("", true)
21666
22178
  ]),
21667
22179
  createElementVNode("p", {
@@ -21674,9 +22186,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
21674
22186
  rel: "noopener noreferrer"
21675
22187
  }, "CSDN", -1)),
21676
22188
  _cache[2] || (_cache[2] = createTextVNode("  |  ", -1)),
21677
- createElementVNode("a", _hoisted_8$2, toDisplayString$1(unref(t2)("gitCodeLayout.home.HWCloud")), 1)
22189
+ createElementVNode("a", _hoisted_8$3, toDisplayString$1(unref(t2)("gitCodeLayout.home.HWCloud")), 1)
21678
22190
  ], 2),
21679
- createElementVNode("p", _hoisted_9$2, [
22191
+ createElementVNode("p", _hoisted_9$3, [
21680
22192
  createVNode(GLink, {
21681
22193
  target: "_blank",
21682
22194
  href: unref(currentHelpDocsAboutUsUrl)()
@@ -21709,18 +22221,18 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
21709
22221
  };
21710
22222
  }
21711
22223
  });
21712
- const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21713
- const _hoisted_1$f = { class: "config-aside__main" };
21714
- const _hoisted_2$a = { key: 0 };
21715
- const _hoisted_3$a = {
22224
+ const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["__scopeId", "data-v-vue-layout-gitcode"]]);
22225
+ const _hoisted_1$h = { class: "config-aside__main" };
22226
+ const _hoisted_2$b = { key: 0 };
22227
+ const _hoisted_3$b = {
21716
22228
  key: 1,
21717
22229
  class: "aside-menus"
21718
22230
  };
21719
- const _hoisted_4$8 = {
22231
+ const _hoisted_4$9 = {
21720
22232
  key: 1,
21721
22233
  class: "line line--mt"
21722
22234
  };
21723
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
22235
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
21724
22236
  __name: "configAideContent",
21725
22237
  props: {
21726
22238
  sceneValue: { default: SceneValue.home },
@@ -21750,7 +22262,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21750
22262
  const { isEn, area, fetchArea, sideLoading } = useConfigSide(request, props.sceneValue);
21751
22263
  fetchArea();
21752
22264
  const isScroll = ref(false);
21753
- const timer = ref(null);
22265
+ const timer2 = ref(null);
21754
22266
  const isGroupHover = ref(false);
21755
22267
  const visibleItems = computed(() => {
21756
22268
  switch (props.sceneValue) {
@@ -21791,8 +22303,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21791
22303
  });
21792
22304
  const handleScroll = () => {
21793
22305
  isScroll.value = true;
21794
- if (timer.value) clearTimeout(timer.value);
21795
- timer.value = setTimeout(() => {
22306
+ if (timer2.value) clearTimeout(timer2.value);
22307
+ timer2.value = setTimeout(() => {
21796
22308
  isScroll.value = false;
21797
22309
  }, 1e3);
21798
22310
  };
@@ -21858,18 +22370,18 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21858
22370
  createElementVNode("div", {
21859
22371
  class: normalizeClass(["config-aside__content", { "side-bar-content-shot": __props.asideSetShowLittle, "shot-isCh": !unref(isEn) }])
21860
22372
  }, [
21861
- withDirectives((openBlock(), createElementBlock("div", _hoisted_1$f, [
22373
+ withDirectives((openBlock(), createElementBlock("div", _hoisted_1$h, [
21862
22374
  createElementVNode("div", {
21863
22375
  class: normalizeClass(["scroll-content config-aside__scroll", { scroll: isScroll.value }]),
21864
22376
  onScroll: handleScroll,
21865
22377
  onMouseleave: handleMouseLeave
21866
22378
  }, [
21867
- unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$a, [
22379
+ unref(sideLoading) ? (openBlock(), createElementBlock("div", _hoisted_2$b, [
21868
22380
  createVNode(unref(Skeleton), {
21869
22381
  loading: unref(sideLoading),
21870
22382
  row: 4
21871
22383
  }, null, 8, ["loading"])
21872
- ])) : (openBlock(), createElementBlock("div", _hoisted_3$a, [
22384
+ ])) : (openBlock(), createElementBlock("div", _hoisted_3$b, [
21873
22385
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayArea.value, (item, index2) => {
21874
22386
  return openBlock(), createElementBlock(Fragment, {
21875
22387
  key: item.id
@@ -21903,7 +22415,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21903
22415
  }, null, 8, ["name"]),
21904
22416
  _cache[2] || (_cache[2] = createElementVNode("span", null, "群组讨论", -1))
21905
22417
  ], 32)) : createCommentVNode("", true),
21906
- !__props.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$8)) : createCommentVNode("", true)
22418
+ !__props.asideSetShowLittle && index2 !== displayArea.value.length - 1 ? (openBlock(), createElementBlock("hr", _hoisted_4$9)) : createCommentVNode("", true)
21907
22419
  ], 64);
21908
22420
  }), 128)),
21909
22421
  !__props.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -21933,9 +22445,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
21933
22445
  };
21934
22446
  }
21935
22447
  });
21936
- const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21937
- const _hoisted_1$e = { class: "aside-drawer-header" };
21938
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
22448
+ const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-vue-layout-gitcode"]]);
22449
+ const _hoisted_1$g = { class: "aside-drawer-header" };
22450
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
21939
22451
  __name: "index",
21940
22452
  props: {
21941
22453
  sceneValue: { default: SceneValue.home },
@@ -22110,7 +22622,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22110
22622
  class: "draw-side-bar"
22111
22623
  }, {
22112
22624
  default: withCtx(() => [
22113
- createElementVNode("div", _hoisted_1$e, [
22625
+ createElementVNode("div", _hoisted_1$g, [
22114
22626
  createVNode(GLink, {
22115
22627
  class: "g-toolbar-left-logo",
22116
22628
  style: normalizeStyle(logoStyle.value),
@@ -22141,7 +22653,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
22141
22653
  };
22142
22654
  }
22143
22655
  });
22144
- const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-vue-layout-gitcode"]]);
22656
+ const GitCodeAside = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-vue-layout-gitcode"]]);
22145
22657
  const repoInfoData = {
22146
22658
  "star_count": 0,
22147
22659
  "forks_count": 0,
@@ -22866,11 +23378,11 @@ const headerCustomPropsData = {
22866
23378
  isOtherUser: true
22867
23379
  }
22868
23380
  };
22869
- const _hoisted_1$d = { class: "home-wrapper" };
22870
- const _hoisted_2$9 = { class: "home-content" };
22871
- const _hoisted_3$9 = { class: "home-left-side" };
22872
- const _hoisted_4$7 = { class: "home-main" };
22873
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
23381
+ const _hoisted_1$f = { class: "home-wrapper" };
23382
+ const _hoisted_2$a = { class: "home-content" };
23383
+ const _hoisted_3$a = { class: "home-left-side" };
23384
+ const _hoisted_4$8 = { class: "home-main" };
23385
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
22874
23386
  __name: "home",
22875
23387
  setup(__props) {
22876
23388
  const asideVersion = ref("v2");
@@ -22946,7 +23458,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22946
23458
  }
22947
23459
  });
22948
23460
  return (_ctx, _cache) => {
22949
- return openBlock(), createElementBlock("div", _hoisted_1$d, [
23461
+ return openBlock(), createElementBlock("div", _hoisted_1$f, [
22950
23462
  showCommonHeader.value ? (openBlock(), createBlock(GitCodeHeader, {
22951
23463
  key: 0,
22952
23464
  sceneValue: sceneSelected.value,
@@ -22977,8 +23489,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
22977
23489
  headerFunctions: [],
22978
23490
  headerCustomProps: headerCustomProps.value
22979
23491
  }, null, 8, ["independence", "isLogin", "request", "globalStore", "enterpriseInfo", "userInfo", "headerCustomProps"])),
22980
- createElementVNode("div", _hoisted_2$9, [
22981
- createElementVNode("div", _hoisted_3$9, [
23492
+ createElementVNode("div", _hoisted_2$a, [
23493
+ createElementVNode("div", _hoisted_3$a, [
22982
23494
  asideVersion.value === "v2" ? (openBlock(), createBlock(GitCodeAsideV2, {
22983
23495
  key: 0,
22984
23496
  sceneValue: sceneSelected.value,
@@ -23011,7 +23523,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23011
23523
  _: 1
23012
23524
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"]))
23013
23525
  ]),
23014
- createElementVNode("div", _hoisted_4$7, [
23526
+ createElementVNode("div", _hoisted_4$8, [
23015
23527
  _cache[12] || (_cache[12] = createElementVNode("h1", null, "Aside 版本切换", -1)),
23016
23528
  createVNode(unref(RadioGroup), {
23017
23529
  direction: "row",
@@ -23133,8 +23645,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
23133
23645
  };
23134
23646
  }
23135
23647
  });
23136
- const _hoisted_1$c = { class: "home-wrapper" };
23137
- const _sfc_main$e = /* @__PURE__ */ defineComponent({
23648
+ const _hoisted_1$e = { class: "home-wrapper" };
23649
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
23138
23650
  __name: "login",
23139
23651
  setup(__props) {
23140
23652
  const isLogin = ref(false);
@@ -23166,8 +23678,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
23166
23678
  }
23167
23679
  });
23168
23680
  return (_ctx, _cache) => {
23169
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
23170
- createVNode(_sfc_main$1, {
23681
+ return openBlock(), createElementBlock("div", _hoisted_1$e, [
23682
+ createVNode(_sfc_main$4, {
23171
23683
  isLogin: isLogin.value,
23172
23684
  request: unref(proxyService),
23173
23685
  loginSuccess,
@@ -23183,7 +23695,7 @@ const routes = [
23183
23695
  {
23184
23696
  path: "/",
23185
23697
  name: "home",
23186
- component: _sfc_main$f,
23698
+ component: _sfc_main$i,
23187
23699
  meta: {
23188
23700
  // showBgColor: true,
23189
23701
  asideMenu: "flat"
@@ -23192,52 +23704,52 @@ const routes = [
23192
23704
  {
23193
23705
  path: "/dashboard",
23194
23706
  name: "dashboard",
23195
- component: _sfc_main$f
23707
+ component: _sfc_main$i
23196
23708
  },
23197
23709
  {
23198
23710
  path: "/repoDashboard",
23199
23711
  name: "repoDashboard",
23200
- component: _sfc_main$f
23712
+ component: _sfc_main$i
23201
23713
  },
23202
23714
  {
23203
23715
  path: "/",
23204
23716
  name: "homepage",
23205
- component: _sfc_main$f
23717
+ component: _sfc_main$i
23206
23718
  },
23207
23719
  {
23208
23720
  path: "/settingOrganization",
23209
23721
  name: "settingOrganization",
23210
- component: _sfc_main$f
23722
+ component: _sfc_main$i
23211
23723
  },
23212
23724
  {
23213
23725
  path: "/settingRepo",
23214
23726
  name: "settingRepo",
23215
- component: _sfc_main$f
23727
+ component: _sfc_main$i
23216
23728
  },
23217
23729
  {
23218
23730
  path: "/myNotebook",
23219
23731
  name: "myNotebook",
23220
- component: _sfc_main$f
23732
+ component: _sfc_main$i
23221
23733
  },
23222
23734
  {
23223
23735
  path: "/userSpaces",
23224
23736
  name: "userSpaces",
23225
- component: _sfc_main$f
23737
+ component: _sfc_main$i
23226
23738
  },
23227
23739
  {
23228
23740
  path: "/userStars",
23229
23741
  name: "userStars",
23230
- component: _sfc_main$f
23742
+ component: _sfc_main$i
23231
23743
  },
23232
23744
  {
23233
23745
  path: "/setting",
23234
23746
  name: "setting",
23235
- component: _sfc_main$f
23747
+ component: _sfc_main$i
23236
23748
  },
23237
23749
  {
23238
23750
  path: "/login",
23239
23751
  name: "/login",
23240
- component: _sfc_main$e
23752
+ component: _sfc_main$h
23241
23753
  }
23242
23754
  ];
23243
23755
  const router = createRouter({
@@ -23897,8 +24409,8 @@ function useModel(props, emits) {
23897
24409
  vModels
23898
24410
  };
23899
24411
  }
23900
- const _hoisted_1$b = { class: "g-input-button-append__text" };
23901
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
24412
+ const _hoisted_1$d = { class: "g-input-button-append__text" };
24413
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
23902
24414
  __name: "inputButton",
23903
24415
  props: {
23904
24416
  modelValue: {},
@@ -23922,21 +24434,21 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
23922
24434
  const status = props.second !== 59;
23923
24435
  const DisabledBtn = ref(status);
23924
24436
  const inputBtnClassName = ref("");
23925
- let timer = null;
24437
+ let timer2 = null;
23926
24438
  const toCountDown = () => {
23927
- if (!timer) {
24439
+ if (!timer2) {
23928
24440
  if (CountDown.value === 0) {
23929
24441
  CountDown.value = 59;
23930
24442
  }
23931
- timer = setInterval(() => {
24443
+ timer2 = setInterval(() => {
23932
24444
  if (CountDown.value >= 1) {
23933
24445
  CountDown.value -= 1;
23934
24446
  } else {
23935
24447
  CountDown.value = 59;
23936
24448
  emits("update:countdown", false);
23937
24449
  DisabledBtn.value = false;
23938
- timer && clearInterval(timer);
23939
- timer = null;
24450
+ timer2 && clearInterval(timer2);
24451
+ timer2 = null;
23940
24452
  }
23941
24453
  }, 1e3);
23942
24454
  }
@@ -23969,8 +24481,8 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
23969
24481
  inputBtnClassName.value = "";
23970
24482
  };
23971
24483
  onBeforeUnmount(() => {
23972
- if (timer) {
23973
- clearInterval(timer);
24484
+ if (timer2) {
24485
+ clearInterval(timer2);
23974
24486
  }
23975
24487
  });
23976
24488
  watchEffect(() => {
@@ -23979,9 +24491,9 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
23979
24491
  toCountDown();
23980
24492
  } else {
23981
24493
  DisabledBtn.value = false;
23982
- if (timer) {
23983
- clearInterval(timer);
23984
- timer = null;
24494
+ if (timer2) {
24495
+ clearInterval(timer2);
24496
+ timer2 = null;
23985
24497
  }
23986
24498
  }
23987
24499
  });
@@ -24006,7 +24518,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24006
24518
  DisabledBtn.value || !__props.hasMobile ? "g-input-button-append-inactive" : "g-input-button-append-active"
24007
24519
  ])
24008
24520
  }, [
24009
- createElementVNode("span", _hoisted_1$b, toDisplayString$1(BtnText.value), 1)
24521
+ createElementVNode("span", _hoisted_1$d, toDisplayString$1(BtnText.value), 1)
24010
24522
  ], 2)
24011
24523
  ]),
24012
24524
  _: 1
@@ -24015,12 +24527,12 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24015
24527
  };
24016
24528
  }
24017
24529
  });
24018
- const _hoisted_1$a = { class: "g-input-select" };
24019
- const _hoisted_2$8 = { class: "login-phone" };
24020
- const _hoisted_3$8 = { class: "g-input-select__option-row" };
24021
- const _hoisted_4$6 = { class: "g-input-select__item-row" };
24022
- const _hoisted_5$3 = { class: "g-input-select__option-row" };
24023
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
24530
+ const _hoisted_1$c = { class: "g-input-select" };
24531
+ const _hoisted_2$9 = { class: "login-phone" };
24532
+ const _hoisted_3$9 = { class: "g-input-select__option-row" };
24533
+ const _hoisted_4$7 = { class: "g-input-select__item-row" };
24534
+ const _hoisted_5$4 = { class: "g-input-select__option-row" };
24535
+ const _sfc_main$f = /* @__PURE__ */ defineComponent({
24024
24536
  __name: "inputSelect",
24025
24537
  props: {
24026
24538
  modelValue: {},
@@ -24098,8 +24610,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24098
24610
  }
24099
24611
  });
24100
24612
  return (_ctx, _cache) => {
24101
- return openBlock(), createElementBlock("div", _hoisted_1$a, [
24102
- createElementVNode("div", _hoisted_2$8, [
24613
+ return openBlock(), createElementBlock("div", _hoisted_1$c, [
24614
+ createElementVNode("div", _hoisted_2$9, [
24103
24615
  (props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
24104
24616
  createVNode(unref(Select), {
24105
24617
  class: "login-country-select",
@@ -24116,7 +24628,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24116
24628
  value: item.value
24117
24629
  }, {
24118
24630
  default: withCtx(() => [
24119
- createElementVNode("div", _hoisted_3$8, [
24631
+ createElementVNode("div", _hoisted_3$9, [
24120
24632
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
24121
24633
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
24122
24634
  ])
@@ -24140,7 +24652,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24140
24652
  class: "login-phone-select"
24141
24653
  }), {
24142
24654
  item: withCtx((slotProps) => [
24143
- createElementVNode("div", _hoisted_4$6, [
24655
+ createElementVNode("div", _hoisted_4$7, [
24144
24656
  createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
24145
24657
  createVNode(GIcon, {
24146
24658
  name: "gt-line-delete",
@@ -24175,7 +24687,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24175
24687
  value: item.value
24176
24688
  }, {
24177
24689
  default: withCtx(() => [
24178
- createElementVNode("div", _hoisted_5$3, [
24690
+ createElementVNode("div", _hoisted_5$4, [
24179
24691
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
24180
24692
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
24181
24693
  ])
@@ -24220,7 +24732,7 @@ function useNoSpaceInput(getter, setter) {
24220
24732
  handleKeydown
24221
24733
  };
24222
24734
  }
24223
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
24735
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
24224
24736
  __name: "index",
24225
24737
  props: {
24226
24738
  DataList: {},
@@ -24247,7 +24759,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24247
24759
  const Data = reactive({});
24248
24760
  const GroupRules = reactive({});
24249
24761
  const FormRef = ref(null);
24250
- let timer = null;
24762
+ let timer2 = null;
24251
24763
  const emits = __emit;
24252
24764
  const setRequiredRule = (target) => {
24253
24765
  return {
@@ -24378,22 +24890,22 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24378
24890
  const handleClick = () => {
24379
24891
  };
24380
24892
  const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
24381
- const handleOperate = (config) => {
24893
+ const handleOperate = (config2) => {
24382
24894
  var _a;
24383
- const key = ((_a = config == null ? void 0 : config.props) == null ? void 0 : _a.aliasKey) || config.key;
24895
+ const key = ((_a = config2 == null ? void 0 : config2.props) == null ? void 0 : _a.aliasKey) || config2.key;
24384
24896
  emits("countDown", {
24385
24897
  key,
24386
- sourceKey: config.key,
24898
+ sourceKey: config2.key,
24387
24899
  value: Data[key],
24388
24900
  country: Data.country || (cache_countdown == null ? void 0 : cache_countdown.country),
24389
24901
  smsReported: false
24390
24902
  });
24391
24903
  };
24392
24904
  const handleFormInput = () => {
24393
- if (timer) {
24394
- clearTimeout(timer);
24905
+ if (timer2) {
24906
+ clearTimeout(timer2);
24395
24907
  }
24396
- timer = setTimeout(() => {
24908
+ timer2 = setTimeout(() => {
24397
24909
  const status = props.DataList.some((item) => {
24398
24910
  return item.required && !Data[item.key];
24399
24911
  });
@@ -24423,8 +24935,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24423
24935
  formItem.props.countdown = false;
24424
24936
  };
24425
24937
  onBeforeMount(() => {
24426
- if (timer) {
24427
- clearTimeout(timer);
24938
+ if (timer2) {
24939
+ clearTimeout(timer2);
24428
24940
  }
24429
24941
  });
24430
24942
  __expose({
@@ -24475,7 +24987,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24475
24987
  autocomplete: autocompleteCalc((_a = formItem.props) == null ? void 0 : _a.autocomplete),
24476
24988
  autofocus: formItem.key === "username",
24477
24989
  spellcheck: false
24478
- }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$d, mergeProps({
24990
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "placeholder", "onChange", "onKeydown", "autocomplete", "autofocus"])) : formItem.type === "inputButton" ? (openBlock(), createBlock(_sfc_main$g, mergeProps({
24479
24991
  key: 1,
24480
24992
  modelValue: Data[formItem.key],
24481
24993
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -24488,7 +25000,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24488
25000
  text: unref($t)("gitCodeLayout.userSetting.account.getVerificationCode"),
24489
25001
  error: __props.errors.msgError,
24490
25002
  autocomplete: autocompleteCalc((_c = formItem.props) == null ? void 0 : _c.autocomplete)
24491
- }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$c, mergeProps({
25003
+ }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "onUpdate:countdown", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$f, mergeProps({
24492
25004
  key: 2,
24493
25005
  country: Data.country,
24494
25006
  class: __props.formErrors["mobile"] ? "input-select-error" : "",
@@ -24521,13 +25033,13 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24521
25033
  }
24522
25034
  });
24523
25035
  const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI0w+pWCdukEjbg3lMwQiIyZhK5Rk0BP3vt8SQkImM2kEt5ydcUySJnZERaJMKsICu5T95Md43bexIhVFMk8GhtMasYqJRYvcknkyQLXYvImHUkRiV70HwYJ+RaMrWTZCP/E8TqaiQsyjl3htBMG4o38YltuYN+z56z+g1J7NouQTB4+ow8utQ9aVvliqWy7Ievpb+1TUbOXZy0D6NV5A0X1+M4Nr6c/8tkXlOjvS29/n0Z7b0z5V5Lju3zHMOj3y7LnFUN9vh7d+y1t720e7vEamvsMRTC/LfXSc3m9eIX/3z2jQTFU8k2679DNiHXk+u3ZgO0QzBW3bYtcv/EKckODpc8flHzLnl46fKU7RjzyZXr8qqSwiQGO86O70vs2mafZ8B9Mvri+KFzXWrcbvuzFyDLDUjMDA7J8PkuSezeJvM3r5MqJXfx/o+lv6UwGaBiQY3nNd2owmn0FYYQTeZ4yBghOYl9wN+gwCh+CCkGBj966/a4VztJeagR9a/ux/B+70MkDbSdmhRxRAGEPGjrsJ0AR8IJAGTca22339e9t0UJuzjlXozJOa5CWLh35yQnCogETds42qVJZauEwMK9u8omBNxraZfK5ctsSXLDS5KKoVYjd5GOi2siQxBEFECCuRYE1KoE4YIDShLAkBg089EXU+QTIHOlcg9yWg4ykmmM659UyC683NHB+zFYw40LJY8JE+ZegAic5OX9e2z5IDIYY9+R78ePYT85ZMVPrfaL3IaM3T3ynScZgIjyI1vlwUrF9YullIQEk5lJzFWvLHUPigW3nAyc6FAXs+zIABBQ33VyyrnG4yHDncPcuKEFRCmUKVmUvGs0h1hrguYPPCrtY4BOeCVgEmuFQwa4rok4jMU5zghEfqrV44fPTei8+7ocQ3Rw7RFN/v0qT8hNsblAOjkM2XRWW85Kzw9idbXjY3DOO4CsJ5SQnO+FIEmv3LBlcEa3a7ScrG5aa79nEnc+1QTfO+alGAIynFLG/SGkT6WlULlL9ce+vx25gMqsGPD+hc1j3k0OuqVyxjXclZ5fJB3RONhxRudw1O+pibhmj6Tf+Ihp+UfiqlHvY5JOo+CFGHW4gAYbOD3aOVC3pHCfx1d6JAhYZzy52mNLD8R4yZQXhjWS7mqOGdLzFqh8mXkNnT5rV5KFsFQdYLT3th2FThBZJiqeBSxK4kFaJWgzmNd0Uh4o8wzYAP2s2/bOtCVnCMZQQeDMASz2MAyJuhiQN5NL7OT/1UTyN8SweB3S+d7PR7YTHONe8L72y49KxG2N0i8lIAbiEhKvHNgjix3hbDSfKEkW8EzWFbfyK+RiMCXmk6vXpRwwnlLrB0rkYsDgLCYXH9hj54ipOaZ20mcIrgy5ONR8ng5NCBEycn5Cnsb0fa09AbySid5898Px/eg7XuMHtGW8PC8oKvIdhWLw09eilEaibYnSRSyybCKL4oG5Uu0RSWyjpC6Vt7yg3ZK/QhOSGxxxbZlYy+CVDJIEzHtTHfXvaCt53cr82sGr1RIUGKdQXysoKBBuXhlzsNdVkog+8gM5BNIpCkbyuSjoYtZALdgdmhAGMbdpojlMH8cUByQ0QhsvwsvxHL8eX5WXq3uuRBkUnG8kr9Bij6YhfSo/bRFAg5FciTpwfYgZqwSP2qVz1eoGKQc8YFfyqZNC6NMeEPnAvBgkMDU4BQChTYJjW7HcgRdTTtNzgrTefNlZLshFyIzXOgTSyYPVb5X+xoHoxuCQgaOx6neuLRgrY2Yb+bNUXiqANE87BiIEvWRVy2ToBWFIXhgdY2J43gOzqDIaXd3kPXGiiDKadQPg/EILqUGt6nrqN/omy2g/93CD8RLRxSLREMGLY8mJptJ0gzGxH8KQL4gplb8mw+rkbyDJmqfeNFcT92OdZMZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
24524
- const _hoisted_1$9 = { class: "auth-container" };
24525
- const _hoisted_2$7 = { class: "tips" };
24526
- const _hoisted_3$7 = { class: "icons" };
24527
- const _hoisted_4$5 = ["src", "alt", "onClick"];
24528
- const _hoisted_5$2 = { class: "recent-login-img" };
24529
- const _hoisted_6$2 = ["src"];
24530
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
25036
+ const _hoisted_1$b = { class: "auth-container" };
25037
+ const _hoisted_2$8 = { class: "tips" };
25038
+ const _hoisted_3$8 = { class: "icons" };
25039
+ const _hoisted_4$6 = ["src", "alt", "onClick"];
25040
+ const _hoisted_5$3 = { class: "recent-login-img" };
25041
+ const _hoisted_6$3 = ["src"];
25042
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
24531
25043
  __name: "auth",
24532
25044
  props: {
24533
25045
  logos: {},
@@ -24548,9 +25060,9 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
24548
25060
  return loginMethodList.includes(props.recentLoginType);
24549
25061
  };
24550
25062
  return (_ctx, _cache) => {
24551
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
24552
- createElementVNode("div", _hoisted_2$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
24553
- createElementVNode("div", _hoisted_3$7, [
25063
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
25064
+ createElementVNode("div", _hoisted_2$8, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
25065
+ createElementVNode("div", _hoisted_3$8, [
24554
25066
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.logos, (icon) => {
24555
25067
  return openBlock(), createElementBlock("div", {
24556
25068
  key: icon.alt,
@@ -24567,16 +25079,16 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
24567
25079
  src: icon.src,
24568
25080
  alt: icon.alt,
24569
25081
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
24570
- }, null, 8, _hoisted_4$5)
25082
+ }, null, 8, _hoisted_4$6)
24571
25083
  ]),
24572
25084
  _: 2
24573
25085
  }, 1032, ["content", "disabled"]),
24574
- createElementVNode("div", _hoisted_5$2, [
25086
+ createElementVNode("div", _hoisted_5$3, [
24575
25087
  checkIsRecentLogin(icon.loginMethodList || []) ? (openBlock(), createElementBlock("img", {
24576
25088
  key: 0,
24577
25089
  src: unref(recentLoginImg),
24578
25090
  class: "recent-login-img__icon"
24579
- }, null, 8, _hoisted_6$2)) : createCommentVNode("", true)
25091
+ }, null, 8, _hoisted_6$3)) : createCommentVNode("", true)
24580
25092
  ])
24581
25093
  ]);
24582
25094
  }), 128))
@@ -24585,7 +25097,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
24585
25097
  };
24586
25098
  }
24587
25099
  });
24588
- const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-vue-layout-gitcode"]]);
25100
+ const GAuth = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24589
25101
  const LOGIN_DECLARE_KEY = "g-login-declare-status";
24590
25102
  const useDeclareStatus = () => {
24591
25103
  const declareNotClicked = ref({
@@ -24627,11 +25139,11 @@ const useDeclareStatus = () => {
24627
25139
  resetDeclareStatus
24628
25140
  };
24629
25141
  };
24630
- const _hoisted_1$8 = { class: "agreement" };
24631
- const _hoisted_2$6 = { class: "agreement__placeholder" };
24632
- const _hoisted_3$6 = { class: "agreement__placeholder" };
24633
- const _hoisted_4$4 = { class: "agreement__placeholder" };
24634
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
25142
+ const _hoisted_1$a = { class: "agreement" };
25143
+ const _hoisted_2$7 = { class: "agreement__placeholder" };
25144
+ const _hoisted_3$7 = { class: "agreement__placeholder" };
25145
+ const _hoisted_4$5 = { class: "agreement__placeholder" };
25146
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
24635
25147
  __name: "agreement",
24636
25148
  props: {
24637
25149
  modelValue: { type: Boolean },
@@ -24655,19 +25167,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
24655
25167
  }
24656
25168
  });
24657
25169
  return (_ctx, _cache) => {
24658
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
25170
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
24659
25171
  createVNode(unref(Checkbox), {
24660
25172
  "model-value": __props.modelValue,
24661
25173
  "onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
24662
25174
  size: "sm"
24663
25175
  }, {
24664
25176
  default: withCtx(() => [
24665
- createElementVNode("span", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
25177
+ createElementVNode("span", _hoisted_2$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
24666
25178
  createElementVNode("span", {
24667
25179
  class: normalizeClass(["agreement__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
24668
25180
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
24669
25181
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
24670
- createElementVNode("span", _hoisted_3$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
25182
+ createElementVNode("span", _hoisted_3$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
24671
25183
  createElementVNode("span", {
24672
25184
  class: normalizeClass(["agreement__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
24673
25185
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
@@ -24681,7 +25193,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
24681
25193
  size: "sm"
24682
25194
  }, {
24683
25195
  default: withCtx(() => [
24684
- createElementVNode("span", _hoisted_4$4, [
25196
+ createElementVNode("span", _hoisted_4$5, [
24685
25197
  createTextVNode(toDisplayString$1(dataShareName.value) + " ", 1),
24686
25198
  createElementVNode("span", {
24687
25199
  class: "agreement__link",
@@ -24695,11 +25207,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
24695
25207
  };
24696
25208
  }
24697
25209
  });
24698
- const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24699
- const _hoisted_1$7 = { class: "agreements__hint" };
24700
- const _hoisted_2$5 = { class: "agreements__hint-plain" };
24701
- const _hoisted_3$5 = { class: "agreements__hint" };
24702
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
25210
+ const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-vue-layout-gitcode"]]);
25211
+ const _hoisted_1$9 = { class: "agreements__hint" };
25212
+ const _hoisted_2$6 = { class: "agreements__hint-plain" };
25213
+ const _hoisted_3$6 = { class: "agreements__hint" };
25214
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
24703
25215
  __name: "agreements",
24704
25216
  props: {
24705
25217
  modelValue: { type: Boolean },
@@ -24731,12 +25243,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24731
25243
  class: "agree-module agreements"
24732
25244
  }, {
24733
25245
  default: withCtx(() => [
24734
- createElementVNode("span", _hoisted_1$7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
25246
+ createElementVNode("span", _hoisted_1$9, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
24735
25247
  createElementVNode("a", {
24736
25248
  class: normalizeClass(["agreements__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
24737
25249
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
24738
25250
  }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
24739
- createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
25251
+ createElementVNode("span", _hoisted_2$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
24740
25252
  createElementVNode("a", {
24741
25253
  class: normalizeClass(["agreements__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
24742
25254
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
@@ -24752,7 +25264,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24752
25264
  class: "agreements__data-share"
24753
25265
  }, {
24754
25266
  default: withCtx(() => [
24755
- createElementVNode("span", _hoisted_3$5, toDisplayString$1(dataShareName.value), 1),
25267
+ createElementVNode("span", _hoisted_3$6, toDisplayString$1(dataShareName.value), 1),
24756
25268
  createElementVNode("span", {
24757
25269
  class: "agreements__data-link",
24758
25270
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
@@ -24764,14 +25276,14 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
24764
25276
  };
24765
25277
  }
24766
25278
  });
24767
- const _hoisted_1$6 = { class: "g-title" };
24768
- const _hoisted_2$4 = { class: "back-img" };
24769
- const _hoisted_3$4 = ["src"];
24770
- const _hoisted_4$3 = {
25279
+ const _hoisted_1$8 = { class: "g-title" };
25280
+ const _hoisted_2$5 = { class: "back-img" };
25281
+ const _hoisted_3$5 = ["src"];
25282
+ const _hoisted_4$4 = {
24771
25283
  key: 0,
24772
25284
  class: "g-title__text"
24773
25285
  };
24774
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
25286
+ const _sfc_main$a = /* @__PURE__ */ defineComponent({
24775
25287
  __name: "title",
24776
25288
  props: {
24777
25289
  title: {},
@@ -24786,21 +25298,21 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
24786
25298
  emits("back");
24787
25299
  };
24788
25300
  return (_ctx, _cache) => {
24789
- return openBlock(), createElementBlock("div", _hoisted_1$6, [
24790
- createElementVNode("div", _hoisted_2$4, [
25301
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
25302
+ createElementVNode("div", _hoisted_2$5, [
24791
25303
  __props.showBack ? (openBlock(), createElementBlock("img", {
24792
25304
  key: 0,
24793
25305
  src: __props.icon,
24794
25306
  class: "g-title__back-img",
24795
25307
  onClick: withModifiers(handleClick, ["stop"])
24796
- }, null, 8, _hoisted_3$4)) : createCommentVNode("", true)
25308
+ }, null, 8, _hoisted_3$5)) : createCommentVNode("", true)
24797
25309
  ]),
24798
- __props.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$3, toDisplayString$1(__props.title), 1)) : createCommentVNode("", true)
25310
+ __props.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$4, toDisplayString$1(__props.title), 1)) : createCommentVNode("", true)
24799
25311
  ]);
24800
25312
  };
24801
25313
  }
24802
25314
  });
24803
- const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-vue-layout-gitcode"]]);
25315
+ const GTitle = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__scopeId", "data-v-vue-layout-gitcode"]]);
24804
25316
  const FindFileName = (path) => {
24805
25317
  var _a;
24806
25318
  const isName = /.*\/.*\/(.*\..*)/;
@@ -27191,10 +27703,10 @@ const getFormRules = () => ({
27191
27703
  }
27192
27704
  ]
27193
27705
  });
27194
- const _hoisted_1$5 = { class: "modal-body" };
27195
- const _hoisted_2$3 = { class: "login-check-modal-text" };
27196
- const _hoisted_3$3 = { class: "login-check-modal-footer" };
27197
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
27706
+ const _hoisted_1$7 = { class: "modal-body" };
27707
+ const _hoisted_2$4 = { class: "login-check-modal-text" };
27708
+ const _hoisted_3$4 = { class: "login-check-modal-footer" };
27709
+ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
27198
27710
  __name: "loginCheckModal",
27199
27711
  props: /* @__PURE__ */ mergeModels({
27200
27712
  dataShareChecked: { type: Boolean }
@@ -27236,7 +27748,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
27236
27748
  title: unref($t)("gitCodeLayout.LoginModal.subtitle.useAgrAndPriPolTip")
27237
27749
  }, {
27238
27750
  footer: withCtx(() => [
27239
- createElementVNode("div", _hoisted_3$3, [
27751
+ createElementVNode("div", _hoisted_3$4, [
27240
27752
  createVNode(unref(Button), {
27241
27753
  class: "login-check-modal-footer__btn-cancel",
27242
27754
  onClick: close
@@ -27260,7 +27772,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
27260
27772
  ])
27261
27773
  ]),
27262
27774
  default: withCtx(() => [
27263
- createElementVNode("div", _hoisted_1$5, [
27775
+ createElementVNode("div", _hoisted_1$7, [
27264
27776
  createElementVNode("div", null, [
27265
27777
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
27266
27778
  createElementVNode("span", {
@@ -27284,7 +27796,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
27284
27796
  class: "login-check-modal-data-share"
27285
27797
  }, {
27286
27798
  default: withCtx(() => [
27287
- createElementVNode("span", _hoisted_2$3, toDisplayString$1(dataShareName.value), 1),
27799
+ createElementVNode("span", _hoisted_2$4, toDisplayString$1(dataShareName.value), 1),
27288
27800
  createElementVNode("span", {
27289
27801
  class: "login-check-modal-link login-check-modal-link--sm",
27290
27802
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
@@ -27299,34 +27811,34 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
27299
27811
  };
27300
27812
  }
27301
27813
  });
27302
- const _hoisted_1$4 = { class: "mfa" };
27303
- const _hoisted_2$2 = ["src"];
27304
- const _hoisted_3$2 = { class: "mfa__title" };
27305
- const _hoisted_4$2 = { class: "mfa__desc" };
27306
- const _hoisted_5$1 = {
27814
+ const _hoisted_1$6 = { class: "mfa" };
27815
+ const _hoisted_2$3 = ["src"];
27816
+ const _hoisted_3$3 = { class: "mfa__title" };
27817
+ const _hoisted_4$3 = { class: "mfa__desc" };
27818
+ const _hoisted_5$2 = {
27307
27819
  key: 0,
27308
27820
  class: "input-list"
27309
27821
  };
27310
- const _hoisted_6$1 = {
27822
+ const _hoisted_6$2 = {
27311
27823
  key: 1,
27312
27824
  class: "input-list cover"
27313
27825
  };
27314
- const _hoisted_7$1 = {
27826
+ const _hoisted_7$2 = {
27315
27827
  key: 2,
27316
27828
  class: "mfa__error"
27317
27829
  };
27318
- const _hoisted_8$1 = {
27830
+ const _hoisted_8$2 = {
27319
27831
  key: 3,
27320
27832
  class: "mfa__hint"
27321
27833
  };
27322
- const _hoisted_9$1 = {
27834
+ const _hoisted_9$2 = {
27323
27835
  key: 4,
27324
27836
  class: "mfa__hint"
27325
27837
  };
27326
27838
  const _hoisted_10$1 = { class: "mfa__action" };
27327
27839
  const _hoisted_11$1 = { class: "mfa__footer" };
27328
27840
  const _hoisted_12$1 = { class: "mfa__back" };
27329
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
27841
+ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
27330
27842
  __name: "MFA",
27331
27843
  props: {
27332
27844
  mask: {},
@@ -27476,15 +27988,15 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
27476
27988
  focusInput();
27477
27989
  });
27478
27990
  return (_ctx, _cache) => {
27479
- return openBlock(), createElementBlock("div", _hoisted_1$4, [
27991
+ return openBlock(), createElementBlock("div", _hoisted_1$6, [
27480
27992
  createElementVNode("img", {
27481
27993
  class: "mfa__logo",
27482
27994
  src: currentLogo.value,
27483
27995
  alt: ""
27484
- }, null, 8, _hoisted_2$2),
27485
- createElementVNode("p", _hoisted_3$2, toDisplayString$1(modeTitle.value), 1),
27486
- createElementVNode("p", _hoisted_4$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip5")), 1),
27487
- mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
27996
+ }, null, 8, _hoisted_2$3),
27997
+ createElementVNode("p", _hoisted_3$3, toDisplayString$1(modeTitle.value), 1),
27998
+ createElementVNode("p", _hoisted_4$3, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip5")), 1),
27999
+ mode.value === "code" ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
27488
28000
  (openBlock(true), createElementBlock(Fragment, null, renderList(inputList.value, (item, index2) => {
27489
28001
  return openBlock(), createElementBlock("div", {
27490
28002
  key: item.id,
@@ -27502,16 +28014,16 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
27502
28014
  ]);
27503
28015
  }), 128))
27504
28016
  ])) : createCommentVNode("", true),
27505
- mode.value === "recover" ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
28017
+ mode.value === "recover" ? (openBlock(), createElementBlock("div", _hoisted_6$2, [
27506
28018
  createVNode(unref(Input), {
27507
28019
  modelValue: coverCode.value,
27508
28020
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => coverCode.value = $event),
27509
28021
  maxLength: "10"
27510
28022
  }, null, 8, ["modelValue"])
27511
28023
  ])) : createCommentVNode("", true),
27512
- errorMsg.value ? (openBlock(), createElementBlock("p", _hoisted_7$1, toDisplayString$1(errorMsg.value), 1)) : createCommentVNode("", true),
27513
- mode.value === "code" ? (openBlock(), createElementBlock("p", _hoisted_8$1, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip1")), 1)) : createCommentVNode("", true),
27514
- mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$1, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip2")), 1)) : createCommentVNode("", true),
28024
+ errorMsg.value ? (openBlock(), createElementBlock("p", _hoisted_7$2, toDisplayString$1(errorMsg.value), 1)) : createCommentVNode("", true),
28025
+ mode.value === "code" ? (openBlock(), createElementBlock("p", _hoisted_8$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip1")), 1)) : createCommentVNode("", true),
28026
+ mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$2, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip2")), 1)) : createCommentVNode("", true),
27515
28027
  createElementVNode("div", _hoisted_10$1, [
27516
28028
  createVNode(unref(Button), {
27517
28029
  class: "mfa__submit",
@@ -27556,7 +28068,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
27556
28068
  };
27557
28069
  }
27558
28070
  });
27559
- const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
28071
+ const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
27560
28072
  const _SlidCaptchaManager = class _SlidCaptchaManager {
27561
28073
  // eslint-disable-next-line no-useless-constructor
27562
28074
  constructor() {
@@ -27632,17 +28144,17 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27632
28144
  /**
27633
28145
  * 初始化 TAC 实例
27634
28146
  */
27635
- async initTAC(path, config, style, onload, onerror) {
27636
- if (!config.requestCaptchaDataUrl) {
28147
+ async initTAC(path, config2, style, onload, onerror) {
28148
+ if (!config2.requestCaptchaDataUrl) {
27637
28149
  throw new Error("TAC 配置缺少必需的 requestCaptchaDataUrl");
27638
28150
  }
27639
- if (!config.validCaptchaUrl) {
28151
+ if (!config2.validCaptchaUrl) {
27640
28152
  throw new Error("TAC 配置缺少必需的 validCaptchaUrl");
27641
28153
  }
27642
- if (!config.bindEl) {
28154
+ if (!config2.bindEl) {
27643
28155
  throw new Error("TAC 配置缺少必需的 bindEl 元素");
27644
28156
  }
27645
- if (!config.validSuccess) {
28157
+ if (!config2.validSuccess) {
27646
28158
  throw new Error("TAC 配置缺少必需的 validSuccess 回调函数");
27647
28159
  }
27648
28160
  if (!window.initTAC) {
@@ -27669,7 +28181,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27669
28181
  return;
27670
28182
  }
27671
28183
  try {
27672
- window.initTAC(path, config, style || {}).then((tac) => {
28184
+ window.initTAC(path, config2, style || {}).then((tac) => {
27673
28185
  this.tacInstance = tac;
27674
28186
  if (onload) {
27675
28187
  onload(tac);
@@ -27744,10 +28256,10 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
27744
28256
  __publicField(_SlidCaptchaManager, "instance");
27745
28257
  let SlidCaptchaManager = _SlidCaptchaManager;
27746
28258
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
27747
- const SlidCaptcha = defineAsyncComponent(() => import("./index-hWcTkag1.js"));
28259
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CUnbDxxi.js"));
27748
28260
  const useSlidCaptcha = () => {
27749
28261
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
27750
- const open = (config) => {
28262
+ const open = (config2) => {
27751
28263
  if (isMounted()) {
27752
28264
  unMount();
27753
28265
  slidCaptchaManager.destroyTAC();
@@ -27756,7 +28268,7 @@ const useSlidCaptcha = () => {
27756
28268
  onSuccess: (resData) => {
27757
28269
  var _a;
27758
28270
  unMount();
27759
- (_a = config == null ? void 0 : config.onSuccess) == null ? void 0 : _a.call(config, resData);
28271
+ (_a = config2 == null ? void 0 : config2.onSuccess) == null ? void 0 : _a.call(config2, resData);
27760
28272
  },
27761
28273
  modelValue: true,
27762
28274
  onClose: () => {
@@ -27774,15 +28286,15 @@ const useSlidCaptcha = () => {
27774
28286
  close
27775
28287
  };
27776
28288
  };
27777
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-ByRirfNI.js"));
28289
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-Dy5IHa2n.js"));
27778
28290
  const useYunpianCaptcha = () => {
27779
28291
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
27780
- const open = (config) => {
28292
+ const open = (config2) => {
27781
28293
  mount(YunpianCaptcha, {
27782
28294
  onSuccess: (resData) => {
27783
28295
  var _a;
27784
28296
  unMount();
27785
- (_a = config == null ? void 0 : config.onSuccess) == null ? void 0 : _a.call(config, resData);
28297
+ (_a = config2 == null ? void 0 : config2.onSuccess) == null ? void 0 : _a.call(config2, resData);
27786
28298
  },
27787
28299
  modelValue: true,
27788
28300
  onClose: () => unMount(),
@@ -27790,7 +28302,7 @@ const useYunpianCaptcha = () => {
27790
28302
  unMount();
27791
28303
  nextTick(() => {
27792
28304
  var _a;
27793
- (_a = config == null ? void 0 : config.onFallback) == null ? void 0 : _a.call(config, config == null ? void 0 : config.onSuccess);
28305
+ (_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
27794
28306
  });
27795
28307
  }
27796
28308
  });
@@ -27879,14 +28391,14 @@ const _YidunCaptchaManager = class _YidunCaptchaManager {
27879
28391
  /**
27880
28392
  * 初始化易盾验证码实例
27881
28393
  */
27882
- async initNECaptcha(config, onload, onerror) {
27883
- if (!config.captchaId) {
28394
+ async initNECaptcha(config2, onload, onerror) {
28395
+ if (!config2.captchaId) {
27884
28396
  throw new Error("易盾验证码配置缺少必需的 captchaId");
27885
28397
  }
27886
- if (!config.element) {
28398
+ if (!config2.element) {
27887
28399
  throw new Error("易盾验证码配置缺少必需的 element 元素");
27888
28400
  }
27889
- if (!config.onVerify) {
28401
+ if (!config2.onVerify) {
27890
28402
  throw new Error("易盾验证码配置缺少必需的 onVerify 回调函数");
27891
28403
  }
27892
28404
  if (!window.initNECaptchaWithFallback) {
@@ -27914,7 +28426,7 @@ const _YidunCaptchaManager = class _YidunCaptchaManager {
27914
28426
  }
27915
28427
  try {
27916
28428
  window.initNECaptchaWithFallback(
27917
- config,
28429
+ config2,
27918
28430
  (instance) => {
27919
28431
  this.neCaptchaInstance = instance;
27920
28432
  if (onload) {
@@ -27991,9 +28503,9 @@ const _YidunCaptchaManager = class _YidunCaptchaManager {
27991
28503
  /**
27992
28504
  * 重新初始化(用于更新配置)
27993
28505
  */
27994
- async reinitialize(config, onload, onerror) {
28506
+ async reinitialize(config2, onload, onerror) {
27995
28507
  this.destroyNECaptcha();
27996
- await this.initNECaptcha(config, onload, onerror);
28508
+ await this.initNECaptcha(config2, onload, onerror);
27997
28509
  }
27998
28510
  };
27999
28511
  __publicField(_YidunCaptchaManager, "instance");
@@ -28068,15 +28580,15 @@ const useYiDunCaptcha = () => {
28068
28580
  removeHiddenElement();
28069
28581
  removeStyle();
28070
28582
  };
28071
- const open = (config) => {
28072
- if (!(config == null ? void 0 : config.captchaId)) {
28583
+ const open = (config2) => {
28584
+ if (!(config2 == null ? void 0 : config2.captchaId)) {
28073
28585
  console.error("captcha captchaId 不能为空");
28074
28586
  return;
28075
28587
  }
28076
28588
  cleanup();
28077
28589
  const hiddenEl = createHiddenElement();
28078
28590
  const captchaConfig = {
28079
- captchaId: config.captchaId,
28591
+ captchaId: config2.captchaId,
28080
28592
  apiVersion: 2,
28081
28593
  element: hiddenEl,
28082
28594
  width: isMobile.value ? "320px" : "400px",
@@ -28095,7 +28607,7 @@ const useYiDunCaptcha = () => {
28095
28607
  console.warn("验证失败:", err);
28096
28608
  return;
28097
28609
  }
28098
- (_a = config == null ? void 0 : config.onSuccess) == null ? void 0 : _a.call(config, data);
28610
+ (_a = config2 == null ? void 0 : config2.onSuccess) == null ? void 0 : _a.call(config2, data);
28099
28611
  cleanup();
28100
28612
  },
28101
28613
  onClose: () => {
@@ -28104,7 +28616,7 @@ const useYiDunCaptcha = () => {
28104
28616
  onError: (error) => {
28105
28617
  var _a;
28106
28618
  console.error("captcha初始化失败:", error);
28107
- (_a = config == null ? void 0 : config.onFallback) == null ? void 0 : _a.call(config, config == null ? void 0 : config.onSuccess);
28619
+ (_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
28108
28620
  removeHiddenElement();
28109
28621
  captchaInstance.value = null;
28110
28622
  },
@@ -28112,7 +28624,7 @@ const useYiDunCaptcha = () => {
28112
28624
  onFallback: (_data) => {
28113
28625
  var _a;
28114
28626
  console.warn("captcha触发降级");
28115
- (_a = config == null ? void 0 : config.onFallback) == null ? void 0 : _a.call(config, config == null ? void 0 : config.onSuccess);
28627
+ (_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
28116
28628
  removeHiddenElement();
28117
28629
  captchaInstance.value = null;
28118
28630
  }
@@ -28134,14 +28646,14 @@ const useYiDunCaptcha = () => {
28134
28646
  (err) => {
28135
28647
  var _a;
28136
28648
  console.error("captcha初始化失败:", err);
28137
- (_a = config == null ? void 0 : config.onFallback) == null ? void 0 : _a.call(config, config == null ? void 0 : config.onSuccess);
28649
+ (_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
28138
28650
  removeHiddenElement();
28139
28651
  captchaInstance.value = null;
28140
28652
  }
28141
28653
  ).catch((error) => {
28142
28654
  var _a;
28143
28655
  console.error("captcha初始化异常:", error);
28144
- (_a = config == null ? void 0 : config.onFallback) == null ? void 0 : _a.call(config, config == null ? void 0 : config.onSuccess);
28656
+ (_a = config2 == null ? void 0 : config2.onFallback) == null ? void 0 : _a.call(config2, config2 == null ? void 0 : config2.onSuccess);
28145
28657
  removeHiddenElement();
28146
28658
  captchaInstance.value = null;
28147
28659
  });
@@ -28165,10 +28677,10 @@ const useYiDunCaptcha = () => {
28165
28677
  close
28166
28678
  };
28167
28679
  };
28168
- const _sfc_main$4 = {};
28169
- const _hoisted_1$3 = { class: "content-loading" };
28680
+ const _sfc_main$7 = {};
28681
+ const _hoisted_1$5 = { class: "content-loading" };
28170
28682
  function _sfc_render(_ctx, _cache) {
28171
- return openBlock(), createElementBlock("div", _hoisted_1$3, [..._cache[0] || (_cache[0] = [
28683
+ return openBlock(), createElementBlock("div", _hoisted_1$5, [..._cache[0] || (_cache[0] = [
28172
28684
  createElementVNode("div", { class: "content-loading-title" }, [
28173
28685
  createElementVNode("div", { class: "content-loading__row" }, [
28174
28686
  createElementVNode("img", {
@@ -28181,8 +28693,8 @@ function _sfc_render(_ctx, _cache) {
28181
28693
  ], -1)
28182
28694
  ])]);
28183
28695
  }
28184
- const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render], ["__scopeId", "data-v-vue-layout-gitcode"]]);
28185
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
28696
+ const ContentLoading = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render], ["__scopeId", "data-v-vue-layout-gitcode"]]);
28697
+ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
28186
28698
  __name: "index",
28187
28699
  props: {
28188
28700
  loading: { type: Boolean },
@@ -28213,24 +28725,24 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
28213
28725
  };
28214
28726
  }
28215
28727
  });
28216
- const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
28728
+ const DataPanel = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__scopeId", "data-v-vue-layout-gitcode"]]);
28217
28729
  function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
28218
28730
  const { interval = 1e4, immediate = true } = options;
28219
- const timer = ref(null);
28731
+ const timer2 = ref(null);
28220
28732
  const isPageVisible = ref(true);
28221
28733
  const startPoll = () => {
28222
28734
  if (shouldPoll !== void 0 && !shouldPoll.value) return;
28223
- if (!timer.value && isPageVisible.value) {
28735
+ if (!timer2.value && isPageVisible.value) {
28224
28736
  if (immediate) {
28225
28737
  pollFunction();
28226
28738
  }
28227
- timer.value = setInterval(pollFunction, interval);
28739
+ timer2.value = setInterval(pollFunction, interval);
28228
28740
  }
28229
28741
  };
28230
28742
  const stopPoll = () => {
28231
- if (timer.value) {
28232
- clearInterval(timer.value);
28233
- timer.value = null;
28743
+ if (timer2.value) {
28744
+ clearInterval(timer2.value);
28745
+ timer2.value = null;
28234
28746
  }
28235
28747
  };
28236
28748
  const handleVisibilityChange = () => {
@@ -28262,28 +28774,28 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
28262
28774
  document.removeEventListener("visibilitychange", handleVisibilityChange);
28263
28775
  });
28264
28776
  return {
28265
- timer,
28777
+ timer: timer2,
28266
28778
  isPageVisible,
28267
28779
  handleVisibilityChange,
28268
28780
  startPoll,
28269
28781
  stopPoll
28270
28782
  };
28271
28783
  }
28272
- const _hoisted_1$2 = {
28784
+ const _hoisted_1$4 = {
28273
28785
  key: 0,
28274
28786
  class: "login-modal-header"
28275
28787
  };
28276
- const _hoisted_2$1 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
28277
- const _hoisted_3$1 = {
28788
+ const _hoisted_2$2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
28789
+ const _hoisted_3$2 = {
28278
28790
  key: 0,
28279
28791
  class: "login-modal-content-left login-modal-content-left-register"
28280
28792
  };
28281
- const _hoisted_4$1 = { class: "login-modal-content-left-register-logo" };
28282
- const _hoisted_5 = ["src"];
28283
- const _hoisted_6 = { class: "login-modal-logo-desc" };
28284
- const _hoisted_7 = { class: "login-modal-history" };
28285
- const _hoisted_8 = { class: "login-modal-history__title" };
28286
- const _hoisted_9 = { class: "login-modal-history__content" };
28793
+ const _hoisted_4$2 = { class: "login-modal-content-left-register-logo" };
28794
+ const _hoisted_5$1 = ["src"];
28795
+ const _hoisted_6$1 = { class: "login-modal-logo-desc" };
28796
+ const _hoisted_7$1 = { class: "login-modal-history" };
28797
+ const _hoisted_8$1 = { class: "login-modal-history__title" };
28798
+ const _hoisted_9$1 = { class: "login-modal-history__content" };
28287
28799
  const _hoisted_10 = {
28288
28800
  key: 0,
28289
28801
  class: "login-modal-tabs-row"
@@ -28363,7 +28875,7 @@ const _hoisted_64 = { key: 3 };
28363
28875
  const _hoisted_65 = { class: "login-modal-error login-modal-error--register" };
28364
28876
  const _hoisted_66 = { class: "login-modal-error__text" };
28365
28877
  const _hoisted_67 = { class: "absolute-btn" };
28366
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
28878
+ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
28367
28879
  ...{
28368
28880
  name: "GLoginModal"
28369
28881
  },
@@ -28444,7 +28956,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
28444
28956
  cacheForm.countdownSecond = 59;
28445
28957
  cacheForm.country = DEFAULT_COUNTRY;
28446
28958
  };
28447
- let timer = null;
28959
+ let timer2 = null;
28448
28960
  let interval = null;
28449
28961
  const qiwuLogo = {
28450
28962
  src: IconQiWu,
@@ -28500,6 +29012,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
28500
29012
  };
28501
29013
  const emits = __emit;
28502
29014
  const { vModels } = useModel(props, emits);
29015
+ useShortcutBlocker(() => Boolean(vModels.value));
28503
29016
  const VerifyForm = reactive([
28504
29017
  {
28505
29018
  type: "inputSelect",
@@ -29578,10 +30091,10 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
29578
30091
  duration: 3e3,
29579
30092
  type
29580
30093
  });
29581
- if (timer) {
29582
- clearTimeout(timer);
30094
+ if (timer2) {
30095
+ clearTimeout(timer2);
29583
30096
  }
29584
- timer = setTimeout(() => {
30097
+ timer2 = setTimeout(() => {
29585
30098
  if (status2 === "login") {
29586
30099
  tabPanel.value = "password";
29587
30100
  formType.value = "login";
@@ -29852,8 +30365,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
29852
30365
  }
29853
30366
  });
29854
30367
  onBeforeUnmount(() => {
29855
- if (timer) {
29856
- clearTimeout(timer);
30368
+ if (timer2) {
30369
+ clearTimeout(timer2);
29857
30370
  }
29858
30371
  if (interval) {
29859
30372
  clearInterval(interval);
@@ -30029,7 +30542,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30029
30542
  onClose: onModalClose
30030
30543
  }, {
30031
30544
  header: withCtx(() => [
30032
- !mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
30545
+ !mfaCheck.value ? (openBlock(), createElementBlock("div", _hoisted_1$4, [
30033
30546
  createVNode(GTitle, {
30034
30547
  icon: unref(IconB) || "",
30035
30548
  title: FormConfig.value.title || "",
@@ -30038,7 +30551,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30038
30551
  "show-back": FormConfig.value.showBack,
30039
30552
  class: "login-modal-title"
30040
30553
  }, null, 8, ["icon", "title", "show-title", "show-back"]),
30041
- createElementVNode("div", _hoisted_2$1, [
30554
+ createElementVNode("div", _hoisted_2$2, [
30042
30555
  __props.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
30043
30556
  key: 0,
30044
30557
  onClick: onClickModalClose,
@@ -30062,21 +30575,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30062
30575
  key: 1,
30063
30576
  class: normalizeClass(["login-modal-content", { "login-modal-content--forget": formType.value === "forget" }])
30064
30577
  }, [
30065
- ["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3$1, [
30066
- createElementVNode("div", _hoisted_4$1, [
30578
+ ["register", "login", "bindPhone", "bindPhoneConflict"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_3$2, [
30579
+ createElementVNode("div", _hoisted_4$2, [
30067
30580
  createElementVNode("img", {
30068
30581
  src: isAIHub.value ? AiLogoType[unref(currentTheme)] : logoType[unref(currentTheme)],
30069
30582
  alt: "gitcode-logo",
30070
30583
  class: "login-modal-logo-img"
30071
- }, null, 8, _hoisted_5),
30072
- createElementVNode("div", _hoisted_6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
30584
+ }, null, 8, _hoisted_5$1),
30585
+ createElementVNode("div", _hoisted_6$1, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
30073
30586
  ]),
30074
30587
  createElementVNode("div", {
30075
30588
  class: normalizeClass(["login-modal-left-bg", "login-modal-left-bg-" + unref(currentTheme)])
30076
30589
  }, [
30077
- createElementVNode("div", _hoisted_7, [
30078
- createElementVNode("div", _hoisted_8, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
30079
- createElementVNode("div", _hoisted_9, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
30590
+ createElementVNode("div", _hoisted_7$1, [
30591
+ createElementVNode("div", _hoisted_8$1, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
30592
+ createElementVNode("div", _hoisted_9$1, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
30080
30593
  ])
30081
30594
  ], 2)
30082
30595
  ])) : createCommentVNode("", true),
@@ -30307,7 +30820,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30307
30820
  ]),
30308
30821
  _: 1
30309
30822
  }, 8, ["loading"])) : createCommentVNode("", true),
30310
- formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$b), {
30823
+ formType.value !== "bindPhoneConflict" ? (openBlock(), createBlock(unref(_sfc_main$e), {
30311
30824
  ref_key: "FormRef",
30312
30825
  ref: FormRef,
30313
30826
  key: formType.value === "forget" ? `${formType.value}-${forgetVerificationType.value}` : formType.value,
@@ -30399,7 +30912,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30399
30912
  createElementVNode("div", {
30400
30913
  class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
30401
30914
  }, [
30402
- createVNode(_sfc_main$8, {
30915
+ createVNode(_sfc_main$b, {
30403
30916
  modelValue: status.value,
30404
30917
  "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => status.value = $event),
30405
30918
  dataShareChecked: dataShareChecked.value,
@@ -30456,7 +30969,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30456
30969
  }),
30457
30970
  _: 3
30458
30971
  }, 8, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
30459
- showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$6, {
30972
+ showProtoCheck.value ? (openBlock(), createBlock(_sfc_main$9, {
30460
30973
  key: 0,
30461
30974
  visible: showProtoCheck.value,
30462
30975
  "onUpdate:visible": _cache[19] || (_cache[19] = ($event) => showProtoCheck.value = $event),
@@ -30469,7 +30982,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
30469
30982
  };
30470
30983
  }
30471
30984
  });
30472
- const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
30985
+ const LoginModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["__scopeId", "data-v-vue-layout-gitcode"]]);
30473
30986
  const { t } = i18n.global;
30474
30987
  function useLogin(request, globalStore) {
30475
30988
  const successMsg = t("gitCodeLayout.common.tips.welcome");
@@ -30562,8 +31075,8 @@ function useLogin(request, globalStore) {
30562
31075
  isMounted
30563
31076
  };
30564
31077
  }
30565
- const _hoisted_1$1 = { style: { "display": "none" } };
30566
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
31078
+ const _hoisted_1$3 = { style: { "display": "none" } };
31079
+ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
30567
31080
  ...{
30568
31081
  name: "Login"
30569
31082
  },
@@ -30682,18 +31195,18 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
30682
31195
  offEvent("logout");
30683
31196
  });
30684
31197
  return (_ctx, _cache) => {
30685
- return openBlock(), createElementBlock("div", _hoisted_1$1);
31198
+ return openBlock(), createElementBlock("div", _hoisted_1$3);
30686
31199
  };
30687
31200
  }
30688
31201
  });
30689
- const _hoisted_1 = { class: "g-header-skeleton__left" };
30690
- const _hoisted_2 = { class: "g-header-skeleton__search-avatar" };
30691
- const _hoisted_3 = { class: "g-header-skeleton__right" };
30692
- const _hoisted_4 = {
31202
+ const _hoisted_1$2 = { class: "g-header-skeleton__left" };
31203
+ const _hoisted_2$1 = { class: "g-header-skeleton__search-avatar" };
31204
+ const _hoisted_3$1 = { class: "g-header-skeleton__right" };
31205
+ const _hoisted_4$1 = {
30693
31206
  key: 0,
30694
31207
  class: "g-header-skeleton__body"
30695
31208
  };
30696
- const _sfc_main = /* @__PURE__ */ defineComponent({
31209
+ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
30697
31210
  ...{
30698
31211
  name: "HeaderSkeleton"
30699
31212
  },
@@ -30737,17 +31250,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30737
31250
  class: "g-header-skeleton__toolbar",
30738
31251
  style: normalizeStyle(toolbarStyle.value)
30739
31252
  }, [
30740
- createElementVNode("div", _hoisted_1, [
31253
+ createElementVNode("div", _hoisted_1$2, [
30741
31254
  _cache[0] || (_cache[0] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__hamburger" }, null, -1)),
30742
31255
  _cache[1] || (_cache[1] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__logo" }, null, -1)),
30743
31256
  renderSlot(_ctx.$slots, "headerCustom", {}, void 0, true)
30744
31257
  ]),
30745
- createElementVNode("div", _hoisted_2, [
31258
+ createElementVNode("div", _hoisted_2$1, [
30746
31259
  renderSlot(_ctx.$slots, "search", {}, () => [
30747
31260
  _cache[2] || (_cache[2] = createElementVNode("span", { class: "g-header-skeleton__block g-header-skeleton__search" }, null, -1))
30748
31261
  ], true)
30749
31262
  ]),
30750
- createElementVNode("div", _hoisted_3, [
31263
+ createElementVNode("div", _hoisted_3$1, [
30751
31264
  __props.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
30752
31265
  _cache[3] || (_cache[3] = createStaticVNode('<span class="g-header-skeleton__block g-header-skeleton__atomcode" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__discover" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__workbench" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__divider" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__create-btn" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__notice-btn" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__avatar" data-v-vue-layout-gitcode></span>', 7))
30753
31266
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -30758,7 +31271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30758
31271
  renderSlot(_ctx.$slots, "rightExtra", {}, void 0, true)
30759
31272
  ])
30760
31273
  ], 4),
30761
- __props.withBody ? (openBlock(), createElementBlock("div", _hoisted_4, [
31274
+ __props.withBody ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
30762
31275
  renderSlot(_ctx.$slots, "body", {}, () => [
30763
31276
  _cache[7] || (_cache[7] = createStaticVNode('<div class="g-header-skeleton__body-left" data-v-vue-layout-gitcode><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span><span class="g-header-skeleton__block g-header-skeleton__tab" data-v-vue-layout-gitcode></span></div>', 1))
30764
31277
  ], true)
@@ -30768,7 +31281,221 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30768
31281
  };
30769
31282
  }
30770
31283
  });
30771
- const HeaderSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
31284
+ const HeaderSkeleton = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["__scopeId", "data-v-vue-layout-gitcode"]]);
31285
+ const _hoisted_1$1 = ["aria-label"];
31286
+ const _hoisted_2 = { class: "shortcut-heading" };
31287
+ const _hoisted_3 = ["aria-label"];
31288
+ const _hoisted_4 = ["aria-label", "placeholder"];
31289
+ const _hoisted_5 = { class: "shortcut-command-list" };
31290
+ const _hoisted_6 = ["onClick"];
31291
+ const _hoisted_7 = {
31292
+ key: 0,
31293
+ role: "status"
31294
+ };
31295
+ const _hoisted_8 = { class: "shortcut-preference" };
31296
+ const _hoisted_9 = ["checked"];
31297
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
31298
+ ...{ name: "ShortcutHelpDialog" },
31299
+ __name: "index",
31300
+ setup(__props) {
31301
+ const { t: t2 } = i18n.global;
31302
+ const displayKeys = (keys) => keys.replace(/mod/g, isMacPlatform() ? "Cmd" : "Ctrl").replace(/shift/g, "Shift");
31303
+ const panel = ref();
31304
+ const filterInput = ref();
31305
+ const query = ref("");
31306
+ const title = computed(() => t2(shortcutDialog.value === "commands" ? "shortcut.site.commands" : "shortcut.dialog.title"));
31307
+ const groups = computed(() => SHORTCUT_GROUPS.map((id) => ({ id, actions: availableShortcutActions.value.filter((action) => action.group === id) })).filter((group) => group.actions.length));
31308
+ const commands = computed(() => availableShortcutActions.value.filter(
31309
+ (action) => action.id !== "site.commands" && `${t2(action.labelKey)} ${action.keys} ${displayKeys(action.keys)}`.toLocaleLowerCase().includes(query.value.trim().toLocaleLowerCase())
31310
+ ));
31311
+ const focusable = () => {
31312
+ var _a;
31313
+ return Array.from(((_a = panel.value) == null ? void 0 : _a.querySelectorAll('button:not(:disabled), input:not(:disabled), [tabindex="0"]')) ?? []);
31314
+ };
31315
+ const focusInitial = () => {
31316
+ var _a;
31317
+ (_a = filterInput.value ?? panel.value) == null ? void 0 : _a.focus();
31318
+ };
31319
+ const onPreferenceChange = (event) => setCharacterShortcutsEnabled(event.target.checked);
31320
+ const onKeydown2 = (event) => {
31321
+ var _a, _b, _c, _d, _e, _f;
31322
+ if (event.defaultPrevented || isComposingEvent(event)) {
31323
+ return;
31324
+ }
31325
+ if (event.key === "Escape") {
31326
+ event.preventDefault();
31327
+ event.stopPropagation();
31328
+ closeShortcutDialog();
31329
+ } else if (event.key === "Tab") {
31330
+ const elements = focusable();
31331
+ const index2 = elements.indexOf(document.activeElement);
31332
+ if (event.shiftKey && index2 <= 0) {
31333
+ event.preventDefault();
31334
+ (_a = elements[elements.length - 1] ?? panel.value) == null ? void 0 : _a.focus();
31335
+ } else if (!event.shiftKey && (index2 === elements.length - 1 || index2 === -1)) {
31336
+ event.preventDefault();
31337
+ (_b = elements[0] ?? panel.value) == null ? void 0 : _b.focus();
31338
+ }
31339
+ } else if (shortcutDialog.value === "commands" && event.key === "ArrowDown" && event.target === filterInput.value) {
31340
+ event.preventDefault();
31341
+ (_d = (_c = panel.value) == null ? void 0 : _c.querySelector(".shortcut-command")) == null ? void 0 : _d.focus();
31342
+ } else if (shortcutDialog.value === "commands" && (event.key === "ArrowDown" || event.key === "ArrowUp") && event.target.matches(".shortcut-command")) {
31343
+ const buttons = Array.from(((_e = panel.value) == null ? void 0 : _e.querySelectorAll(".shortcut-command")) ?? []);
31344
+ const index2 = buttons.indexOf(event.target);
31345
+ event.preventDefault();
31346
+ (_f = buttons[(index2 + (event.key === "ArrowDown" ? 1 : buttons.length - 1)) % buttons.length]) == null ? void 0 : _f.focus();
31347
+ }
31348
+ };
31349
+ const containFocus = (event) => {
31350
+ if (panel.value && !panel.value.contains(event.target)) {
31351
+ focusInitial();
31352
+ }
31353
+ };
31354
+ watch(shortcutDialog, () => {
31355
+ query.value = "";
31356
+ void nextTick(focusInitial);
31357
+ });
31358
+ onMounted(() => {
31359
+ focusInitial();
31360
+ document.addEventListener("focusin", containFocus);
31361
+ });
31362
+ onUnmounted(() => document.removeEventListener("focusin", containFocus));
31363
+ return (_ctx, _cache) => {
31364
+ return openBlock(), createBlock(Teleport, { to: "body" }, [
31365
+ createElementVNode("div", {
31366
+ class: "shortcut-backdrop",
31367
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => unref(closeShortcutDialog)(), ["self"]))
31368
+ }, [
31369
+ createElementVNode("section", {
31370
+ ref_key: "panel",
31371
+ ref: panel,
31372
+ class: "shortcut-dialog",
31373
+ role: "dialog",
31374
+ "aria-modal": "true",
31375
+ "aria-label": title.value,
31376
+ tabindex: "-1",
31377
+ onKeydown: onKeydown2
31378
+ }, [
31379
+ createElementVNode("header", _hoisted_2, [
31380
+ createElementVNode("h2", null, toDisplayString$1(title.value), 1),
31381
+ createElementVNode("button", {
31382
+ type: "button",
31383
+ class: "shortcut-close",
31384
+ "aria-label": unref(t2)("shortcut.dialog.close"),
31385
+ onClick: _cache[0] || (_cache[0] = ($event) => unref(closeShortcutDialog)())
31386
+ }, "×", 8, _hoisted_3)
31387
+ ]),
31388
+ unref(shortcutDialog) === "commands" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
31389
+ withDirectives(createElementVNode("input", {
31390
+ ref_key: "filterInput",
31391
+ ref: filterInput,
31392
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => query.value = $event),
31393
+ class: "shortcut-filter",
31394
+ "aria-label": unref(t2)("shortcut.commands.search"),
31395
+ placeholder: unref(t2)("shortcut.commands.search")
31396
+ }, null, 8, _hoisted_4), [
31397
+ [vModelText, query.value]
31398
+ ]),
31399
+ createElementVNode("ul", _hoisted_5, [
31400
+ (openBlock(true), createElementBlock(Fragment, null, renderList(commands.value, (action) => {
31401
+ return openBlock(), createElementBlock("li", {
31402
+ key: action.id
31403
+ }, [
31404
+ createElementVNode("button", {
31405
+ type: "button",
31406
+ class: "shortcut-command",
31407
+ onClick: ($event) => unref(executeShortcutAction)(action)
31408
+ }, [
31409
+ createElementVNode("span", null, toDisplayString$1(unref(t2)(action.labelKey)), 1),
31410
+ createElementVNode("kbd", null, toDisplayString$1(displayKeys(action.keys)), 1)
31411
+ ], 8, _hoisted_6)
31412
+ ]);
31413
+ }), 128))
31414
+ ]),
31415
+ !commands.value.length ? (openBlock(), createElementBlock("p", _hoisted_7, toDisplayString$1(unref(t2)("shortcut.commands.empty")), 1)) : createCommentVNode("", true)
31416
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
31417
+ createElementVNode("label", _hoisted_8, [
31418
+ createElementVNode("input", {
31419
+ type: "checkbox",
31420
+ checked: unref(characterShortcutsEnabled),
31421
+ onChange: onPreferenceChange
31422
+ }, null, 40, _hoisted_9),
31423
+ createTextVNode(" " + toDisplayString$1(unref(t2)("shortcut.a11y.characterKeys")), 1)
31424
+ ]),
31425
+ (openBlock(true), createElementBlock(Fragment, null, renderList(groups.value, (group) => {
31426
+ return openBlock(), createElementBlock("section", {
31427
+ key: group.id,
31428
+ class: "shortcut-group"
31429
+ }, [
31430
+ createElementVNode("h3", null, toDisplayString$1(unref(t2)(`shortcut.group.${group.id}`)), 1),
31431
+ createElementVNode("dl", null, [
31432
+ (openBlock(true), createElementBlock(Fragment, null, renderList(group.actions, (action) => {
31433
+ return openBlock(), createElementBlock("div", {
31434
+ key: action.id,
31435
+ class: "shortcut-row"
31436
+ }, [
31437
+ createElementVNode("dt", null, toDisplayString$1(unref(t2)(action.labelKey)), 1),
31438
+ createElementVNode("dd", null, [
31439
+ createElementVNode("kbd", null, toDisplayString$1(displayKeys(action.keys)), 1)
31440
+ ])
31441
+ ]);
31442
+ }), 128))
31443
+ ])
31444
+ ]);
31445
+ }), 128))
31446
+ ], 64))
31447
+ ], 40, _hoisted_1$1)
31448
+ ])
31449
+ ]);
31450
+ };
31451
+ }
31452
+ });
31453
+ const ShortcutHelpDialog = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-vue-layout-gitcode"]]);
31454
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
31455
+ ...{ name: "ShortcutProvider" },
31456
+ __name: "index",
31457
+ setup(__props) {
31458
+ const registration = shallowRef();
31459
+ const isOwner = computed(() => {
31460
+ var _a;
31461
+ return ((_a = registration.value) == null ? void 0 : _a.isOwner.value) ?? false;
31462
+ });
31463
+ onMounted(() => {
31464
+ registration.value = registerShortcutProvider();
31465
+ });
31466
+ onUnmounted(() => {
31467
+ var _a;
31468
+ return (_a = registration.value) == null ? void 0 : _a.dispose();
31469
+ });
31470
+ return (_ctx, _cache) => {
31471
+ return isOwner.value && unref(shortcutDialog) ? (openBlock(), createBlock(ShortcutHelpDialog, { key: 0 })) : createCommentVNode("", true);
31472
+ };
31473
+ }
31474
+ });
31475
+ const _hoisted_1 = ["aria-label", "title"];
31476
+ const _sfc_main = /* @__PURE__ */ defineComponent({
31477
+ ...{ name: "ShortcutHelpButton" },
31478
+ __name: "ShortcutHelpButton",
31479
+ setup(__props) {
31480
+ const { t: t2 } = i18n.global;
31481
+ return (_ctx, _cache) => {
31482
+ return unref(hasShortcutProvider) ? (openBlock(), createElementBlock("button", {
31483
+ key: 0,
31484
+ type: "button",
31485
+ class: "shortcut-help-button",
31486
+ "data-shortcut-help": "",
31487
+ "aria-label": unref(t2)("shortcut.entry.help"),
31488
+ title: unref(t2)("shortcut.entry.help"),
31489
+ onClick: _cache[0] || (_cache[0] = withModifiers(
31490
+ //@ts-ignore
31491
+ (...args) => unref(openShortcutHelp) && unref(openShortcutHelp)(...args),
31492
+ ["stop"]
31493
+ ))
31494
+ }, "?", 8, _hoisted_1)) : createCommentVNode("", true);
31495
+ };
31496
+ }
31497
+ });
31498
+ const ShortcutHelpButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-vue-layout-gitcode"]]);
30772
31499
  const GitCodeLayoutEmitter = emitter;
30773
31500
  const index = {
30774
31501
  install: (app) => {
@@ -30799,7 +31526,7 @@ export {
30799
31526
  navigateWithMigrationGuard as K,
30800
31527
  LANG_ZH as L,
30801
31528
  asideRequest as M,
30802
- _sfc_main$O as N,
31529
+ _sfc_main$R as N,
30803
31530
  loadAsideData as O,
30804
31531
  AsideFooterTools as P,
30805
31532
  AtomCodeLauncher as Q,
@@ -30815,15 +31542,22 @@ export {
30815
31542
  _export_sfc as _,
30816
31543
  i18n as a,
30817
31544
  HomeHeaderActions as a0,
30818
- _sfc_main$1 as a1,
31545
+ _sfc_main$4 as a1,
30819
31546
  SceneValue as a2,
30820
31547
  ScrollActiveContainer as a3,
30821
- SiteAnnouncement as a4,
30822
- ToolsFloat as a5,
30823
- index as a6,
30824
- setLayoutConfig as a7,
30825
- setTheme as a8,
30826
- useLogin as a9,
31548
+ ShortcutHelpButton as a4,
31549
+ _sfc_main$1 as a5,
31550
+ SiteAnnouncement as a6,
31551
+ ToolsFloat as a7,
31552
+ index as a8,
31553
+ openShortcutCommands as a9,
31554
+ openShortcutHelp as aa,
31555
+ resetShortcutSequence as ab,
31556
+ setLayoutConfig as ac,
31557
+ setShortcutConfig as ad,
31558
+ setTheme as ae,
31559
+ useLogin as af,
31560
+ useShortcutConfig as ag,
30827
31561
  REPO_EVENT as b,
30828
31562
  useLayoutConfig as c,
30829
31563
  transferNumber as d,
@@ -30835,7 +31569,7 @@ export {
30835
31569
  usePageResize as j,
30836
31570
  isGstarRepo as k,
30837
31571
  localStorage$2 as l,
30838
- _sfc_main$N as m,
31572
+ _sfc_main$Q as m,
30839
31573
  normalizeSearchHistoryEntry as n,
30840
31574
  isIncubationRepo as o,
30841
31575
  highlightWords as p,