vue-layout-gitcode 1.12.38 → 1.12.40

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,27 +1,23 @@
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 { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots, createStaticVNode } from "vue";
5
- import { Button } from "vue-devui-lal/button";
6
- import { Popover } from "vue-devui-lal/popover";
7
- import { Tooltip } from "vue-devui-lal/tooltip";
8
- import { Textarea } from "vue-devui-lal/textarea";
9
- import "vue-devui-lal/button/style.css";
10
- import "vue-devui-lal/popover/style.css";
11
- import "vue-devui-lal/tooltip/style.css";
12
- import "vue-devui-lal/textarea/style.css";
13
- import { Icon } from "vue-devui-lal/icon";
14
- import "vue-devui-lal/icon/style.css";
4
+ import { reactive, readonly, inject, effectScope, ref, shallowRef, computed, watch, isRef, defineComponent, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createElementBlock, openBlock, createCommentVNode, Transition, withCtx, unref, normalizeClass, createElementVNode, toDisplayString as toDisplayString$1, createStaticVNode, withModifiers, createBlock, normalizeProps, mergeProps, renderSlot, normalizeStyle, resolveComponent, watchEffect, renderList, createTextVNode, nextTick, resolveDirective, withDirectives, onBeforeUnmount, guardReactiveProps, markRaw, resolveDynamicComponent, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, mergeModels, useModel as useModel$1, watchPostEffect, useSlots } from "vue";
15
5
  import axios from "axios";
16
6
  import { useRouter, useRoute, createRouter, createWebHistory, createMemoryHistory } from "vue-router";
7
+ import { Icon } from "vue-devui-lal/icon";
8
+ import "vue-devui-lal/icon/style.css";
9
+ import { Button } from "vue-devui-lal/button";
17
10
  import { useWindowSize, useMutationObserver, useResizeObserver, useInfiniteScroll, useEventListener, useElementSize, useStorage, useDebounceFn } from "@vueuse/core";
18
11
  import { Avatar } from "vue-devui-lal/avatar";
19
12
  import "vue-devui-lal/avatar/style.css";
13
+ import { Tooltip } from "vue-devui-lal/tooltip";
14
+ import "vue-devui-lal/tooltip/style.css";
20
15
  import "lodash/last";
21
16
  import cloneDeep from "lodash/cloneDeep";
22
17
  import dayjs from "dayjs";
23
18
  import isDate$1 from "lodash/isDate";
24
19
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
20
+ import "vue-devui-lal/button/style.css";
25
21
  import "vue-devui-lal/skeleton/style.css";
26
22
  import { Dropdown } from "vue-devui-lal/dropdown";
27
23
  import "vue-devui-lal/dropdown/style.css";
@@ -57,61 +53,6 @@ import { Checkbox } from "vue-devui-lal/checkbox";
57
53
  import "vue-devui-lal/checkbox/style.css";
58
54
  import { Modal } from "vue-devui-lal/modal";
59
55
  import "vue-devui-lal/modal/style.css";
