vue-layout-gitcode 1.12.14 → 1.12.15-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
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, openBlock, createBlock, unref, normalizeProps, mergeProps, createElementBlock, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, watch, isRef, getCurrentInstance, ref, shallowRef, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, guardReactiveProps, resolveDirective, withDirectives, onBeforeUnmount, markRaw, resolveDynamicComponent, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots } from "vue";
4
+ import { defineComponent, computed, openBlock, createBlock, unref, normalizeProps, mergeProps, createElementBlock, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, watch, isRef, getCurrentInstance, ref, shallowRef, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, resolveComponent, watchEffect, guardReactiveProps, resolveDirective, withDirectives, onBeforeUnmount, markRaw, resolveDynamicComponent, nextTick, useAttrs, defineAsyncComponent, vShow, withKeys, useCssVars, createSlots, render, toRaw, useModel as useModel$1, mergeModels, watchPostEffect, useSlots } from "vue";
5
5
  import { Button } from "vue-devui-lal/button";
6
6
  import { Popover } from "vue-devui-lal/popover";
7
7
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -57,9 +57,9 @@ import { Checkbox } from "vue-devui-lal/checkbox";
57
57
  import "vue-devui-lal/checkbox/style.css";
58
58
  import { Modal } from "vue-devui-lal/modal";
59
59
  import "vue-devui-lal/modal/style.css";
60
- const _hoisted_1$B = ["xlink:href"];
61
- const _hoisted_2$q = ["xlink:href"];
62
- const _sfc_main$I = /* @__PURE__ */ defineComponent({
60
+ const _hoisted_1$C = ["xlink:href"];
61
+ const _hoisted_2$r = ["xlink:href"];
62
+ const _sfc_main$J = /* @__PURE__ */ defineComponent({
63
63
  __name: "index",
64
64
  props: {
65
65
  name: { default: "gt-run" },
@@ -88,7 +88,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
88
88
  }, [
89
89
  createElementVNode("use", {
90
90
  "xlink:href": `#${__props.name}`
91
- }, null, 8, _hoisted_1$B)
91
+ }, null, 8, _hoisted_1$C)
92
92
  ], 6)),
93
93
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
94
94
  ], 2)) : (openBlock(), createElementBlock("svg", {
@@ -99,7 +99,7 @@ const _sfc_main$I = /* @__PURE__ */ defineComponent({
99
99
  }, [
100
100
  createElementVNode("use", {
101
101
  "xlink:href": `#${__props.name}`
102
- }, null, 8, _hoisted_2$q)
102
+ }, null, 8, _hoisted_2$r)
103
103
  ], 6));
104
104
  };
105
105
  }
@@ -111,7 +111,7 @@ const _export_sfc = (sfc, props) => {
111
111
  }
112
112
  return target;
113
113
  };