60
- const _hoisted_1$J = ["xlink:href"];
61
- const _hoisted_2$x = ["xlink:href"];
62
- const _sfc_main$Q = /* @__PURE__ */ defineComponent({
63
- __name: "index",
64
- props: {
65
- name: { default: "gt-run" },
66
- size: { default: "16px" },
67
- color: { default: "var(--theme-icon-fill-weak)" },
68
- rotate: { default: "0deg" },
69
- operable: { type: Boolean, default: false },
70
- disabled: { type: Boolean, default: false },
71
- iconClass: {}
72
- },
73
- setup(__props) {
74
- const props = __props;
75
- const fontSize = computed(() => {
76
- return /px$/i.test(props.size) ? props.size : `${props.size}px`;
77
- });
78
- return (_ctx, _cache) => {
79
- return !_ctx.name.includes("gt-") ? (openBlock(), createBlock(unref(Icon), normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : _ctx.operable ? (openBlock(), createElementBlock("span", {
80
- key: 1,
81
- class: normalizeClass(["custom-icon-container", { disabled: _ctx.disabled }])
82
- }, [
83
- renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
84
- (openBlock(), createElementBlock("svg", {
85
- class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
86
- "aria-hidden": "true",
87
- style: normalizeStyle({ color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
88
- }, [
89
- createElementVNode("use", {
90
- "xlink:href": `#${_ctx.name}`
91
- }, null, 8, _hoisted_1$J)
92
- ], 6)),
93
- renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
94
- ], 2)) : (openBlock(), createElementBlock("svg", {
95
- key: 2,
96
- class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
97
- "aria-hidden": "true",
98
- style: normalizeStyle(_ctx.iconClass ? {} : { color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
99
- }, [
100
- createElementVNode("use", {
101
- "xlink:href": `#${_ctx.name}`
102
- }, null, 8, _hoisted_2$x)
103
- ], 6));
104
- };
105
- }
106
- });
107
- const _export_sfc = (sfc, props) => {
108
- const target = sfc.__vccOpts || sfc;
109
- for (const [key, val] of props) {
110
- target[key] = val;
111
- }
112
- return target;
113
- };
114
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
115
56
  const defaultConfig = {
116
57
  VITE_ENV: "production",
117
58
  VITE_HOST: "https://gitcode.com",
@@ -408,9 +349,10 @@ function udeskInit(config = {}, open = false) {
408
349
  const userInfo = localStorage$2.getItem("userInfo") || "";
409
350
  const cPhone = userInfo ? (_a = JSON.parse(userInfo)) == null ? void 0 : _a.mobile : "";
410
351
  const cName = userInfo ? (_b = JSON.parse(userInfo)) == null ? void 0 : _b.username : "";
352
+ const cToken = cPhone ? cName + "_" + cPhone : "";
411
353
  const cEmail = userInfo ? (_c = JSON.parse(userInfo)) == null ? void 0 : _c.email : "";
412
354
  const imUserKey = "d7f63a098fcee3937b1534fa179861da";
413
- const strSign = `nonce=${randomNum}&timestamp=${nowTimeStr}&web_token=${cPhone}&${imUserKey}`;
355
+ const strSign = `nonce=${randomNum}&timestamp=${nowTimeStr}&web_token=${cToken}&${imUserKey}`;
414
356
  const strSignature = sha1$1(strSign);
415
357
  if (userInfo || open) {
416
358
  (function(a, h2, c, b, f, g) {
@@ -434,7 +376,7 @@ function udeskInit(config = {}, open = false) {
434
376
  // 自定义客户信息
435
377
  nonce: randomNum,
436
378
  timestamp: nowTimeStr,
437
- web_token: cPhone,
379
+ web_token: cToken,
438
380
  c_name: cName,
439
381
  c_phone: cPhone,
440
382
  c_email: cEmail,
@@ -7760,6 +7702,7 @@ const gitCodeLayout$1 = {
7760
7702
  createMenuSpace: "新建Space",
7761
7703
  createMenuCollection: "新建合集",
7762
7704
  createMenuOrganization: "新建组织",
7705
+ createMenuEnterprise: "新建企业",
7763
7706
  home: "首页",
7764
7707
  login: "登录",
7765
7708
  register: "注册",
@@ -8055,6 +7998,11 @@ const gitCodeLayout$1 = {
8055
7998
  receive: "领福利",
8056
7999
  invite: "邀请"
8057
8000
  },
8001
+ toolsFloat: {
8002
+ backToTop: "回到顶部",
8003
+ collapse: "收起",
8004
+ expand: "展开"
8005
+ },
8058
8006
  notice: {
8059
8007
  msg: {
8060
8008
  type: "消息类型",
@@ -8181,6 +8129,7 @@ const gitCodeLayout = {
8181
8129
  createMenuSpace: "New Space",
8182
8130
  createMenuCollection: "New collection",
8183
8131
  createMenuOrganization: "New organization",
8132
+ createMenuEnterprise: "New enterprise",
8184
8133
  home: "Home",
8185
8134
  login: "Login",
8186
8135
  register: "Register",
@@ -8476,6 +8425,11 @@ const gitCodeLayout = {
8476
8425
  receive: "Benefits‌",
8477
8426
  invite: "Invite"
8478
8427
  },
8428
+ toolsFloat: {
8429
+ backToTop: "Back to Top",
8430
+ collapse: "Collapse",
8431
+ expand: "Expand"
8432
+ },
8479
8433
  notice: {
8480
8434
  msg: {
8481
8435
  type: "Message Type",
@@ -9119,61 +9073,26 @@ const currentHelpDocsAiCommunityUrl = () => {
9119
9073
  const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
9120
9074
  return appendLangPathToHelpDocsUrl(baseUrl);
9121
9075
  };
9122
- const _hoisted_1$I = { class: "home-nav-right" };
9123
- const _hoisted_2$w = { class: "home-nav-item" };
9124
- const _hoisted_3$v = { class: "tooltip-sign" };
9125
- const _hoisted_4$o = { class: "home-nav-tooltip-wrapper" };
9126
- const _hoisted_5$j = { class: "home-nav-text" };
9127
- const _hoisted_6$g = { class: "home-nav-tooltip-wrapper" };
9128
- const _hoisted_7$d = { class: "home-nav-text" };
9129
- const _hoisted_8$c = {
9130
- key: 2,
9131
- class: "tools-list"
9132
- };
9133
- const _hoisted_9$b = { class: "home-nav-tooltip-wrapper" };
9134
- const _hoisted_10$a = { class: "home-nav-text" };
9135
- const _hoisted_11$8 = { class: "tools-float-feedback-sub" };
9136
- const _hoisted_12$8 = { class: "qrcode-wrapper" };
9137
- const _hoisted_13$4 = { class: "qrcode-wrapper__title" };
9138
- const _hoisted_14$3 = { class: "tools-list-item" };
9139
- const _hoisted_15$3 = { class: "g-card tools-float-nps-card" };
9140
- const _hoisted_16$3 = {
9141
- key: 0,
9142
- class: "opinion-box"
9143
- };
9144
- const _hoisted_17$3 = { class: "tab-step" };
9145
- const _hoisted_18$3 = ["onClick"];
9146
- const _hoisted_19$3 = {
9147
- key: 0,
9148
- class: "rate tools-float-stage"
9149
- };
9150
- const _hoisted_20$3 = {
9151
- key: 0,
9152
- class: "tools-float-stage__corner"
9153
- };
9154
- const _hoisted_21$3 = { class: "tools-float-stage__title" };
9155
- const _hoisted_22$3 = { class: "tools-float-stage__rate-row" };
9156
- const _hoisted_23$2 = ["onMouseover", "onClick"];
9157
- const _hoisted_24$2 = {
9158
- key: 1,
9159
- class: "Opinion tools-float-stage"
9160
- };
9161
- const _hoisted_25$2 = {
9076
+ const _hoisted_1$J = { class: "gitcode-tools-float-root home-nav-right" };
9077
+ const _hoisted_2$x = { class: "float-tooltip" };
9078
+ const _hoisted_3$v = { class: "float-tooltip-content" };
9079
+ const _hoisted_4$o = {
9162
9080
  key: 0,
9163
- class: "tools-float-stage__corner"
9164
- };
9165
- const _hoisted_26$1 = { class: "tools-float-stage__title" };
9166
- const _hoisted_27$1 = { class: "tools-float-stage__textarea" };
9167
- const _hoisted_28$1 = {
9168
- key: 1,
9169
- class: "finish tools-float-finish"
9081
+ class: "tools-float-bar"
9170
9082
  };
9171
- const _hoisted_29$1 = { class: "tools-float-finish__icon" };
9172
- const _hoisted_30$1 = { class: "tools-float-finish__text" };
9173
- const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
9174
- const _hoisted_32$1 = { class: "home-nav-item" };
9175
- const _hoisted_33$1 = ["src", "alt"];
9176
- const _sfc_main$P = /* @__PURE__ */ defineComponent({
9083
+ const _hoisted_5$j = { class: "float-tooltip" };
9084
+ const _hoisted_6$h = { class: "float-tooltip-content" };
9085
+ const _hoisted_7$e = { class: "float-tooltip" };
9086
+ const _hoisted_8$c = { class: "float-tooltip-content" };
9087
+ const _hoisted_9$b = { class: "float-tooltip" };
9088
+ const _hoisted_10$a = { class: "float-tooltip-content" };
9089
+ const _hoisted_11$8 = { class: "float-tooltip" };
9090
+ const _hoisted_12$8 = { class: "float-tooltip-content" };
9091
+ const _hoisted_13$5 = { class: "float-tooltip" };
9092
+ const _hoisted_14$3 = { class: "float-tooltip-content" };
9093
+ const _hoisted_15$3 = ["src", "alt"];
9094
+ const _sfc_main$Q = /* @__PURE__ */ defineComponent({
9095
+ ...{ name: "ToolsFloat" },
9177
9096
  __name: "index",
9178
9097
  props: {
9179
9098
  sceneValue: { default: SceneValue.home },
@@ -9189,7 +9108,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9189
9108
  const layoutConfig2 = useLayoutConfig();
9190
9109
  const { t: t2 } = i18n.global;
9191
9110
  const props = __props;
9192
- provide("globalStore", computed(() => props.globalStore));
9111
+ provide(
9112
+ "globalStore",
9113
+ computed(() => props.globalStore)
9114
+ );
9193
9115
  const { useReport: useReport2 } = useRequestReport(props.request, props.globalStore);
9194
9116
  provide("useReport", useReport2);
9195
9117
  const visibleItems = computed(() => {
@@ -9203,22 +9125,29 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9203
9125
  case SceneValue.aiRepo:
9204
9126
  case SceneValue.blog:
9205
9127
  case SceneValue.active:
9206
- return [ToolsFloatDisplayItem.GROWTH_CENTER, ToolsFloatDisplayItem.ELSE, ToolsFloatDisplayItem.AD, ToolsFloatDisplayItem.INVITE];
9128
+ return [
9129
+ ToolsFloatDisplayItem.GROWTH_CENTER,
9130
+ ToolsFloatDisplayItem.ELSE,
9131
+ ToolsFloatDisplayItem.AD,
9132
+ ToolsFloatDisplayItem.INVITE
9133
+ ];
9207
9134
  case SceneValue.enterprise:
9208
9135
  return [ToolsFloatDisplayItem.ELSE];
9209
9136
  default:
9210
- return [ToolsFloatDisplayItem.GROWTH_CENTER, ToolsFloatDisplayItem.ELSE, ToolsFloatDisplayItem.AD, ToolsFloatDisplayItem.INVITE];
9137
+ return [
9138
+ ToolsFloatDisplayItem.GROWTH_CENTER,
9139
+ ToolsFloatDisplayItem.ELSE,
9140
+ ToolsFloatDisplayItem.AD,
9141
+ ToolsFloatDisplayItem.INVITE
9142
+ ];
9211
9143
  }
9212
9144
  });
9213
- const inviteVisible = computed(() => {
9214
- return toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
9215
- });
9216
9145
  const isModuleVisible = (auth) => {
9217
- if (auth === ToolsFloatDisplayItem.AD) {
9218
- return visibleItems.value.includes(auth);
9219
- }
9220
- return visibleItems.value.includes(auth) && toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
9146
+ return visibleItems.value.includes(auth);
9221
9147
  };
9148
+ const growthCenterTooltip = computed(() => {
9149
+ return props.isCannWhiteList ? t2("gitCodeLayout.userSetting.menu.cannTask") : t2("gitCodeLayout.userSetting.menu.growthCenter");
9150
+ });
9222
9151
  const emits = __emit;
9223
9152
  const toggleGrowthCenter = () => {
9224
9153
  if (!props.isLogin) {
@@ -9246,59 +9175,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9246
9175
  }
9247
9176
  }
9248
9177
  };
9249
- const npsPopVisible = ref(true);
9250
- const opinionStepList = [{ index: 0, offset_x: -30 }, { index: 1, offset_x: -80 }];
9251
- const opinionStep = ref(0);
9252
- const rateNow = ref(null);
9253
- const rateActive = ref(null);
9254
- const process2 = ref(true);
9255
- const opinionText = ref("");
9256
- const rateIcon = [
9257
- { name: "gt-nps-1", title: t2("gitCodeLayout.home.veryGood"), index: 0 },
9258
- { name: "gt-nps-2", title: t2("gitCodeLayout.home.good"), index: 1 },
9259
- { name: "gt-nps-3", title: t2("gitCodeLayout.home.generally"), index: 2 },
9260
- { name: "gt-nps-4", title: t2("gitCodeLayout.home.bad"), index: 3 },
9261
- { name: "gt-nps-5", title: t2("gitCodeLayout.home.veryBad"), index: 4 }
9262
- ];
9263
- const store = localStorage$2.getItem("spmStatus");
9264
- const status = store ? JSON.parse(store) : null;
9265
- if (status !== null) {
9266
- const { nps_global } = status;
9267
- npsPopVisible.value = nps_global.expire && nps_global.expire < Date.now();
9268
- }
9269
- const swTab = (item) => {
9270
- if (rateNow.value === null && item.index === 1) return;
9271
- NPSOffsetOptions.crossAxis = item.offset_x;
9272
- opinionStep.value = item.index;
9273
- window.dispatchEvent(new Event("resize"));
9274
- };
9275
- const activeOp = (index2) => {
9276
- rateActive.value = index2;
9277
- };
9278
- const selectOpinion = (item) => {
9279
- rateNow.value = item.index;
9280
- swTab(opinionStepList[1]);
9281
- };
9282
- const NPSOffsetOptions = reactive({ mainAxis: 10, crossAxis: -30 });
9283
- const handleNpsSubmit = () => {
9284
- useReport2(ToolsFloatReportEvent.NPS, {
9285
- nps_score: rateNow.value + 1,
9286
- nps_comment: opinionText.value
9287
- });
9288
- process2.value = false;
9289
- NPSOffsetOptions.crossAxis = 0;
9290
- window.dispatchEvent(new Event("resize"));
9291
- const nextStatus = status || {};
9292
- nextStatus.nps_global = { expire: Date.now() + 864e5 * 15 };
9293
- localStorage$2.setItem("spmStatus", JSON.stringify(nextStatus));
9294
- setTimeout(() => {
9295
- npsPopVisible.value = false;
9296
- }, 500);
9297
- };
9298
9178
  const activeAdJson = ref();
9299
9179
  const activeAdItem = computed(() => {
9300
- var _a;
9301
- if (((_a = activeAdJson.value) == null ? void 0 : _a.adList.length) > 0) {
9180
+ var _a, _b;
9181
+ if (((_b = (_a = activeAdJson.value) == null ? void 0 : _a.adList) == null ? void 0 : _b.length) > 0) {
9302
9182
  return activeAdJson.value.adList.filter((item) => item.showThis)[0];
9303
9183
  }
9304
9184
  return {};
@@ -9311,8 +9191,11 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9311
9191
  return false;
9312
9192
  }
9313
9193
  const adLink = layoutConfig2.VITE_AD_LINK + "?timestamp=" + (/* @__PURE__ */ new Date()).getTime();
9314
- const response = await fetch(adLink);
9315
- activeAdJson.value = await response.json();
9194
+ try {
9195
+ const response = await fetch(adLink);
9196
+ activeAdJson.value = await response.json();
9197
+ } catch (e) {
9198
+ }
9316
9199
  };
9317
9200
  fetchAdList();
9318
9201
  const handleLogin = (type) => {
@@ -9349,24 +9232,28 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9349
9232
  }
9350
9233
  };
9351
9234
  const toolsFloatCollapseStatus = ref(TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND);
9352
- const handleCollapseTool = (status2) => {
9353
- toolsFloatCollapseStatus.value = status2;
9235
+ const isCollapsed = computed(() => toolsFloatCollapseStatus.value === TOOLS_FLOAT_COLLAPSE_STATUS.COLLAPSE);
9236
+ const handleCollapseTool = (status) => {
9237
+ toolsFloatCollapseStatus.value = status;
9354
9238
  if (props.isRepoPage) {
9355
- localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO, status2);
9239
+ localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO, status);
9356
9240
  } else {
9357
- localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY, status2);
9241
+ localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY, status);
9358
9242
  localStorage$2.setItem(TOOLS_FLOAT_COLLAPSE_DATE_KEY, (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN"));
9359
9243
  }
9360
9244
  };
9361
9245
  __expose({
9362
9246
  handleCollapseTool
9363
9247
  });
9364
- watch(() => props.isWhiteListRepo, () => {
9365
- initToolsFloatCollapse();
9366
- });
9248
+ watch(
9249
+ () => props.isWhiteListRepo,
9250
+ () => {
9251
+ initToolsFloatCollapse();
9252
+ }
9253
+ );
9367
9254
  const initToolsFloatCollapse = () => {
9368
9255
  const statusForRepo = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY_FOR_REPO);
9369
- const status2 = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
9256
+ const status = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
9370
9257
  const statusDate = localStorage$2.getItem(TOOLS_FLOAT_COLLAPSE_DATE_KEY);
9371
9258
  if (props.isRepoPage) {
9372
9259
  if (statusForRepo) {
@@ -9375,8 +9262,8 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9375
9262
  toolsFloatCollapseStatus.value = props.isWhiteListRepo ? TOOLS_FLOAT_COLLAPSE_STATUS.COLLAPSE : TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
9376
9263
  }
9377
9264
  } else {
9378
- if (status2 && statusDate === (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN")) {
9379
- toolsFloatCollapseStatus.value = status2;
9265
+ if (status && statusDate === (/* @__PURE__ */ new Date()).toLocaleDateString("zh-CN")) {
9266
+ toolsFloatCollapseStatus.value = status;
9380
9267
  } else {
9381
9268
  toolsFloatCollapseStatus.value = TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND;
9382
9269
  localStorage$2.removeItem(TOOLS_FLOAT_COLLAPSE_STATUS_KEY);
@@ -9387,11 +9274,14 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9387
9274
  udeskInit();
9388
9275
  }
9389
9276
  };
9390
- watch(() => toolsFloatCollapseStatus.value, (val) => {
9391
- if (val === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND && visibleItems.value.includes(ToolsFloatDisplayItem.ELSE)) {
9392
- udeskInit();
9277
+ watch(
9278
+ () => toolsFloatCollapseStatus.value,
9279
+ (val) => {
9280
+ if (val === TOOLS_FLOAT_COLLAPSE_STATUS.EXPAND && visibleItems.value.includes(ToolsFloatDisplayItem.ELSE)) {
9281
+ udeskInit();
9282
+ }
9393
9283
  }
9394
- });
9284
+ );
9395
9285
  onMounted(() => {
9396
9286
  window.addEventListener("scroll", handleScroll);
9397
9287
  initToolsFloatCollapse();
@@ -9400,321 +9290,167 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9400
9290
  window.removeEventListener("scroll", handleScroll);
9401
9291
  });
9402
9292
  return (_ctx, _cache) => {
9403
- return openBlock(), createElementBlock("div", null, [
9404
- toolsFloatCollapseStatus.value === unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE ? (openBlock(), createElementBlock("div", {
9405
- key: 0,
9406
- class: "tools-float-expand-btn",
9407
- onClick: _cache[0] || (_cache[0] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).EXPAND)),
9408
- title: "展开"
9409
- }, [
9410
- createVNode(GIcon, {
9411
- name: "gt-plane-left",
9412
- size: "18px"
9413
- })
9414
- ])) : createCommentVNode("", true),
9415
- createElementVNode("div", _hoisted_1$I, [
9416
- inviteVisible.value && isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createBlock(unref(Tooltip), {
9417
- key: 0,
9418
- position: "left",
9419
- "overlay-class": "tools-tag-tooltip"
9420
- }, {
9421
- content: withCtx(() => [
9422
- createElementVNode("div", _hoisted_4$o, [
9423
- createElementVNode("div", _hoisted_5$j, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
9424
- ])
9425
- ]),
9426
- default: withCtx(() => [
9427
- createElementVNode("div", {
9428
- class: "home-nav-link computing",
9429
- onClick: handleInvite
9430
- }, [
9431
- createElementVNode("div", _hoisted_2$w, [
9432
- _cache[5] || (_cache[5] = createElementVNode("img", {
9433
- class: "common-icon tools-float-icon",
9434
- src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
9435
- alt: ""
9436
- }, null, -1)),
9437
- createElementVNode("div", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
9293
+ return openBlock(), createElementBlock("div", _hoisted_1$J, [
9294
+ createVNode(Transition, { name: "tools-float-fade" }, {
9295
+ default: withCtx(() => [
9296
+ showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
9297
+ key: 0,
9298
+ class: normalizeClass(["tools-float-topping-btn", { "is-collapsed": isCollapsed.value }]),
9299
+ onClick: _cache[0] || (_cache[0] = //@ts-ignore
9300
+ (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
9301
+ }, [
9302
+ _cache[4] || (_cache[4] = createElementVNode("div", { class: "tools-float-item__icon" }, [
9303
+ createElementVNode("svg", {
9304
+ width: "16",
9305
+ height: "16",
9306
+ viewBox: "0 0 16 16",
9307
+ fill: "currentColor",
9308
+ xmlns: "http://www.w3.org/2000/svg"
9309
+ }, [
9310
+ createElementVNode("path", {
9311
+ "fill-rule": "evenodd",
9312
+ "clip-rule": "evenodd",
9313
+ d: "M7.5 4.91421L2.35355 10.0607L1.64645 9.35355L8 3L14.3536 9.35355L13.6464 10.0607L8.5 4.91421L8.49999 15H7.49999L7.5 4.91421Z"
9314
+ }),
9315
+ createElementVNode("rect", {
9316
+ x: "2",
9317
+ y: "1",
9318
+ width: "12",
9319
+ height: "1"
9320
+ })
9438
9321
  ])
9322
+ ], -1)),
9323
+ createElementVNode("div", _hoisted_2$x, [
9324
+ createElementVNode("span", _hoisted_3$v, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.backToTop")), 1),
9325
+ _cache[3] || (_cache[3] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
9439
9326
  ])
9440
- ]),
9441
- _: 1
9442
- })) : createCommentVNode("", true),
9443
- isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createBlock(unref(Tooltip), {
9327
+ ], 2)) : createCommentVNode("", true)
9328
+ ]),
9329
+ _: 1
9330
+ }),
9331
+ !isCollapsed.value ? (openBlock(), createElementBlock("div", _hoisted_4$o, [
9332
+ isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createElementBlock("div", {
9333
+ key: 0,
9334
+ id: "guide-step4",
9335
+ class: "tools-float-item",
9336
+ onClick: toggleGrowthCenter
9337
+ }, [
9338
+ _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)),
9339
+ createElementVNode("div", _hoisted_5$j, [
9340
+ createElementVNode("span", _hoisted_6$h, toDisplayString$1(growthCenterTooltip.value), 1),
9341
+ _cache[5] || (_cache[5] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
9342
+ ])
9343
+ ])) : createCommentVNode("", true),
9344
+ isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createElementBlock("div", {
9444
9345
  key: 1,
9445
- position: "left",
9446
- "overlay-class": "tools-tag-tooltip"
9447
- }, {
9448
- content: withCtx(() => [
9449
- createElementVNode("div", _hoisted_6$g, [
9450
- createElementVNode("div", _hoisted_7$d, toDisplayString$1(_ctx.isCannWhiteList ? unref(t2)("gitCodeLayout.userSetting.menu.cannTask") : unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
9346
+ class: "tools-float-item",
9347
+ onClick: handleInvite
9348
+ }, [
9349
+ _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)),
9350
+ createElementVNode("div", _hoisted_7$e, [
9351
+ createElementVNode("span", _hoisted_8$c, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1),
9352
+ _cache[7] || (_cache[7] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
9353
+ ])
9354
+ ])) : createCommentVNode("", true),
9355
+ isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", {
9356
+ key: 2,
9357
+ id: "gitcode-desk-btn",
9358
+ class: "tools-float-item",
9359
+ onClick: showDesk
9360
+ }, [
9361
+ _cache[10] || (_cache[10] = createElementVNode("div", { class: "tools-float-item__icon" }, [
9362
+ createElementVNode("svg", {
9363
+ width: "16",
9364
+ height: "16",
9365
+ viewBox: "0 0 16 16",
9366
+ fill: "currentColor",
9367
+ xmlns: "http://www.w3.org/2000/svg"
9368
+ }, [
9369
+ createElementVNode("path", { d: "M14.6182 12.3893H12.2961C12.0184 12.3893 11.7934 12.1643 11.7934 11.8865L11.7881 5.96621C11.7564 3.89551 10.0742 2.31523 8 2.30469C5.92578 2.31523 4.24355 3.89551 4.21016 5.96621L4.20664 11.1025C4.20664 11.1025 4.85527 13.342 6.40039 13.0818C6.51816 12.6898 6.93301 12.5422 7.2002 12.5422H8.82793C9.3834 12.5422 9.8334 12.9922 9.8334 13.5477V13.8623C9.8334 14.4178 9.3834 14.8678 8.82793 14.8678H7.33027C6.90488 14.8678 6.54277 14.6006 6.39512 14.2262C6.37051 14.2121 6.17012 14.2297 5.97324 14.1875C4.44922 13.6426 3.78125 12.3822 3.78125 12.3822C3.75488 12.3875 3.72852 12.391 3.70215 12.391H1.38184C1.1041 12.391 0.879102 12.166 0.879102 11.8883V6.73437C0.879102 6.45664 1.1041 6.23164 1.38184 6.23164H3.04121C3.04121 5.80625 3.03945 5.96445 3.03945 5.96445C3.09922 1.1498 7.91738 1.13398 7.91738 1.13398C7.95605 1.13223 8.0457 1.13223 8.08262 1.13398C8.08262 1.13398 12.9008 1.15156 12.9605 5.96445C12.9605 5.96445 12.9605 5.80449 12.9588 6.23164H14.6182C14.8959 6.23164 15.1209 6.45664 15.1209 6.73437V11.8865C15.1209 12.1643 14.8959 12.3893 14.6182 12.3893ZM3.14492 7.70469C3.14492 7.53418 3.05352 7.39531 2.94102 7.39531H2.0832C1.9707 7.39531 1.8793 7.53418 1.8793 7.70469V10.8775C1.8793 11.0498 1.9707 11.1869 2.0832 11.1869H2.94102C3.05352 11.1869 3.14492 11.048 3.14492 10.8775V7.70469ZM14.1207 7.70469C14.1207 7.53418 14.0293 7.39531 13.9168 7.39531H13.0607C12.9482 7.39531 12.8551 7.53418 12.8551 7.70469V10.8775C12.8551 11.0498 12.9482 11.1869 13.0607 11.1869H13.9168C14.0293 11.1869 14.1207 11.048 14.1207 10.8775V7.70469Z" })
9451
9370
  ])
9452
- ]),
9453
- default: withCtx(() => [
9454
- createElementVNode("div", {
9455
- id: "guide-step4",
9456
- class: "home-nav-link tools-questionnaire",
9457
- onClick: toggleGrowthCenter
9458
- }, _cache[6] || (_cache[6] = [
9459
- createElementVNode("div", { class: "home-nav-item" }, [
9460
- createElementVNode("img", {
9461
- class: "common-icon tools-float-icon",
9462
- src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
9463
- alt: ""
9464
- })
9465
- ], -1)
9466
- ]))
9467
- ]),
9468
- _: 1
9469
- })) : createCommentVNode("", true),
9470
- isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_8$c, [
9471
- createVNode(unref(Tooltip), {
9472
- position: "left",
9473
- "overlay-class": "tools-tag-tooltip"
9474
- }, {
9475
- content: withCtx(() => [
9476
- createElementVNode("div", _hoisted_9$b, [
9477
- createElementVNode("div", _hoisted_10$a, [
9478
- createElementVNode("p", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
9479
- createElementVNode("p", _hoisted_11$8, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback02")), 1)
9480
- ])
9481
- ])
9482
- ]),
9483
- default: withCtx(() => [
9484
- createElementVNode("div", { class: "tools-list-item tools-list-item--gap" }, [
9485
- createElementVNode("div", {
9486
- id: "gitcode-desk-btn",
9487
- class: "home-nav-item kefu",
9488
- onClick: showDesk
9489
- }, _cache[7] || (_cache[7] = [
9490
- createElementVNode("img", {
9491
- class: "tools-float-icon",
9492
- src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
9493
- alt: ""
9494
- }, null, -1),
9495
- createElementVNode("div", null, [
9496
- createElementVNode("div", null, "客"),
9497
- createElementVNode("div", null, "服")
9498
- ], -1)
9499
- ]))
9500
- ])
9501
- ]),
9502
- _: 1
9503
- }),
9504
- createVNode(unref(Tooltip), {
9505
- position: "left",
9506
- "overlay-class": "tools-tag-tooltip"
9507
- }, {
9508
- content: withCtx(() => [
9509
- createElementVNode("div", _hoisted_12$8, [
9510
- createElementVNode("div", _hoisted_13$4, toDisplayString$1(unref(t2)("gitCodeLayout.home.followUs")), 1),
9511
- _cache[8] || (_cache[8] = createElementVNode("img", {
9512
- class: "qrcode",
9513
- src: "https://cdn-static.gitcode.com/static/images/points/wx_gitcode.png"
9514
- }, null, -1))
9515
- ])
9516
- ]),
9517
- default: withCtx(() => [
9518
- _cache[9] || (_cache[9] = createElementVNode("a", { class: "home-nav-link tools-list-item" }, [
9519
- createElementVNode("div", { class: "home-nav-item" }, [
9520
- createElementVNode("img", {
9521
- class: "common-icon tools-float-icon",
9522
- src: "https://cdn-static.gitcode.com/static/images/desk/follow-us.svg",
9523
- alt: ""
9524
- }),
9525
- createElementVNode("img", {
9526
- class: "active-icon tools-float-icon",
9527
- src: "https://cdn-static.gitcode.com/static/images/desk/follow-us-hover.svg",
9528
- alt: ""
9529
- })
9530
- ])
9531
- ], -1))
9532
- ]),
9533
- _: 1
9534
- }),
9535
- npsPopVisible.value ? (openBlock(), createBlock(unref(Popover), {
9536
- key: 0,
9537
- trigger: "click",
9538
- offset: NPSOffsetOptions,
9539
- position: ["left"],
9540
- class: "no-arrow",
9541
- "is-open": npsPopVisible.value
9542
- }, {
9543
- content: withCtx(() => [
9544
- createElementVNode("div", _hoisted_15$3, [
9545
- process2.value ? (openBlock(), createElementBlock("div", _hoisted_16$3, [
9546
- createElementVNode("div", _hoisted_17$3, [
9547
- (openBlock(), createElementBlock(Fragment, null, renderList(opinionStepList, (item) => {
9548
- return createElementVNode("div", {
9549
- key: item.index,
9550
- class: normalizeClass(["tab-item", opinionStep.value === item.index ? "tab-item--active" : "tab-item--inactive"]),
9551
- onClick: ($event) => swTab(item)
9552
- }, _cache[11] || (_cache[11] = [
9553
- createElementVNode("span", { class: "tools-float-cursor-pointer" }, null, -1)
9554
- ]), 10, _hoisted_18$3);
9555
- }), 64))
9556
- ]),
9557
- createElementVNode("div", null, [
9558
- opinionStep.value === 0 ? (openBlock(), createElementBlock("div", _hoisted_19$3, [
9559
- rateActive.value !== null || rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_20$3, [
9560
- createElementVNode("span", null, toDisplayString$1(rateIcon[rateActive.value === null ? rateNow.value : rateActive.value].title), 1)
9561
- ])) : createCommentVNode("", true),
9562
- createElementVNode("div", _hoisted_21$3, [
9563
- createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.rateExperience")), 1)
9564
- ]),
9565
- createElementVNode("div", _hoisted_22$3, [
9566
- (openBlock(), createElementBlock(Fragment, null, renderList(rateIcon, (ico) => {
9567
- return createElementVNode("div", {
9568
- key: ico.name,
9569
- class: normalizeClass(["opinion-item", { active: rateNow.value === ico.index }]),
9570
- onMouseover: ($event) => activeOp(ico.index),
9571
- onMouseleave: _cache[1] || (_cache[1] = ($event) => activeOp(null)),
9572
- onClick: ($event) => selectOpinion(ico)
9573
- }, [
9574
- createVNode(GIcon, {
9575
- name: ico.name,
9576
- size: "24px"
9577
- }, null, 8, ["name"])
9578
- ], 42, _hoisted_23$2);
9579
- }), 64))
9580
- ])
9581
- ])) : createCommentVNode("", true),
9582
- opinionStep.value === 1 ? (openBlock(), createElementBlock("div", _hoisted_24$2, [
9583
- rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_25$2, [
9584
- createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
9585
- ])) : createCommentVNode("", true),
9586
- createElementVNode("div", _hoisted_26$1, [
9587
- createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
9588
- ]),
9589
- createElementVNode("div", _hoisted_27$1, [
9590
- createVNode(unref(Textarea), {
9591
- modelValue: opinionText.value,
9592
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => opinionText.value = $event),
9593
- rows: 4,
9594
- placeholder: unref(t2)("gitCodeLayout.home.facebackPlaceholder"),
9595
- "show-count": "",
9596
- maxlength: "200"
9597
- }, null, 8, ["modelValue", "placeholder"])
9598
- ]),
9599
- createElementVNode("div", null, [
9600
- createVNode(unref(Button), {
9601
- color: "primary",
9602
- variant: "solid",
9603
- onClick: handleNpsSubmit
9604
- }, {
9605
- default: withCtx(() => [
9606
- createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.repo.pr.commit")), 1)
9607
- ]),
9608
- _: 1
9609
- })
9610
- ])
9611
- ])) : createCommentVNode("", true)
9612
- ])
9613
- ])) : (openBlock(), createElementBlock("div", _hoisted_28$1, [
9614
- createElementVNode("div", _hoisted_29$1, [
9615
- createVNode(GIcon, {
9616
- name: "gt-success",
9617
- size: "14px",
9618
- color: "#fff"
9619
- })
9620
- ]),
9621
- createElementVNode("div", _hoisted_30$1, [
9622
- createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
9623
- ])
9624
- ]))
9625
- ])
9626
- ]),
9627
- default: withCtx(() => [
9628
- createElementVNode("div", _hoisted_14$3, [
9629
- createVNode(unref(Popover), {
9630
- class: "custom-popover-feedback",
9631
- position: ["left"],
9632
- content: unref(t2)("gitCodeLayout.home.userFeedbackProductRecommendations"),
9633
- trigger: "hover",
9634
- offset: { mainAxis: 22, crossAxis: 0 }
9635
- }, {
9636
- default: withCtx(() => _cache[10] || (_cache[10] = [
9637
- createElementVNode("div", { class: "home-nav-item" }, [
9638
- createElementVNode("img", {
9639
- class: "common-icon tools-float-icon",
9640
- src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile.png",
9641
- alt: ""
9642
- }),
9643
- createElementVNode("img", {
9644
- class: "active-icon tools-float-icon",
9645
- src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile-hover.png",
9646
- alt: ""
9647
- })
9648
- ], -1)
9649
- ])),
9650
- _: 1
9651
- }, 8, ["content"])
9652
- ])
9653
- ]),
9654
- _: 1
9655
- }, 8, ["offset", "is-open"])) : createCommentVNode("", true),
9656
- _cache[12] || (_cache[12] = createElementVNode("div", { class: "divider" }, null, -1)),
9657
- createVNode(unref(Popover), {
9658
- position: ["left"],
9659
- content: "收起",
9660
- trigger: "hover",
9661
- class: "custom-popover-feedback"
9662
- }, {
9663
- default: withCtx(() => [
9664
- createElementVNode("div", {
9665
- class: "tools-list-item",
9666
- onClick: _cache[3] || (_cache[3] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
9667
- }, [
9668
- createElementVNode("div", _hoisted_31$1, [
9669
- createVNode(GIcon, {
9670
- name: "gt-plane-skip",
9671
- size: "18px"
9672
- })
9673
- ])
9674
- ])
9675
- ]),
9676
- _: 1
9677
- })
9371
+ ], -1)),
9372
+ createElementVNode("div", _hoisted_9$b, [
9373
+ createElementVNode("span", _hoisted_10$a, toDisplayString$1(unref(t2)("gitCodeLayout.home.userFeedback01")), 1),
9374
+ _cache[9] || (_cache[9] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
9375
+ ])
9678
9376
  ])) : createCommentVNode("", true),
9679
- createVNode(Transition, null, {
9680
- default: withCtx(() => [
9681
- showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
9682
- key: 0,
9683
- class: "home-nav-link tools-questionnaire tools-float-scroll-top",
9684
- onClick: _cache[4] || (_cache[4] = //@ts-ignore
9685
- (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
9377
+ _cache[13] || (_cache[13] = createElementVNode("div", { class: "tools-float-divider" }, null, -1)),
9378
+ createElementVNode("div", {
9379
+ class: "tools-float-item collapse-tool",
9380
+ onClick: _cache[1] || (_cache[1] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).COLLAPSE))
9381
+ }, [
9382
+ _cache[12] || (_cache[12] = createElementVNode("div", { class: "tools-float-item__icon" }, [
9383
+ createElementVNode("svg", {
9384
+ width: "16",
9385
+ height: "16",
9386
+ viewBox: "0 0 16 16",
9387
+ fill: "currentColor",
9388
+ xmlns: "http://www.w3.org/2000/svg"
9686
9389
  }, [
9687
- createElementVNode("div", _hoisted_32$1, [
9688
- createVNode(GIcon, {
9689
- name: "gt-plane-Topping1",
9690
- size: "20px"
9691
- })
9692
- ])
9693
- ])) : createCommentVNode("", true)
9694
- ]),
9695
- _: 1
9390
+ createElementVNode("path", {
9391
+ "fill-rule": "evenodd",
9392
+ "clip-rule": "evenodd",
9393
+ d: "M12.7929 7.5L7.64645 2.35355L8.35355 1.64645L14.7071 8L8.35355 14.3536L7.64645 13.6464L12.7929 8.5H2V7.5H12.7929Z"
9394
+ })
9395
+ ])
9396
+ ], -1)),
9397
+ createElementVNode("div", _hoisted_11$8, [
9398
+ createElementVNode("span", _hoisted_12$8, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.collapse")), 1),
9399
+ _cache[11] || (_cache[11] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
9400
+ ])
9401
+ ])
9402
+ ])) : (openBlock(), createElementBlock("div", {
9403
+ key: 1,
9404
+ class: "tools-float-collapsed-tab",
9405
+ onClick: _cache[2] || (_cache[2] = ($event) => handleCollapseTool(unref(TOOLS_FLOAT_COLLAPSE_STATUS).EXPAND))
9406
+ }, [
9407
+ _cache[15] || (_cache[15] = createElementVNode("div", { class: "tools-float-item__icon" }, [
9408
+ createElementVNode("svg", {
9409
+ width: "16",
9410
+ height: "16",
9411
+ viewBox: "0 0 16 16",
9412
+ fill: "currentColor",
9413
+ xmlns: "http://www.w3.org/2000/svg"
9414
+ }, [
9415
+ createElementVNode("path", {
9416
+ "fill-rule": "evenodd",
9417
+ "clip-rule": "evenodd",
9418
+ d: "M12.7929 7.5L7.64645 2.35355L8.35355 1.64645L14.7071 8L8.35355 14.3536L7.64645 13.6464L12.7929 8.5H2V7.5H12.7929Z"
9419
+ })
9420
+ ])
9421
+ ], -1)),
9422
+ createElementVNode("div", _hoisted_13$5, [
9423
+ createElementVNode("span", _hoisted_14$3, toDisplayString$1(unref(t2)("gitCodeLayout.toolsFloat.expand")), 1),
9424
+ _cache[14] || (_cache[14] = createElementVNode("span", { class: "float-tooltip-arrow" }, null, -1))
9425
+ ])
9426
+ ])),
9427
+ isModuleVisible(unref(ToolsFloatDisplayItem).AD) && activeAdItem.value && activeAdItem.value.imgUrl ? (openBlock(), createElementBlock("div", {
9428
+ key: 2,
9429
+ class: "active-tips",
9430
+ onClick: withModifiers(handleActive, ["stop"])
9431
+ }, [
9432
+ createElementVNode("div", {
9433
+ class: "close-btn",
9434
+ onClick: withModifiers(handleActiveClose, ["stop"])
9696
9435
  }),
9697
- isModuleVisible(unref(ToolsFloatDisplayItem).AD) && activeAdItem.value && activeAdItem.value.imgUrl ? (openBlock(), createElementBlock("div", {
9698
- key: 3,
9699
- class: "active-tips",
9700
- onClick: withModifiers(handleActive, ["stop"])
9701
- }, [
9702
- createElementVNode("div", {
9703
- class: "close-btn",
9704
- onClick: handleActiveClose
9705
- }),
9706
- createElementVNode("img", {
9707
- width: "200",
9708
- src: activeAdItem.value.imgUrl,
9709
- alt: activeAdItem.value.title
9710
- }, null, 8, _hoisted_33$1)
9711
- ])) : createCommentVNode("", true)
9712
- ])
9436
+ createElementVNode("img", {
9437
+ width: "200",
9438
+ src: activeAdItem.value.imgUrl,
9439
+ alt: activeAdItem.value.title
9440
+ }, null, 8, _hoisted_15$3)
9441
+ ])) : createCommentVNode("", true)
9713
9442
  ]);
9714
9443
  };
9715
9444
  }
9716
9445
  });
9717
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9446
+ const _export_sfc = (sfc, props) => {
9447
+ const target = sfc.__vccOpts || sfc;
9448
+ for (const [key, val] of props) {
9449
+ target[key] = val;
9450
+ }
9451
+ return target;
9452
+ };
9453
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9718
9454
  var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
9719
9455
  repoTypeEnum2["NORMAL"] = "0";
9720
9456
  repoTypeEnum2["MODEL"] = "1";
@@ -9857,6 +9593,54 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
9857
9593
  delete reportData["utm_source"];
9858
9594
  window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
9859
9595
  };
9596
+ const _hoisted_1$I = ["xlink:href"];
9597
+ const _hoisted_2$w = ["xlink:href"];
9598
+ const _sfc_main$P = /* @__PURE__ */ defineComponent({
9599
+ __name: "index",
9600
+ props: {
9601
+ name: { default: "gt-run" },
9602
+ size: { default: "16px" },
9603
+ color: { default: "var(--theme-icon-fill-weak)" },
9604
+ rotate: { default: "0deg" },
9605
+ operable: { type: Boolean, default: false },
9606
+ disabled: { type: Boolean, default: false },
9607
+ iconClass: {}
9608
+ },
9609
+ setup(__props) {
9610
+ const props = __props;
9611
+ const fontSize = computed(() => {
9612
+ return /px$/i.test(props.size) ? props.size : `${props.size}px`;
9613
+ });
9614
+ return (_ctx, _cache) => {
9615
+ return !_ctx.name.includes("gt-") ? (openBlock(), createBlock(unref(Icon), normalizeProps(mergeProps({ key: 0 }, props)), null, 16)) : _ctx.operable ? (openBlock(), createElementBlock("span", {
9616
+ key: 1,
9617
+ class: normalizeClass(["custom-icon-container", { disabled: _ctx.disabled }])
9618
+ }, [
9619
+ renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
9620
+ (openBlock(), createElementBlock("svg", {
9621
+ class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
9622
+ "aria-hidden": "true",
9623
+ style: normalizeStyle({ color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
9624
+ }, [
9625
+ createElementVNode("use", {
9626
+ "xlink:href": `#${_ctx.name}`
9627
+ }, null, 8, _hoisted_1$I)
9628
+ ], 6)),
9629
+ renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
9630
+ ], 2)) : (openBlock(), createElementBlock("svg", {
9631
+ key: 2,
9632
+ class: normalizeClass(["icon gt-icon", _ctx.iconClass]),
9633
+ "aria-hidden": "true",
9634
+ style: normalizeStyle(_ctx.iconClass ? {} : { color: _ctx.color, fontSize: fontSize.value, transform: `rotate(${_ctx.rotate})` })
9635
+ }, [
9636
+ createElementVNode("use", {
9637
+ "xlink:href": `#${_ctx.name}`
9638
+ }, null, 8, _hoisted_2$w)
9639
+ ], 6));
9640
+ };
9641
+ }
9642
+ });
9643
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9860
9644
  const _hoisted_1$H = ["href", "target", "disabled"];
9861
9645
  const _sfc_main$O = /* @__PURE__ */ defineComponent({
9862
9646
  ...{
@@ -10947,13 +10731,13 @@ const _hoisted_5$i = {
10947
10731
  key: 1,
10948
10732
  class: "header-custom-mirrors-avatar"
10949
10733
  };
10950
- const _hoisted_6$f = {
10734
+ const _hoisted_6$g = {
10951
10735
  key: 0,
10952
10736
  src: _imports_0,
10953
10737
  alt: "mirrors-avatar-phone",
10954
10738
  class: "header-custom-mirrors-img"
10955
10739
  };
10956
- const _hoisted_7$c = {
10740
+ const _hoisted_7$d = {
10957
10741
  key: 1,
10958
10742
  src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
10959
10743
  alt: "mirrors-avatar",
@@ -10970,7 +10754,7 @@ const _hoisted_12$7 = {
10970
10754
  key: 0,
10971
10755
  class: "header-custom-tag-mb"
10972
10756
  };
10973
- const _hoisted_13$3 = {
10757
+ const _hoisted_13$4 = {
10974
10758
  key: 1,
10975
10759
  class: "header-custom-tag-mb"
10976
10760
  };
@@ -11183,7 +10967,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11183
10967
  height: 28,
11184
10968
  is_round: !isOrg.value
11185
10969
  }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_5$i, [
11186
- unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_6$f)) : (openBlock(), createElementBlock("img", _hoisted_7$c))
10970
+ unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_6$g)) : (openBlock(), createElementBlock("img", _hoisted_7$d))
11187
10971
  ]))
11188
10972
  ];
11189
10973
  }),
@@ -11253,7 +11037,7 @@ const _sfc_main$L = /* @__PURE__ */ defineComponent({
11253
11037
  ])),
11254
11038
  _: 1
11255
11039
  }, 8, ["message"])
11256
- ])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$3, [
11040
+ ])) : unref(isIncubationRepo)((_f = unref(repoInfo)) == null ? void 0 : _f.topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$4, [
11257
11041
  createVNode(_sfc_main$M, {
11258
11042
  origin: "repo",
11259
11043
  icon: "",
@@ -11459,6 +11243,7 @@ const HEADER_CREATE_MENU_PATHS = [
11459
11243
  "/collections/create",
11460
11244
  "/org/create"
11461
11245
  ];
11246
+ const HEADER_CREATE_ENTERPRISE_PATH = "/enterprises/new";
11462
11247
  const _hoisted_1$C = { class: "g-header-create dashboard-create-menu" };
11463
11248
  const _hoisted_2$u = ["title", "aria-label", "aria-expanded"];
11464
11249
  const _hoisted_3$t = { class: "dashboard-create-menu__trigger-text" };
@@ -11468,8 +11253,8 @@ const _hoisted_5$h = {
11468
11253
  class: "dashboard-create-menu__divider",
11469
11254
  role: "separator"
11470
11255
  };
11471
- const _hoisted_6$e = ["href", "onClick", "onKeydown"];
11472
- const _hoisted_7$b = { class: "dashboard-create-menu__title-row" };
11256
+ const _hoisted_6$f = ["href", "onClick", "onKeydown"];
11257
+ const _hoisted_7$c = { class: "dashboard-create-menu__title-row" };
11473
11258
  const _hoisted_8$a = { class: "dashboard-create-menu__title" };
11474
11259
  const _hoisted_9$9 = {
11475
11260
  key: 0,
@@ -11484,6 +11269,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11484
11269
  props: {
11485
11270
  dropdownVisible: { type: Boolean, default: false },
11486
11271
  isCreateOrg: { type: Boolean, default: true },
11272
+ isCreateEnterprise: { type: Boolean, default: false },
11487
11273
  items: { default: void 0 },
11488
11274
  onNavigate: { type: Function, default: void 0 }
11489
11275
  },
@@ -11546,9 +11332,16 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11546
11332
  }
11547
11333
  ];
11548
11334
  });
11335
+ const enterpriseMenuItem = {
11336
+ key: "enterprise",
11337
+ icon: "gt-a-plane-enterprise",
11338
+ label: t2("gitCodeLayout.header.createMenuEnterprise"),
11339
+ href: toApplicationUrl(layoutConfig2.VITE_HOST, HEADER_CREATE_ENTERPRISE_PATH)
11340
+ };
11549
11341
  const menuItems = computed(() => {
11550
- const items = props.items || defaultMenuItems.value;
11551
- return props.isCreateOrg ? items : items.filter((item) => item.key !== "organization");
11342
+ const baseItems = props.items || defaultMenuItems.value;
11343
+ const items = props.isCreateOrg ? baseItems : baseItems.filter((item) => item.key !== "organization");
11344
+ return props.isCreateEnterprise ? [...items, enterpriseMenuItem] : items;
11552
11345
  });
11553
11346
  function getMenuItems() {
11554
11347
  var _a;
@@ -11616,6 +11409,12 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11616
11409
  if (event.currentTarget instanceof HTMLElement) event.currentTarget.click();
11617
11410
  }
11618
11411
  }
11412
+ function stripRouterBase(route2) {
11413
+ const base = router2.options.history.base;
11414
+ if (!base || base === "/") return route2;
11415
+ if (route2 === base) return "/";
11416
+ return route2.startsWith(`${base}/`) ? route2.slice(base.length) : route2;
11417
+ }
11619
11418
  function navigateTo(href) {
11620
11419
  const applicationHref = toApplicationUrl(layoutConfig2.VITE_HOST, href);
11621
11420
  const applicationRoute = toApplicationRoute(layoutConfig2.VITE_HOST, href);
@@ -11627,10 +11426,10 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11627
11426
  return;
11628
11427
  }
11629
11428
  } else {
11630
- void router2.push(applicationRoute);
11429
+ void router2.push(stripRouterBase(applicationRoute));
11631
11430
  return;
11632
11431
  }
11633
- void router2.push(applicationRoute);
11432
+ void router2.push(stripRouterBase(applicationRoute));
11634
11433
  }
11635
11434
  async function selectCreateItem(item) {
11636
11435
  closeMenu();
@@ -11687,7 +11486,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11687
11486
  onClick: withModifiers(($event) => selectCreateItem(item), ["prevent"]),
11688
11487
  onKeydown: ($event) => onMenuItemKeydown($event, index2)
11689
11488
  }, [
11690
- createElementVNode("div", _hoisted_7$b, [
11489
+ createElementVNode("div", _hoisted_7$c, [
11691
11490
  createVNode(GIcon, {
11692
11491
  name: item.icon,
11693
11492
  size: "16px",
@@ -11698,7 +11497,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
11698
11497
  createElementVNode("span", _hoisted_8$a, toDisplayString$1(item.label), 1)
11699
11498
  ]),
11700
11499
  item.desc ? (openBlock(), createElementBlock("div", _hoisted_9$9, toDisplayString$1(item.desc), 1)) : createCommentVNode("", true)
11701
- ], 42, _hoisted_6$e)
11500
+ ], 42, _hoisted_6$f)
11702
11501
  ], 64);
11703
11502
  }), 128))
11704
11503
  ], 8, _hoisted_4$m)
@@ -14312,8 +14111,8 @@ const _hoisted_2$t = { class: "message-item-footer" };
14312
14111
  const _hoisted_3$s = ["title"];
14313
14112
  const _hoisted_4$l = ["href"];
14314
14113
  const _hoisted_5$g = { class: "message-item-info-content" };
14315
- const _hoisted_6$d = { class: "message-item-body" };
14316
- const _hoisted_7$a = ["title", "innerHTML"];
14114
+ const _hoisted_6$e = { class: "message-item-body" };
14115
+ const _hoisted_7$b = ["title", "innerHTML"];
14317
14116
  const _hoisted_8$9 = ["title"];
14318
14117
  const _hoisted_9$8 = { class: "message-item-info" };
14319
14118
  const _hoisted_10$8 = { class: "message-item-rightTx message-item-date" };
@@ -14350,7 +14149,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
14350
14149
  ], 8, _hoisted_3$s)
14351
14150
  ]),
14352
14151
  createElementVNode("div", _hoisted_5$g, [
14353
- createElementVNode("div", _hoisted_6$d, [
14152
+ createElementVNode("div", _hoisted_6$e, [
14354
14153
  createVNode(GLink, {
14355
14154
  href: unref(transformUrl)(_ctx.data.url),
14356
14155
  target: "_blank",
@@ -14365,7 +14164,7 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
14365
14164
  title: _ctx.data.title,
14366
14165
  innerHTML: unref(xssPurify)(_ctx.data.title) || "",
14367
14166
  class: "message-item__title"
14368
- }, null, 8, _hoisted_7$a)) : (openBlock(), createElementBlock("span", {
14167
+ }, null, 8, _hoisted_7$b)) : (openBlock(), createElementBlock("span", {
14369
14168
  key: 1,
14370
14169
  title: _ctx.data.title
14371
14170
  }, toDisplayString$1(_ctx.data.title || "-"), 9, _hoisted_8$9))
@@ -14412,11 +14211,11 @@ const _hoisted_4$k = {
14412
14211
  class: "g-number message-box__count"
14413
14212
  };
14414
14213
  const _hoisted_5$f = { class: "message-content-cover" };
14415
- const _hoisted_6$c = {
14214
+ const _hoisted_6$d = {
14416
14215
  key: 0,
14417
14216
  class: "message-content-header"
14418
14217
  };
14419
- const _hoisted_7$9 = {
14218
+ const _hoisted_7$a = {
14420
14219
  key: 0,
14421
14220
  class: "g-number"
14422
14221
  };
@@ -14760,13 +14559,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
14760
14559
  class: "message-content"
14761
14560
  }, [
14762
14561
  withDirectives((openBlock(), createElementBlock("div", _hoisted_5$f, [
14763
- currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$c, [
14562
+ currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$d, [
14764
14563
  createElementVNode("div", {
14765
14564
  class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "project" }]),
14766
14565
  onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
14767
14566
  }, [
14768
14567
  _cache[6] || (_cache[6] = createTextVNode(" 项目相关 ")),
14769
- mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$9, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
14568
+ mentionSubTabCount.value.project > 0 ? (openBlock(), createElementBlock("span", _hoisted_7$a, toDisplayString$1(mentionSubTabCount.value.project), 1)) : createCommentVNode("", true)
14770
14569
  ], 2),
14771
14570
  createElementVNode("div", {
14772
14571
  class: normalizeClass(["message-content-header-item", { active: mentionSubTab.value === "discussion" }]),
@@ -15031,8 +14830,8 @@ const _hoisted_2$q = { class: "user-level__row" };
15031
14830
  const _hoisted_3$p = ["src"];
15032
14831
  const _hoisted_4$j = { class: "level-name" };
15033
14832
  const _hoisted_5$e = { class: "level-icon" };
15034
- const _hoisted_6$b = ["src"];
15035
- const _hoisted_7$8 = { class: "custom-btn" };
14833
+ const _hoisted_6$c = ["src"];
14834
+ const _hoisted_7$9 = { class: "custom-btn" };
15036
14835
  const _hoisted_8$7 = { class: "user-level__btn-text" };
15037
14836
  const maxLevel = 3;
15038
14837
  const _sfc_main$A = /* @__PURE__ */ defineComponent({
@@ -15099,11 +14898,11 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
15099
14898
  createElementVNode("img", {
15100
14899
  src: levelInfo.value.level,
15101
14900
  alt: ""
15102
- }, null, 8, _hoisted_6$b)
14901
+ }, null, 8, _hoisted_6$c)
15103
14902
  ])
15104
14903
  ])
15105
14904
  ]),
15106
- createElementVNode("div", _hoisted_7$8, [
14905
+ createElementVNode("div", _hoisted_7$9, [
15107
14906
  createElementVNode("div", _hoisted_8$7, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.tips.getPoints")), 1)
15108
14907
  ])
15109
14908
  ], 2);
@@ -15418,7 +15217,7 @@ const _hoisted_4$h = {
15418
15217
  class: "g-user-avatar__badge"
15419
15218
  };
15420
15219
  const _hoisted_5$c = { class: "g-user-drawer" };
15421
- const _hoisted_6$a = { class: "user-avatar__drawer-header" };
15220
+ const _hoisted_6$b = { class: "user-avatar__drawer-header" };
15422
15221
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
15423
15222
  ...{
15424
15223
  name: "UserAvatar"
@@ -15611,7 +15410,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
15611
15410
  }, {
15612
15411
  default: withCtx(() => [
15613
15412
  createElementVNode("div", null, [
15614
- createElementVNode("div", _hoisted_6$a, [
15413
+ createElementVNode("div", _hoisted_6$b, [
15615
15414
  createVNode(unref(Button), {
15616
15415
  class: "draw-side-bar-close",
15617
15416
  icon: "close",
@@ -16142,7 +15941,7 @@ const _hoisted_2$m = ["innerHTML"];
16142
15941
  const _hoisted_3$l = { class: "g-header-search-suffix-splitline" };
16143
15942
  const _hoisted_4$g = { class: "g-header-search-suffix-suffixIcon" };
16144
15943
  const _hoisted_5$b = { class: "history-list" };
16145
- const _hoisted_6$9 = {
15944
+ const _hoisted_6$a = {
16146
15945
  key: 1,
16147
15946
  class: "aireposearch aireposearch--flex"
16148
15947
  };
@@ -16159,12 +15958,12 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
16159
15958
  setup(__props) {
16160
15959
  const layoutConfig2 = useLayoutConfig();
16161
15960
  const { t: $t } = i18n.global;
16162
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B1B_ylR5.js"));
16163
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-DXsK2ra4.js"));
16164
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DJ6iKp30.js"));
16165
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-kUU1YE6C.js"));
16166
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-xTv1h5WH.js"));
16167
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-3QMNGnAW.js"));
15961
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D7so4Y5b.js"));
15962
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-sYipfTC1.js"));
15963
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-8m-1kram.js"));
15964
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-E2zinsuS.js"));
15965
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CsOUkAzu.js"));
15966
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-D7yqw2C4.js"));
16168
15967
  const props = __props;
16169
15968
  const repoInfo = inject("repoInfo", computed(() => void 0));
16170
15969
  const orgInfo = inject("orgInfo", computed(() => void 0));
@@ -16848,7 +16647,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
16848
16647
  _: 3
16849
16648
  }, 8, ["overlay-class", "visible"])
16850
16649
  ], 2)) : createCommentVNode("", true),
16851
- _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$9, [
16650
+ _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
16852
16651
  createVNode(unref(Input), {
16853
16652
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
16854
16653
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -16874,8 +16673,8 @@ const _hoisted_2$l = { class: "announce-mobile-bottom" };
16874
16673
  const _hoisted_3$k = ["href"];
16875
16674
  const _hoisted_4$f = { class: "announce-content" };
16876
16675
  const _hoisted_5$a = { class: "announce-content-inner" };
16877
- const _hoisted_6$8 = ["href"];
16878
- const _hoisted_7$7 = { class: "announce-handle-wrapper" };
16676
+ const _hoisted_6$9 = ["href"];
16677
+ const _hoisted_7$8 = { class: "announce-handle-wrapper" };
16879
16678
  const ANNOUNCE_STATUS_KEY = "site_announcement_status";
16880
16679
  const _sfc_main$v = /* @__PURE__ */ defineComponent({
16881
16680
  ...{ name: "SiteAnnouncement" },
@@ -16957,10 +16756,10 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16957
16756
  createElementVNode("a", {
16958
16757
  class: "announce-detail",
16959
16758
  href: migrationAnnounceUrl.value
16960
- }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$8)
16759
+ }, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.viewDetail")), 9, _hoisted_6$9)
16961
16760
  ])
16962
16761
  ]),
16963
- createElementVNode("div", _hoisted_7$7, [
16762
+ createElementVNode("div", _hoisted_7$8, [
16964
16763
  createElementVNode("span", {
16965
16764
  class: "announce-handle",
16966
16765
  onClick: _cache[1] || (_cache[1] = ($event) => handleClose())
@@ -17104,8 +16903,19 @@ function resolveHomeHeaderActionUrls(items, fallbacks, transformers) {
17104
16903
  const _hoisted_1$q = { class: "home-header-actions" };
17105
16904
  const _hoisted_2$k = { class: "home-header-actions__menu" };
17106
16905
  const _hoisted_3$j = ["href"];
17107
- const _hoisted_4$e = ["href"];
17108
- const _hoisted_5$9 = { class: "home-header-actions__workspace-text" };
16906
+ const _hoisted_4$e = {
16907
+ key: 0,
16908
+ class: "home-header-actions__menu-icon",
16909
+ width: "16",
16910
+ height: "16",
16911
+ viewBox: "0 0 16 16",
16912
+ fill: "none",
16913
+ xmlns: "http://www.w3.org/2000/svg",
16914
+ "aria-hidden": "true"
16915
+ };
16916
+ const _hoisted_5$9 = { class: "home-header-actions__menu-text" };
16917
+ const _hoisted_6$8 = ["href"];
16918
+ const _hoisted_7$7 = { class: "home-header-actions__workspace-text" };
17109
16919
  const _sfc_main$u = /* @__PURE__ */ defineComponent({
17110
16920
  ...{
17111
16921
  name: "HomeHeaderActions"
@@ -17115,7 +16925,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17115
16925
  customItems: { default: void 0 },
17116
16926
  fallbacks: { default: () => ({}) },
17117
16927
  workspaceNavigate: { type: Function, default: void 0 },
17118
- isLogin: { type: Boolean, default: false }
16928
+ isLogin: { type: Boolean, default: false },
16929
+ independence: { type: Boolean, default: false }
17119
16930
  },
17120
16931
  setup(__props) {
17121
16932
  const props = __props;
@@ -17163,23 +16974,28 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17163
16974
  const discoverLinks = computed(() => [
17164
16975
  {
17165
16976
  label: t2("gitCodeLayout.home.learnCenter"),
17166
- href: actionUrls.value.learn
16977
+ href: actionUrls.value.learn,
16978
+ icon: "gt-plane-knowledgeBase"
17167
16979
  },
17168
16980
  {
17169
16981
  label: t2("gitCodeLayout.home.space"),
17170
- href: actionUrls.value.space
16982
+ href: actionUrls.value.space,
16983
+ icon: "gt-plane-Space"
17171
16984
  },
17172
16985
  {
17173
16986
  label: t2("gitCodeLayout.home.schoolParty"),
17174
- href: actionUrls.value.schoolParty
16987
+ href: actionUrls.value.schoolParty,
16988
+ icon: "gt-plane-activity"
17175
16989
  },
17176
16990
  {
17177
16991
  label: t2("gitCodeLayout.home.competition"),
17178
- href: actionUrls.value.competition
16992
+ href: actionUrls.value.competition,
16993
+ customIcon: "growthCenter"
17179
16994
  },
17180
16995
  {
17181
16996
  label: t2("gitCodeLayout.header.applicationMarket"),
17182
- href: actionUrls.value.marketplace
16997
+ href: actionUrls.value.marketplace,
16998
+ icon: "gt-plane-application"
17183
16999
  }
17184
17000
  ]);
17185
17001
  function onWorkspaceClick(event) {
@@ -17202,7 +17018,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17202
17018
  });
17203
17019
  return;
17204
17020
  }
17205
- if (typeof window !== "undefined" && new URL(href).origin !== window.location.origin) {
17021
+ if (typeof window !== "undefined" && (props.independence || new URL(href).origin !== window.location.origin)) {
17206
17022
  window.location.href = href;
17207
17023
  return;
17208
17024
  }
@@ -17252,7 +17068,25 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17252
17068
  href: item.href,
17253
17069
  class: "home-header-actions__menu-item",
17254
17070
  onClick: _cache[0] || (_cache[0] = ($event) => isDiscoverOpen.value = false)
17255
- }, toDisplayString$1(item.label), 9, _hoisted_3$j);
17071
+ }, [
17072
+ item.customIcon === "growthCenter" ? (openBlock(), createElementBlock("svg", _hoisted_4$e, _cache[1] || (_cache[1] = [
17073
+ createElementVNode("path", {
17074
+ 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",
17075
+ fill: "#BCBCD0"
17076
+ }, null, -1),
17077
+ createElementVNode("path", {
17078
+ d: "M13.1048 6.34921C13.1048 6.28571 13.1175 6.20952 13.1175 6.14603C13.1175 6.19683 13.1048 6.26032 13.1048 6.31111V6.34921Z",
17079
+ fill: "#333333"
17080
+ }, null, -1)
17081
+ ]))) : item.icon ? (openBlock(), createBlock(GIcon, {
17082
+ key: 1,
17083
+ name: item.icon,
17084
+ size: "16px",
17085
+ color: "currentColor",
17086
+ class: "home-header-actions__menu-icon"
17087
+ }, null, 8, ["name"])) : createCommentVNode("", true),
17088
+ createElementVNode("span", _hoisted_5$9, toDisplayString$1(item.label), 1)
17089
+ ], 8, _hoisted_3$j);
17256
17090
  }), 128))
17257
17091
  ])
17258
17092
  ]),
@@ -17283,8 +17117,8 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
17283
17117
  size: "16px",
17284
17118
  color: "currentColor"
17285
17119
  }),
17286
- createElementVNode("span", _hoisted_5$9, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
17287
- ], 8, _hoisted_4$e)
17120
+ createElementVNode("span", _hoisted_7$7, toDisplayString$1(unref(t2)("gitCodeLayout.header.myWorkbench")), 1)
17121
+ ], 8, _hoisted_6$8)
17288
17122
  ]);
17289
17123
  };
17290
17124
  }
@@ -17308,7 +17142,17 @@ const _hoisted_8$6 = { class: "atomcode-launch-item__title-row" };
17308
17142
  const _hoisted_9$6 = { class: "atomcode-launch-item__title" };
17309
17143
  const _hoisted_10$6 = ["href"];
17310
17144
  const _hoisted_11$5 = { class: "atomcode-launch-item__title-row" };
17311
- const _hoisted_12$5 = { class: "atomcode-launch-item__title" };
17145
+ const _hoisted_12$5 = {
17146
+ class: "atomcode-item-icon",
17147
+ width: "16",
17148
+ height: "16",
17149
+ viewBox: "0 0 16 16",
17150
+ fill: "none",
17151
+ xmlns: "http://www.w3.org/2000/svg",
17152
+ style: { "transform": "scaleY(-1)" },
17153
+ "aria-hidden": "true"
17154
+ };
17155
+ const _hoisted_13$3 = { class: "atomcode-launch-item__title" };
17312
17156
  const _sfc_main$t = /* @__PURE__ */ defineComponent({
17313
17157
  ...{
17314
17158
  name: "AtomCodeLauncher"
@@ -17403,7 +17247,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17403
17247
  }, [
17404
17248
  createElementVNode("div", _hoisted_4$d, [
17405
17249
  createVNode(GIcon, {
17406
- name: "gt-link",
17250
+ name: "gt-plane-share",
17407
17251
  size: "16px",
17408
17252
  color: "currentColor",
17409
17253
  class: "atomcode-item-icon"
@@ -17422,7 +17266,7 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17422
17266
  }, [
17423
17267
  createElementVNode("div", _hoisted_8$6, [
17424
17268
  createVNode(GIcon, {
17425
- name: "gt-link",
17269
+ name: "gt-plane-consulting",
17426
17270
  size: "16px",
17427
17271
  color: "currentColor",
17428
17272
  class: "atomcode-item-icon"
@@ -17439,13 +17283,20 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
17439
17283
  "data-atomcode-cli": ""
17440
17284
  }, [
17441
17285
  createElementVNode("div", _hoisted_11$5, [
17442
- createVNode(GIcon, {
17443
- name: "gt-line-upload",
17444
- size: "16px",
17445
- color: "currentColor",
17446
- class: "atomcode-item-icon"
17447
- }),
17448
- createElementVNode("span", _hoisted_12$5, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
17286
+ (openBlock(), createElementBlock("svg", _hoisted_12$5, _cache[0] || (_cache[0] = [
17287
+ createElementVNode("rect", {
17288
+ opacity: "0.5",
17289
+ x: "2",
17290
+ width: "12",
17291
+ height: "2",
17292
+ fill: "#BCBCD0"
17293
+ }, null, -1),
17294
+ createElementVNode("path", {
17295
+ d: "M14.707 9.79282L13.2929 11.2069L8.99992 6.91391V15.9998H6.99992V6.91391L2.70696 11.2069L1.29289 9.79282L7.99992 3.08579L14.707 9.79282Z",
17296
+ fill: "#BCBCD0"
17297
+ }, null, -1)
17298
+ ]))),
17299
+ createElementVNode("span", _hoisted_13$3, toDisplayString$1(unref(t2)("gitCodeLayout.atomCode.downloadCli")), 1)
17449
17300
  ])
17450
17301
  ], 8, _hoisted_10$6)
17451
17302
  ])
@@ -17503,7 +17354,7 @@ const vElementExposure = {
17503
17354
  beforeUnmount() {
17504
17355
  }
17505
17356
  };
17506
- const NoticeModal = defineAsyncComponent(() => import("./notice-BHOroXPp.js"));
17357
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CjPGlCcz.js"));
17507
17358
  function clearNotice() {
17508
17359
  if (localStorage$2.getItem("validator_email")) {
17509
17360
  localStorage$2.removeItem("validator_email");
@@ -18094,8 +17945,9 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
18094
17945
  !inAIHub.value ? renderSlot(_ctx.$slots, "headerActions", { key: 1 }, () => [
18095
17946
  createVNode(HomeHeaderActions, {
18096
17947
  "workspace-navigate": props.workspaceNavigate,
18097
- isLogin: props.isLogin
18098
- }, null, 8, ["workspace-navigate", "isLogin"])
17948
+ isLogin: props.isLogin,
17949
+ independence: props.independence
17950
+ }, null, 8, ["workspace-navigate", "isLogin", "independence"])
18099
17951
  ], true) : createCommentVNode("", true),
18100
17952
  isClaimRowVisible.value ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
18101
17953
  createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
@@ -19620,7 +19472,10 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
19620
19472
  launchAtomCode: _ctx.launchAtomCode
19621
19473
  }, null, 8, ["atomcodeLaunchQs", "isLogin", "launchAtomCode"])
19622
19474
  ], true) : createCommentVNode("", true),
19623
- createVNode(HomeHeaderActions, { isLogin: _ctx.isLogin }, null, 8, ["isLogin"]),
19475
+ createVNode(HomeHeaderActions, {
19476
+ isLogin: _ctx.isLogin,
19477
+ independence: _ctx.independence
19478
+ }, null, 8, ["isLogin", "independence"]),
19624
19479
  !_ctx.isLogin ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19625
19480
  !unref(isMobile) ? (openBlock(), createElementBlock("div", _hoisted_8$3)) : createCommentVNode("", true),
19626
19481
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
@@ -19663,6 +19518,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
19663
19518
  dropdownVisible: _ctx.openCreateDropdown,
19664
19519
  items: _ctx.createMenuItems,
19665
19520
  onNavigate: _ctx.createMenuNavigate,
19521
+ "is-create-enterprise": "",
19666
19522
  "onUpdate:dropdownVisible": _cache[3] || (_cache[3] = ($event) => emit("update:openCreateDropdown", $event))
19667
19523
  }, null, 8, ["dropdownVisible", "items", "onNavigate"])) : createCommentVNode("", true),
19668
19524
  isModuleVisible(unref(HeaderDisplayItem).MESSAGE_CENTER) ? (openBlock(), createBlock(Notice, { key: 2 })) : createCommentVNode("", true),
@@ -19930,9 +19786,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19930
19786
  const layoutConfig2 = useLayoutConfig();
19931
19787
  const { t: t2 } = i18n.global;
19932
19788
  const route = useRoute();
19933
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-xIMjCwZH.js"));
19934
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-NUlc_WSF.js"));
19935
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CUzk1aT1.js"));
19789
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-CWZ5KP6I.js"));
19790
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CgD8Qw8R.js"));
19791
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-D0DTp4x5.js"));
19936
19792
  const props = __props;
19937
19793
  const useReport2 = inject("useReport");
19938
19794
  const userInfo = inject("userInfo");
@@ -26385,7 +26241,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
26385
26241
  __publicField(_SlidCaptchaManager, "instance");
26386
26242
  let SlidCaptchaManager = _SlidCaptchaManager;
26387
26243
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
26388
- const SlidCaptcha = defineAsyncComponent(() => import("./index-DoT6AhvJ.js"));
26244
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Dq_QwsS1.js"));
26389
26245
  const useSlidCaptcha = () => {
26390
26246
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
26391
26247
  const open = (config) => {
@@ -26415,7 +26271,7 @@ const useSlidCaptcha = () => {
26415
26271
  close
26416
26272
  };
26417
26273
  };
26418
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-BFQb7Dbz.js"));
26274
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-BsRXUfO7.js"));
26419
26275
  const useYunpianCaptcha = () => {
26420
26276
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
26421
26277
  const open = (config) => {