114
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
114
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-vue-layout-gitcode"]]);
115
115
  const defaultConfig = {
116
116
  VITE_ENV: "production",
117
117
  VITE_HOST: "https://gitcode.com",
@@ -9118,9 +9118,9 @@ const currentHelpDocsAiCommunityUrl = () => {
9118
9118
  const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
9119
9119
  return appendLangPathToHelpDocsUrl(baseUrl);
9120
9120
  };
9121
- const _hoisted_1$A = { class: "home-nav-right" };
9122
- const _hoisted_2$p = { class: "home-nav-item" };
9123
- const _hoisted_3$o = { class: "tooltip-sign" };
9121
+ const _hoisted_1$B = { class: "home-nav-right" };
9122
+ const _hoisted_2$q = { class: "home-nav-item" };
9123
+ const _hoisted_3$p = { class: "tooltip-sign" };
9124
9124
  const _hoisted_4$j = { class: "home-nav-tooltip-wrapper" };
9125
9125
  const _hoisted_5$f = { class: "home-nav-text" };
9126
9126
  const _hoisted_6$d = { class: "home-nav-tooltip-wrapper" };
@@ -9131,11 +9131,11 @@ const _hoisted_8$9 = {
9131
9131
  };
9132
9132
  const _hoisted_9$7 = { class: "home-nav-tooltip-wrapper" };
9133
9133
  const _hoisted_10$7 = { class: "home-nav-text" };
9134
- const _hoisted_11$6 = { class: "text-[var(--theme-placeholder)] text-[10px]" };
9134
+ const _hoisted_11$6 = { class: "tools-float-feedback-sub" };
9135
9135
  const _hoisted_12$5 = { class: "qrcode-wrapper" };
9136
- const _hoisted_13$2 = { class: "pl-[8px]" };
9136
+ const _hoisted_13$2 = { class: "qrcode-wrapper__title" };
9137
9137
  const _hoisted_14$2 = { class: "tools-list-item" };
9138
- const _hoisted_15$2 = { class: "g-card px-5 pt-4 pb-5 w-[410px]" };
9138
+ const _hoisted_15$2 = { class: "g-card tools-float-nps-card" };
9139
9139
  const _hoisted_16$2 = {
9140
9140
  key: 0,
9141
9141
  class: "opinion-box"
@@ -9144,35 +9144,35 @@ const _hoisted_17$2 = { class: "tab-step" };
9144
9144
  const _hoisted_18$2 = ["onClick"];
9145
9145
  const _hoisted_19$2 = {
9146
9146
  key: 0,
9147
- class: "rate relative overflow-hidden"
9147
+ class: "rate tools-float-stage"
9148
9148
  };
9149
9149
  const _hoisted_20$2 = {
9150
9150
  key: 0,
9151
- class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
9151
+ class: "tools-float-stage__corner"
9152
9152
  };
9153
- const _hoisted_21$2 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
9154
- const _hoisted_22$2 = { class: "flex gap-1 items-center mt-3" };
9153
+ const _hoisted_21$2 = { class: "tools-float-stage__title" };
9154
+ const _hoisted_22$2 = { class: "tools-float-stage__rate-row" };
9155
9155
  const _hoisted_23$1 = ["onMouseover", "onClick"];
9156
9156
  const _hoisted_24$1 = {
9157
9157
  key: 1,
9158
- class: "Opinion relative overflow-hidden"
9158
+ class: "Opinion tools-float-stage"
9159
9159
  };
9160
9160
  const _hoisted_25$1 = {
9161
9161
  key: 0,
9162
- class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
9162
+ class: "tools-float-stage__corner"
9163
9163
  };
9164
- const _hoisted_26$1 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
9165
- const _hoisted_27$1 = { class: "mt-3" };
9164
+ const _hoisted_26$1 = { class: "tools-float-stage__title" };
9165
+ const _hoisted_27$1 = { class: "tools-float-stage__textarea" };
9166
9166
  const _hoisted_28$1 = {
9167
9167
  key: 1,
9168
- class: "finish flex items-center"
9168
+ class: "finish tools-float-finish"
9169
9169
  };
9170
- const _hoisted_29$1 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
9171
- const _hoisted_30$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
9170
+ const _hoisted_29$1 = { class: "tools-float-finish__icon" };
9171
+ const _hoisted_30$1 = { class: "tools-float-finish__text" };
9172
9172
  const _hoisted_31$1 = { class: "home-nav-item collapse-tool" };
9173
9173
  const _hoisted_32$1 = { class: "home-nav-item" };
9174
9174
  const _hoisted_33$1 = ["src", "alt"];
9175
- const _sfc_main$H = /* @__PURE__ */ defineComponent({
9175
+ const _sfc_main$I = /* @__PURE__ */ defineComponent({
9176
9176
  __name: "index",
9177
9177
  props: {
9178
9178
  sceneValue: { default: SceneValue.home },
@@ -9414,7 +9414,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9414
9414
  size: "18px"
9415
9415
  })
9416
9416
  ])) : createCommentVNode("", true),
9417
- createElementVNode("div", _hoisted_1$A, [
9417
+ createElementVNode("div", _hoisted_1$B, [
9418
9418
  inviteVisible.value && isModuleVisible(unref(ToolsFloatDisplayItem).INVITE) ? (openBlock(), createBlock(unref(Tooltip), {
9419
9419
  key: 0,
9420
9420
  position: "left",
@@ -9430,13 +9430,13 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9430
9430
  class: "home-nav-link computing",
9431
9431
  onClick: handleInvite
9432
9432
  }, [
9433
- createElementVNode("div", _hoisted_2$p, [
9433
+ createElementVNode("div", _hoisted_2$q, [
9434
9434
  _cache[5] || (_cache[5] = createElementVNode("img", {
9435
- class: "common-icon inline-block h-[20px] w-[20px]",
9435
+ class: "common-icon tools-float-icon",
9436
9436
  src: "https://cdn-static.gitcode.com/static/images/homeweb/invite.svg",
9437
9437
  alt: ""
9438
9438
  }, null, -1)),
9439
- createElementVNode("div", _hoisted_3$o, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
9439
+ createElementVNode("div", _hoisted_3$p, toDisplayString$1(unref(t2)("gitCodeLayout.growthCenter.invite")), 1)
9440
9440
  ])
9441
9441
  ])
9442
9442
  ]),
@@ -9460,7 +9460,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9460
9460
  }, [..._cache[6] || (_cache[6] = [
9461
9461
  createElementVNode("div", { class: "home-nav-item" }, [
9462
9462
  createElementVNode("img", {
9463
- class: "common-icon inline-block h-[20px] w-[20px]",
9463
+ class: "common-icon tools-float-icon",
9464
9464
  src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
9465
9465
  alt: ""
9466
9466
  })
@@ -9483,14 +9483,14 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9483
9483
  ])
9484
9484
  ]),
9485
9485
  default: withCtx(() => [
9486
- createElementVNode("div", { class: "tools-list-item mb-[2px]" }, [
9486
+ createElementVNode("div", { class: "tools-list-item tools-list-item--gap" }, [
9487
9487
  createElementVNode("div", {
9488
9488
  id: "gitcode-desk-btn",
9489
9489
  class: "home-nav-item kefu",
9490
9490
  onClick: showDesk
9491
9491
  }, [..._cache[7] || (_cache[7] = [
9492
9492
  createElementVNode("img", {
9493
- class: "inline-block h-[20px] w-[20px]",
9493
+ class: "tools-float-icon",
9494
9494
  src: "https://cdn-static.gitcode.com/static/images/desk/kefu.png",
9495
9495
  alt: ""
9496
9496
  }, null, -1),
@@ -9520,12 +9520,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9520
9520
  _cache[9] || (_cache[9] = createElementVNode("a", { class: "home-nav-link tools-list-item" }, [
9521
9521
  createElementVNode("div", { class: "home-nav-item" }, [
9522
9522
  createElementVNode("img", {
9523
- class: "common-icon inline-block h-[20px] w-[20px]",
9523
+ class: "common-icon tools-float-icon",
9524
9524
  src: "https://cdn-static.gitcode.com/static/images/desk/follow-us.svg",
9525
9525
  alt: ""
9526
9526
  }),
9527
9527
  createElementVNode("img", {
9528
- class: "active-icon inline-block h-[20px] w-[20px]",
9528
+ class: "active-icon tools-float-icon",
9529
9529
  src: "https://cdn-static.gitcode.com/static/images/desk/follow-us-hover.svg",
9530
9530
  alt: ""
9531
9531
  })
@@ -9549,10 +9549,10 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9549
9549
  (openBlock(), createElementBlock(Fragment, null, renderList(opinionStepList, (item) => {
9550
9550
  return createElementVNode("div", {
9551
9551
  key: item.index,
9552
- class: normalizeClass(["tab-item w-8 h-1 mr-1 cursor-pointer", opinionStep.value === item.index ? "bg-[var(--theme-home-step-active-bg)]" : "bg-[var(--theme-home-step-bg)]"]),
9552
+ class: normalizeClass(["tab-item", opinionStep.value === item.index ? "tab-item--active" : "tab-item--inactive"]),
9553
9553
  onClick: ($event) => swTab(item)
9554
9554
  }, [..._cache[11] || (_cache[11] = [
9555
- createElementVNode("span", { class: "cursor-pointer" }, null, -1)
9555
+ createElementVNode("span", { class: "tools-float-cursor-pointer" }, null, -1)
9556
9556
  ])], 10, _hoisted_18$2);
9557
9557
  }), 64))
9558
9558
  ]),
@@ -9568,7 +9568,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9568
9568
  (openBlock(), createElementBlock(Fragment, null, renderList(rateIcon, (ico) => {
9569
9569
  return createElementVNode("div", {
9570
9570
  key: ico.name,
9571
- class: normalizeClass(["opinion-item cursor-pointer border border-[var(--theme-line-border)] rounded-[3px] px-2 py-1.5", { active: rateNow.value === ico.index }]),
9571
+ class: normalizeClass(["opinion-item", { active: rateNow.value === ico.index }]),
9572
9572
  onMouseover: ($event) => activeOp(ico.index),
9573
9573
  onMouseleave: _cache[1] || (_cache[1] = ($event) => activeOp(null)),
9574
9574
  onClick: ($event) => selectOpinion(ico)
@@ -9638,12 +9638,12 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9638
9638
  default: withCtx(() => [..._cache[10] || (_cache[10] = [
9639
9639
  createElementVNode("div", { class: "home-nav-item" }, [
9640
9640
  createElementVNode("img", {
9641
- class: "common-icon inline-block h-[20px] w-[20px]",
9641
+ class: "common-icon tools-float-icon",
9642
9642
  src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile.png",
9643
9643
  alt: ""
9644
9644
  }),
9645
9645
  createElementVNode("img", {
9646
- class: "active-icon inline-block h-[20px] w-[20px]",
9646
+ class: "active-icon tools-float-icon",
9647
9647
  src: "https://cdn-static.gitcode.com/static/images/desk/plane-smile-hover.png",
9648
9648
  alt: ""
9649
9649
  })
@@ -9682,7 +9682,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9682
9682
  default: withCtx(() => [
9683
9683
  showScrollToTopBtn.value ? (openBlock(), createElementBlock("div", {
9684
9684
  key: 0,
9685
- class: "ml-[auto] home-nav-link tools-questionnaire",
9685
+ class: "home-nav-link tools-questionnaire tools-float-scroll-top",
9686
9686
  onClick: _cache[4] || (_cache[4] = //@ts-ignore
9687
9687
  (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
9688
9688
  }, [
@@ -9698,7 +9698,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9698
9698
  }),
9699
9699
  isModuleVisible(unref(ToolsFloatDisplayItem).AD) && activeAdItem.value && activeAdItem.value.imgUrl ? (openBlock(), createElementBlock("div", {
9700
9700
  key: 3,
9701
- class: "active-tips mt-[16px]",
9701
+ class: "active-tips",
9702
9702
  onClick: withModifiers(handleActive, ["stop"])
9703
9703
  }, [
9704
9704
  createElementVNode("div", {
@@ -9716,7 +9716,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9716
9716
  };
9717
9717
  }
9718
9718
  });
9719
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9719
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9720
9720
  var repoTypeEnum = /* @__PURE__ */ ((repoTypeEnum2) => {
9721
9721
  repoTypeEnum2["NORMAL"] = "0";
9722
9722
  repoTypeEnum2["MODEL"] = "1";
@@ -9858,8 +9858,8 @@ const collectRegisterLoginEvent = ({ isRegister, registerLoginMethod, success, e
9858
9858
  delete reportData["utm_source"];
9859
9859
  window.collectEvent("beconEvent", isRegister ? "register" : "login", reportData);
9860
9860
  };
9861
- const _hoisted_1$z = ["href", "target", "disabled"];
9862
- const _sfc_main$G = /* @__PURE__ */ defineComponent({
9861
+ const _hoisted_1$A = ["href", "target", "disabled"];
9862
+ const _sfc_main$H = /* @__PURE__ */ defineComponent({
9863
9863
  ...{
9864
9864
  name: "GLink"
9865
9865
  },
@@ -9903,11 +9903,11 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
9903
9903
  disabled: __props.disabled || __props.noPointer
9904
9904
  }, [
9905
9905
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
9906
- ], 10, _hoisted_1$z));
9906
+ ], 10, _hoisted_1$A));
9907
9907
  };
9908
9908
  }
9909
9909
  });
9910
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9910
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["__scopeId", "data-v-vue-layout-gitcode"]]);
9911
9911
  const headerHeight = ref(56);
9912
9912
  const useHeaderHeight = () => {
9913
9913
  const setHeaderHeight = (height) => {
@@ -10468,7 +10468,7 @@ if (isBrowser) {
10468
10468
  }
10469
10469
  const sessionStorage$1 = sessionStorage;
10470
10470
  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";
10471
- const _sfc_main$F = /* @__PURE__ */ defineComponent({
10471
+ const _sfc_main$G = /* @__PURE__ */ defineComponent({
10472
10472
  ...{
10473
10473
  name: "GAvatar"
10474
10474
  },
@@ -10514,8 +10514,8 @@ const _sfc_main$F = /* @__PURE__ */ defineComponent({
10514
10514
  };
10515
10515
  }
10516
10516
  });
10517
- const _hoisted_1$y = ["src"];
10518
- const _sfc_main$E = /* @__PURE__ */ defineComponent({
10517
+ const _hoisted_1$z = ["src"];
10518
+ const _sfc_main$F = /* @__PURE__ */ defineComponent({
10519
10519
  ...{ name: "FlashTag" },
10520
10520
  __name: "FlashTag",
10521
10521
  props: {
@@ -10554,13 +10554,13 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
10554
10554
  }, {
10555
10555
  default: withCtx(() => [
10556
10556
  createElementVNode("span", mergeProps({
10557
- class: ["gc-flash-tag cursor-default", { "gc-trusted-tag": __props.trusted, "cursor-pointer": __props.clickEnabled, "cursor-default": !__props.clickEnabled, "gc-icon-tag": __props.icon }]
10557
+ class: ["gc-flash-tag", { "gc-trusted-tag": __props.trusted, "gc-flash-tag--clickable": __props.clickEnabled, "gc-flash-tag--default": !__props.clickEnabled, "gc-icon-tag": __props.icon }]
10558
10558
  }, _ctx.$attrs, { onClick: handleClick }), [
10559
10559
  __props.icon ? (openBlock(), createElementBlock("img", {
10560
10560
  key: 0,
10561
- class: "w-[16px] h-[16px]",
10561
+ class: "gc-flash-tag__icon",
10562
10562
  src: iconUrl.value
10563
- }, null, 8, _hoisted_1$y)) : renderSlot(_ctx.$slots, "default", { key: 1 })
10563
+ }, null, 8, _hoisted_1$z)) : renderSlot(_ctx.$slots, "default", { key: 1 })
10564
10564
  ], 16)
10565
10565
  ]),
10566
10566
  _: 3
@@ -11368,66 +11368,66 @@ const useTimeFormat = () => {
11368
11368
  formatTime
11369
11369
  };
11370
11370
  };
11371
- const _hoisted_1$x = {
11371
+ const _hoisted_1$y = {
11372
11372
  key: 0,
11373
11373
  class: "org-layout-toolbar"
11374
11374
  };
11375
- const _hoisted_2$o = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
11376
- const _hoisted_3$n = { class: "text-xs" };
11377
- const _hoisted_4$i = { class: "flex items-center w-full g-repo-breadcrumb-custom" };
11375
+ const _hoisted_2$p = { class: "org-layout-toolbar-title ellipsis-two-line" };
11376
+ const _hoisted_3$o = { class: "header-custom-btn-label" };
11377
+ const _hoisted_4$i = { class: "g-repo-breadcrumb-custom" };
11378
11378
  const _hoisted_5$e = {
11379
11379
  key: 1,
11380
- class: "flex items-center min-w-[30px]"
11380
+ class: "header-custom-mirrors-avatar"
11381
11381
  };
11382
11382
  const _hoisted_6$c = {
11383
11383
  key: 0,
11384
11384
  src: _imports_0,
11385
11385
  alt: "mirrors-avatar-phone",
11386
- class: "h-[24px] w-[24px]"
11386
+ class: "header-custom-mirrors-img"
11387
11387
  };
11388
11388
  const _hoisted_7$9 = {
11389
11389
  key: 1,
11390
11390
  src: "https://cdn-static.gitcode.com/static/images/mirrors-avata_20250411.gif",
11391
11391
  alt: "mirrors-avatar",
11392
- class: "h-[24px]"
11392
+ class: "header-custom-mirrors-img-tall"
11393
11393
  };
11394
11394
  const _hoisted_8$8 = { class: "g-repo-breadcrumb-container" };
11395
11395
  const _hoisted_9$6 = {
11396
11396
  key: 0,
11397
- class: "flex items-center w-full"
11397
+ class: "header-custom-breadcrumb-row"
11398
11398
  };
11399
11399
  const _hoisted_10$6 = ["title"];
11400
11400
  const _hoisted_11$5 = ["title"];
11401
11401
  const _hoisted_12$4 = {
11402
11402
  key: 0,
11403
- class: "mb-[2px]"
11403
+ class: "header-custom-tag-mb"
11404
11404
  };
11405
11405
  const _hoisted_13$1 = {
11406
11406
  key: 1,
11407
- class: "mb-[2px]"
11407
+ class: "header-custom-tag-mb"
11408
11408
  };
11409
11409
  const _hoisted_14$1 = {
11410
11410
  key: 2,
11411
- class: "mb-[2px]"
11411
+ class: "header-custom-tag-mb"
11412
11412
  };
11413
11413
  const _hoisted_15$1 = {
11414
11414
  key: 3,
11415
- class: "mb-[2px]"
11415
+ class: "header-custom-tag-mb"
11416
11416
  };
11417
- const _hoisted_16$1 = { class: "ml-[4px] max-w-[120px] overflow-ellipsis overflow-hidden whitespace-nowrap" };
11417
+ const _hoisted_16$1 = { class: "header-custom-topic-label" };
11418
11418
  const _hoisted_17$1 = {
11419
11419
  key: 5,
11420
- class: "topic-tag flex items-center font-color-t2 gh_mirros_tag"
11420
+ class: "topic-tag font-color-t2 gh_mirros_tag"
11421
11421
  };
11422
- const _hoisted_18$1 = { class: "ml-[4px] max-w-[120px] overflow-ellipsis overflow-hidden whitespace-nowrap" };
11423
- const _hoisted_19$1 = { class: "flex items-center" };
11422
+ const _hoisted_18$1 = { class: "header-custom-topic-label" };
11423
+ const _hoisted_19$1 = { class: "header-custom-skeleton" };
11424
11424
  const _hoisted_20$1 = {
11425
11425
  key: 2,
11426
11426
  class: "user-layout-toolbar"
11427
11427
  };
11428
- const _hoisted_21$1 = { class: "user-layout-toolbar-title flex-1 ellipsis-two-line" };
11429
- const _hoisted_22$1 = { class: "text-xs" };
11430
- const _sfc_main$D = /* @__PURE__ */ defineComponent({
11428
+ const _hoisted_21$1 = { class: "user-layout-toolbar-title ellipsis-two-line" };
11429
+ const _hoisted_22$1 = { class: "header-custom-btn-label" };
11430
+ const _sfc_main$E = /* @__PURE__ */ defineComponent({
11431
11431
  __name: "HeaderCustom",
11432
11432
  props: {
11433
11433
  scene: { default: SceneValue.home },
@@ -11504,12 +11504,6 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11504
11504
  window.location.href = aiUrl;
11505
11505
  }
11506
11506
  };
11507
- const toHref = () => {
11508
- const router2 = useRouter();
11509
- const orgPath = router2.resolve({ name: "homepage" });
11510
- console.log("orgPath", orgPath);
11511
- return orgPath.href;
11512
- };
11513
11507
  const showTimeTopic = computed(() => {
11514
11508
  var _a, _b;
11515
11509
  if (props.scene !== SceneValue.repo) return false;
@@ -11552,19 +11546,16 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11552
11546
  document.removeEventListener("copy", handleBreadcrumbCopy);
11553
11547
  });
11554
11548
  return (_ctx, _cache) => {
11555
- var _a, _b;
11556
- return __props.scene === unref(SceneValue).org && !__props.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$x, [
11549
+ var _a, _b, _c;
11550
+ return __props.scene === unref(SceneValue).org && !__props.errorCode ? (openBlock(), createElementBlock("div", _hoisted_1$y, [
11557
11551
  createVNode(GLink, {
11558
- onClick: _cache[0] || (_cache[0] = (event) => {
11559
- event == null ? void 0 : event.preventDefault();
11560
- }),
11561
- href: toHref(),
11562
- class: "flex flex-1 items-center gap-[8px]"
11552
+ href: ((_a = __props.orgProps) == null ? void 0 : _a.orgHomepageUrl) || "",
11553
+ class: "header-custom-link"
11563
11554
  }, {
11564
11555
  default: withCtx(() => {
11565
- var _a2, _b2, _c;
11556
+ var _a2, _b2, _c2;
11566
11557
  return [
11567
- createVNode(_sfc_main$F, {
11558
+ createVNode(_sfc_main$G, {
11568
11559
  class: "g-border",
11569
11560
  src: (_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar,
11570
11561
  name: (_b2 = unref(orgInfo)) == null ? void 0 : _b2.name,
@@ -11572,13 +11563,13 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11572
11563
  height: 28,
11573
11564
  is_round: false
11574
11565
  }, null, 8, ["src", "name"]),
11575
- createElementVNode("div", _hoisted_2$o, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
11566
+ createElementVNode("div", _hoisted_2$p, toDisplayString$1((_c2 = unref(orgInfo)) == null ? void 0 : _c2.name), 1)
11576
11567
  ];
11577
11568
  }),
11578
11569
  _: 1
11579
11570
  }, 8, ["href"]),
11580
11571
  createVNode(unref(Button), {
11581
- onClick: _cache[1] || (_cache[1] = ($event) => {
11572
+ onClick: _cache[0] || (_cache[0] = ($event) => {
11582
11573
  var _a2;
11583
11574
  return handleOrgFollow((_a2 = __props.orgProps) == null ? void 0 : _a2.isOrgFollow);
11584
11575
  }),
@@ -11587,14 +11578,14 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11587
11578
  default: withCtx(() => {
11588
11579
  var _a2;
11589
11580
  return [
11590
- createElementVNode("span", _hoisted_3$n, toDisplayString$1(((_a2 = __props.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
11581
+ createElementVNode("span", _hoisted_3$o, toDisplayString$1(((_a2 = __props.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
11591
11582
  ];
11592
11583
  }),
11593
11584
  _: 1
11594
11585
  })
11595
11586
  ])) : __props.scene === unref(SceneValue).repo && !__props.errorCode ? (openBlock(), createBlock(unref(Skeleton), {
11596
11587
  key: 1,
11597
- loading: (_a = __props.repoProps) == null ? void 0 : _a.repoNameLoading,
11588
+ loading: (_b = __props.repoProps) == null ? void 0 : _b.repoNameLoading,
11598
11589
  rows: 1
11599
11590
  }, {
11600
11591
  placeholder: withCtx(() => [
@@ -11607,20 +11598,20 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11607
11598
  ])
11608
11599
  ]),
11609
11600
  default: withCtx(() => {
11610
- var _a2, _b2, _c, _d, _e, _f, _g;
11601
+ var _a2, _b2, _c2, _d, _e, _f, _g;
11611
11602
  return [
11612
11603
  createElementVNode("h2", _hoisted_4$i, [
11613
11604
  createVNode(GLink, {
11614
11605
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
11615
- class: "pr-[12px]"
11606
+ class: "header-custom-avatar-link"
11616
11607
  }, {
11617
11608
  default: withCtx(() => {
11618
- var _a3, _b3, _c2, _d2;
11609
+ var _a3, _b3, _c3, _d2;
11619
11610
  return [
11620
- !((_a3 = __props.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$F, {
11611
+ !((_a3 = __props.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$G, {
11621
11612
  key: 0,
11622
11613
  class: normalizeClass({ "g-border": isOrg.value }),
11623
- src: (_c2 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c2.avatar_url,
11614
+ src: (_c3 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c3.avatar_url,
11624
11615
  name: (_d2 = unref(repoInfo)) == null ? void 0 : _d2.name,
11625
11616
  width: 28,
11626
11617
  height: 28,
@@ -11637,7 +11628,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11637
11628
  key: 0,
11638
11629
  ref_key: "breadcrumbRef",
11639
11630
  ref: breadcrumbRef,
11640
- class: "g-repo-layout-breadcrumb max-w-[40%] max-md:w-full"
11631
+ class: "g-repo-layout-breadcrumb"
11641
11632
  }, [
11642
11633
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(breadcrumb), (item, index2) => {
11643
11634
  return openBlock(), createElementBlock(Fragment, {
@@ -11654,12 +11645,12 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11654
11645
  ref_key: "breadcrumbTextRef",
11655
11646
  ref: breadcrumbTextRef,
11656
11647
  title: item.label,
11657
- class: normalizeClass(["linkTx", index2 === unref(breadcrumb).length - 1 ? "font-bold" : ""])
11648
+ class: normalizeClass(["linkTx", index2 === unref(breadcrumb).length - 1 ? "header-custom-bold" : ""])
11658
11649
  }, toDisplayString$1(item.label), 11, _hoisted_10$6)
11659
11650
  ]),
11660
11651
  _: 2
11661
11652
  }, 1032, ["href"]),
11662
- _cache[2] || (_cache[2] = createElementVNode("span", { class: "breadcrumb-splitter font-color-t1" }, " / ", -1))
11653
+ _cache[1] || (_cache[1] = createElementVNode("span", { class: "breadcrumb-splitter font-color-t1" }, " / ", -1))
11663
11654
  ])) : createCommentVNode("", true)
11664
11655
  ], 64);
11665
11656
  }), 128))
@@ -11668,7 +11659,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11668
11659
  key: 1,
11669
11660
  ref_key: "breadcrumbNextRef",
11670
11661
  ref: breadcrumbNextRef,
11671
- class: normalizeClass(["g-repo-layout-breadcrumb-next max-md:w-full flex items-end gap-[8px]", [((_c = __props.repoProps) == null ? void 0 : _c.isGhMirrors) ? "max-w-full" : "max-w-[60%]"]])
11662
+ class: normalizeClass(["g-repo-layout-breadcrumb-next", [((_c2 = __props.repoProps) == null ? void 0 : _c2.isGhMirrors) ? "g-repo-layout-breadcrumb-next--full" : "g-repo-layout-breadcrumb-next--limit"]])
11672
11663
  }, [
11673
11664
  createVNode(GLink, {
11674
11665
  class: "linkTx",
@@ -11679,38 +11670,38 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11679
11670
  ref_key: "breadcrumbNextTextRef",
11680
11671
  ref: breadcrumbNextTextRef,
11681
11672
  title: unref(breadcrumb)[unref(breadcrumb).length - 1].label,
11682
- class: "linkTx font-bold"
11673
+ class: "linkTx header-custom-bold"
11683
11674
  }, toDisplayString$1(unref(breadcrumb)[unref(breadcrumb).length - 1].label), 9, _hoisted_11$5)
11684
11675
  ]),
11685
11676
  _: 1
11686
11677
  }, 8, ["to"]),
11687
11678
  unref(isGstarRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_12$4, [
11688
- createVNode(_sfc_main$E, {
11679
+ createVNode(_sfc_main$F, {
11689
11680
  origin: "repo",
11690
11681
  icon: "",
11691
11682
  type: "gstar",
11692
11683
  message: `G-Star ${unref(t2)("gitCodeLayout.GStar.project.graduation")}`
11693
11684
  }, {
11694
- default: withCtx(() => [..._cache[3] || (_cache[3] = [
11685
+ default: withCtx(() => [..._cache[2] || (_cache[2] = [
11695
11686
  createTextVNode("G-Star ", -1)
11696
11687
  ])]),
11697
11688
  _: 1
11698
11689
  }, 8, ["message"])
11699
11690
  ])) : unref(isIncubationRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_13$1, [
11700
- createVNode(_sfc_main$E, {
11691
+ createVNode(_sfc_main$F, {
11701
11692
  origin: "repo",
11702
11693
  icon: "",
11703
11694
  type: "incubation",
11704
11695
  message: `G-Star ${unref(t2)("gitCodeLayout.GStar.project.incubation")}`
11705
11696
  }, {
11706
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
11697
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
11707
11698
  createTextVNode(" G-Star ", -1)
11708
11699
  ])]),
11709
11700
  _: 1
11710
11701
  }, 8, ["message"])
11711
11702
  ])) : createCommentVNode("", true),
11712
11703
  unref(isTrustedRepo)(unref(repoInfo).topic_names) ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
11713
- createVNode(_sfc_main$E, {
11704
+ createVNode(_sfc_main$F, {
11714
11705
  trusted: "",
11715
11706
  message: unref(t2)("gitCodeLayout.trusted.title"),
11716
11707
  icon: "",
@@ -11721,19 +11712,19 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11721
11712
  ((_d = __props.repoProps) == null ? void 0 : _d.isPrivate) ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
11722
11713
  createVNode(GIcon, {
11723
11714
  size: "16px",
11724
- class: "ml-[4px]",
11715
+ class: "header-custom-lock-icon",
11725
11716
  name: "gt-line-lock"
11726
11717
  })
11727
11718
  ])) : createCommentVNode("", true),
11728
11719
  topicTag.value ? (openBlock(), createElementBlock("div", {
11729
11720
  key: 4,
11730
- class: "topic-tag flex items-center font-color-t2",
11721
+ class: "topic-tag font-color-t2",
11731
11722
  onClick: toAiHub
11732
11723
  }, [
11733
11724
  createVNode(GIcon, {
11734
11725
  name: (_e = topicTag.value) == null ? void 0 : _e.icon,
11735
11726
  color: "var(--devui-shape-icon-fill)",
11736
- class: "inline-block min-w-[16px]"
11727
+ class: "header-custom-topic-icon"
11737
11728
  }, null, 8, ["name"]),
11738
11729
  createElementVNode("span", _hoisted_16$1, toDisplayString$1((_f = topicTag.value) == null ? void 0 : _f.suffix), 1)
11739
11730
  ])) : createCommentVNode("", true),
@@ -11741,7 +11732,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11741
11732
  createVNode(GIcon, {
11742
11733
  name: "gt-line-time",
11743
11734
  color: "var(--devui-shape-icon-fill)",
11744
- class: "inline-block min-w-[16px]"
11735
+ class: "header-custom-topic-icon"
11745
11736
  }),
11746
11737
  createElementVNode("span", _hoisted_18$1, toDisplayString$1(formatTime.value) + toDisplayString$1(unref(t2)("gitCodeLayout.repo.code.syncText")), 1)
11747
11738
  ])) : createCommentVNode("", true)
@@ -11751,17 +11742,17 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11751
11742
  ];
11752
11743
  }),
11753
11744
  _: 1
11754
- }, 8, ["loading"])) : __props.scene === unref(SceneValue).user && ((_b = __props.userProps) == null ? void 0 : _b.isOtherUser) ? (openBlock(), createElementBlock("div", _hoisted_20$1, [
11745
+ }, 8, ["loading"])) : __props.scene === unref(SceneValue).user && ((_c = __props.userProps) == null ? void 0 : _c.isOtherUser) ? (openBlock(), createElementBlock("div", _hoisted_20$1, [
11755
11746
  createVNode(GLink, {
11756
11747
  to: { name: "homepage" },
11757
- class: "flex flex-1 items-center gap-[8px]"
11748
+ class: "header-custom-link"
11758
11749
  }, {
11759
11750
  default: withCtx(() => {
11760
- var _a2, _b2, _c, _d, _e;
11751
+ var _a2, _b2, _c2, _d, _e;
11761
11752
  return [
11762
- createVNode(_sfc_main$F, {
11753
+ createVNode(_sfc_main$G, {
11763
11754
  src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
11764
- name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c = unref(otherUserInfo)) == null ? void 0 : _c.nickname),
11755
+ name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c2 = unref(otherUserInfo)) == null ? void 0 : _c2.nickname),
11765
11756
  width: 28,
11766
11757
  height: 28
11767
11758
  }, null, 8, ["src", "name"]),
@@ -11786,9 +11777,9 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11786
11777
  };
11787
11778
  }
11788
11779
  });
11789
- const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11790
- const _hoisted_1$w = ["src"];
11791
- const _sfc_main$C = /* @__PURE__ */ defineComponent({
11780
+ const HeaderCustom = /* @__PURE__ */ _export_sfc(_sfc_main$E, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11781
+ const _hoisted_1$x = ["src"];
11782
+ const _sfc_main$D = /* @__PURE__ */ defineComponent({
11792
11783
  ...{ name: "OperationEntry" },
11793
11784
  __name: "OperationEntry",
11794
11785
  setup(__props) {
@@ -11825,21 +11816,21 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11825
11816
  return (_ctx, _cache) => {
11826
11817
  return img.value && headerEntryConfig.value.url ? (openBlock(), createElementBlock("div", {
11827
11818
  key: 0,
11828
- class: "operation-entry cursor-pointer",
11819
+ class: "operation-entry",
11829
11820
  onClick: handleClick
11830
11821
  }, [
11831
11822
  createElementVNode("img", {
11832
- class: "w-[71px]",
11823
+ class: "operation-entry__img",
11833
11824
  src: img.value,
11834
11825
  alt: "operation-entry"
11835
- }, null, 8, _hoisted_1$w)
11826
+ }, null, 8, _hoisted_1$x)
11836
11827
  ])) : createCommentVNode("", true);
11837
11828
  };
11838
11829
  }
11839
11830
  });
11840
- const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11841
- const _hoisted_1$v = ["src"];
11842
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
11831
+ const OperationEntry = /* @__PURE__ */ _export_sfc(_sfc_main$D, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11832
+ const _hoisted_1$w = ["src"];
11833
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
11843
11834
  __name: "ClaimPower",
11844
11835
  props: {
11845
11836
  config: {}
@@ -11862,14 +11853,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11862
11853
  createElementVNode("img", {
11863
11854
  src: __props.config.logo_url,
11864
11855
  alt: "claim power"
11865
- }, null, 8, _hoisted_1$v)
11856
+ }, null, 8, _hoisted_1$w)
11866
11857
  ])) : createCommentVNode("", true);
11867
11858
  };
11868
11859
  }
11869
11860
  });
11870
- const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11871
- const _hoisted_1$u = { class: "devui-select__item g-option-link" };
11872
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
11861
+ const ClaimPower = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11862
+ const _hoisted_1$v = { class: "devui-select__item g-option-link" };
11863
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11873
11864
  ...{
11874
11865
  name: "OptionLink"
11875
11866
  },
@@ -11887,7 +11878,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11887
11878
  },
11888
11879
  setup(__props) {
11889
11880
  return (_ctx, _cache) => {
11890
- return openBlock(), createElementBlock("li", _hoisted_1$u, [
11881
+ return openBlock(), createElementBlock("li", _hoisted_1$v, [
11891
11882
  createVNode(GLink, normalizeProps(guardReactiveProps(_ctx.$props)), {
11892
11883
  default: withCtx(() => [
11893
11884
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
@@ -11898,7 +11889,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11898
11889
  };
11899
11890
  }
11900
11891
  });
11901
- const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11892
+ const OptionLink = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-vue-layout-gitcode"]]);
11902
11893
  var aes = { exports: {} };
11903
11894
  function commonjsRequire(path) {
11904
11895
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
@@ -14362,7 +14353,7 @@ function headRequest(request) {
14362
14353
  }
14363
14354
  };
14364
14355
  }
14365
- const _sfc_main$z = /* @__PURE__ */ Object.assign({
14356
+ const _sfc_main$A = /* @__PURE__ */ Object.assign({
14366
14357
  name: "Create"
14367
14358
  }, {
14368
14359
  __name: "index",
@@ -14457,14 +14448,14 @@ const _sfc_main$z = /* @__PURE__ */ Object.assign({
14457
14448
  default: withCtx(() => [
14458
14449
  createVNode(unref(Button), {
14459
14450
  id: "guide-step3",
14460
- class: "border-none w-84 h-32 btn-add",
14451
+ class: "btn-add",
14461
14452
  variant: "solid"
14462
14453
  }, {
14463
14454
  default: withCtx(() => [
14464
14455
  createVNode(GIcon, {
14465
14456
  name: "gt-add",
14466
14457
  color: "var(--theme-light-text)",
14467
- class: "mr-1"
14458
+ class: "btn-add-icon"
14468
14459
  }),
14469
14460
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.header.create")), 1)
14470
14461
  ]),
@@ -14476,8 +14467,8 @@ const _sfc_main$z = /* @__PURE__ */ Object.assign({
14476
14467
  };
14477
14468
  }
14478
14469
  });
14479
- const Create = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14480
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
14470
+ const Create = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14471
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
14481
14472
  ...{
14482
14473
  name: "DocumentCenter"
14483
14474
  },
@@ -14502,12 +14493,12 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14502
14493
  };
14503
14494
  }
14504
14495
  });
14505
- const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14506
- const _hoisted_1$t = {
14496
+ const DocumentCenter = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14497
+ const _hoisted_1$u = {
14507
14498
  key: 1,
14508
14499
  class: "g-text-all"
14509
14500
  };
14510
- const _sfc_main$x = /* @__PURE__ */ defineComponent({
14501
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14511
14502
  ...{ name: "GText" },
14512
14503
  __name: "index",
14513
14504
  props: {
@@ -14584,24 +14575,24 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14584
14575
  class: "watch-all",
14585
14576
  onClick: onShowAll
14586
14577
  }, toDisplayString$1(_ctx.$t("gitCodeLayout.notice.msg.viewAll")), 1)) : createCommentVNode("", true)
14587
- ], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$t, [
14578
+ ], 6)) : showAllContent.value && finalConfig.value.showAll ? (openBlock(), createElementBlock("div", _hoisted_1$u, [
14588
14579
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
14589
14580
  ])) : createCommentVNode("", true);
14590
14581
  };
14591
14582
  }
14592
14583
  });
14593
- const GText = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14594
- const _hoisted_1$s = { class: "message-item flex" };
14595
- const _hoisted_2$n = { class: "message-item-footer" };
14596
- const _hoisted_3$m = ["title"];
14584
+ const GText = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14585
+ const _hoisted_1$t = { class: "message-item" };
14586
+ const _hoisted_2$o = { class: "message-item-footer" };
14587
+ const _hoisted_3$n = ["title"];
14597
14588
  const _hoisted_4$h = ["href"];
14598
- const _hoisted_5$d = { class: "message-item-info-content flex-auto flex items-center justify-between" };
14599
- const _hoisted_6$b = { class: "flex message-item-body flex-1" };
14589
+ const _hoisted_5$d = { class: "message-item-info-content" };
14590
+ const _hoisted_6$b = { class: "message-item-body" };
14600
14591
  const _hoisted_7$8 = ["title", "innerHTML"];
14601
14592
  const _hoisted_8$7 = ["title"];
14602
- const _hoisted_9$5 = { class: "message-item-info flex" };
14603
- const _hoisted_10$5 = { class: "flex justify-end message-item-rightTx message-item-date" };
14604
- const _sfc_main$w = /* @__PURE__ */ defineComponent({
14593
+ const _hoisted_9$5 = { class: "message-item-info" };
14594
+ const _hoisted_10$5 = { class: "message-item-rightTx message-item-date" };
14595
+ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14605
14596
  __name: "index",
14606
14597
  props: {
14607
14598
  data: { default: () => ({}) },
@@ -14613,32 +14604,32 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14613
14604
  const { formatTimeFromNow } = useTimeFormat();
14614
14605
  return (_ctx, _cache) => {
14615
14606
  var _a;
14616
- return openBlock(), createElementBlock("div", _hoisted_1$s, [
14617
- createElementVNode("div", _hoisted_2$n, [
14607
+ return openBlock(), createElementBlock("div", _hoisted_1$t, [
14608
+ createElementVNode("div", _hoisted_2$o, [
14618
14609
  createElementVNode("div", {
14619
- class: "flex items-center",
14610
+ class: "message-item__avatar-wrap",
14620
14611
  title: __props.data.nickname
14621
14612
  }, [
14622
14613
  createElementVNode("a", {
14623
14614
  href: unref(transformUrl)((_a = __props.data) == null ? void 0 : _a.userPath),
14624
14615
  target: "_blank",
14625
- class: "user-info flex w-[48px] items-center linktx"
14616
+ class: "user-info linktx message-item__user-info"
14626
14617
  }, [
14627
- createVNode(_sfc_main$F, {
14618
+ createVNode(_sfc_main$G, {
14628
14619
  name: __props.data.nickname,
14629
14620
  src: __props.data.avatar,
14630
14621
  width: 32,
14631
14622
  height: 32
14632
14623
  }, null, 8, ["name", "src"])
14633
14624
  ], 8, _hoisted_4$h)
14634
- ], 8, _hoisted_3$m)
14625
+ ], 8, _hoisted_3$n)
14635
14626
  ]),
14636
14627
  createElementVNode("div", _hoisted_5$d, [
14637
14628
  createElementVNode("div", _hoisted_6$b, [
14638
14629
  createVNode(GLink, {
14639
14630
  href: unref(transformUrl)(__props.data.url),
14640
14631
  target: "_blank",
14641
- class: normalizeClass(["message-item-content cursor-pointer", { "text-light": __props.data.read }]),
14632
+ class: normalizeClass(["message-item-content", { "text-light": __props.data.read }]),
14642
14633
  onClick: _cache[0] || (_cache[0] = ($event) => emits("trigger"))
14643
14634
  }, {
14644
14635
  default: withCtx(() => [
@@ -14648,7 +14639,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14648
14639
  key: 0,
14649
14640
  title: __props.data.title,
14650
14641
  innerHTML: unref(xssPurify)(__props.data.title) || "",
14651
- class: "overflow-hidden"
14642
+ class: "message-item__title"
14652
14643
  }, null, 8, _hoisted_7$8)) : (openBlock(), createElementBlock("span", {
14653
14644
  key: 1,
14654
14645
  title: __props.data.title
@@ -14681,19 +14672,19 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14681
14672
  };
14682
14673
  }
14683
14674
  });
14684
- const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14685
- const _hoisted_1$r = { class: "message-header-nav" };
14686
- const _hoisted_2$m = {
14675
+ const MessageItem = /* @__PURE__ */ _export_sfc(_sfc_main$x, [["__scopeId", "data-v-vue-layout-gitcode"]]);
14676
+ const _hoisted_1$s = { class: "message-header-nav" };
14677
+ const _hoisted_2$n = {
14687
14678
  key: 0,
14688
14679
  class: "item-count-icon"
14689
14680
  };
14690
- const _hoisted_3$l = {
14681
+ const _hoisted_3$m = {
14691
14682
  key: 1,
14692
14683
  class: "g-number"
14693
14684
  };
14694
14685
  const _hoisted_4$g = {
14695
14686
  key: 0,
14696
- class: "g-number ml-[8px]"
14687
+ class: "g-number message-box__count"
14697
14688
  };
14698
14689
  const _hoisted_5$c = { class: "message-content-cover" };
14699
14690
  const _hoisted_6$a = {
@@ -14721,7 +14712,7 @@ const _hoisted_11$4 = {
14721
14712
  class: "no-more"
14722
14713
  };
14723
14714
  const _hoisted_12$3 = { class: "message-footer-nav" };
14724
- const _sfc_main$v = /* @__PURE__ */ defineComponent({
14715
+ const _sfc_main$w = /* @__PURE__ */ defineComponent({
14725
14716
  __name: "MessageBox",
14726
14717
  setup(__props, { expose: __expose }) {
14727
14718
  var _a;
@@ -14992,7 +14983,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
14992
14983
  class: "message-box",
14993
14984
  onClick: _cache[5] || (_cache[5] = withModifiers(($event) => console.log("stop"), ["stop"]))
14994
14985
  }, [
14995
- createElementVNode("div", _hoisted_1$r, [
14986
+ createElementVNode("div", _hoisted_1$s, [
14996
14987
  createVNode(unref(Tabs), {
14997
14988
  modelValue: checkedId.value,
14998
14989
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => checkedId.value = $event),
@@ -15008,7 +14999,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
15008
14999
  createElementVNode("div", {
15009
15000
  class: normalizeClass(["message-header-nav-item", { "message-header-nav-item-active": item.messageType === checkedId.value }])
15010
15001
  }, [
15011
- item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$m, [
15002
+ item.icon ? (openBlock(), createElementBlock("div", _hoisted_2$n, [
15012
15003
  createVNode(GIcon, {
15013
15004
  name: item.icon,
15014
15005
  size: "16px",
@@ -15021,7 +15012,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
15021
15012
  }, null, 8, ["name"])
15022
15013
  ])) : createCommentVNode("", true),
15023
15014
  createElementVNode("span", null, toDisplayString$1(item.text), 1),
15024
- item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$l, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
15015
+ item.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_3$m, toDisplayString$1(item.count), 1)) : createCommentVNode("", true)
15025
15016
  ], 2)
15026
15017
  ]),
15027
15018
  _: 2
@@ -15046,7 +15037,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
15046
15037
  withDirectives((openBlock(), createElementBlock("div", _hoisted_5$c, [
15047
15038
  currentType.value === "mention" ? (openBlock(), createElementBlock("div", _hoisted_6$a, [
15048
15039
  createElementVNode("div", {
15049
- class: normalizeClass(["message-content-header-item mr-[8px]", { active: mentionSubTab.value === "project" }]),
15040
+ class: normalizeClass(["message-content-header-item message-content-header-item--mr", { active: mentionSubTab.value === "project" }]),
15050
15041
  onClick: _cache[2] || (_cache[2] = ($event) => switchMentionSubTab("project"))
15051
15042
  }, [
15052
15043
  _cache[6] || (_cache[6] = createTextVNode(" 项目相关 ", -1)),
@@ -15086,8 +15077,8 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
15086
15077
  };
15087
15078
  }
15088
15079
  });
15089
- const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15090
- const _sfc_main$u = /* @__PURE__ */ defineComponent({
15080
+ const MessageBox = /* @__PURE__ */ _export_sfc(_sfc_main$w, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15081
+ const _sfc_main$v = /* @__PURE__ */ defineComponent({
15091
15082
  ...{
15092
15083
  name: "Notice"
15093
15084
  },
@@ -15199,7 +15190,7 @@ const _sfc_main$u = /* @__PURE__ */ defineComponent({
15199
15190
  };
15200
15191
  }
15201
15192
  });
15202
- const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$u, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15193
+ const Notice = /* @__PURE__ */ _export_sfc(_sfc_main$v, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15203
15194
  function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
15204
15195
  const allCookies = api.get() || {};
15205
15196
  const storedValue = allCookies[key] || localStorage$2.getItem(key);
@@ -15223,10 +15214,10 @@ function useCookie(key, defaultValue, options = COOKIE_OPTIONS) {
15223
15214
  );
15224
15215
  return value;
15225
15216
  }
15226
- const _hoisted_1$q = { class: "tools-item-wrapper" };
15227
- const _hoisted_2$l = { class: "tools-item-wrapper-checkbox" };
15228
- const _hoisted_3$k = ["onClick", "title"];
15229
- const _sfc_main$t = /* @__PURE__ */ defineComponent({
15217
+ const _hoisted_1$r = { class: "tools-item-wrapper" };
15218
+ const _hoisted_2$m = { class: "tools-item-wrapper-checkbox" };
15219
+ const _hoisted_3$l = ["onClick", "title"];
15220
+ const _sfc_main$u = /* @__PURE__ */ defineComponent({
15230
15221
  __name: "Lang",
15231
15222
  setup(__props) {
15232
15223
  const lang = useCookie(LANG_KEY, LANG_ZH);
@@ -15243,9 +15234,9 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
15243
15234
  window.location.reload();
15244
15235
  };
15245
15236
  return (_ctx, _cache) => {
15246
- return openBlock(), createElementBlock("div", _hoisted_1$q, [
15237
+ return openBlock(), createElementBlock("div", _hoisted_1$r, [
15247
15238
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.lang")), 1),
15248
- createElementVNode("div", _hoisted_2$l, [
15239
+ createElementVNode("div", _hoisted_2$m, [
15249
15240
  (openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
15250
15241
  return openBlock(), createElementBlock("div", mergeProps({
15251
15242
  key: item.label
@@ -15260,26 +15251,26 @@ const _sfc_main$t = /* @__PURE__ */ defineComponent({
15260
15251
  color: "var(--theme-icon-fill-weak)",
15261
15252
  class: "checkbox-item-icon"
15262
15253
  }, null, 8, ["name"])
15263
- ], 16, _hoisted_3$k);
15254
+ ], 16, _hoisted_3$l);
15264
15255
  }), 128))
15265
15256
  ])
15266
15257
  ]);
15267
15258
  };
15268
15259
  }
15269
15260
  });
15270
- const _hoisted_1$p = {
15261
+ const _hoisted_1$q = {
15271
15262
  key: 0,
15272
15263
  class: "user-level-avatar-badge"
15273
15264
  };
15274
- const _hoisted_2$k = { class: "flex items-center font-medium gap-[4px]" };
15275
- const _hoisted_3$j = ["src"];
15265
+ const _hoisted_2$l = { class: "user-level__row" };
15266
+ const _hoisted_3$k = ["src"];
15276
15267
  const _hoisted_4$f = { class: "level-name" };
15277
15268
  const _hoisted_5$b = { class: "level-icon" };
15278
15269
  const _hoisted_6$9 = ["src"];
15279
15270
  const _hoisted_7$6 = { class: "custom-btn" };
15280
- const _hoisted_8$5 = { class: "flex items-center justify-center" };
15271
+ const _hoisted_8$5 = { class: "user-level__btn-text" };
15281
15272
  const maxLevel = 3;
15282
- const _sfc_main$s = /* @__PURE__ */ defineComponent({
15273
+ const _sfc_main$t = /* @__PURE__ */ defineComponent({
15283
15274
  ...{ name: "UserLevel" },
15284
15275
  __name: "UserLevel",
15285
15276
  props: ["accountInfo"],
@@ -15327,16 +15318,16 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
15327
15318
  });
15328
15319
  return (_ctx, _cache) => {
15329
15320
  return openBlock(), createElementBlock("div", {
15330
- class: normalizeClass(["user-level cursor-pointer", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
15321
+ class: normalizeClass(["user-level", { [unref(ThemeType).BLACK]: unref(currentTheme) === unref(ThemeType).BLACK }]),
15331
15322
  onClick: handleUpgrade
15332
15323
  }, [
15333
- __props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$p)) : createCommentVNode("", true),
15334
- createElementVNode("div", _hoisted_2$k, [
15324
+ __props.accountInfo.need_tips ? (openBlock(), createElementBlock("div", _hoisted_1$q)) : createCommentVNode("", true),
15325
+ createElementVNode("div", _hoisted_2$l, [
15335
15326
  createElementVNode("img", {
15336
15327
  class: "level-avatar",
15337
15328
  src: levelInfo.value.avatar,
15338
15329
  alt: ""
15339
- }, null, 8, _hoisted_3$j),
15330
+ }, null, 8, _hoisted_3$k),
15340
15331
  createElementVNode("div", _hoisted_4$f, [
15341
15332
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
15342
15333
  createElementVNode("div", _hoisted_5$b, [
@@ -15354,16 +15345,16 @@ const _sfc_main$s = /* @__PURE__ */ defineComponent({
15354
15345
  };
15355
15346
  }
15356
15347
  });
15357
- const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15358
- const _hoisted_1$o = { class: "g-user-drawer-info-list pl-[16px]" };
15359
- const _hoisted_2$j = { class: "max-w-[200px]" };
15360
- const _hoisted_3$i = ["title"];
15348
+ const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15349
+ const _hoisted_1$p = { class: "g-user-drawer-info-list" };
15350
+ const _hoisted_2$k = { class: "g-user-drawer-info-list__name-wrap" };
15351
+ const _hoisted_3$j = ["title"];
15361
15352
  const _hoisted_4$e = ["title"];
15362
15353
  const _hoisted_5$a = {
15363
15354
  key: 0,
15364
15355
  class: "g-user-drawer-lang-row"
15365
15356
  };
15366
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
15357
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
15367
15358
  __name: "UserAvatarMenu",
15368
15359
  props: {
15369
15360
  isChatBot: { type: Boolean },
@@ -15505,7 +15496,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15505
15496
  });
15506
15497
  const avatarLangBlock = {
15507
15498
  id: "avatar-lang",
15508
- component: markRaw(_sfc_main$t),
15499
+ component: markRaw(_sfc_main$u),
15509
15500
  avatarLangRow: true
15510
15501
  };
15511
15502
  const shouldShowEnterpriseLang = computed(
@@ -15574,24 +15565,24 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15574
15565
  ref: menuContainerRef
15575
15566
  }, [
15576
15567
  createVNode(GLink, {
15577
- class: "g-user-drawer-info pl-[32px] pr-[16px] cursor-pointer",
15568
+ class: "g-user-drawer-info",
15578
15569
  href: `${unref(layoutConfig2).VITE_HOST}/${__props.accountInfo.username}`,
15579
15570
  key: "myPage",
15580
15571
  target: __props.isChatBot ? "_blank" : ""
15581
15572
  }, {
15582
15573
  default: withCtx(() => [
15583
- createVNode(_sfc_main$F, {
15574
+ createVNode(_sfc_main$G, {
15584
15575
  name: __props.accountInfo.nickname,
15585
15576
  src: __props.accountInfo.avatar,
15586
15577
  width: 52,
15587
15578
  height: 52
15588
15579
  }, null, 8, ["name", "src"]),
15589
- createElementVNode("div", _hoisted_1$o, [
15590
- createElementVNode("div", _hoisted_2$j, [
15580
+ createElementVNode("div", _hoisted_1$p, [
15581
+ createElementVNode("div", _hoisted_2$k, [
15591
15582
  createElementVNode("p", {
15592
15583
  class: "g-user-drawer-info-list-name ellipsis",
15593
15584
  title: __props.accountInfo.nickname
15594
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$i),
15585
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$j),
15595
15586
  createElementVNode("p", {
15596
15587
  class: "g-user-drawer-info-list-id ellipsis",
15597
15588
  title: __props.accountInfo.username
@@ -15611,7 +15602,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15611
15602
  }, null, 8, ["accountInfo"])) : createCommentVNode("", true),
15612
15603
  (openBlock(true), createElementBlock(Fragment, null, renderList(userMenuList.value, (block, index2) => {
15613
15604
  return openBlock(), createElementBlock("div", {
15614
- class: normalizeClass(["g-user-drawer-block", { "!pt-[0px]": index2 === 0 && __props.inAIHub }]),
15605
+ class: normalizeClass(["g-user-drawer-block", { "g-user-drawer-block--no-pt": index2 === 0 && __props.inAIHub }]),
15615
15606
  key: index2
15616
15607
  }, [
15617
15608
  block.component ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
@@ -15646,20 +15637,20 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15646
15637
  };
15647
15638
  }
15648
15639
  });
15649
- const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15650
- const _hoisted_1$n = { class: "g-user-avatar flex-center ml-1" };
15651
- const _hoisted_2$i = {
15640
+ const UserAvatarMenu = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15641
+ const _hoisted_1$o = { class: "g-user-avatar flex-center" };
15642
+ const _hoisted_2$j = {
15652
15643
  key: 0,
15653
15644
  class: "g-user-avatar__badge"
15654
15645
  };
15655
- const _hoisted_3$h = { class: "g-user-avatar flex-center ml-1" };
15646
+ const _hoisted_3$i = { class: "g-user-avatar flex-center" };
15656
15647
  const _hoisted_4$d = {
15657
15648
  key: 0,
15658
15649
  class: "g-user-avatar__badge"
15659
15650
  };
15660
15651
  const _hoisted_5$9 = { class: "g-user-drawer" };
15661
- const _hoisted_6$8 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
15662
- const _sfc_main$q = /* @__PURE__ */ defineComponent({
15652
+ const _hoisted_6$8 = { class: "user-avatar__drawer-header" };
15653
+ const _sfc_main$r = /* @__PURE__ */ defineComponent({
15663
15654
  ...{
15664
15655
  name: "UserAvatar"
15665
15656
  },
@@ -15798,12 +15789,12 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15798
15789
  key: 0,
15799
15790
  onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
15800
15791
  }, [
15801
- createElementVNode("div", _hoisted_1$n, [
15802
- createVNode(_sfc_main$F, {
15792
+ createElementVNode("div", _hoisted_1$o, [
15793
+ createVNode(_sfc_main$G, {
15803
15794
  name: accountInfo.value.nickname,
15804
15795
  src: unref(transformUrl)(accountInfo.value.avatar)
15805
15796
  }, null, 8, ["name", "src"]),
15806
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$i, [..._cache[4] || (_cache[4] = [
15797
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$j, [..._cache[4] || (_cache[4] = [
15807
15798
  createElementVNode("div", null, null, -1)
15808
15799
  ])])) : createCommentVNode("", true)
15809
15800
  ])
@@ -15830,8 +15821,8 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15830
15821
  ])
15831
15822
  ]),
15832
15823
  default: withCtx(() => [
15833
- createElementVNode("div", _hoisted_3$h, [
15834
- createVNode(_sfc_main$F, {
15824
+ createElementVNode("div", _hoisted_3$i, [
15825
+ createVNode(_sfc_main$G, {
15835
15826
  name: accountInfo.value.nickname,
15836
15827
  src: unref(transformUrl)(accountInfo.value.avatar)
15837
15828
  }, null, 8, ["name", "src"]),
@@ -15853,7 +15844,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15853
15844
  createElementVNode("div", null, [
15854
15845
  createElementVNode("div", _hoisted_6$8, [
15855
15846
  createVNode(unref(Button), {
15856
- class: "cursor-pointer draw-side-bar-close",
15847
+ class: "draw-side-bar-close",
15857
15848
  icon: "close",
15858
15849
  onClick: _cache[1] || (_cache[1] = ($event) => drawerVisible.value = false),
15859
15850
  variant: "text"
@@ -15878,7 +15869,7 @@ const _sfc_main$q = /* @__PURE__ */ defineComponent({
15878
15869
  };
15879
15870
  }
15880
15871
  });
15881
- const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15872
+ const UserAvatar = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15882
15873
  var EVENT_NAME = /* @__PURE__ */ ((EVENT_NAME2) => {
15883
15874
  EVENT_NAME2["START_SEARCH"] = "开始搜索";
15884
15875
  EVENT_NAME2["SEARCH"] = "搜索";
@@ -15944,16 +15935,19 @@ const setlocalVistHistory = (data, localType) => {
15944
15935
  try {
15945
15936
  cur = JSON.parse(localData);
15946
15937
  if (localType) {
15947
- const target = cur.find(
15948
- (ele) => (ele === data.q || ele.q === data.q) && ele.repo === data.repo && ele.namespace === data.namespace
15949
- );
15950
- if (!target) {
15951
- cur.unshift({ ...data, count: 1 });
15952
- } else {
15953
- target.count = (target.count || 1) + 1;
15954
- data.type && (target.type = data.type);
15955
- cur.splice(cur.indexOf(target), 1);
15956
- cur.unshift(target);
15938
+ cur = cur.filter((ele) => typeof ele === "string" ? !!ele : !!(ele == null ? void 0 : ele.q));
15939
+ if (data.q) {
15940
+ const target = cur.find(
15941
+ (ele) => (ele === data.q || ele.q === data.q) && ele.repo === data.repo && ele.org === data.org && ele.user === data.user && ele.namespace === data.namespace
15942
+ );
15943
+ if (!target) {
15944
+ cur.unshift({ ...data, count: 1 });
15945
+ } else {
15946
+ target.count = (target.count || 1) + 1;
15947
+ data.type && (target.type = data.type);
15948
+ cur.splice(cur.indexOf(target), 1);
15949
+ cur.unshift(target);
15950
+ }
15957
15951
  }
15958
15952
  }
15959
15953
  } catch (e) {
@@ -15967,6 +15961,340 @@ const setlocalVistHistory = (data, localType) => {
15967
15961
  localStorage$2.setItem(storeName, JSON.stringify(cur));
15968
15962
  return cur;
15969
15963
  };
15964
+ const KEY_ALIAS = {
15965
+ repo: "repo",
15966
+ user: "user",
15967
+ org: "group",
15968
+ language: "language",
15969
+ lang: "language",
15970
+ symbol: "symbol",
15971
+ path: "path"
15972
+ };
15973
+ const SUPPORTED_KEYS = ["repo", "language", "lang", "symbol", "path", "user", "org"];
15974
+ const QUALIFIER_RE = new RegExp(`^(${SUPPORTED_KEYS.join("|")}):(\\S*)$`, "i");
15975
+ const slotOfKey = (key) => {
15976
+ if (key === "repo" || key === "user" || key === "group") {
15977
+ return "scope";
15978
+ }
15979
+ return key ?? "";
15980
+ };
15981
+ const markOverriddenQualifiers = (tokens) => {
15982
+ const seenSlots = /* @__PURE__ */ new Set();
15983
+ for (let i = tokens.length - 1; i >= 0; i--) {
15984
+ const token = tokens[i];
15985
+ if (token.type !== "qualifier" || !token.value) {
15986
+ continue;
15987
+ }
15988
+ const slot = slotOfKey(token.key);
15989
+ if (seenSlots.has(slot)) {
15990
+ token.overridden = true;
15991
+ } else {
15992
+ seenSlots.add(slot);
15993
+ }
15994
+ }
15995
+ };
15996
+ const tokenizeSearchInput = (input) => {
15997
+ const tokens = [];
15998
+ if (!input) {
15999
+ return tokens;
16000
+ }
16001
+ const segments = input.split(/(\s+)/);
16002
+ for (const seg of segments) {
16003
+ if (seg === "") {
16004
+ continue;
16005
+ }
16006
+ if (/^\s+$/.test(seg)) {
16007
+ tokens.push({ type: "space", raw: seg });
16008
+ continue;
16009
+ }
16010
+ const matched = seg.match(QUALIFIER_RE);
16011
+ if (matched) {
16012
+ const rawKey = matched[1];
16013
+ tokens.push({
16014
+ type: "qualifier",
16015
+ raw: seg,
16016
+ rawKey,
16017
+ key: KEY_ALIAS[rawKey.toLowerCase()],
16018
+ value: matched[2]
16019
+ });
16020
+ continue;
16021
+ }
16022
+ tokens.push({ type: "text", raw: seg });
16023
+ }
16024
+ markOverriddenQualifiers(tokens);
16025
+ return tokens;
16026
+ };
16027
+ const parseSearchInput = (input) => {
16028
+ const tokens = tokenizeSearchInput(input);
16029
+ const keywords = [];
16030
+ const params = { q: "" };
16031
+ for (const token of tokens) {
16032
+ if (token.type !== "qualifier" || token.value === void 0 || token.value === "") {
16033
+ if (token.type !== "space") {
16034
+ keywords.push(token.raw);
16035
+ }
16036
+ continue;
16037
+ }
16038
+ if (token.overridden) {
16039
+ continue;
16040
+ }
16041
+ switch (token.key) {
16042
+ case "repo":
16043
+ params.scope = "repo";
16044
+ params.repo = encodeURIComponent(token.value);
16045
+ break;
16046
+ case "user":
16047
+ params.scope = "user";
16048
+ params.namespace = encodeURIComponent(token.value);
16049
+ break;
16050
+ case "group":
16051
+ params.scope = "group";
16052
+ params.namespace = encodeURIComponent(token.value);
16053
+ break;
16054
+ case "language":
16055
+ params.l = token.value;
16056
+ break;
16057
+ case "symbol":
16058
+ params.type = "code";
16059
+ params.symbol = encodeURIComponent(token.value);
16060
+ break;
16061
+ case "path":
16062
+ params.type = "code";
16063
+ params.path = encodeURIComponent(token.value);
16064
+ break;
16065
+ }
16066
+ }
16067
+ params.q = keywords.join(" ");
16068
+ return { tokens, params };
16069
+ };
16070
+ const buildQualifierPrefix = (info) => {
16071
+ if (!(info == null ? void 0 : info.searchScope) || !(info == null ? void 0 : info.searchScopeName)) {
16072
+ return "";
16073
+ }
16074
+ const keyMap = {
16075
+ repo: "repo",
16076
+ user: "user",
16077
+ group: "org"
16078
+ };
16079
+ const key = keyMap[info.searchScope];
16080
+ if (!key) {
16081
+ return "";
16082
+ }
16083
+ return `${key}:${info.searchScopeName} `;
16084
+ };
16085
+ const _hoisted_1$n = {
16086
+ key: 0,
16087
+ class: "devui-input-slot__prefix"
16088
+ };
16089
+ const _hoisted_2$i = ["value"];
16090
+ const _hoisted_3$h = {
16091
+ key: 1,
16092
+ class: "devui-input-slot__suffix"
16093
+ };
16094
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
16095
+ ...{
16096
+ name: "HighlightInput",
16097
+ inheritAttrs: false
16098
+ },
16099
+ __name: "HighlightInput",
16100
+ props: {
16101
+ modelValue: { default: "" }
16102
+ },
16103
+ emits: ["update:modelValue"],
16104
+ setup(__props, { expose: __expose, emit: __emit }) {
16105
+ const props = __props;
16106
+ const emit = __emit;
16107
+ const attrs = useAttrs();
16108
+ const rootClass = computed(() => attrs.class);
16109
+ const rootStyle = computed(() => attrs.style);
16110
+ const inputAttrs = computed(() => {
16111
+ const { class: _cls, style: _style, ...rest } = attrs;
16112
+ return rest;
16113
+ });
16114
+ const segments = computed(() => {
16115
+ const list = [];
16116
+ for (const token of tokenizeSearchInput(props.modelValue)) {
16117
+ if (token.type === "qualifier") {
16118
+ if (token.overridden) {
16119
+ list.push({ text: token.raw, cls: "hl-token-text" });
16120
+ continue;
16121
+ }
16122
+ list.push({ text: `${token.rawKey}:`, cls: "hl-token-key" });
16123
+ list.push({ text: token.value ?? "", cls: "hl-token-value" });
16124
+ continue;
16125
+ }
16126
+ list.push({ text: token.raw, cls: token.type === "text" ? "hl-token-text" : "hl-token-space" });
16127
+ }
16128
+ return list;
16129
+ });
16130
+ const nativeRef = ref(null);
16131
+ const backdropRef = ref(null);
16132
+ const controlRef = ref(null);
16133
+ const isFocused = ref(false);
16134
+ const onInput = (e) => {
16135
+ emit("update:modelValue", e.target.value);
16136
+ };
16137
+ const PROPS_TO_COPY = [
16138
+ "fontFamily",
16139
+ "fontSize",
16140
+ "fontWeight",
16141
+ "fontStyle",
16142
+ "fontVariant",
16143
+ "letterSpacing",
16144
+ "lineHeight",
16145
+ "textIndent",
16146
+ "textTransform",
16147
+ "wordSpacing",
16148
+ "paddingTop",
16149
+ "paddingRight",
16150
+ "paddingBottom",
16151
+ "paddingLeft",
16152
+ "borderTopWidth",
16153
+ "borderRightWidth",
16154
+ "borderBottomWidth",
16155
+ "borderLeftWidth",
16156
+ "boxSizing"
16157
+ ];
16158
+ const syncStyles = () => {
16159
+ if (typeof window === "undefined" || !nativeRef.value || !backdropRef.value) {
16160
+ return;
16161
+ }
16162
+ const computedStyle = window.getComputedStyle(nativeRef.value);
16163
+ const backdropStyle = backdropRef.value.style;
16164
+ for (const prop of PROPS_TO_COPY) {
16165
+ backdropStyle.setProperty(
16166
+ prop.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`),
16167
+ computedStyle.getPropertyValue(prop.replace(/[A-Z]/g, (m) => `-${m.toLowerCase()}`))
16168
+ );
16169
+ }
16170
+ };
16171
+ const syncScroll = () => {
16172
+ if (!nativeRef.value || !backdropRef.value) {
16173
+ return;
16174
+ }
16175
+ backdropRef.value.scrollLeft = nativeRef.value.scrollLeft;
16176
+ };
16177
+ const syncAll = () => {
16178
+ syncStyles();
16179
+ syncScroll();
16180
+ };
16181
+ let rafId = null;
16182
+ const syncDuringTransition = (frames = 40) => {
16183
+ if (typeof window === "undefined") {
16184
+ return;
16185
+ }
16186
+ if (rafId !== null) {
16187
+ cancelAnimationFrame(rafId);
16188
+ }
16189
+ let remaining = frames;
16190
+ const tick = () => {
16191
+ syncAll();
16192
+ remaining -= 1;
16193
+ rafId = remaining > 0 ? requestAnimationFrame(tick) : null;
16194
+ };
16195
+ rafId = requestAnimationFrame(tick);
16196
+ };
16197
+ watch(
16198
+ () => props.modelValue,
16199
+ () => {
16200
+ nextTick(syncScroll);
16201
+ }
16202
+ );
16203
+ const moveCaretToEnd = () => {
16204
+ const el = nativeRef.value;
16205
+ if (!el) {
16206
+ return;
16207
+ }
16208
+ const len = el.value.length;
16209
+ el.setSelectionRange(len, len);
16210
+ el.scrollLeft = el.scrollWidth;
16211
+ syncScroll();
16212
+ };
16213
+ const onFocus = () => {
16214
+ isFocused.value = true;
16215
+ nextTick(syncAll);
16216
+ syncDuringTransition();
16217
+ setTimeout(moveCaretToEnd, 0);
16218
+ };
16219
+ const onBlur = () => {
16220
+ isFocused.value = false;
16221
+ nextTick(syncAll);
16222
+ syncDuringTransition();
16223
+ };
16224
+ onMounted(() => {
16225
+ if (!nativeRef.value) {
16226
+ return;
16227
+ }
16228
+ syncStyles();
16229
+ nativeRef.value.addEventListener("focus", onFocus);
16230
+ nativeRef.value.addEventListener("blur", onBlur);
16231
+ nativeRef.value.addEventListener("scroll", syncScroll);
16232
+ window.addEventListener("resize", syncStyles);
16233
+ });
16234
+ onUnmounted(() => {
16235
+ if (nativeRef.value) {
16236
+ nativeRef.value.removeEventListener("focus", onFocus);
16237
+ nativeRef.value.removeEventListener("blur", onBlur);
16238
+ nativeRef.value.removeEventListener("scroll", syncScroll);
16239
+ }
16240
+ if (typeof window !== "undefined") {
16241
+ window.removeEventListener("resize", syncStyles);
16242
+ if (rafId !== null) {
16243
+ cancelAnimationFrame(rafId);
16244
+ }
16245
+ }
16246
+ });
16247
+ __expose({
16248
+ focus: () => {
16249
+ var _a;
16250
+ return (_a = nativeRef.value) == null ? void 0 : _a.focus();
16251
+ },
16252
+ blur: () => {
16253
+ var _a;
16254
+ return (_a = nativeRef.value) == null ? void 0 : _a.blur();
16255
+ }
16256
+ });
16257
+ return (_ctx, _cache) => {
16258
+ return openBlock(), createElementBlock("div", {
16259
+ class: normalizeClass(["devui-input__wrapper devui-input--glow-style hl-search-input", [rootClass.value, { "devui-input--focus": isFocused.value }]]),
16260
+ style: normalizeStyle(rootStyle.value)
16261
+ }, [
16262
+ _ctx.$slots.prefix ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
16263
+ renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
16264
+ ])) : createCommentVNode("", true),
16265
+ createElementVNode("div", {
16266
+ class: "hl-search-input__control",
16267
+ ref_key: "controlRef",
16268
+ ref: controlRef
16269
+ }, [
16270
+ createElementVNode("div", {
16271
+ class: "hl-search-input__backdrop",
16272
+ ref_key: "backdropRef",
16273
+ ref: backdropRef,
16274
+ "aria-hidden": "true"
16275
+ }, [
16276
+ (openBlock(true), createElementBlock(Fragment, null, renderList(segments.value, (seg, index2) => {
16277
+ return openBlock(), createElementBlock("span", {
16278
+ key: index2,
16279
+ class: normalizeClass(seg.cls)
16280
+ }, toDisplayString$1(seg.text), 3);
16281
+ }), 128))
16282
+ ], 512),
16283
+ createElementVNode("input", mergeProps({
16284
+ ref_key: "nativeRef",
16285
+ ref: nativeRef,
16286
+ class: "devui-input__inner hl-search-input__native",
16287
+ value: __props.modelValue
16288
+ }, inputAttrs.value, { onInput }), null, 16, _hoisted_2$i)
16289
+ ], 512),
16290
+ _ctx.$slots.suffix ? (openBlock(), createElementBlock("div", _hoisted_3$h, [
16291
+ renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
16292
+ ])) : createCommentVNode("", true)
16293
+ ], 6);
16294
+ };
16295
+ }
16296
+ });
16297
+ const HighlightInput = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-vue-layout-gitcode"]]);
15970
16298
  const _hoisted_1$m = { class: "g-header-search-prefix" };
15971
16299
  const _hoisted_2$h = ["innerHTML"];
15972
16300
  const _hoisted_3$g = { class: "g-header-search-suffix-splitline" };
@@ -15974,8 +16302,10 @@ const _hoisted_4$c = { class: "g-header-search-suffix-suffixIcon" };
15974
16302
  const _hoisted_5$8 = { class: "history-list" };
15975
16303
  const _hoisted_6$7 = {
15976
16304
  key: 1,
15977
- class: "aireposearch flex-1"
16305
+ class: "aireposearch aireposearch--flex"
15978
16306
  };
16307
+ const RECOMMEND_RESERVE = 60;
16308
+ const HISTORY_DISPLAY_COUNT = 3;
15979
16309
  const _sfc_main$p = /* @__PURE__ */ defineComponent({
15980
16310
  __name: "index",
15981
16311
  props: {
@@ -15984,23 +16314,21 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
15984
16314
  isShowStickyNotice: { type: Boolean }
15985
16315
  },
15986
16316
  setup(__props) {
15987
- var _a;
15988
16317
  const layoutConfig2 = useLayoutConfig();
15989
16318
  const { t: $t } = i18n.global;
15990
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DCAtcvSv.js"));
15991
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-WceE6qE_.js"));
15992
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-WUU-6ytG.js"));
15993
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-SfXAAJII.js"));
15994
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B0XWemWi.js"));
15995
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-B6JvWVGf.js"));
15996
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-i9tN03O7.js"));
16319
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DqTXNeuA.js"));
16320
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-p1c5YRt2.js"));
16321
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-CehDLm5e.js"));
16322
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-08Q75qyT.js"));
16323
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-jaI05Znk.js"));
16324
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BP1gksCD.js"));
15997
16325
  const props = __props;
15998
16326
  const repoInfo = inject("repoInfo");
15999
16327
  const orgInfo = inject("orgInfo");
16000
16328
  const otherUserInfo = inject("otherUserInfo");
16001
16329
  const useReport2 = inject("useReport");
16002
16330
  const searchInfo = computed(() => {
16003
- var _a2, _b;
16331
+ var _a, _b;
16004
16332
  if (props.sceneValue === SceneValue.org && orgInfo.value) {
16005
16333
  return {
16006
16334
  searchScope: "group",
@@ -16010,7 +16338,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16010
16338
  if (props.sceneValue === SceneValue.repo && repoInfo.value) {
16011
16339
  return {
16012
16340
  searchScope: "repo",
16013
- projectType: (_a2 = repoInfo.value.namespace) == null ? void 0 : _a2.kind,
16341
+ projectType: (_a = repoInfo.value.namespace) == null ? void 0 : _a.kind,
16014
16342
  nameOrOrg: (_b = repoInfo.value.namespace) == null ? void 0 : _b.name,
16015
16343
  searchScopeName: repoInfo.value.path_with_namespace,
16016
16344
  branch: repoInfo.value.default_branch,
@@ -16018,7 +16346,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16018
16346
  };
16019
16347
  }
16020
16348
  if (props.sceneValue === SceneValue.user && otherUserInfo.value) {
16021
- console.log(otherUserInfo.value);
16022
16349
  return {
16023
16350
  searchScope: "user",
16024
16351
  searchScopeName: otherUserInfo.value.nickname
@@ -16036,35 +16363,142 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16036
16363
  });
16037
16364
  const route = useRoute();
16038
16365
  const router2 = useRouter();
16039
- const searchStr = ref(((_a = route == null ? void 0 : route.query) == null ? void 0 : _a.q) || "");
16040
16366
  const inputRef = ref(null);
16041
16367
  const inputIng = ref(false);
16042
- let searchParams = { type: "repo" };
16368
+ const pendingType = ref("");
16043
16369
  const API = headRequest(inject("request"));
16044
16370
  const searchHotWords = ref([]);
16045
16371
  const activeSearchKey = ref(0);
16046
16372
  const interval = ref(null);
16373
+ const isSearchPage = ref(false);
16374
+ const buildStrFromParams = (params = {}) => {
16375
+ const parts = [];
16376
+ if (params.scope === "repo" && params.repo) {
16377
+ parts.push(`repo:${decodeURIComponent(params.repo)}`);
16378
+ } else {
16379
+ const userVal = params.user || (params.scope === "user" ? params.namespace : "");
16380
+ const orgVal = params.org || (params.scope === "user" ? "" : params.namespace);
16381
+ if (userVal) {
16382
+ parts.push(`user:${decodeURIComponent(userVal)}`);
16383
+ } else if (orgVal) {
16384
+ parts.push(`org:${decodeURIComponent(orgVal)}`);
16385
+ }
16386
+ }
16387
+ if (params.l) {
16388
+ parts.push(`lang:${params.l}`);
16389
+ }
16390
+ if (params.path) {
16391
+ parts.push(`path:${decodeURIComponent(params.path)}`);
16392
+ }
16393
+ if (params.symbol) {
16394
+ parts.push(`symbol:${decodeURIComponent(params.symbol)}`);
16395
+ }
16396
+ if (params.q) {
16397
+ parts.push(String(params.q));
16398
+ }
16399
+ return parts.join(" ");
16400
+ };
16401
+ const SEARCH_QUERY_KEYS = ["q", "repo", "org", "user", "namespace", "scope", "l", "path", "symbol"];
16402
+ const initSearchStrFromQuery = () => {
16403
+ const query = route == null ? void 0 : route.query;
16404
+ if (!query) {
16405
+ return "";
16406
+ }
16407
+ const hasSearchQuery = SEARCH_QUERY_KEYS.some((key) => query[key] !== void 0 && query[key] !== "");
16408
+ return hasSearchQuery ? buildStrFromParams(query) : "";
16409
+ };
16410
+ const searchStr = ref(initSearchStrFromQuery());
16411
+ const parsedResult = computed(() => parseSearchInput(searchStr.value));
16412
+ const keyword = computed(() => parsedResult.value.params.q);
16413
+ const isScopeOnly = computed(() => {
16414
+ const p = parsedResult.value.params;
16415
+ return (p.scope === "group" || p.scope === "repo") && !p.q && !p.l && !p.path && !p.symbol;
16416
+ });
16417
+ const SCOPE_KEYS = ["repo", "user", "group"];
16418
+ const keywordRest = computed(() => {
16419
+ const parts = [];
16420
+ for (const token of parsedResult.value.tokens) {
16421
+ if (token.type === "space") {
16422
+ continue;
16423
+ }
16424
+ if (token.type === "qualifier" && SCOPE_KEYS.includes(token.key)) {
16425
+ continue;
16426
+ }
16427
+ parts.push(token.raw);
16428
+ }
16429
+ return parts.join(" ");
16430
+ });
16431
+ const derivedSearchInfo = computed(() => {
16432
+ const p = parsedResult.value.params;
16433
+ if (!p.scope) {
16434
+ return {};
16435
+ }
16436
+ const name = decodeURIComponent(p.repo || p.namespace || "");
16437
+ const info = { searchScope: p.scope, searchScopeName: name };
16438
+ const ctx = searchInfo.value;
16439
+ if (p.scope === "repo" && ctx.searchScope === "repo" && ctx.searchScopeName === name) {
16440
+ info.projectId = ctx.projectId;
16441
+ info.branch = ctx.branch;
16442
+ info.projectType = ctx.projectType;
16443
+ info.nameOrOrg = ctx.nameOrOrg;
16444
+ }
16445
+ return info;
16446
+ });
16047
16447
  const showRecommendSearch = computed(() => {
16048
- return !searchStr.value && !projectTagVisible.value && !languageTagVisible.value && !inputIng.value;
16448
+ return (!searchStr.value || isScopeOnly.value) && !inputIng.value;
16049
16449
  });
16450
+ const recommendOffset = ref(0);
16451
+ const recommendHasRoom = ref(true);
16452
+ const recommendMaxWidth = ref(0);
16453
+ let measureCanvas = null;
16454
+ const measureRecommendOffset = () => {
16455
+ if (typeof document === "undefined" || typeof window === "undefined") {
16456
+ return;
16457
+ }
16458
+ if (!isScopeOnly.value || !searchStr.value) {
16459
+ recommendOffset.value = 0;
16460
+ recommendHasRoom.value = true;
16461
+ return;
16462
+ }
16463
+ const input = document.querySelector("#golbalSearch");
16464
+ if (!input) {
16465
+ recommendOffset.value = 0;
16466
+ recommendHasRoom.value = true;
16467
+ return;
16468
+ }
16469
+ const cs = window.getComputedStyle(input);
16470
+ measureCanvas = measureCanvas || document.createElement("canvas");
16471
+ const ctx = measureCanvas.getContext("2d");
16472
+ if (!ctx) {
16473
+ recommendOffset.value = 0;
16474
+ recommendHasRoom.value = true;
16475
+ return;
16476
+ }
16477
+ ctx.font = `${cs.fontStyle} ${cs.fontWeight} ${cs.fontSize} ${cs.fontFamily}`;
16478
+ const width2 = Math.ceil(ctx.measureText(`${searchStr.value} `).width);
16479
+ recommendOffset.value = width2;
16480
+ const room = input.clientWidth - width2;
16481
+ recommendMaxWidth.value = Math.max(room, 0);
16482
+ recommendHasRoom.value = room >= RECOMMEND_RESERVE;
16483
+ };
16484
+ watch(
16485
+ [() => searchStr.value, isScopeOnly, () => isFocus.value],
16486
+ () => {
16487
+ nextTick(measureRecommendOffset);
16488
+ },
16489
+ { immediate: true }
16490
+ );
16050
16491
  const scrollRecommend = () => {
16492
+ interval.value && clearInterval(interval.value);
16051
16493
  interval.value = setInterval(() => {
16494
+ if (!searchHotWords.value.length) {
16495
+ return;
16496
+ }
16052
16497
  activeSearchKey.value = (activeSearchKey.value + 1) % searchHotWords.value.length;
16053
16498
  }, 3e3);
16054
16499
  };
16055
- const isSearchPage = ref(false);
16056
- const language = ref("");
16057
- const localSearchInfo = ref({});
16058
- const setSearchInfo = () => {
16059
- if (searchInfo.value && Object.keys(searchInfo.value).length && searchInfo.value.searchScopeName) {
16060
- localSearchInfo.value = { ...searchInfo.value };
16061
- }
16062
- };
16063
16500
  const placeholderVisible = computed(() => {
16064
- if (!isSearchPage.value) {
16065
- return !isFocus.value && !searchStr.value;
16066
- }
16067
- return !isFocus.value && !searchStr.value && !localSearchInfo.value.searchScopeName && !language.value;
16501
+ return !isFocus.value && !searchStr.value;
16068
16502
  });
16069
16503
  let quickTips = "";
16070
16504
  try {
@@ -16072,65 +16506,47 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16072
16506
  } catch (error) {
16073
16507
  quickTips = "";
16074
16508
  }
16075
- const setQueryTag = () => {
16076
- const queryArg = route.query;
16077
- if (queryArg.scope) {
16078
- const oldState = { searchScope: queryArg.scope, ...queryArg };
16079
- if (queryArg.repo) {
16080
- oldState.searchScopeName = decodeURIComponent(queryArg.repo);
16081
- } else {
16082
- oldState.searchScopeName = decodeURIComponent(queryArg.namespace);
16083
- }
16084
- localSearchInfo.value = oldState;
16085
- }
16086
- if (queryArg.l) {
16087
- language.value = queryArg.l;
16509
+ const applyContextPrefill = () => {
16510
+ const prefix = buildQualifierPrefix(searchInfo.value);
16511
+ if (prefix) {
16512
+ searchStr.value = prefix;
16088
16513
  }
16089
16514
  };
16090
16515
  if ((route == null ? void 0 : route.name) === "search") {
16091
16516
  isSearchPage.value = true;
16092
- setQueryTag();
16093
16517
  }
16094
- const projectTagVisible = computed(() => {
16095
- return (isSearchPage.value || isFocus.value) && localSearchInfo.value.searchScopeName;
16096
- });
16097
16518
  const cnScopeMap = {
16098
16519
  repo: $t("gitCodeLayout.header.repo"),
16099
16520
  group: $t("gitCodeLayout.header.org"),
16100
16521
  user: $t("gitCodeLayout.header.user")
16101
16522
  };
16102
- const languageTagVisible = computed(() => {
16103
- return (isSearchPage.value || isFocus.value) && searchStr && language.value;
16104
- });
16105
16523
  const searchScopeList = computed(() => {
16106
- if (localSearchInfo.value.searchScope) {
16107
- switch (localSearchInfo.value.searchScope) {
16108
- case "repo":
16109
- return [
16524
+ const info = derivedSearchInfo.value;
16525
+ if (info.searchScope) {
16526
+ switch (info.searchScope) {
16527
+ case "repo": {
16528
+ const repoScopeList = [
16110
16529
  {
16111
- ...localSearchInfo.value,
16530
+ ...info,
16112
16531
  label: cnScopeMap.repo,
16113
16532
  enLabel: "repo",
16114
16533
  type: "code",
16115
- value: localSearchInfo.value.searchScopeName
16116
- },
16117
- {
16118
- label: localSearchInfo.value.projectType === "user" ? $t("gitCodeLayout.header.user") : $t("gitCodeLayout.header.org"),
16119
- enLabel: localSearchInfo.value.projectType === "user" ? "user" : "group",
16120
- value: localSearchInfo.value.nameOrOrg
16534
+ value: info.searchScopeName
16121
16535
  }
16122
- // { title: $t('gitCodeLayout.header.platformSearch') }
16123
16536
  ];
16537
+ if (info.nameOrOrg) {
16538
+ repoScopeList.push({
16539
+ label: info.projectType === "user" ? $t("gitCodeLayout.header.user") : $t("gitCodeLayout.header.org"),
16540
+ enLabel: info.projectType === "user" ? "user" : "group",
16541
+ value: info.nameOrOrg
16542
+ });
16543
+ }
16544
+ return repoScopeList;
16545
+ }
16124
16546
  case "group":
16125
- return [
16126
- { label: cnScopeMap.group, enLabel: "group", value: localSearchInfo.value.searchScopeName }
16127
- // { title: $t('gitCodeLayout.header.platformSearch') }
16128
- ];
16547
+ return [{ label: cnScopeMap.group, enLabel: "group", value: info.searchScopeName }];
16129
16548
  case "user":
16130
- return [
16131
- { label: cnScopeMap.user, enLabel: "user", value: localSearchInfo.value.searchScopeName }
16132
- // { title: $t('gitCodeLayout.header.platformSearch') }
16133
- ];
16549
+ return [{ label: cnScopeMap.user, enLabel: "user", value: info.searchScopeName }];
16134
16550
  }
16135
16551
  }
16136
16552
  return [];
@@ -16138,7 +16554,9 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16138
16554
  let localSearchText = localStorage$2.getItem("localSearchText");
16139
16555
  if (localSearchText) {
16140
16556
  try {
16141
- localSearchText = JSON.parse(localSearchText).splice(0, 3);
16557
+ localSearchText = JSON.parse(localSearchText).filter(
16558
+ (ele) => typeof ele === "string" ? !!ele : !!(ele == null ? void 0 : ele.q)
16559
+ );
16142
16560
  } catch (e) {
16143
16561
  console.error(e);
16144
16562
  }
@@ -16153,27 +16571,18 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16153
16571
  }
16154
16572
  const searchHistoryList = ref(localSearchText || []);
16155
16573
  const visitHistoryList = ref(localVistList || []);
16574
+ const displayHistoryList = computed(() => searchHistoryList.value.slice(0, HISTORY_DISPLAY_COUNT));
16156
16575
  const activeIndex = ref(-1);
16157
16576
  const onCaptureClose = () => {
16158
16577
  isFocus.value = false;
16159
16578
  searchDropDownVisible.value = false;
16160
16579
  };
16161
16580
  const onScopeSearch = (data = {}) => {
16162
- searchParams = { scope: data.enLabel ? data.enLabel : void 0 };
16163
- if (isSearchPage.value && route.query.type && route.query.type !== "commit") {
16164
- searchParams.type = route.query.type;
16165
- } else {
16166
- searchParams.type = data.type ? data.type : "repo";
16167
- }
16168
- if (data.value) {
16169
- if (data.enLabel === "repo") {
16170
- searchParams.repo = encodeURIComponent(data.value);
16171
- searchParams.nameOrOrg = data.nameOrOrg;
16172
- searchParams.projectId = data.projectId;
16173
- searchParams.branch = data.branch;
16174
- searchParams.projectType = data.projectType;
16175
- } else {
16176
- searchParams.namespace = encodeURIComponent(data.value);
16581
+ if ((data == null ? void 0 : data.enLabel) && (data == null ? void 0 : data.value)) {
16582
+ const keyMap = { repo: "repo", user: "user", group: "org" };
16583
+ const prefixKey = keyMap[data.enLabel];
16584
+ if (prefixKey) {
16585
+ searchStr.value = `${prefixKey}:${data.value} ${keywordRest.value}`.trim();
16177
16586
  }
16178
16587
  }
16179
16588
  onSearch();
@@ -16181,11 +16590,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16181
16590
  const onSearchBefore = (e) => {
16182
16591
  e.stopPropagation();
16183
16592
  if (e.keyCode === 13) {
16184
- if (activeIndex.value !== -1 && !searchStr.value) {
16185
- searchStr.value = searchHistoryList.value[activeIndex.value].q;
16186
- searchHistory(searchHistoryList.value[activeIndex.value]);
16593
+ if (activeIndex.value !== -1 && !keyword.value) {
16594
+ searchHistory(displayHistoryList.value[activeIndex.value]);
16187
16595
  } else {
16188
- onScopeSearch(searchScopeList.value[0]);
16596
+ onSearch();
16189
16597
  }
16190
16598
  }
16191
16599
  };
@@ -16194,39 +16602,47 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16194
16602
  onSearch();
16195
16603
  };
16196
16604
  const handleSearchMore = (type) => {
16197
- console.log(type);
16198
- searchParams.type = type;
16605
+ pendingType.value = type;
16199
16606
  onSearch();
16200
16607
  };
16201
16608
  const isSearchHistory = ref(false);
16202
16609
  const searchHistory = (data) => {
16203
16610
  isSearchHistory.value = true;
16204
- searchStr.value = typeof data === "string" ? data : data.q;
16205
- toSearch(data);
16206
- };
16207
- const toSearch = (data) => {
16208
16611
  if (typeof data === "string") {
16209
16612
  searchStr.value = data;
16210
16613
  } else {
16211
- const { count, ...rest } = data;
16212
- searchParams = rest;
16614
+ searchStr.value = buildStrFromParams(data);
16213
16615
  }
16214
16616
  onSearch();
16215
16617
  };
16618
+ const resolveSearchType = (params) => {
16619
+ var _a;
16620
+ if (pendingType.value) {
16621
+ return pendingType.value;
16622
+ }
16623
+ if (isSearchPage.value && ((_a = route == null ? void 0 : route.query) == null ? void 0 : _a.type) && route.query.type !== "commit") {
16624
+ return String(route.query.type);
16625
+ }
16626
+ if (params.type) {
16627
+ return params.type;
16628
+ }
16629
+ if (params.scope === "repo") {
16630
+ return "code";
16631
+ }
16632
+ return "repo";
16633
+ };
16216
16634
  const onSearch = () => {
16217
- var _a2;
16635
+ var _a, _b;
16218
16636
  _frEventTrack(EVENT_NAME.HEADER_START_SEARCH);
16219
16637
  useReport2("search-project", {}, () => {
16220
16638
  });
16221
16639
  isFocus.value = false;
16222
- inputRef.value.blur();
16640
+ (_a = inputRef.value) == null ? void 0 : _a.blur();
16223
16641
  searchDropDownVisible.value = false;
16224
- if (!searchStr.value && searchParams.scope && typeof document !== "undefined" && document.querySelector) {
16225
- (_a2 = document.querySelector("#golbalSearch")) == null ? void 0 : _a2.blur();
16226
- return;
16227
- }
16642
+ const { params } = parseSearchInput(searchStr.value);
16643
+ const scopeOnly = (params.scope === "group" || params.scope === "repo") && !params.q && !params.l && !params.path && !params.symbol;
16228
16644
  const targetHotWord = searchHotWords.value[activeSearchKey.value];
16229
- if (!searchStr.value && (targetHotWord == null ? void 0 : targetHotWord.url) && !isSearchHistory.value) {
16645
+ if ((!searchStr.value || scopeOnly) && (targetHotWord == null ? void 0 : targetHotWord.url) && !isSearchHistory.value) {
16230
16646
  let hotUrl = targetHotWord.url;
16231
16647
  const urlObj = new URL(targetHotWord.url);
16232
16648
  if (urlObj.search.length > 1) {
@@ -16235,26 +16651,44 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16235
16651
  hotUrl = `${hotUrl}?source_module=search_box_hot_word`;
16236
16652
  }
16237
16653
  window.open(transformUrl(hotUrl), "_blank");
16654
+ pendingType.value = "";
16238
16655
  return;
16239
16656
  }
16240
16657
  isSearchHistory.value = false;
16241
- searchStr.value = searchStr.value || (targetHotWord == null ? void 0 : targetHotWord.content);
16242
- const queryKey = searchStr.value;
16243
- const query = { q: queryKey, l: language.value ? language.value : void 0, ...searchParams };
16658
+ const queryKey = params.q || (searchStr.value ? "" : targetHotWord == null ? void 0 : targetHotWord.content) || "";
16659
+ const hasSearchable = Boolean(queryKey || params.l || params.path || params.symbol);
16660
+ if (!hasSearchable && typeof document !== "undefined" && document.querySelector) {
16661
+ (_b = document.querySelector("#golbalSearch")) == null ? void 0 : _b.blur();
16662
+ pendingType.value = "";
16663
+ return;
16664
+ }
16665
+ const type = resolveSearchType(params);
16666
+ pendingType.value = "";
16667
+ const query = {
16668
+ q: queryKey,
16669
+ scope: params.scope,
16670
+ repo: params.repo,
16671
+ // 范围值按 scope 写入对应参数:组织 -> org,用户 -> user(不再输出 namespace)
16672
+ org: params.scope === "group" ? params.namespace : void 0,
16673
+ user: params.scope === "user" ? params.namespace : void 0,
16674
+ l: params.l,
16675
+ path: params.path,
16676
+ symbol: params.symbol,
16677
+ type
16678
+ };
16244
16679
  searchHistoryList.value = setlocalVistHistory(query, "localSearchText");
16680
+ Object.keys(query).forEach((key) => {
16681
+ if (query[key] === void 0 || query[key] === "undefined") {
16682
+ delete query[key];
16683
+ }
16684
+ });
16245
16685
  if (!(router2 == null ? void 0 : router2.hasRoute("search"))) {
16246
- Object.keys(query).forEach((key) => {
16247
- if (query[key] === void 0 || query[key] === "undefined") {
16248
- delete query[key];
16249
- }
16250
- });
16251
16686
  const urlParams = new URLSearchParams(query);
16252
16687
  const url = `${layoutConfig2.VITE_HOST}/search?${urlParams.toString()}`;
16253
16688
  window.open(url, "_blank");
16254
16689
  return;
16255
- } else {
16256
- router2.push({ name: "search", query });
16257
16690
  }
16691
+ router2.push({ name: "search", query });
16258
16692
  };
16259
16693
  const changeHoverIndex = (type) => {
16260
16694
  if (type === "add") {
@@ -16262,38 +16696,20 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16262
16696
  } else {
16263
16697
  activeIndex.value = activeIndex.value - 1;
16264
16698
  }
16265
- if (activeIndex.value === searchHistoryList.value.length) {
16699
+ if (activeIndex.value === displayHistoryList.value.length) {
16266
16700
  activeIndex.value = 0;
16267
16701
  }
16268
16702
  if (activeIndex.value < 0) {
16269
- activeIndex.value = searchHistoryList.value.length - 1;
16270
- }
16271
- };
16272
- const onBackspaceHandle = (event) => {
16273
- if (event.target.selectionStart === 0 && event.target.selectionEnd === 0 || !searchStr.value && !inputIng.value) {
16274
- onCloseTag();
16703
+ activeIndex.value = displayHistoryList.value.length - 1;
16275
16704
  }
16276
16705
  };
16277
- const onCloseTag = () => {
16278
- localSearchInfo.value = {};
16279
- };
16280
- let memorySearchKey = "";
16281
16706
  watch(
16282
- () => isFocus.value,
16707
+ [() => searchStr.value, () => isFocus.value, isScopeOnly],
16283
16708
  () => {
16284
- if (!isFocus.value && !isSearchPage.value) {
16285
- memorySearchKey = searchStr.value;
16286
- searchStr.value = "";
16287
- }
16288
- }
16289
- );
16290
- watch(
16291
- [() => searchStr.value, () => isFocus.value],
16292
- () => {
16293
- if (isFocus.value || searchStr.value) {
16294
- interval.value && clearInterval(interval.value);
16295
- } else {
16709
+ if (!isFocus.value && (!searchStr.value || isScopeOnly.value)) {
16296
16710
  scrollRecommend();
16711
+ } else {
16712
+ interval.value && clearInterval(interval.value);
16297
16713
  }
16298
16714
  },
16299
16715
  {
@@ -16312,23 +16728,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16312
16728
  if (isFocus.value) {
16313
16729
  return;
16314
16730
  }
16315
- if (memorySearchKey && !isSearchPage.value) {
16316
- searchStr.value = memorySearchKey;
16731
+ if (!isSearchPage.value && !searchStr.value) {
16732
+ applyContextPrefill();
16317
16733
  }
16318
16734
  isFocus.value = true;
16319
- if (!Object.keys(localSearchInfo.value).length) {
16320
- if (isSearchPage.value) {
16321
- setQueryTag();
16322
- } else {
16323
- setSearchInfo();
16324
- }
16325
- }
16326
16735
  setTimeout(() => {
16327
- var _a2;
16736
+ var _a;
16328
16737
  if (isFocus.value) {
16329
16738
  searchDropDownVisible.value = true;
16330
16739
  if (typeof document !== "undefined" && document.querySelector) {
16331
- (_a2 = document.querySelector(".custom-h-searchinput input")) == null ? void 0 : _a2.focus();
16740
+ (_a = document.querySelector(".custom-h-searchinput input")) == null ? void 0 : _a.focus();
16332
16741
  }
16333
16742
  }
16334
16743
  }, 300);
@@ -16342,17 +16751,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16342
16751
  isFocus.value = true;
16343
16752
  searchDropDownVisible.value = true;
16344
16753
  };
16345
- const excludeQuery = {
16346
- l: "",
16347
- // 当前搜索语言
16348
- p: 1,
16349
- pp: 10,
16350
- total: 0
16351
- };
16352
- const onCloseLanguageTag = () => {
16353
- const filteredQuery = Object.fromEntries(Object.entries(route.query).filter(([key]) => !(key in excludeQuery)));
16354
- return router2.push({ name: "search", query: { ...filteredQuery } });
16355
- };
16356
16754
  const clearHistoryData = () => {
16357
16755
  searchHistoryList.value = [];
16358
16756
  localStorage$2.setItem("localSearchText", JSON.stringify([]));
@@ -16389,13 +16787,6 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16389
16787
  e.preventDefault();
16390
16788
  }
16391
16789
  });
16392
- watch(
16393
- () => searchInfo.value,
16394
- () => {
16395
- setSearchInfo();
16396
- },
16397
- { immediate: true }
16398
- );
16399
16790
  const getSearchHot = async () => {
16400
16791
  try {
16401
16792
  const res = await API.getSearchHot();
@@ -16406,7 +16797,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16406
16797
  };
16407
16798
  getSearchHot();
16408
16799
  onMounted(() => {
16409
- var _a2, _b;
16800
+ var _a;
16410
16801
  useReport2 && useReport2(
16411
16802
  REPO_EVENT.SHOW,
16412
16803
  {
@@ -16415,8 +16806,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16415
16806
  () => {
16416
16807
  }
16417
16808
  );
16418
- searchStr.value = ((_a2 = route == null ? void 0 : route.query) == null ? void 0 : _a2.q) || "";
16419
- const index2 = (_b = searchHotWords.value) == null ? void 0 : _b.findIndex((item) => item === searchStr.value);
16809
+ searchStr.value = initSearchStrFromQuery();
16810
+ const index2 = (_a = searchHotWords.value) == null ? void 0 : _a.findIndex((item) => item === searchStr.value);
16420
16811
  activeSearchKey.value = index2 === -1 ? 0 : index2;
16421
16812
  document.addEventListener("keydown", function(event) {
16422
16813
  if (event.key === "Escape") {
@@ -16478,24 +16869,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16478
16869
  withDirectives(createElementVNode("div", _hoisted_5$8, [
16479
16870
  createVNode(unref(SearchScopeList), {
16480
16871
  searchScopeList: searchScopeList.value,
16481
- searchStr: searchStr.value,
16482
16872
  onScopeSearch
16483
- }, null, 8, ["searchScopeList", "searchStr"]),
16484
- localSearchInfo.value.searchScope === "repo" ? (openBlock(), createBlock(unref(ProjectSearch), {
16873
+ }, null, 8, ["searchScopeList"]),
16874
+ derivedSearchInfo.value.searchScope === "repo" ? (openBlock(), createBlock(unref(ProjectSearch), {
16485
16875
  key: 0,
16486
- searchStr: searchStr.value,
16487
- searchInfo: localSearchInfo.value,
16876
+ searchStr: keyword.value,
16877
+ searchInfo: derivedSearchInfo.value,
16488
16878
  isSearchPage: isSearchPage.value
16489
16879
  }, null, 8, ["searchStr", "searchInfo", "isSearchPage"])) : createCommentVNode("", true),
16490
- localSearchInfo.value.searchScope === "user" || localSearchInfo.value.searchScope === "group" ? (openBlock(), createBlock(unref(UserSearch), {
16880
+ derivedSearchInfo.value.searchScope === "user" || derivedSearchInfo.value.searchScope === "group" ? (openBlock(), createBlock(unref(UserSearch), {
16491
16881
  key: 1,
16492
- searchStr: searchStr.value,
16493
- searchInfo: localSearchInfo.value
16882
+ searchStr: keyword.value,
16883
+ searchInfo: derivedSearchInfo.value
16494
16884
  }, null, 8, ["searchStr", "searchInfo"])) : createCommentVNode("", true),
16495
- !localSearchInfo.value.searchScope ? renderSlot(_ctx.$slots, "globalSearch", normalizeProps(mergeProps({ key: 2 }, { searchStr: searchStr.value, searchMore: (type) => handleSearchMore(type) })), () => [
16496
- !localSearchInfo.value.searchScope ? (openBlock(), createBlock(unref(GloabarSearch), {
16885
+ !derivedSearchInfo.value.searchScope ? renderSlot(_ctx.$slots, "globalSearch", normalizeProps(mergeProps({ key: 2 }, { searchStr: keyword.value, searchMore: (type) => handleSearchMore(type) })), () => [
16886
+ !derivedSearchInfo.value.searchScope ? (openBlock(), createBlock(unref(GloabarSearch), {
16497
16887
  key: 0,
16498
- searchStr: searchStr.value,
16888
+ searchStr: keyword.value,
16499
16889
  onSearchMore: _cache[5] || (_cache[5] = (type) => handleSearchMore(type))
16500
16890
  }, null, 8, ["searchStr"])) : createCommentVNode("", true)
16501
16891
  ], true) : createCommentVNode("", true)
@@ -16503,7 +16893,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16503
16893
  [vShow, searchStr.value]
16504
16894
  ]),
16505
16895
  withDirectives(createVNode(unref(SearchHistoryList), {
16506
- searchHistoryList: searchHistoryList.value,
16896
+ searchHistoryList: displayHistoryList.value,
16507
16897
  visitHistoryList: visitHistoryList.value,
16508
16898
  activeIndex: activeIndex.value,
16509
16899
  onClearHistoryData: clearHistoryData,
@@ -16524,18 +16914,16 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16524
16914
  default: withCtx(() => [
16525
16915
  createVNode(unref(Form), null, {
16526
16916
  default: withCtx(() => [
16527
- (openBlock(), createBlock(unref(Input), {
16917
+ (openBlock(), createBlock(HighlightInput, {
16528
16918
  key: _ctx.$route.fullPath,
16529
16919
  id: "golbalSearch",
16530
16920
  class: "g-header-search custom-h-searchinput",
16531
16921
  modelValue: searchStr.value,
16532
16922
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchStr.value = $event),
16533
- modelModifiers: { trim: true },
16534
16923
  onKeydown: [
16535
16924
  withKeys(onSearchBefore, ["enter"]),
16536
16925
  _cache[1] || (_cache[1] = withKeys(($event) => changeHoverIndex("del"), ["up"])),
16537
- _cache[2] || (_cache[2] = withKeys(($event) => changeHoverIndex("add"), ["down"])),
16538
- withKeys(onBackspaceHandle, ["backspace"])
16926
+ _cache[2] || (_cache[2] = withKeys(($event) => changeHoverIndex("add"), ["down"]))
16539
16927
  ],
16540
16928
  onFocus,
16541
16929
  onCompositionstart: _cache[3] || (_cache[3] = ($event) => inputIng.value = true),
@@ -16554,38 +16942,23 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
16554
16942
  ]),
16555
16943
  showRecommendSearch.value && searchHotWords.value.length ? (openBlock(), createElementBlock("div", {
16556
16944
  key: 0,
16557
- class: normalizeClass(["g-header-search-recommend-placeholder z-[-1] absolute top-0 left-[44px] w-full h-full leading-[100%] text-[var(--theme-placeholder)]", { default: !isFocus.value, focus: isFocus.value }])
16945
+ class: normalizeClass(["g-header-search-recommend-placeholder", { default: !isFocus.value, focus: isFocus.value, "recommend-hidden": !recommendHasRoom.value }]),
16946
+ style: normalizeStyle(recommendOffset.value ? { left: `calc(44px + ${recommendOffset.value}px)`, width: `${recommendMaxWidth.value}px`, overflow: "hidden" } : void 0)
16558
16947
  }, [
16559
- _cache[8] || (_cache[8] = createElementVNode("div", { class: "absolute top-0 left-0 h-full flex items-center" }, "🔥", -1)),
16948
+ _cache[8] || (_cache[8] = createElementVNode("div", { class: "g-header-search-recommend-flame" }, "🔥", -1)),
16560
16949
  (openBlock(true), createElementBlock(Fragment, null, renderList(searchHotWords.value, (item, index2) => {
16561
16950
  return openBlock(), createElementBlock("div", {
16562
- class: normalizeClass(["g-header-search-recommend-item absolute top-0 left-[24px] h-full flex items-center", { fadeInUp: activeSearchKey.value === index2, fadeOutUp: activeSearchKey.value !== index2 }]),
16951
+ class: normalizeClass(["g-header-search-recommend-item", { fadeInUp: activeSearchKey.value === index2, fadeOutUp: activeSearchKey.value !== index2 }]),
16563
16952
  key: item
16564
16953
  }, toDisplayString$1(item.content), 3);
16565
16954
  }), 128))
16566
- ], 2)) : withDirectives((openBlock(), createElementBlock("span", {
16955
+ ], 6)) : withDirectives((openBlock(), createElementBlock("span", {
16567
16956
  key: 1,
16568
16957
  class: "quick-tips",
16569
16958
  innerHTML: unref(quickTips),
16570
16959
  onClick: onInputClick
16571
16960
  }, null, 8, _hoisted_2$h)), [
16572
16961
  [vShow, placeholderVisible.value]
16573
- ]),
16574
- withDirectives(createVNode(unref(SearchPrefixTag), {
16575
- tag: cnScopeMap[localSearchInfo.value.searchScope] + ":" + localSearchInfo.value.searchScopeName,
16576
- closeVisible: isFocus.value,
16577
- onInputClick,
16578
- onCloseTag
16579
- }, null, 8, ["tag", "closeVisible"]), [
16580
- [vShow, projectTagVisible.value]
16581
- ]),
16582
- withDirectives(createVNode(unref(SearchPrefixTag), {
16583
- tag: unref($t)("gitCodeLayout.header.language") + ":" + language.value,
16584
- closeVisible: isFocus.value,
16585
- onInputClick,
16586
- onCloseTag: onCloseLanguageTag
16587
- }, null, 8, ["tag", "closeVisible"]), [
16588
- [vShow, languageTagVisible.value]
16589
16962
  ])
16590
16963
  ]),
16591
16964
  suffix: withCtx(() => [
@@ -16647,7 +17020,7 @@ const _hoisted_1$l = { class: "announce-mobile-top" };
16647
17020
  const _hoisted_2$g = { class: "announce-mobile-bottom" };
16648
17021
  const _hoisted_3$f = ["href"];
16649
17022
  const _hoisted_4$b = { class: "announce-content" };
16650
- const _hoisted_5$7 = { class: "text-left" };
17023
+ const _hoisted_5$7 = { class: "announce-content-inner" };
16651
17024
  const _hoisted_6$6 = ["href"];
16652
17025
  const _hoisted_7$5 = { class: "announce-handle-wrapper" };
16653
17026
  const ANNOUNCE_STATUS_KEY = "site_announcement_status";
@@ -16704,7 +17077,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16704
17077
  createVNode(GIcon, {
16705
17078
  name: "gt-plane-warningCircular-blue",
16706
17079
  size: "16",
16707
- class: "flex-shrink-0"
17080
+ class: "announce-icon-shrink"
16708
17081
  })
16709
17082
  ]),
16710
17083
  createElementVNode("div", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1)
@@ -16725,7 +17098,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
16725
17098
  createVNode(GIcon, {
16726
17099
  name: "gt-plane-warningCircular-blue",
16727
17100
  size: "16",
16728
- class: "mr-2"
17101
+ class: "announce-content-icon"
16729
17102
  }),
16730
17103
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.migrationAnnounce.content")), 1),
16731
17104
  createElementVNode("a", {
@@ -16769,7 +17142,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
16769
17142
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
16770
17143
  }
16771
17144
  };
16772
- const NoticeModal = defineAsyncComponent(() => import("./notice-DxJbtsv_.js"));
17145
+ const NoticeModal = defineAsyncComponent(() => import("./notice-9BqsHOHE.js"));
16773
17146
  function clearNotice() {
16774
17147
  if (localStorage$2.getItem("validator_email")) {
16775
17148
  localStorage$2.removeItem("validator_email");
@@ -16796,19 +17169,19 @@ function useNotification() {
16796
17169
  notice
16797
17170
  };
16798
17171
  }
16799
- const _hoisted_1$k = { class: "g-toolbar-left items-center allow-click-stop flex-[1] min-w-0" };
17172
+ const _hoisted_1$k = { class: "g-toolbar-left allow-click-stop" };
16800
17173
  const _hoisted_2$f = { key: 0 };
16801
17174
  const _hoisted_3$e = {
16802
17175
  key: 1,
16803
- class: "search-avatar flex-1 flex items-center justify-center"
17176
+ class: "search-avatar"
16804
17177
  };
16805
- const _hoisted_4$a = { class: "flex items-center gap-[8px]" };
17178
+ const _hoisted_4$a = { class: "g-toolbar-right__claim-row" };
16806
17179
  const _hoisted_5$6 = {
16807
17180
  key: 1,
16808
17181
  class: "g-header-body"
16809
17182
  };
16810
- const _hoisted_6$5 = { class: "g-header-body-left h-full" };
16811
- const _hoisted_7$4 = { class: "g-header-body-right h-full" };
17183
+ const _hoisted_6$5 = { class: "g-header-body-left" };
17184
+ const _hoisted_7$4 = { class: "g-header-body-right" };
16812
17185
  const _hoisted_8$4 = { key: 2 };
16813
17186
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
16814
17187
  ...{
@@ -16897,7 +17270,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
16897
17270
  };
16898
17271
  const isHomePageHiddenMenuBtn = computed(() => {
16899
17272
  if (!route) return false;
16900
- return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge"].includes(route == null ? void 0 : route.name) && !["sm", "lg"].includes(widthType.value);
17273
+ return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "marketplace", "marketplaceDetail"].includes(route == null ? void 0 : route.name) && !["sm", "lg"].includes(widthType.value);
16901
17274
  });
16902
17275
  const { isMobile } = usePageResize();
16903
17276
  const { widthType } = usePageResize();
@@ -17198,18 +17571,18 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17198
17571
  var _a2, _b, _c, _d;
17199
17572
  return openBlock(), createElementBlock("div", {
17200
17573
  onClick: withModifiers(handleHeaderClick, ["stop"]),
17201
- class: normalizeClass(["gitcode-header-wrapper w-full", detailBgInfo.value ? "cursor-pointer" : ""]),
17574
+ class: normalizeClass(["gitcode-header-wrapper", detailBgInfo.value ? "gitcode-header-wrapper--clickable" : ""]),
17202
17575
  style: normalizeStyle({ height: `${unref(height)}px` })
17203
17576
  }, [
17204
17577
  createElementVNode("div", {
17205
- class: normalizeClass(["g-header allow-click-stop fixed z-[21] bg-[var(--theme-default-bg)]", [inAIHub.value ? "ai-hub border-b border-gray-100 " : "", isHome.value && showHeaderShadow.value ? "head-shadow" : "", __props.headerBorder ? "oldBorder" : "", headerClassName.value, isIndexHead.value && !showHeaderShadow.value ? "bg-transparent" : ""]]),
17578
+ class: normalizeClass(["g-header allow-click-stop", [inAIHub.value ? "ai-hub g-header--ai-border " : "", isHome.value && showHeaderShadow.value ? "head-shadow" : "", __props.headerBorder ? "oldBorder" : "", headerClassName.value, isIndexHead.value && !showHeaderShadow.value ? "g-header--transparent" : ""]]),
17206
17579
  ref_key: "headerRef",
17207
17580
  ref: headerRef,
17208
17581
  style: normalizeStyle(detailBgStyle.value)
17209
17582
  }, [
17210
17583
  isShowStickyNoticeByClose.value ? withDirectives((openBlock(), createElementBlock("div", {
17211
17584
  key: 0,
17212
- class: "sticky-notice w-full cursor-pointer",
17585
+ class: "sticky-notice",
17213
17586
  style: normalizeStyle(stickyNoticeStyle.value),
17214
17587
  onClick: withModifiers(handleStickyNoticeClick, ["stop"])
17215
17588
  }, [
@@ -17223,21 +17596,21 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17223
17596
  ]) : createCommentVNode("", true),
17224
17597
  createVNode(SiteAnnouncement),
17225
17598
  withDirectives((openBlock(), createElementBlock("div", {
17226
- class: "g-toolbar w-full overflow-hidden allow-click-stop",
17599
+ class: "g-toolbar allow-click-stop",
17227
17600
  onClick: withModifiers(handleToolbarClick, ["stop"])
17228
17601
  }, [
17229
17602
  createElementVNode("div", _hoisted_1$k, [
17230
17603
  createElementVNode("div", {
17231
17604
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
17232
17605
  }, ["stop"])),
17233
- class: "flex flex-center gap-[12px] g-header-ailog"
17606
+ class: "g-header-ailog"
17234
17607
  }, [
17235
17608
  isModuleVisible(unref(HeaderDisplayItem).ASIDE_BUTTON) && !isHomePageHiddenMenuBtn.value ? (openBlock(), createBlock(GIcon, {
17236
17609
  key: 0,
17237
17610
  onClick: handleHamburgerClick,
17238
17611
  name: "gt-hamburger",
17239
17612
  size: "24px",
17240
- class: "cursor-pointer hover:!text-[var(--theme-stress-text)] g-toolbar-left-asideicon",
17613
+ class: "g-toolbar-left-asideicon",
17241
17614
  color: "var(--theme-aide-text)"
17242
17615
  })) : createCommentVNode("", true),
17243
17616
  showNameAndIcon.value && __props.independence || inAIHub.value ? (openBlock(), createBlock(GLink, {
@@ -17255,7 +17628,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17255
17628
  ]),
17256
17629
  isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) ? (openBlock(), createElementBlock("div", {
17257
17630
  key: 0,
17258
- class: normalizeClass(["g-toolbar-custom", inAIHub.value && !unref(isPhone)() ? "shrink-0" : ""])
17631
+ class: normalizeClass(["g-toolbar-custom", inAIHub.value && !unref(isPhone)() ? "g-toolbar-custom--ai" : ""])
17259
17632
  }, [
17260
17633
  _ctx.$slots.headerCustom ? renderSlot(_ctx.$slots, "headerCustom", { key: 0 }, void 0, true) : isModuleVisible(unref(HeaderDisplayItem).CUSTOM_CONTENT) && !showNameAndIcon.value ? (openBlock(), createBlock(HeaderCustom, {
17261
17634
  key: 1,
@@ -17297,7 +17670,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17297
17670
  ], true) : createCommentVNode("", true)
17298
17671
  ])) : createCommentVNode("", true),
17299
17672
  createElementVNode("div", {
17300
- class: normalizeClass(["g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop", inAIHub.value ? "flex-none" : ""])
17673
+ class: normalizeClass(["g-toolbar-right allow-click-stop", inAIHub.value ? "g-toolbar-right--ai" : ""])
17301
17674
  }, [
17302
17675
  createElementVNode("div", _hoisted_4$a, [
17303
17676
  createVNode(ClaimPower, { config: claimPowerConfig.value }, null, 8, ["config"]),
@@ -17307,7 +17680,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17307
17680
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
17308
17681
  unref(isMobile) ? (openBlock(), createElementBlock("section", {
17309
17682
  key: 0,
17310
- class: "app-login-warp border-none login-icon",
17683
+ class: "app-login-warp login-icon",
17311
17684
  onClick: _cache[3] || (_cache[3] = ($event) => handleLogin("login"))
17312
17685
  }, [
17313
17686
  createVNode(GIcon, {
@@ -17329,7 +17702,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17329
17702
  }),
17330
17703
  createVNode(unref(Button), {
17331
17704
  onClick: _cache[5] || (_cache[5] = withModifiers(($event) => handleLogin("register"), ["stop"])),
17332
- class: "min-w-[64px]"
17705
+ class: "g-toolbar-right__register-btn"
17333
17706
  }, {
17334
17707
  default: withCtx(() => [
17335
17708
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.register")), 1)
@@ -17378,19 +17751,19 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17378
17751
  }
17379
17752
  });
17380
17753
  const GitCodeHeader = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["__scopeId", "data-v-vue-layout-gitcode"]]);
17381
- const _hoisted_1$j = { class: "g-toolbar w-full overflow-hidden allow-click-stop" };
17382
- const _hoisted_2$e = { class: "g-toolbar-left items-center allow-click-stop flex-[1] min-w-0" };
17754
+ const _hoisted_1$j = { class: "g-toolbar allow-click-stop" };
17755
+ const _hoisted_2$e = { class: "g-toolbar-left allow-click-stop" };
17383
17756
  const _hoisted_3$d = { class: "g-toolbar-custom" };
17384
- const _hoisted_4$9 = { class: "text-sm font-bold" };
17385
- const _hoisted_5$5 = { class: "text-[var(--theme-placeholder)] text-[12px]" };
17386
- const _hoisted_6$4 = { class: "search-avatar flex-1 flex items-center justify-center" };
17387
- const _hoisted_7$3 = { class: "g-toolbar-right gap-[16px] flex-[1] justify-end max-md:gap-[12px] allow-click-stop" };
17757
+ const _hoisted_4$9 = { class: "enterprise-name" };
17758
+ const _hoisted_5$5 = { class: "enterprise-flag" };
17759
+ const _hoisted_6$4 = { class: "search-avatar" };
17760
+ const _hoisted_7$3 = { class: "g-toolbar-right allow-click-stop" };
17388
17761
  const _hoisted_8$3 = {
17389
17762
  key: 0,
17390
17763
  class: "g-header-body"
17391
17764
  };
17392
- const _hoisted_9$3 = { class: "g-header-body-left h-full" };
17393
- const _hoisted_10$3 = { class: "g-header-body-right h-full" };
17765
+ const _hoisted_9$3 = { class: "g-header-body-left" };
17766
+ const _hoisted_10$3 = { class: "g-header-body-right" };
17394
17767
  const _hoisted_11$3 = { key: 1 };
17395
17768
  const _sfc_main$m = /* @__PURE__ */ defineComponent({
17396
17769
  ...{
@@ -17604,19 +17977,19 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17604
17977
  return (_ctx, _cache) => {
17605
17978
  var _a2, _b, _c;
17606
17979
  return openBlock(), createElementBlock("div", {
17607
- class: "gitcode-header-wrapper w-full",
17980
+ class: "gitcode-header-wrapper",
17608
17981
  style: normalizeStyle({ height: `${unref(height)}px` })
17609
17982
  }, [
17610
17983
  createElementVNode("div", {
17611
17984
  ref_key: "headerRef",
17612
17985
  ref: headerRef,
17613
- class: normalizeClass(["g-header allow-click-stop fixed z-[21] bg-[var(--theme-default-bg)]", [showHeaderShadow.value ? "head-shadow" : "", __props.headerBorder ? "oldBorder" : "", headerClassName.value]])
17986
+ class: normalizeClass(["g-header allow-click-stop", [showHeaderShadow.value ? "head-shadow" : "", __props.headerBorder ? "oldBorder" : "", headerClassName.value]])
17614
17987
  }, [
17615
17988
  createVNode(SiteAnnouncement),
17616
17989
  withDirectives((openBlock(), createElementBlock("div", _hoisted_1$j, [
17617
17990
  createElementVNode("div", _hoisted_2$e, [
17618
17991
  createElementVNode("div", _hoisted_3$d, [
17619
- createVNode(_sfc_main$F, {
17992
+ createVNode(_sfc_main$G, {
17620
17993
  src: (_a2 = __props.enterpriseInfo) == null ? void 0 : _a2.avatar,
17621
17994
  name: (_b = __props.enterpriseInfo) == null ? void 0 : _b.name,
17622
17995
  isRound: false,
@@ -17651,7 +18024,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17651
18024
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
17652
18025
  unref(isMobile) ? (openBlock(), createElementBlock("section", {
17653
18026
  key: 0,
17654
- class: "app-login-warp border-none login-icon",
18027
+ class: "app-login-warp login-icon",
17655
18028
  onClick: _cache[0] || (_cache[0] = ($event) => handleLogin("login"))
17656
18029
  }, [
17657
18030
  createVNode(GIcon, {
@@ -17672,7 +18045,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17672
18045
  }),
17673
18046
  createVNode(unref(Button), {
17674
18047
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleLogin("register"), ["stop"])),
17675
- class: "min-w-[64px]"
18048
+ class: "register-btn"
17676
18049
  }, {
17677
18050
  default: withCtx(() => [
17678
18051
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.register")), 1)
@@ -17684,7 +18057,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17684
18057
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
17685
18058
  !["sm"].includes(unref(widthType)) && isModuleVisible(unref(HeaderDisplayItem).NEW_BUTTON) ? (openBlock(), createBlock(unref(Button), {
17686
18059
  key: 0,
17687
- class: "border-none btn-add",
18060
+ class: "btn-add",
17688
18061
  variant: "solid",
17689
18062
  onClick: handleNewRepo
17690
18063
  }, {
@@ -17692,7 +18065,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17692
18065
  createVNode(GIcon, {
17693
18066
  name: "gt-add",
17694
18067
  color: "var(--theme-light-text)",
17695
- class: "mr-1"
18068
+ class: "btn-add-icon"
17696
18069
  }),
17697
18070
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.header.createRepo_01")), 1)
17698
18071
  ]),
@@ -17703,7 +18076,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17703
18076
  name: unref(isWhiteTheme)() ? "gt-line-light" : "gt-line-dark",
17704
18077
  size: "16px",
17705
18078
  onClick: handleThemeChange,
17706
- class: "cursor-pointer"
18079
+ class: "theme-toggle-icon"
17707
18080
  }, null, 8, ["name"]),
17708
18081
  isModuleVisible(unref(HeaderDisplayItem).LOGIN_AND_AVATAR) ? (openBlock(), createBlock(UserAvatar, {
17709
18082
  key: 2,
@@ -17943,7 +18316,7 @@ var SearchType = /* @__PURE__ */ ((SearchType2) => {
17943
18316
  return SearchType2;
17944
18317
  })(SearchType || {});
17945
18318
  const _hoisted_1$i = { class: "area" };
17946
- const _hoisted_2$d = { class: "w-[208px] max-h-[240px]" };
18319
+ const _hoisted_2$d = { class: "area__layout-slot" };
17947
18320
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
17948
18321
  __name: "Area",
17949
18322
  props: {
@@ -17957,9 +18330,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
17957
18330
  const layoutConfig2 = useLayoutConfig();
17958
18331
  const { t: t2 } = i18n.global;
17959
18332
  const route = useRoute();
17960
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-_Zwq5jpi.js"));
17961
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-CtxnK6rz.js"));
17962
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-BwGX02gW.js"));
18333
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-C3jP0hIF.js"));
18334
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BNO8Oa9f.js"));
18335
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CYBu-6UI.js"));
17963
18336
  const props = __props;
17964
18337
  const useReport2 = inject("useReport");
17965
18338
  const userInfo = inject("userInfo");
@@ -18271,7 +18644,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
18271
18644
  };
18272
18645
  }
18273
18646
  });
18274
- const _hoisted_1$g = { class: "leading-[16px]" };
18647
+ const _hoisted_1$g = { class: "settings__label" };
18275
18648
  const _hoisted_2$b = { class: "aside-footer-tools-item-dropdown-item" };
18276
18649
  const _hoisted_3$b = { class: "aside-footer-tools-item-dropdown-item" };
18277
18650
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
@@ -18296,7 +18669,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18296
18669
  [vShow, __props.showThemeSetting]
18297
18670
  ]),
18298
18671
  withDirectives(createElementVNode("div", _hoisted_3$b, [
18299
- createVNode(_sfc_main$t)
18672
+ createVNode(_sfc_main$u)
18300
18673
  ], 512), [
18301
18674
  [vShow, __props.showLangSetting]
18302
18675
  ])
@@ -18308,12 +18681,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18308
18681
  createVNode(GIcon, {
18309
18682
  name: "gt-line-setting",
18310
18683
  size: "16",
18311
- class: "default-icon min-w-[16px]"
18684
+ class: "default-icon settings__icon-min"
18312
18685
  }),
18313
18686
  createVNode(GIcon, {
18314
18687
  name: "gt-line-setting",
18315
18688
  size: "16",
18316
- class: "active-icon min-w-[16px]"
18689
+ class: "active-icon settings__icon-min"
18317
18690
  }),
18318
18691
  createElementVNode("span", _hoisted_1$g, toDisplayString$1(unref(t2)("gitCodeLayout.common.footerSetting.preSettingLittle")), 1)
18319
18692
  ], 2)
@@ -18323,6 +18696,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
18323
18696
  };
18324
18697
  }
18325
18698
  });
18699
+ const Settings = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18326
18700
  const FEEDBACK_CENTER_URL = "https://gitcode.com/Gitcode-offical-team/GitCode-Docs/issues";
18327
18701
  const _sfc_main$i = /* @__PURE__ */ defineComponent({
18328
18702
  __name: "SubMenuList",
@@ -18356,12 +18730,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
18356
18730
  });
18357
18731
  return (_ctx, _cache) => {
18358
18732
  return openBlock(), createElementBlock("div", {
18359
- class: normalizeClass(["sub-menu-list flex-col", { en: isEn.value }])
18733
+ class: normalizeClass(["sub-menu-list", { en: isEn.value }])
18360
18734
  }, [
18361
18735
  (openBlock(true), createElementBlock(Fragment, null, renderList(linkList.value, (item) => {
18362
18736
  return openBlock(), createBlock(GLink, {
18363
18737
  key: item.name,
18364
- class: "custom-link flex gap-[8px] items-center",
18738
+ class: "custom-link sub-menu-list__link",
18365
18739
  href: item.url,
18366
18740
  target: item.target
18367
18741
  }, {
@@ -18420,16 +18794,16 @@ const createSetting = () => {
18420
18794
  return settings;
18421
18795
  };
18422
18796
  const _hoisted_1$f = { class: "aside-footer" };
18423
- const _hoisted_2$a = { class: "remake-message mt-[16px]" };
18797
+ const _hoisted_2$a = { class: "remake-message" };
18424
18798
  const _hoisted_3$a = ["title"];
18425
- const _hoisted_4$8 = { class: "whitespace-nowrap" };
18799
+ const _hoisted_4$8 = { class: "remake-message__line" };
18426
18800
  const _hoisted_5$4 = {
18427
18801
  href: "https://beian.miit.gov.cn/#/Integrated/index",
18428
18802
  target: "_blank"
18429
18803
  };
18430
18804
  const _hoisted_6$3 = {
18431
18805
  key: 0,
18432
- class: "whitespace-nowrap public-security"
18806
+ class: "remake-message__line public-security"
18433
18807
  };
18434
18808
  const _hoisted_7$2 = ["href"];
18435
18809
  const _hoisted_8$2 = {
@@ -18437,9 +18811,9 @@ const _hoisted_8$2 = {
18437
18811
  target: "_blank",
18438
18812
  rel: "noopener noreferrer"
18439
18813
  };
18440
- const _hoisted_9$2 = { class: "whitespace-nowrap mt-[8px]" };
18441
- const _hoisted_10$2 = { class: "footer-work-info mt-[8px] text-[12px]" };
18442
- const _hoisted_11$2 = { class: "flex items-center mt-[8px]" };
18814
+ const _hoisted_9$2 = { class: "contact-info__about-row" };
18815
+ const _hoisted_10$2 = { class: "footer-work-info" };
18816
+ const _hoisted_11$2 = { class: "footer-work-info__item footer-work-info__item--mt" };
18443
18817
  const _hoisted_12$2 = { class: "" };
18444
18818
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
18445
18819
  __name: "ContactInfo",
@@ -18454,7 +18828,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18454
18828
  return openBlock(), createElementBlock("div", _hoisted_1$f, [
18455
18829
  createElementVNode("div", _hoisted_2$a, [
18456
18830
  createElementVNode("p", {
18457
- class: "break-all whitespace-normal",
18831
+ class: "remake-message__line remake-message__line--break",
18458
18832
  title: unref(copyright).digestAbbr
18459
18833
  }, " © " + toDisplayString$1(unref(copyright).digestAbbr), 9, _hoisted_3$a),
18460
18834
  createElementVNode("p", _hoisted_4$8, [
@@ -18469,7 +18843,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18469
18843
  ])) : createCommentVNode("", true)
18470
18844
  ]),
18471
18845
  createElementVNode("p", {
18472
- class: normalizeClass(["whitespace-nowrap mt-[16px] support", { en: isEn.value }])
18846
+ class: normalizeClass(["contact-info__support support", { en: isEn.value }])
18473
18847
  }, [
18474
18848
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.technicalSupport")), 1),
18475
18849
  _cache[1] || (_cache[1] = createElementVNode("a", {
@@ -18502,7 +18876,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18502
18876
  }, 8, ["href"])
18503
18877
  ]),
18504
18878
  createElementVNode("ul", _hoisted_10$2, [
18505
- _cache[4] || (_cache[4] = createElementVNode("li", { class: "flex items-center" }, [
18879
+ _cache[4] || (_cache[4] = createElementVNode("li", { class: "footer-work-info__item" }, [
18506
18880
  createElementVNode("span", { class: "" }, "400-6868-951")
18507
18881
  ], -1)),
18508
18882
  createElementVNode("li", _hoisted_11$2, [
@@ -18514,7 +18888,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
18514
18888
  }
18515
18889
  });
18516
18890
  const ContactInfo = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18517
- const _hoisted_1$e = { class: "flex-[1] flex flex-col justify-between min-h-0" };
18891
+ const _hoisted_1$e = { class: "config-aside__main" };
18518
18892
  const _hoisted_2$9 = { key: 0 };
18519
18893
  const _hoisted_3$9 = {
18520
18894
  key: 1,
@@ -18522,7 +18896,7 @@ const _hoisted_3$9 = {
18522
18896
  };
18523
18897
  const _hoisted_4$7 = {
18524
18898
  key: 1,
18525
- class: "line mt-[16px] mb-[6px]"
18899
+ class: "line line--mt"
18526
18900
  };
18527
18901
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
18528
18902
  __name: "configAideContent",
@@ -18661,7 +19035,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18661
19035
  }, [
18662
19036
  withDirectives((openBlock(), createElementBlock("div", _hoisted_1$e, [
18663
19037
  createElementVNode("div", {
18664
- class: normalizeClass(["scroll-content flex-[1]", { scroll: isScroll.value }]),
19038
+ class: normalizeClass(["scroll-content config-aside__scroll", { scroll: isScroll.value }]),
18665
19039
  onScroll: handleScroll,
18666
19040
  onMouseleave: handleMouseLeave
18667
19041
  }, [
@@ -18708,7 +19082,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18708
19082
  ], 64);
18709
19083
  }), 128)),
18710
19084
  !__props.asideSetShowLittle && isModuleVisible(unref(AsideDisplayItem).LINK) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
18711
- _cache[3] || (_cache[3] = createElementVNode("hr", { class: "line mt-[16px] mb-[16px]" }, null, -1)),
19085
+ _cache[3] || (_cache[3] = createElementVNode("hr", { class: "line line--my" }, null, -1)),
18712
19086
  createVNode(SubMenuList)
18713
19087
  ], 64)) : createCommentVNode("", true)
18714
19088
  ])),
@@ -18718,7 +19092,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18718
19092
  key: 0,
18719
19093
  class: normalizeClass(["aside-footer-tools", { "aside-footer-tools-little": __props.asideSetShowLittle }])
18720
19094
  }, [
18721
- createVNode(_sfc_main$j, {
19095
+ createVNode(Settings, {
18722
19096
  "show-lang-setting": __props.showLangSetting,
18723
19097
  "show-theme-setting": __props.showThemeSetting,
18724
19098
  asideSetShowLittle: __props.asideSetShowLittle
@@ -18735,7 +19109,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
18735
19109
  }
18736
19110
  });
18737
19111
  const ConfigAideContent = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__scopeId", "data-v-vue-layout-gitcode"]]);
18738
- const _hoisted_1$d = { class: "p-[16px] flex justify-between items-center h-[60px]" };
19112
+ const _hoisted_1$d = { class: "aside-drawer-header" };
18739
19113
  const _sfc_main$f = /* @__PURE__ */ defineComponent({
18740
19114
  __name: "index",
18741
19115
  props: {
@@ -18792,7 +19166,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18792
19166
  provide("asideSetShow", asideSetShow);
18793
19167
  console.log("indexasideSetShow", asideSetShow.value);
18794
19168
  const isHome = computed(() => {
18795
- return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard"].includes(route == null ? void 0 : route.name);
19169
+ return props.sceneValue === SceneValue.home && ["home", "issues", "kanban", "discussionCreated", "merge", "dashboard", "marketplace", "marketplaceDetail"].includes(route == null ? void 0 : route.name);
18796
19170
  });
18797
19171
  const asideSize = computed(() => {
18798
19172
  if (props.collapseMode) {
@@ -18901,7 +19275,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
18901
19275
  href: __props.independence ? unref(transformUrl)(unref(layoutConfig2).VITE_HOST) : ""
18902
19276
  }, null, 8, ["style", "to", "href"]),
18903
19277
  createVNode(unref(Button), {
18904
- class: "cursor-pointer draw-side-bar-close",
19278
+ class: "draw-side-bar-close",
18905
19279
  icon: "close",
18906
19280
  onClick: _cache[0] || (_cache[0] = ($event) => handleAsideVisible(false)),
18907
19281
  variant: "text"
@@ -19794,8 +20168,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19794
20168
  ]),
19795
20169
  _: 1
19796
20170
  }, 8, ["modelValue"]),
19797
- _cache[10] || (_cache[10] = createElementVNode("hr", { class: "my-4" }, null, -1)),
19798
- _cache[11] || (_cache[11] = createElementVNode("h1", { class: "my-2" }, "场景值 SceneValue 传入", -1)),
20171
+ _cache[10] || (_cache[10] = createElementVNode("hr", { class: "home-divider" }, null, -1)),
20172
+ _cache[11] || (_cache[11] = createElementVNode("h1", { class: "home-section-title" }, "场景值 SceneValue 传入", -1)),
19799
20173
  createVNode(unref(RadioGroup), {
19800
20174
  direction: "row",
19801
20175
  modelValue: sceneSelected.value,
@@ -19817,8 +20191,8 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
19817
20191
  ]),
19818
20192
  _: 1
19819
20193
  }, 8, ["modelValue"]),
19820
- _cache[12] || (_cache[12] = createElementVNode("hr", { class: "my-4" }, null, -1)),
19821
- _cache[13] || (_cache[13] = createElementVNode("h2", { class: "mt-2" }, "是否独立部署", -1)),
20194
+ _cache[12] || (_cache[12] = createElementVNode("hr", { class: "home-divider" }, null, -1)),
20195
+ _cache[13] || (_cache[13] = createElementVNode("h2", { class: "home-subsection-title" }, "是否独立部署", -1)),
19822
20196
  createVNode(unref(RadioGroup), {
19823
20197
  direction: "row",
19824
20198
  modelValue: independence.value,
@@ -20622,7 +20996,7 @@ function useModel(props, emits) {
20622
20996
  vModels
20623
20997
  };
20624
20998
  }
20625
- const _hoisted_1$a = { class: "text-[14px]" };
20999
+ const _hoisted_1$a = { class: "g-input-button-append__text" };
20626
21000
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
20627
21001
  __name: "inputButton",
20628
21002
  props: {
@@ -20712,7 +21086,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20712
21086
  });
20713
21087
  return (_ctx, _cache) => {
20714
21088
  return openBlock(), createElementBlock("div", {
20715
- class: normalizeClass(["flex flex-1 g-input-button", [inputBtnClassName.value, __props.error ? "g-input-button-error" : ""]])
21089
+ class: normalizeClass(["g-input-button", [inputBtnClassName.value, __props.error ? "g-input-button-error" : ""]])
20716
21090
  }, [
20717
21091
  createVNode(unref(Input), {
20718
21092
  modelValue: unref(vModels),
@@ -20740,11 +21114,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
20740
21114
  };
20741
21115
  }
20742
21116
  });
20743
- const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
21117
+ const _hoisted_1$9 = { class: "g-input-select" };
20744
21118
  const _hoisted_2$7 = { class: "login-phone" };
20745
- const _hoisted_3$7 = { class: "flex justify-between gap-[8px] flex-wrap" };
20746
- const _hoisted_4$5 = { class: "flex items-center justify-between" };
20747
- const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
21119
+ const _hoisted_3$7 = { class: "g-input-select__option-row" };
21120
+ const _hoisted_4$5 = { class: "g-input-select__item-row" };
21121
+ const _hoisted_5$3 = { class: "g-input-select__option-row" };
20748
21122
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
20749
21123
  __name: "inputSelect",
20750
21124
  props: {
@@ -20864,7 +21238,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
20864
21238
  createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
20865
21239
  createVNode(GIcon, {
20866
21240
  name: "gt-line-delete",
20867
- class: "w-[16px] h-[16px] cursor-pointer",
21241
+ class: "g-input-select__delete-icon",
20868
21242
  onClick: withModifiers(($event) => deleteMobile(slotProps.option.value), ["stop"])
20869
21243
  }, null, 8, ["onClick"])
20870
21244
  ])
@@ -21242,10 +21616,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
21242
21616
  });
21243
21617
  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=";
21244
21618
  const _hoisted_1$8 = { class: "auth-container" };
21245
- const _hoisted_2$6 = { class: "tips text-[var(--devui-disabled-text)]" };
21619
+ const _hoisted_2$6 = { class: "tips" };
21246
21620
  const _hoisted_3$6 = { class: "icons" };
21247
21621
  const _hoisted_4$4 = ["src", "alt", "onClick"];
21248
- const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
21622
+ const _hoisted_5$2 = { class: "recent-login-img" };
21249
21623
  const _hoisted_6$2 = ["src"];
21250
21624
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21251
21625
  __name: "auth",
@@ -21274,7 +21648,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21274
21648
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.logos, (icon) => {
21275
21649
  return openBlock(), createElementBlock("div", {
21276
21650
  key: icon.alt,
21277
- class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
21651
+ class: "icon-wrap otherInfo-icon"
21278
21652
  }, [
21279
21653
  createVNode(unref(Tooltip), {
21280
21654
  position: "top",
@@ -21283,7 +21657,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21283
21657
  }, {
21284
21658
  default: withCtx(() => [
21285
21659
  createElementVNode("img", {
21286
- class: "w-[32px] h-[32px]",
21660
+ class: "otherInfo-icon__img",
21287
21661
  src: icon.src,
21288
21662
  alt: icon.alt,
21289
21663
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
@@ -21295,7 +21669,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
21295
21669
  checkIsRecentLogin(icon.loginMethodList) ? (openBlock(), createElementBlock("img", {
21296
21670
  key: 0,
21297
21671
  src: unref(recentLoginImg),
21298
- class: "w-[50px] h-[20px]"
21672
+ class: "recent-login-img__icon"
21299
21673
  }, null, 8, _hoisted_6$2)) : createCommentVNode("", true)
21300
21674
  ])
21301
21675
  ]);
@@ -21347,10 +21721,10 @@ const useDeclareStatus = () => {
21347
21721
  resetDeclareStatus
21348
21722
  };
21349
21723
  };
21350
- const _hoisted_1$7 = { class: "flex-col items-center agreement" };
21351
- const _hoisted_2$5 = { class: "text-[var(--theme-placeholder)]" };
21352
- const _hoisted_3$5 = { class: "text-[var(--theme-placeholder)]" };
21353
- const _hoisted_4$3 = { class: "text-[var(--theme-placeholder)]" };
21724
+ const _hoisted_1$7 = { class: "agreement" };
21725
+ const _hoisted_2$5 = { class: "agreement__placeholder" };
21726
+ const _hoisted_3$5 = { class: "agreement__placeholder" };
21727
+ const _hoisted_4$3 = { class: "agreement__placeholder" };
21354
21728
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21355
21729
  __name: "agreement",
21356
21730
  props: {
@@ -21384,12 +21758,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21384
21758
  default: withCtx(() => [
21385
21759
  createElementVNode("span", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.agree")), 1),
21386
21760
  createElementVNode("span", {
21387
- class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
21761
+ class: normalizeClass(["agreement__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
21388
21762
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21389
21763
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
21390
21764
  createElementVNode("span", _hoisted_3$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21391
21765
  createElementVNode("span", {
21392
- class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
21766
+ class: normalizeClass(["agreement__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
21393
21767
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21394
21768
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 3)
21395
21769
  ]),
@@ -21404,7 +21778,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21404
21778
  createElementVNode("span", _hoisted_4$3, [
21405
21779
  createTextVNode(toDisplayString$1(dataShareName.value) + " ", 1),
21406
21780
  createElementVNode("span", {
21407
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px]",
21781
+ class: "agreement__link",
21408
21782
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
21409
21783
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1)
21410
21784
  ])
@@ -21416,9 +21790,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
21416
21790
  }
21417
21791
  });
21418
21792
  const GAgreement = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-vue-layout-gitcode"]]);
21419
- const _hoisted_1$6 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
21420
- const _hoisted_2$4 = { class: "text-[var(--devui-aide-text)]" };
21421
- const _hoisted_3$4 = { class: "text-[var(--devui-aide-text)] text-[12px]" };
21793
+ const _hoisted_1$6 = { class: "agreements__hint" };
21794
+ const _hoisted_2$4 = { class: "agreements__hint-plain" };
21795
+ const _hoisted_3$4 = { class: "agreements__hint" };
21422
21796
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21423
21797
  __name: "agreements",
21424
21798
  props: {
@@ -21448,17 +21822,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21448
21822
  "model-value": __props.modelValue,
21449
21823
  "onUpdate:modelValue": _cache[2] || (_cache[2] = (val) => emits("update:modelValue", val)),
21450
21824
  size: "sm",
21451
- class: "mt-[6px] agree-module flex items-center"
21825
+ class: "agree-module agreements"
21452
21826
  }, {
21453
21827
  default: withCtx(() => [
21454
21828
  createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
21455
21829
  createElementVNode("a", {
21456
- class: normalizeClass(["text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
21830
+ class: normalizeClass(["agreements__link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
21457
21831
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
21458
21832
  }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.agreement") + "》"), 3),
21459
21833
  createElementVNode("span", _hoisted_2$4, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")), 1),
21460
21834
  createElementVNode("a", {
21461
- class: normalizeClass(["text-[var(--devui-link)] cursor-pointer mx-[1px] text-[12px]", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
21835
+ class: normalizeClass(["agreements__link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
21462
21836
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
21463
21837
  }, toDisplayString$1("《" + unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy") + "》"), 3),
21464
21838
  renderSlot(_ctx.$slots, "default")
@@ -21469,12 +21843,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21469
21843
  "model-value": __props.dataShareChecked,
21470
21844
  "onUpdate:modelValue": _cache[4] || (_cache[4] = (val) => emits("update:dataShareChecked", val)),
21471
21845
  size: "sm",
21472
- class: "mb-[12px]"
21846
+ class: "agreements__data-share"
21473
21847
  }, {
21474
21848
  default: withCtx(() => [
21475
21849
  createElementVNode("span", _hoisted_3$4, toDisplayString$1(dataShareName.value), 1),
21476
21850
  createElementVNode("span", {
21477
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px] text-[12px]",
21851
+ class: "agreements__data-link",
21478
21852
  onClick: _cache[3] || (_cache[3] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
21479
21853
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1)
21480
21854
  ]),
@@ -21484,12 +21858,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
21484
21858
  };
21485
21859
  }
21486
21860
  });
21487
- const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
21488
- const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
21861
+ const _hoisted_1$5 = { class: "g-title" };
21862
+ const _hoisted_2$3 = { class: "back-img" };
21489
21863
  const _hoisted_3$3 = ["src"];
21490
21864
  const _hoisted_4$2 = {
21491
21865
  key: 0,
21492
- class: "tracking-[.5px]"
21866
+ class: "g-title__text"
21493
21867
  };
21494
21868
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
21495
21869
  __name: "title",
@@ -21511,7 +21885,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
21511
21885
  __props.showBack ? (openBlock(), createElementBlock("img", {
21512
21886
  key: 0,
21513
21887
  src: __props.icon,
21514
- class: "w-[24px] cursor-pointer",
21888
+ class: "g-title__back-img",
21515
21889
  onClick: withModifiers(handleClick, ["stop"])
21516
21890
  }, null, 8, _hoisted_3$3)) : createCommentVNode("", true)
21517
21891
  ]),
@@ -23862,8 +24236,8 @@ const isMobileEmail = (val) => {
23862
24236
  return t$1("gitCodeLayout.common.phone") + "/" + t$1("gitCodeLayout.common.email");
23863
24237
  };
23864
24238
  const _hoisted_1$4 = { class: "modal-body" };
23865
- const _hoisted_2$2 = { class: "text-[13px]" };
23866
- const _hoisted_3$2 = { class: "flex items-center justify-end px-[24px] pb-[24px]" };
24239
+ const _hoisted_2$2 = { class: "login-check-modal-text" };
24240
+ const _hoisted_3$2 = { class: "login-check-modal-footer" };
23867
24241
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23868
24242
  __name: "loginCheckModal",
23869
24243
  props: /* @__PURE__ */ mergeModels({
@@ -23908,7 +24282,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23908
24282
  footer: withCtx(() => [
23909
24283
  createElementVNode("div", _hoisted_3$2, [
23910
24284
  createVNode(unref(Button), {
23911
- class: "mr-2",
24285
+ class: "login-check-modal-footer__btn-cancel",
23912
24286
  onClick: close
23913
24287
  }, {
23914
24288
  default: withCtx(() => [
@@ -23918,7 +24292,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23918
24292
  }),
23919
24293
  createVNode(unref(Button), {
23920
24294
  variant: "solid",
23921
- class: "w-[126px]",
24295
+ class: "login-check-modal-footer__btn-confirm",
23922
24296
  disabled: !__props.dataShareChecked,
23923
24297
  onClick: handleConfirm
23924
24298
  }, {
@@ -23934,12 +24308,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23934
24308
  createElementVNode("div", null, [
23935
24309
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.youNeeToAgr")) + " ", 1),
23936
24310
  createElementVNode("span", {
23937
- class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
24311
+ class: normalizeClass(["login-check-modal-link", unref(declareNotClicked)["agreement"] ? "badge-dot-item" : ""]),
23938
24312
  onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleClick("agreement"), ["stop"]))
23939
24313
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.agreement")), 3),
23940
24314
  createTextVNode(" " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.and")) + " ", 1),
23941
24315
  createElementVNode("span", {
23942
- class: normalizeClass(["text-[var(--theme-link)] cursor-pointer mx-[1px]", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
24316
+ class: normalizeClass(["login-check-modal-link", unref(declareNotClicked)["privacy"] ? "badge-dot-item" : ""]),
23943
24317
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleClick("privacy"), ["stop"]))
23944
24318
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")), 3),
23945
24319
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.toUseGit")), 1)
@@ -23951,12 +24325,12 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23951
24325
  "model-value": __props.dataShareChecked,
23952
24326
  "onUpdate:modelValue": _cache[3] || (_cache[3] = (val) => emits("update:dataShareChecked", val)),
23953
24327
  size: "sm",
23954
- class: "mt-[12px]"
24328
+ class: "login-check-modal-data-share"
23955
24329
  }, {
23956
24330
  default: withCtx(() => [
23957
24331
  createElementVNode("span", _hoisted_2$2, toDisplayString$1(dataShareName.value), 1),
23958
24332
  createElementVNode("span", {
23959
- class: "text-[var(--theme-link)] cursor-pointer mx-[1px] text-[13px]",
24333
+ class: "login-check-modal-link login-check-modal-link--sm",
23960
24334
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleClick("dataShare"), ["stop"]))
23961
24335
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.link.dataShareTip")), 1)
23962
24336
  ]),
@@ -23971,8 +24345,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
23971
24345
  });
23972
24346
  const _hoisted_1$3 = { class: "mfa" };
23973
24347
  const _hoisted_2$1 = ["src"];
23974
- const _hoisted_3$1 = { class: "text-[20px] font-[600] mb-[8px]" };
23975
- const _hoisted_4$1 = { class: "mb-[32px] text-[var(--devui-placeholder)]" };
24348
+ const _hoisted_3$1 = { class: "mfa__title" };
24349
+ const _hoisted_4$1 = { class: "mfa__desc" };
23976
24350
  const _hoisted_5$1 = {
23977
24351
  key: 0,
23978
24352
  class: "input-list"
@@ -23983,19 +24357,19 @@ const _hoisted_6$1 = {
23983
24357
  };
23984
24358
  const _hoisted_7$1 = {
23985
24359
  key: 2,
23986
- class: "text-[var(--color-danger)] mt-[8px]"
24360
+ class: "mfa__error"
23987
24361
  };
23988
24362
  const _hoisted_8$1 = {
23989
24363
  key: 3,
23990
- class: "text-[var(--devui-placeholder)] mt-[8px]"
24364
+ class: "mfa__hint"
23991
24365
  };
23992
24366
  const _hoisted_9$1 = {
23993
24367
  key: 4,
23994
- class: "text-[var(--devui-placeholder)] mt-[8px]"
24368
+ class: "mfa__hint"
23995
24369
  };
23996
- const _hoisted_10$1 = { class: "my-[32px]" };
23997
- const _hoisted_11$1 = { class: "flex items-center justify-between" };
23998
- const _hoisted_12$1 = { class: "cursor-pointer" };
24370
+ const _hoisted_10$1 = { class: "mfa__action" };
24371
+ const _hoisted_11$1 = { class: "mfa__footer" };
24372
+ const _hoisted_12$1 = { class: "mfa__back" };
23999
24373
  const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24000
24374
  __name: "MFA",
24001
24375
  props: {
@@ -24147,7 +24521,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24147
24521
  return (_ctx, _cache) => {
24148
24522
  return openBlock(), createElementBlock("div", _hoisted_1$3, [
24149
24523
  createElementVNode("img", {
24150
- class: "w-[104px] mb-[32px]",
24524
+ class: "mfa__logo",
24151
24525
  src: currentLogo.value,
24152
24526
  alt: ""
24153
24527
  }, null, 8, _hoisted_2$1),
@@ -24183,7 +24557,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24183
24557
  mode.value === "recover" ? (openBlock(), createElementBlock("p", _hoisted_9$1, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip2")), 1)) : createCommentVNode("", true),
24184
24558
  createElementVNode("div", _hoisted_10$1, [
24185
24559
  createVNode(unref(Button), {
24186
- class: "w-[100%]",
24560
+ class: "mfa__submit",
24187
24561
  color: "primary",
24188
24562
  loading: loading.value,
24189
24563
  onClick: handleConfirm,
@@ -24205,19 +24579,19 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
24205
24579
  createVNode(GIcon, {
24206
24580
  color: "var(--devui-aide-text)",
24207
24581
  name: "gt-line-left",
24208
- class: "mr-[8px]"
24582
+ class: "mfa__back-icon"
24209
24583
  }),
24210
24584
  createTextVNode(toDisplayString$1(unref(t2)("gitCodeLayout.pipeline.goBack")), 1)
24211
24585
  ])) : createCommentVNode("", true)
24212
24586
  ]),
24213
24587
  mode.value === "recover" ? (openBlock(), createElementBlock("p", {
24214
24588
  key: 0,
24215
- class: "cursor-pointer text-[var(--devui-link)] hover:underline",
24589
+ class: "mfa__switch",
24216
24590
  onClick: _cache[2] || (_cache[2] = ($event) => modChange("code"))
24217
24591
  }, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip7")), 1)) : createCommentVNode("", true),
24218
24592
  mode.value === "code" ? (openBlock(), createElementBlock("p", {
24219
24593
  key: 1,
24220
- class: "cursor-pointer text-[var(--devui-link)] hover:underline",
24594
+ class: "mfa__switch",
24221
24595
  onClick: _cache[3] || (_cache[3] = ($event) => modChange("recover"))
24222
24596
  }, toDisplayString$1(unref(t2)("gitCodeLayout.LoginModal.mfatip6")), 1)) : createCommentVNode("", true)
24223
24597
  ])
@@ -24413,7 +24787,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
24413
24787
  __publicField(_SlidCaptchaManager, "instance");
24414
24788
  let SlidCaptchaManager = _SlidCaptchaManager;
24415
24789
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
24416
- const SlidCaptcha = defineAsyncComponent(() => import("./index-CWOH-qdm.js"));
24790
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-Vmx0G7Nd.js"));
24417
24791
  const useSlidCaptcha = () => {
24418
24792
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
24419
24793
  const open = (config) => {
@@ -24443,7 +24817,7 @@ const useSlidCaptcha = () => {
24443
24817
  close
24444
24818
  };
24445
24819
  };
24446
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-C8jg8ELo.js"));
24820
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-BniudX3d.js"));
24447
24821
  const useYunpianCaptcha = () => {
24448
24822
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
24449
24823
  const open = (config) => {
@@ -24839,9 +25213,9 @@ const _hoisted_1$2 = { class: "content-loading" };
24839
25213
  function _sfc_render(_ctx, _cache) {
24840
25214
  return openBlock(), createElementBlock("div", _hoisted_1$2, [..._cache[0] || (_cache[0] = [
24841
25215
  createElementVNode("div", { class: "content-loading-title" }, [
24842
- createElementVNode("div", { class: "w-full flex-center" }, [
25216
+ createElementVNode("div", { class: "content-loading__row" }, [
24843
25217
  createElementVNode("img", {
24844
- class: "w-[60px] h-[60px]",
25218
+ class: "content-loading__img",
24845
25219
  src: "https://cdn-static.gitcode.com/static/images/common/loading.gif",
24846
25220
  alt: "loading"
24847
25221
  })
@@ -24870,12 +25244,12 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
24870
25244
  __props.loading ? renderSlot(_ctx.$slots, "loading", { key: 0 }, () => [
24871
25245
  __props.skeleton ? (openBlock(), createBlock(unref(Skeleton), {
24872
25246
  key: 0,
24873
- class: "p-20",
25247
+ class: "data-panel__skeleton",
24874
25248
  rows: __props.skeletonRow
24875
25249
  }, null, 8, ["rows"])) : __props.animation ? (openBlock(), createBlock(ContentLoading, {
24876
25250
  key: 1,
24877
25251
  name: "loading",
24878
- class: "w-full h-full flex-center"
25252
+ class: "data-panel__content-loading"
24879
25253
  })) : createCommentVNode("", true)
24880
25254
  ], true) : renderSlot(_ctx.$slots, "default", { key: 1 }, void 0, true)
24881
25255
  ], 2);
@@ -24940,106 +25314,106 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
24940
25314
  }
24941
25315
  const _hoisted_1$1 = {
24942
25316
  key: 0,
24943
- class: "flex items-center gap-1 h-[48px]"
25317
+ class: "login-modal-header"
24944
25318
  };
24945
- const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
25319
+ const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots login-modal-header__close-wrap" };
24946
25320
  const _hoisted_3 = {
24947
25321
  key: 1,
24948
25322
  class: "login-modal-content"
24949
25323
  };
24950
25324
  const _hoisted_4 = {
24951
25325
  key: 0,
24952
- class: "w-[470px] login-modal-content-left login-modal-content-left-register"
25326
+ class: "login-modal-content-left login-modal-content-left-register"
24953
25327
  };
24954
25328
  const _hoisted_5 = { class: "login-modal-content-left-register-logo" };
24955
25329
  const _hoisted_6 = ["src"];
24956
- const _hoisted_7 = { class: "text-[var(--theme-text)] mt-[6px]" };
24957
- const _hoisted_8 = { class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]" };
24958
- const _hoisted_9 = { class: "font-medium text-[20px]" };
24959
- const _hoisted_10 = { class: "mt-[16px]" };
25330
+ const _hoisted_7 = { class: "login-modal-logo-desc" };
25331
+ const _hoisted_8 = { class: "login-modal-history" };
25332
+ const _hoisted_9 = { class: "login-modal-history__title" };
25333
+ const _hoisted_10 = { class: "login-modal-history__content" };
24960
25334
  const _hoisted_11 = {
24961
25335
  key: 0,
24962
- class: "flex items-baseline mb-[16px] justify-between"
25336
+ class: "login-modal-tabs-row"
24963
25337
  };
24964
- const _hoisted_12 = { class: "flex items-center gap-[24px]" };
24965
- const _hoisted_13 = { class: "w-[50px] h-[20px] last-login-img" };
25338
+ const _hoisted_12 = { class: "login-modal-tabs" };
25339
+ const _hoisted_13 = { class: "last-login-img" };
24966
25340
  const _hoisted_14 = ["src"];
24967
- const _hoisted_15 = { class: "w-[50px] h-[20px] last-login-img" };
25341
+ const _hoisted_15 = { class: "last-login-img" };
24968
25342
  const _hoisted_16 = ["src"];
24969
- const _hoisted_17 = { class: "w-[50px] h-[20px] last-login-img" };
25343
+ const _hoisted_17 = { class: "last-login-img" };
24970
25344
  const _hoisted_18 = ["src"];
24971
- const _hoisted_19 = { class: "text-[12px] leading-[32px] text-right" };
25345
+ const _hoisted_19 = { class: "login-modal-section-tip login-modal-section-tip--right" };
24972
25346
  const _hoisted_20 = {
24973
25347
  key: 1,
24974
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25348
+ class: "forget-tips"
24975
25349
  };
24976
25350
  const _hoisted_21 = { key: 2 };
24977
- const _hoisted_22 = { class: "flex items-center justify-between" };
24978
- const _hoisted_23 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
24979
- const _hoisted_24 = { class: "text-[12px] leading-[32px]" };
25351
+ const _hoisted_22 = { class: "login-modal-row-between" };
25352
+ const _hoisted_23 = { class: "login-modal-section-title" };
25353
+ const _hoisted_24 = { class: "login-modal-section-tip" };
24980
25354
  const _hoisted_25 = { key: 3 };
24981
- const _hoisted_26 = { class: "flex items-center justify-between" };
24982
- const _hoisted_27 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
24983
- const _hoisted_28 = { class: "text-[12px] leading-[32px]" };
25355
+ const _hoisted_26 = { class: "login-modal-row-between" };
25356
+ const _hoisted_27 = { class: "login-modal-section-title" };
25357
+ const _hoisted_28 = { class: "login-modal-section-tip" };
24984
25358
  const _hoisted_29 = { class: "bind-phone-tip" };
24985
25359
  const _hoisted_30 = { key: 4 };
24986
- const _hoisted_31 = { class: "flex items-center justify-between mb-3" };
24987
- const _hoisted_32 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
24988
- const _hoisted_33 = { class: "text-[12px] leading-[32px]" };
24989
- const _hoisted_34 = { class: "bg-[var(--theme-table-header-bg)] p-[16px] border-[var(--theme-line-border)] border rounded" };
24990
- const _hoisted_35 = { class: "font-bold" };
24991
- const _hoisted_36 = { class: "my-1" };
25360
+ const _hoisted_31 = { class: "login-modal-row-between login-modal-row-between--mb" };
25361
+ const _hoisted_32 = { class: "login-modal-section-title" };
25362
+ const _hoisted_33 = { class: "login-modal-section-tip" };
25363
+ const _hoisted_34 = { class: "login-modal-conflict-card" };
25364
+ const _hoisted_35 = { class: "login-modal-bold" };
25365
+ const _hoisted_36 = { class: "login-modal-conflict-card__sub" };
24992
25366
  const _hoisted_37 = ["href"];
24993
- const _hoisted_38 = { class: "py-4 px-1" };
24994
- const _hoisted_39 = { class: "font-bold mb-2" };
24995
- const _hoisted_40 = { class: "list-disc list-outside pl-5" };
24996
- const _hoisted_41 = { class: "mt-1 mb-2 text-[var(--theme-placeholder)]" };
24997
- const _hoisted_42 = { class: "mt-1 mb-2 text-[var(--theme-placeholder)]" };
24998
- const _hoisted_43 = { class: "text-[var(--theme-warning)]" };
24999
- const _hoisted_44 = { class: "font-bold mb-2" };
25000
- const _hoisted_45 = { class: "my-[24px] flex justify-between" };
25001
- const _hoisted_46 = { class: "qrcode-container flex flex-col items-center justify-center" };
25002
- const _hoisted_47 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
25367
+ const _hoisted_38 = { class: "login-modal-conflict-list" };
25368
+ const _hoisted_39 = { class: "login-modal-bold login-modal-bold--mb" };
25369
+ const _hoisted_40 = { class: "login-modal-conflict-list__items" };
25370
+ const _hoisted_41 = { class: "login-modal-conflict-list__hint" };
25371
+ const _hoisted_42 = { class: "login-modal-conflict-list__hint" };
25372
+ const _hoisted_43 = { class: "login-modal-conflict-warning" };
25373
+ const _hoisted_44 = { class: "login-modal-bold login-modal-bold--mb" };
25374
+ const _hoisted_45 = { class: "login-modal-conflict-actions" };
25375
+ const _hoisted_46 = { class: "qrcode-container" };
25376
+ const _hoisted_47 = { class: "qrcode-container__panel" };
25003
25377
  const _hoisted_48 = ["src"];
25004
25378
  const _hoisted_49 = {
25005
25379
  key: 0,
25006
25380
  class: "mask"
25007
25381
  };
25008
- const _hoisted_50 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
25009
- const _hoisted_51 = { class: "text-[#252B3A]" };
25010
- const _hoisted_52 = { class: "text-[var(--theme-link)]" };
25382
+ const _hoisted_50 = { class: "qrcode-container__timeout-text" };
25383
+ const _hoisted_51 = { class: "qrcode-container__timeout-prompt" };
25384
+ const _hoisted_52 = { class: "qrcode-container__timeout-btn" };
25011
25385
  const _hoisted_53 = {
25012
25386
  key: 1,
25013
- class: "flex flex-col gap-3 items-center justify-center"
25387
+ class: "qrcode-container__status"
25014
25388
  };
25015
- const _hoisted_54 = { class: "text-[var(--color-success)]" };
25016
- const _hoisted_55 = { class: "text-center" };
25389
+ const _hoisted_54 = { class: "qrcode-container__status-success" };
25390
+ const _hoisted_55 = { class: "qrcode-container__status-tip" };
25017
25391
  const _hoisted_56 = {
25018
25392
  key: 0,
25019
- class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
25393
+ class: "qrcode-container__caption"
25020
25394
  };
25021
25395
  const _hoisted_57 = {
25022
25396
  key: 0,
25023
- class: "login-modal-info h-[20px]"
25397
+ class: "login-modal-info"
25024
25398
  };
25025
25399
  const _hoisted_58 = { class: "login-modal-info-left" };
25026
25400
  const _hoisted_59 = {
25027
25401
  key: 0,
25028
- class: "mt-[18px]"
25402
+ class: "login-modal-submit-block"
25029
25403
  };
25030
- const _hoisted_60 = { class: "flex justify-center" };
25031
- const _hoisted_61 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
25404
+ const _hoisted_60 = { class: "login-modal-agreement__inner" };
25405
+ const _hoisted_61 = { class: "login-modal-harmony-row" };
25032
25406
  const _hoisted_62 = { class: "harmony-icon" };
25033
- const _hoisted_63 = { class: "w-[50px] h-[20px] last-login-img" };
25407
+ const _hoisted_63 = { class: "last-login-img" };
25034
25408
  const _hoisted_64 = ["src"];
25035
- const _hoisted_65 = { class: "ml-[8px] text-[12px]" };
25036
- const _hoisted_66 = { class: "login-modal-footer flex items-center justify-center" };
25409
+ const _hoisted_65 = { class: "login-modal-harmony-entry__label" };
25410
+ const _hoisted_66 = { class: "login-modal-footer" };
25037
25411
  const _hoisted_67 = { key: 2 };
25038
- const _hoisted_68 = { class: "line-clamp-2" };
25412
+ const _hoisted_68 = { class: "login-modal-error__text" };
25039
25413
  const _hoisted_69 = { class: "absolute-btn" };
25040
25414
  const _hoisted_70 = { key: 3 };
25041
- const _hoisted_71 = { class: "text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px] mt-[-8px]" };
25042
- const _hoisted_72 = { class: "line-clamp-2" };
25415
+ const _hoisted_71 = { class: "login-modal-error login-modal-error--register" };
25416
+ const _hoisted_72 = { class: "login-modal-error__text" };
25043
25417
  const _hoisted_73 = { class: "absolute-btn" };
25044
25418
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25045
25419
  ...{
@@ -26640,7 +27014,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26640
27014
  "show-title": FormConfig.value.showTitle,
26641
27015
  onBack: handleTitleBackClick,
26642
27016
  "show-back": FormConfig.value.showBack,
26643
- class: "login-modal-title flex-1"
27017
+ class: "login-modal-title"
26644
27018
  }, null, 8, ["icon", "title", "show-title", "show-back"]),
26645
27019
  createElementVNode("div", _hoisted_2, [
26646
27020
  __props.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
@@ -26668,7 +27042,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26668
27042
  createElementVNode("img", {
26669
27043
  src: isAIHub.value ? AiLogoType[unref(currentTheme)] : logoType[unref(currentTheme)],
26670
27044
  alt: "gitcode-logo",
26671
- class: "h-[30px]"
27045
+ class: "login-modal-logo-img"
26672
27046
  }, null, 8, _hoisted_6),
26673
27047
  createElementVNode("div", _hoisted_7, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
26674
27048
  ]),
@@ -26682,7 +27056,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26682
27056
  ], 2)
26683
27057
  ])) : createCommentVNode("", true),
26684
27058
  createElementVNode("div", {
26685
- class: normalizeClass(formType.value === "forget" ? "w-[512px]" : "w-[420px]")
27059
+ class: normalizeClass(["login-modal-form", formType.value === "forget" ? "login-modal-form--forget" : "login-modal-form--default"])
26686
27060
  }, [
26687
27061
  formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_11, [
26688
27062
  createElementVNode("div", _hoisted_12, [
@@ -26698,7 +27072,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26698
27072
  recentLoginType.value === unref(LoginMethodEnum).MINI_PROGRAM ? (openBlock(), createElementBlock("img", {
26699
27073
  key: 0,
26700
27074
  src: unref(recentLoginImg),
26701
- class: "w-[50px] h-[20px]"
27075
+ class: "last-login-img__icon"
26702
27076
  }, null, 8, _hoisted_14)) : createCommentVNode("", true)
26703
27077
  ])
26704
27078
  ], 2),
@@ -26714,7 +27088,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26714
27088
  recentLoginType.value === unref(LoginMethodEnum).PHONE ? (openBlock(), createElementBlock("img", {
26715
27089
  key: 0,
26716
27090
  src: unref(recentLoginImg),
26717
- class: "w-[50px] h-[20px]"
27091
+ class: "last-login-img__icon"
26718
27092
  }, null, 8, _hoisted_16)) : createCommentVNode("", true)
26719
27093
  ])
26720
27094
  ], 2),
@@ -26730,7 +27104,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26730
27104
  recentLoginType.value === unref(LoginMethodEnum).PASSWORD ? (openBlock(), createElementBlock("img", {
26731
27105
  key: 0,
26732
27106
  src: unref(recentLoginImg),
26733
- class: "w-[50px] h-[20px]"
27107
+ class: "last-login-img__icon"
26734
27108
  }, null, 8, _hoisted_18)) : createCommentVNode("", true)
26735
27109
  ])
26736
27110
  ], 2)
@@ -26739,7 +27113,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26739
27113
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
26740
27114
  createElementVNode("span", {
26741
27115
  onClick: clickRegister,
26742
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
27116
+ class: "login-modal-link"
26743
27117
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
26744
27118
  ])
26745
27119
  ])) : createCommentVNode("", true),
@@ -26752,7 +27126,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26752
27126
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.haveAccount")) + " ", 1),
26753
27127
  createElementVNode("span", {
26754
27128
  onClick: _cache[3] || (_cache[3] = ($event) => handleTitleBackClick("register")),
26755
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
27129
+ class: "login-modal-link"
26756
27130
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26757
27131
  ])
26758
27132
  ])
@@ -26763,7 +27137,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26763
27137
  createElementVNode("div", _hoisted_28, [
26764
27138
  createElementVNode("span", {
26765
27139
  onClick: _cache[4] || (_cache[4] = ($event) => handleTitleBackClick("bindPhone")),
26766
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
27140
+ class: "login-modal-link"
26767
27141
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26768
27142
  ])
26769
27143
  ]),
@@ -26775,7 +27149,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26775
27149
  createElementVNode("div", _hoisted_33, [
26776
27150
  createElementVNode("span", {
26777
27151
  onClick: _cache[5] || (_cache[5] = ($event) => handleTitleBackClick("bindPhoneConflict")),
26778
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
27152
+ class: "login-modal-link"
26779
27153
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26780
27154
  ])
26781
27155
  ]),
@@ -26789,7 +27163,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26789
27163
  createElementVNode("a", {
26790
27164
  href: currentUserHomePage.value,
26791
27165
  target: "_blank",
26792
- class: "text-[var(--theme-link)]"
27166
+ class: "login-modal-anchor"
26793
27167
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.bindPhoneConflict.text04")), 9, _hoisted_37)
26794
27168
  ]),
26795
27169
  createElementVNode("p", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.bindPhoneConflict.text05")) + " 「" + toDisplayString$1(newUsername.value) + "」", 1)
@@ -26811,7 +27185,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26811
27185
  createElementVNode("p", _hoisted_44, [
26812
27186
  createVNode(GIcon, {
26813
27187
  name: "gt-plane-warningTriangle-orange",
26814
- class: "mr-1"
27188
+ class: "login-modal-conflict-warning__icon"
26815
27189
  }),
26816
27190
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.bindPhoneConflict.text11")), 1)
26817
27191
  ]),
@@ -26819,7 +27193,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26819
27193
  ]),
26820
27194
  createElementVNode("div", _hoisted_45, [
26821
27195
  createVNode(unref(Button), {
26822
- class: "w-[48%]",
27196
+ class: "login-modal-conflict-actions__btn",
26823
27197
  loading: bindOperateLoading.value,
26824
27198
  color: "secondary",
26825
27199
  size: "lg",
@@ -26831,7 +27205,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26831
27205
  _: 1
26832
27206
  }, 8, ["loading"]),
26833
27207
  createVNode(unref(Button), {
26834
- class: "w-[48%]",
27208
+ class: "login-modal-conflict-actions__btn",
26835
27209
  loading: bindOperateLoading.value,
26836
27210
  size: "lg",
26837
27211
  variant: "solid",
@@ -26864,13 +27238,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26864
27238
  createElementVNode("img", {
26865
27239
  src: miniProgramInfo.value.qrcode,
26866
27240
  alt: "小程序二维码",
26867
- class: "w-[180px] h-[180px]"
27241
+ class: "qrcode-container__img"
26868
27242
  }, null, 8, _hoisted_48),
26869
27243
  miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_49, [
26870
27244
  miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", {
26871
27245
  key: 0,
26872
27246
  onClick: getMiniProgramQrCode,
26873
- class: "flex flex-col items-center justify-center cursor-pointer gap-[40px]"
27247
+ class: "qrcode-container__timeout"
26874
27248
  }, [
26875
27249
  createVNode(GIcon, {
26876
27250
  name: "gt-line-update",
@@ -26891,7 +27265,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26891
27265
  !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_56, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26892
27266
  key: 1,
26893
27267
  onClick: getMiniProgramQrCode,
26894
- class: "mt-2"
27268
+ class: "qrcode-container__retry"
26895
27269
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26896
27270
  ])
26897
27271
  ]),
@@ -26955,7 +27329,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26955
27329
  _: 1
26956
27330
  }, 8, ["loading", "disabled"]),
26957
27331
  createElementVNode("div", {
26958
- class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
27332
+ class: normalizeClass(["login-modal-footer-args login-modal-agreement", AgreementWarn.value ? "shaking-box" : ""])
26959
27333
  }, [
26960
27334
  createElementVNode("div", _hoisted_60, [
26961
27335
  createVNode(GAgreement, {
@@ -26970,20 +27344,20 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26970
27344
  createElementVNode("div", _hoisted_61, [
26971
27345
  __props.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26972
27346
  key: 0,
26973
- class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
27347
+ class: "login-modal-harmony-entry",
26974
27348
  onClick: withModifiers(handleRegisterHarmony, ["stop"])
26975
27349
  }, [
26976
27350
  createElementVNode("div", _hoisted_62, [
26977
27351
  _cache[20] || (_cache[20] = createElementVNode("img", {
26978
27352
  src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26979
27353
  alt: "",
26980
- class: "w-[32px] h-[32px] inline-block harmony-icon-img"
27354
+ class: "harmony-icon-img"
26981
27355
  }, null, -1)),
26982
27356
  createElementVNode("div", _hoisted_63, [
26983
27357
  recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
26984
27358
  key: 0,
26985
27359
  src: unref(recentLoginImg),
26986
- class: "w-[50px] h-[20px]"
27360
+ class: "last-login-img__icon"
26987
27361
  }, null, 8, _hoisted_64)) : createCommentVNode("", true)
26988
27362
  ])
26989
27363
  ]),
@@ -26996,21 +27370,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26996
27370
  logos,
26997
27371
  onAuth: pcAuthLogin,
26998
27372
  recentLoginType: recentLoginType.value,
26999
- class: "flex-1"
27373
+ class: "login-modal-footer__auth"
27000
27374
  }, null, 8, ["logos", "recentLoginType"])
27001
27375
  ])
27002
27376
  ], 64)) : createCommentVNode("", true),
27003
27377
  ["register", "forget"].includes(formType.value) ? (openBlock(), createElementBlock("div", _hoisted_67, [
27004
27378
  createElementVNode("div", {
27005
27379
  class: normalizeClass([
27006
- "text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]",
27007
- formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""
27380
+ "login-modal-error",
27381
+ formType.value === "register" ? "login-modal-error--register" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "login-modal-error--clickable" : ""
27008
27382
  ])
27009
27383
  }, [
27010
27384
  createElementVNode("span", _hoisted_68, toDisplayString$1(errorMsg.value), 1)
27011
27385
  ], 2),
27012
27386
  createElementVNode("div", {
27013
- class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
27387
+ class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
27014
27388
  }, [
27015
27389
  createVNode(_sfc_main$7, {
27016
27390
  modelValue: status.value,
@@ -27029,7 +27403,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27029
27403
  onClick: handleConfirm,
27030
27404
  disabled: disabled.value,
27031
27405
  loading: loading.value,
27032
- class: "w-[100%] mb-[14px] mt-[10px]"
27406
+ class: "login-modal-submit-btn"
27033
27407
  }, {
27034
27408
  default: withCtx(() => [
27035
27409
  createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
@@ -27050,7 +27424,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27050
27424
  onClick: handleConfirm,
27051
27425
  disabled: disabled.value,
27052
27426
  loading: loading.value,
27053
- class: "w-[100%] mt-[4px]"
27427
+ class: "login-modal-submit-btn login-modal-submit-btn--bindphone"
27054
27428
  }, {
27055
27429
  default: withCtx(() => [
27056
27430
  createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
@@ -27333,7 +27707,7 @@ export {
27333
27707
  GIcon as G,
27334
27708
  isHttps as H,
27335
27709
  asideRequest as I,
27336
- _sfc_main$F as J,
27710
+ _sfc_main$G as J,
27337
27711
  loadAsideData as K,
27338
27712
  LANG_ZH as L,
27339
27713
  EnterpriseHeader as M,
@@ -27364,7 +27738,7 @@ export {
27364
27738
  usePageResize as k,
27365
27739
  localStorage$2 as l,
27366
27740
  isGstarRepo as m,
27367
- _sfc_main$E as n,
27741
+ _sfc_main$F as n,
27368
27742
  isIncubationRepo as o,
27369
27743
  highlightWords as p,
27370
27744
  _frEventTrack as q,