vue-layout-gitcode 1.3.41 → 1.3.42

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,4 +1,4 @@
1
- import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, withDirectives, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, vShow, withKeys, useCssVars, useSlots, createSlots, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
1
+ import { defineComponent, computed, createBlock, createElementBlock, openBlock, unref, normalizeProps, mergeProps, normalizeClass, renderSlot, normalizeStyle, createElementVNode, reactive, readonly, inject, effectScope, ref, shallowRef, watch, isRef, getCurrentInstance, h, Fragment, onBeforeMount, onMounted, onUnmounted, createVNode, Text, provide, createCommentVNode, withCtx, toDisplayString as toDisplayString$1, renderList, createTextVNode, Transition, withModifiers, render, resolveComponent, watchEffect, withDirectives, vShow, guardReactiveProps, onBeforeUnmount, nextTick, defineAsyncComponent, withKeys, useCssVars, useSlots, createSlots, resolveDynamicComponent, toRaw, mergeModels, useModel as useModel$1, watchPostEffect } from "vue";
2
2
  import { Button } from "vue-devui-lal/button";
3
3
  import { Popover } from "vue-devui-lal/popover";
4
4
  import { Tooltip } from "vue-devui-lal/tooltip";
@@ -40,15 +40,13 @@ import "vue-devui-lal/layout/style.css";
40
40
  import { RadioGroup, Radio } from "vue-devui-lal/radio";
41
41
  import "@devui-design/icons/icomoon/devui-icon.css";
42
42
  import "vue-devui-lal/radio/style.css";
43
- import { EditableSelect } from "vue-devui-lal/editable-select";
44
- import "vue-devui-lal/editable-select/style.css";
45
43
  import { Checkbox } from "vue-devui-lal/checkbox";
46
44
  import "vue-devui-lal/checkbox/style.css";
47
45
  import { Modal } from "vue-devui-lal/modal";
48
46
  import "vue-devui-lal/modal/style.css";
49
- const _hoisted_1$v = ["xlink:href"];
50
- const _hoisted_2$l = ["xlink:href"];
51
- const _sfc_main$B = /* @__PURE__ */ defineComponent({
47
+ const _hoisted_1$w = ["xlink:href"];
48
+ const _hoisted_2$m = ["xlink:href"];
49
+ const _sfc_main$C = /* @__PURE__ */ defineComponent({
52
50
  __name: "index",
53
51
  props: {
54
52
  name: { default: "gt-run" },
@@ -77,7 +75,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
77
75
  }, [
78
76
  createElementVNode("use", {
79
77
  "xlink:href": `#${_ctx.name}`
80
- }, null, 8, _hoisted_1$v)
78
+ }, null, 8, _hoisted_1$w)
81
79
  ], 6)),
82
80
  renderSlot(_ctx.$slots, "suffix", {}, void 0, true)
83
81
  ], 2)) : (openBlock(), createElementBlock("svg", {
@@ -88,7 +86,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
88
86
  }, [
89
87
  createElementVNode("use", {
90
88
  "xlink:href": `#${_ctx.name}`
91
- }, null, 8, _hoisted_2$l)
89
+ }, null, 8, _hoisted_2$m)
92
90
  ], 6));
93
91
  };
94
92
  }
@@ -100,7 +98,7 @@ const _export_sfc = (sfc, props) => {
100
98
  }
101
99
  return target;
102
100
  };
103
- const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-gitcode-layout-lib"]]);
101
+ const GIcon = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["__scopeId", "data-v-gitcode-layout-lib"]]);
104
102
  const defaultConfig = {
105
103
  VITE_ENV: "production",
106
104
  VITE_HOST: "https://gitcode.com",
@@ -452,6 +450,13 @@ var CLICK_TIME_MODULE = /* @__PURE__ */ ((CLICK_TIME_MODULE2) => {
452
450
  CLICK_TIME_MODULE2["GROWTH_CENTER"] = "growthCenter";
453
451
  return CLICK_TIME_MODULE2;
454
452
  })(CLICK_TIME_MODULE || {});
453
+ var RepoType = /* @__PURE__ */ ((RepoType2) => {
454
+ RepoType2["repo"] = "0";
455
+ RepoType2["model"] = "1";
456
+ RepoType2["dataset"] = "2";
457
+ RepoType2["spaces"] = "3";
458
+ return RepoType2;
459
+ })(RepoType || {});
455
460
  const OSS_IMAGES = {
456
461
  gstar: "/static/images/homeweb/gstar-tag-twinkle.gif",
457
462
  trusted: "/static/images/homeweb/trusted-tag.png",
@@ -471,7 +476,6 @@ const OAUTH_CANCEL = "oauth_cancel";
471
476
  const OAUTH_LOGIN_TYPE_KEY = "oauthType";
472
477
  const REGISTER_SOURCE_TAB = "register_source_tab";
473
478
  const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
474
- const REGISTER_CLICK_TO_LOGIN = "register_click_to_login";
475
479
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
476
480
  const {
477
481
  entries,
@@ -7743,16 +7747,12 @@ const gitCodeLayout$1 = {
7743
7747
  phone: "手机号码",
7744
7748
  cipher: "密码",
7745
7749
  otherLogin: "其他登录方式",
7746
- useAgrAndPriPolTip: "用户协议与隐私政策提示",
7747
- desc: "代码有我,智能随行"
7750
+ useAgrAndPriPolTip: "用户协议与隐私政策提示"
7748
7751
  },
7749
7752
  action: {
7750
7753
  oh: "鸿蒙开发者登录",
7751
7754
  login: "登 录",
7752
- noAccount: "没有账号?",
7753
- haveAccount: "已有账号?",
7754
- registerAgain: "点击注册",
7755
- backLogin: "返回登录",
7755
+ registerAgain: "注册新账号",
7756
7756
  phone: "手机验证码",
7757
7757
  readAgree: "我已阅读并同意",
7758
7758
  verify: "确 认",
@@ -8031,16 +8031,12 @@ const gitCodeLayout = {
8031
8031
  phone: "Phone number",
8032
8032
  cipher: "Password",
8033
8033
  otherLogin: "Other login methods",
8034
- useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice",
8035
- desc: "Code with me, intelligent companion"
8034
+ useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
8036
8035
  },
8037
8036
  action: {
8038
8037
  oh: "OpenHarmony Developers",
8039
8038
  login: "Log In",
8040
- noAccount: "No account?",
8041
- haveAccount: "Have an account?",
8042
8039
  registerAgain: "Sign up",
8043
- backLogin: "Log in",
8044
8040
  phone: "SMS code",
8045
8041
  readAgree: "I have read and agree to",
8046
8042
  verify: "Confirm",
@@ -10912,15 +10908,15 @@ const proxyService = (params, customConfigs) => {
10912
10908
  );
10913
10909
  return service(params);
10914
10910
  };
10915
- const _hoisted_1$u = { class: "home-nav-right" };
10916
- const _hoisted_2$k = { class: "home-nav-item" };
10911
+ const _hoisted_1$v = { class: "home-nav-right" };
10912
+ const _hoisted_2$l = { class: "home-nav-item" };
10917
10913
  const _hoisted_3$i = {
10918
10914
  key: 0,
10919
10915
  class: "tooltip-sign"
10920
10916
  };
10921
- const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
10922
- const _hoisted_5$c = { class: "home-nav-text" };
10923
- const _hoisted_6$8 = {
10917
+ const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
10918
+ const _hoisted_5$a = { class: "home-nav-text" };
10919
+ const _hoisted_6$7 = {
10924
10920
  key: 1,
10925
10921
  class: "tools-list"
10926
10922
  };
@@ -10956,17 +10952,17 @@ const _hoisted_23$3 = {
10956
10952
  key: 0,
10957
10953
  class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
10958
10954
  };
10959
- const _hoisted_24$1 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
10960
- const _hoisted_25$1 = { class: "mt-3" };
10961
- const _hoisted_26$1 = {
10955
+ const _hoisted_24 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
10956
+ const _hoisted_25 = { class: "mt-3" };
10957
+ const _hoisted_26 = {
10962
10958
  key: 1,
10963
10959
  class: "finish flex items-center"
10964
10960
  };
10965
- const _hoisted_27$1 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
10966
- const _hoisted_28$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
10967
- const _hoisted_29$1 = { class: "home-nav-item" };
10968
- const _hoisted_30$1 = ["src", "alt"];
10969
- const _sfc_main$A = /* @__PURE__ */ defineComponent({
10961
+ const _hoisted_27 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
10962
+ const _hoisted_28 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
10963
+ const _hoisted_29 = { class: "home-nav-item" };
10964
+ const _hoisted_30 = ["src", "alt"];
10965
+ const _sfc_main$B = /* @__PURE__ */ defineComponent({
10970
10966
  __name: "index",
10971
10967
  props: {
10972
10968
  sceneValue: { default: SceneValue.home },
@@ -11127,15 +11123,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11127
11123
  window.removeEventListener("scroll", handleScroll);
11128
11124
  });
11129
11125
  return (_ctx, _cache) => {
11130
- return openBlock(), createElementBlock("div", _hoisted_1$u, [
11126
+ return openBlock(), createElementBlock("div", _hoisted_1$v, [
11131
11127
  isModuleVisible(unref(ToolsFloatDisplayItem).GROWTH_CENTER) ? (openBlock(), createBlock(unref(Tooltip), {
11132
11128
  key: 0,
11133
11129
  position: "left",
11134
11130
  "overlay-class": "tools-tag-tooltip"
11135
11131
  }, {
11136
11132
  content: withCtx(() => [
11137
- createElementVNode("div", _hoisted_4$g, [
11138
- createElementVNode("div", _hoisted_5$c, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11133
+ createElementVNode("div", _hoisted_4$e, [
11134
+ createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11139
11135
  ])
11140
11136
  ]),
11141
11137
  default: withCtx(() => [
@@ -11143,7 +11139,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11143
11139
  class: "home-nav-link tools-questionnaire",
11144
11140
  onClick: toggleGrowthCenter
11145
11141
  }, [
11146
- createElementVNode("div", _hoisted_2$k, [
11142
+ createElementVNode("div", _hoisted_2$l, [
11147
11143
  _cache[3] || (_cache[3] = createElementVNode("img", {
11148
11144
  class: "common-icon inline-block h-[20px] w-[20px]",
11149
11145
  src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
@@ -11155,7 +11151,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11155
11151
  ]),
11156
11152
  _: 1
11157
11153
  })) : createCommentVNode("", true),
11158
- isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
11154
+ isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
11159
11155
  createVNode(unref(Tooltip), {
11160
11156
  position: "left",
11161
11157
  "overlay-class": "tools-tag-tooltip"
@@ -11272,10 +11268,10 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11272
11268
  rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_23$3, [
11273
11269
  createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
11274
11270
  ])) : createCommentVNode("", true),
11275
- createElementVNode("div", _hoisted_24$1, [
11271
+ createElementVNode("div", _hoisted_24, [
11276
11272
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
11277
11273
  ]),
11278
- createElementVNode("div", _hoisted_25$1, [
11274
+ createElementVNode("div", _hoisted_25, [
11279
11275
  createVNode(unref(Textarea), {
11280
11276
  modelValue: opinionText.value,
11281
11277
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => opinionText.value = $event),
@@ -11299,15 +11295,15 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11299
11295
  ])
11300
11296
  ])) : createCommentVNode("", true)
11301
11297
  ])
11302
- ])) : (openBlock(), createElementBlock("div", _hoisted_26$1, [
11303
- createElementVNode("div", _hoisted_27$1, [
11298
+ ])) : (openBlock(), createElementBlock("div", _hoisted_26, [
11299
+ createElementVNode("div", _hoisted_27, [
11304
11300
  createVNode(GIcon, {
11305
11301
  name: "gt-success",
11306
11302
  size: "14px",
11307
11303
  color: "#fff"
11308
11304
  })
11309
11305
  ]),
11310
- createElementVNode("div", _hoisted_28$1, [
11306
+ createElementVNode("div", _hoisted_28, [
11311
11307
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
11312
11308
  ])
11313
11309
  ]))
@@ -11352,7 +11348,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11352
11348
  onClick: _cache[2] || (_cache[2] = //@ts-ignore
11353
11349
  (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
11354
11350
  }, [
11355
- createElementVNode("div", _hoisted_29$1, [
11351
+ createElementVNode("div", _hoisted_29, [
11356
11352
  createVNode(GIcon, {
11357
11353
  name: "gt-plane-Topping1",
11358
11354
  size: "20px"
@@ -11375,13 +11371,13 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11375
11371
  width: "200",
11376
11372
  src: activeAdItem.value.imgUrl,
11377
11373
  alt: activeAdItem.value.title
11378
- }, null, 8, _hoisted_30$1)
11374
+ }, null, 8, _hoisted_30)
11379
11375
  ])) : createCommentVNode("", true)
11380
11376
  ]);
11381
11377
  };
11382
11378
  }
11383
11379
  });
11384
- const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11380
+ const ToolsFloat = /* @__PURE__ */ _export_sfc(_sfc_main$B, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11385
11381
  function usePopup(className, rootElement) {
11386
11382
  const root2 = rootElement || document.getElementById("app") || (document == null ? void 0 : document.getElementById("__nuxt"));
11387
11383
  let cacheClass = "popup-container";
@@ -11446,8 +11442,8 @@ function usePopup(className, rootElement) {
11446
11442
  refreshModal
11447
11443
  };
11448
11444
  }
11449
- const _hoisted_1$t = ["href", "target", "disabled"];
11450
- const _sfc_main$z = /* @__PURE__ */ defineComponent({
11445
+ const _hoisted_1$u = ["href", "target", "disabled"];
11446
+ const _sfc_main$A = /* @__PURE__ */ defineComponent({
11451
11447
  ...{
11452
11448
  name: "GLink"
11453
11449
  },
@@ -11491,11 +11487,11 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
11491
11487
  disabled: _ctx.disabled || _ctx.noPointer
11492
11488
  }, [
11493
11489
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
11494
- ], 10, _hoisted_1$t));
11490
+ ], 10, _hoisted_1$u));
11495
11491
  };
11496
11492
  }
11497
11493
  });
11498
- const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11494
+ const GLink = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-gitcode-layout-lib"]]);
11499
11495
  const black = {
11500
11496
  "theme-stress-text": "#f0f6fc",
11501
11497
  "theme-text": "#D2D8E4",
@@ -12031,7 +12027,7 @@ if (isBrowser) {
12031
12027
  const sessionStorage$1 = sessionStorage;
12032
12028
  const _imports_0 = "data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3cg%20opacity='0.600000'%3e%3cpath%20id='Vector'%20d='M22%2013.89C22%2011.82%2020.72%2010.01%2018.81%209.2C19.08%2010.1%2019.27%2011%2019.27%2011.91C19.27%2014.7%2018%2017.23%2015.9%2018.86C16.18%2018.95%2016.54%2018.95%2016.9%2018.95C17.54%2018.95%2020.27%2019.04%2021.36%2019.13C21.54%2019.13%2021.63%2018.95%2021.54%2018.77C21.08%2018.41%2020.45%2017.59%2020.72%2017.23C21.54%2016.33%2022%2015.16%2022%2013.89L22%2013.89Z'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/g%3e%3cpath%20id='减去顶层'%20d='M10.1816%203.875C5.63672%203.875%202%207.48608%202%2011.9097C2%2013.9861%202.72656%2015.7916%204%2017.2361C4.36328%2017.6875%204%2018.5903%203.54492%2019.3125C3.36328%2019.6736%203.54492%2020.125%204%2020.125C5.72656%2020.125%209.18164%2020.0347%2010.1816%2020.0347C14.7266%2020.0347%2018.3633%2016.4236%2018.3633%2011.9097C18.3633%207.48608%2014.7266%203.875%2010.1816%203.875ZM11.9746%2015.1427L10.5762%209.59204C10.5234%209.38306%2010.4023%209.19751%2010.2324%209.06494C10.0605%208.93225%209.84961%208.86035%209.63281%208.86023L7.68555%208.86023C7.46875%208.86035%207.25781%208.93225%207.08594%209.06494C6.91602%209.19751%206.79492%209.38306%206.74219%209.59204L5.34375%2015.1427L7.35156%2015.1427L7.59375%2014.176L9.72461%2014.176L9.9668%2015.1427L11.9746%2015.1427ZM14.9863%208.86035L14.9863%2015.1437L13.041%2015.1437L13.041%208.86035L14.9863%208.86035ZM8.44531%2010.7931L8.87305%2010.7931L9.23828%2012.243L8.08008%2012.243L8.44531%2010.7931Z'%20clip-rule='evenodd'%20fill='%23FFFFFF'%20fill-opacity='1.000000'%20fill-rule='evenodd'/%3e%3c/svg%3e";
12033
12029
  const _imports_1 = "data:image/png;base64,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";
12034
- const _sfc_main$y = /* @__PURE__ */ defineComponent({
12030
+ const _sfc_main$z = /* @__PURE__ */ defineComponent({
12035
12031
  ...{
12036
12032
  name: "GAvatar"
12037
12033
  },
@@ -14453,13 +14449,6 @@ function headRequest(request) {
14453
14449
  url: `/aihub/api/v1/theme/label/config/list`,
14454
14450
  method: "get"
14455
14451
  }));
14456
- },
14457
- // 获取今日技术历史
14458
- getTodayTechHistory() {
14459
- return reqCatch(() => request({
14460
- url: `/uc/api/v1/operation/tech-history`,
14461
- method: "get"
14462
- }));
14463
14452
  }
14464
14453
  };
14465
14454
  }
@@ -14479,12 +14468,91 @@ var RouteNameEnum = /* @__PURE__ */ ((RouteNameEnum2) => {
14479
14468
  RouteNameEnum2["AI_THEME"] = "theme";
14480
14469
  return RouteNameEnum2;
14481
14470
  })(RouteNameEnum || {});
14482
- const _hoisted_1$s = ["href", "onMouseenter"];
14483
- const _hoisted_2$j = { class: "ai-hub-menus-item_label" };
14484
- const _hoisted_3$h = ["onMouseenter"];
14485
- const _hoisted_4$f = { class: "ai-hub-menus-themetablist" };
14486
- const _hoisted_5$b = { class: "w-[32px] h-[32px] flex items-center justify-center" };
14487
- const _hoisted_6$7 = { class: "flex items-center min-w-[90px] gap-[8px] font-semibold" };
14471
+ const _hoisted_1$t = {
14472
+ key: 0,
14473
+ class: "ai-home-mb-menu-wrap"
14474
+ };
14475
+ const _hoisted_2$k = { class: "right-content cursor-pointer" };
14476
+ const _hoisted_3$h = { class: "list-menu-ai-home" };
14477
+ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14478
+ __name: "AiHubMenusMobile",
14479
+ props: ["activeMenu", "menuList", "isRouterLink"],
14480
+ setup(__props) {
14481
+ const route = useRoute();
14482
+ const changeIcon = ref(false);
14483
+ const rotateIcon = computed(() => {
14484
+ return changeIcon.value ? "gt-line-up" : "gt-line-down";
14485
+ });
14486
+ const isHome = computed(() => {
14487
+ return [RouteNameEnum.HOME].includes(route.name);
14488
+ });
14489
+ const dynamicStyle = computed(() => !isHome.value ? "isBlack" : "isWhite");
14490
+ return (_ctx, _cache) => {
14491
+ return __props.activeMenu ? (openBlock(), createElementBlock("section", _hoisted_1$t, [
14492
+ __props.activeMenu.icon ? (openBlock(), createBlock(GIcon, {
14493
+ key: 0,
14494
+ class: "gt-line-ok1",
14495
+ name: __props.activeMenu.icon
14496
+ }, null, 8, ["name"])) : createCommentVNode("", true),
14497
+ createVNode(unref(Dropdown), {
14498
+ "overlay-class": "list-menu-ai-home-drop-wrap",
14499
+ class: normalizeClass(["menu-bg", { "menu-bg-white": !isHome.value }])
14500
+ }, {
14501
+ menu: withCtx(() => [
14502
+ createElementVNode("ul", _hoisted_3$h, [
14503
+ (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
14504
+ var _a;
14505
+ return openBlock(), createElementBlock("li", {
14506
+ key: item.label,
14507
+ class: "menu-item"
14508
+ }, [
14509
+ createVNode(GLink, {
14510
+ class: "icon-title-wrap w-full py-[12px]",
14511
+ href: __props.isRouterLink ? void 0 : item.url,
14512
+ to: __props.isRouterLink ? item.to : void 0
14513
+ }, {
14514
+ default: withCtx(() => [
14515
+ createVNode(GIcon, {
14516
+ class: "menue-icon",
14517
+ name: item.icon
14518
+ }, null, 8, ["name"]),
14519
+ createElementVNode("span", null, toDisplayString$1(item.label), 1)
14520
+ ]),
14521
+ _: 2
14522
+ }, 1032, ["href", "to"]),
14523
+ withDirectives(createVNode(GIcon, {
14524
+ name: "gt-line-ok1",
14525
+ class: normalizeClass([[dynamicStyle.value], "ml-[10px]"])
14526
+ }, null, 8, ["class"]), [
14527
+ [vShow, ((_a = __props.activeMenu) == null ? void 0 : _a.url) === item.url]
14528
+ ])
14529
+ ]);
14530
+ }), 128))
14531
+ ])
14532
+ ]),
14533
+ default: withCtx(() => [
14534
+ createElementVNode("section", _hoisted_2$k, [
14535
+ createElementVNode("span", {
14536
+ class: normalizeClass(["title", [dynamicStyle.value]])
14537
+ }, toDisplayString$1(__props.activeMenu.label), 3),
14538
+ createVNode(GIcon, {
14539
+ name: rotateIcon.value,
14540
+ class: normalizeClass(["gt-line-down", [dynamicStyle.value]])
14541
+ }, null, 8, ["name", "class"])
14542
+ ])
14543
+ ]),
14544
+ _: 1
14545
+ }, 8, ["class"])
14546
+ ])) : createCommentVNode("", true);
14547
+ };
14548
+ }
14549
+ });
14550
+ const AiHubMenusMobile = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
14551
+ const _hoisted_1$s = { class: "ai-hub-menus-item_label" };
14552
+ const _hoisted_2$j = ["onMouseenter"];
14553
+ const _hoisted_3$g = { class: "ai-hub-menus-themetablist" };
14554
+ const _hoisted_4$d = { class: "flex items-center gap-[8px] font-semibold" };
14555
+ const _hoisted_5$9 = { class: "w-[32px] h-[32px] flex items-center justify-center" };
14488
14556
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
14489
14557
  __name: "AiHubMenus",
14490
14558
  props: ["scene"],
@@ -14492,32 +14560,42 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14492
14560
  const layoutConfig2 = useLayoutConfig();
14493
14561
  const route = useRoute();
14494
14562
  const props = __props;
14563
+ const isRouterLink = computed(() => {
14564
+ return props.scene !== SceneValue.aiRepo;
14565
+ });
14495
14566
  const { t: t2 } = i18n.global;
14496
14567
  const API = headRequest(inject("request"));
14568
+ const repoInfo = inject("repoInfo");
14497
14569
  const menus = [
14498
14570
  {
14499
14571
  label: t2("gitCodeLayout.aihub.model"),
14500
14572
  icon: "gt-model_default",
14501
14573
  activeIcon: "gt-model_red",
14502
14574
  whiteIcon: "gt-model_dark_bg",
14575
+ to: "/models",
14503
14576
  url: `${layoutConfig2.VITE_AI_HOST}/models`,
14504
- menueKey: RouteNameEnum.AI_MODELS
14577
+ menueKey: RouteNameEnum.AI_MODELS,
14578
+ repoType: RepoType.model
14505
14579
  },
14506
14580
  {
14507
14581
  label: t2("gitCodeLayout.aihub.dataSet"),
14508
14582
  icon: "gt-dataset_default",
14509
14583
  activeIcon: "gt-dataset_red",
14510
14584
  whiteIcon: "gt-dataset_dark_bg",
14585
+ to: "/datasets",
14511
14586
  url: `${layoutConfig2.VITE_AI_HOST}/datasets`,
14512
- menueKey: RouteNameEnum.AI_DATASETS
14587
+ menueKey: RouteNameEnum.AI_DATASETS,
14588
+ repoType: RepoType.dataset
14513
14589
  },
14514
14590
  {
14515
14591
  label: "Spaces",
14516
14592
  icon: "gt-space_default",
14517
14593
  activeIcon: "gt-space_red",
14518
14594
  whiteIcon: "gt-space_dark_bg",
14595
+ to: "/space",
14519
14596
  url: `${layoutConfig2.VITE_AI_HOST}/space`,
14520
- menueKey: RouteNameEnum.AI_SPACE
14597
+ menueKey: RouteNameEnum.AI_SPACE,
14598
+ repoType: RepoType.spaces
14521
14599
  },
14522
14600
  {
14523
14601
  label: "专区",
@@ -14525,6 +14603,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14525
14603
  icon: "gt-a-Property1Default7",
14526
14604
  activeIcon: "gt-a-Property1red6",
14527
14605
  whiteIcon: "gt-a-Property1white",
14606
+ to: "/theme",
14528
14607
  url: `${layoutConfig2.VITE_AI_HOST}/theme`,
14529
14608
  menueKey: RouteNameEnum.AI_THEME
14530
14609
  },
@@ -14533,14 +14612,15 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14533
14612
  icon: "gt-a-plane-GrowthCenter1",
14534
14613
  activeIcon: "gt-a-plane-GrowthCenter-1",
14535
14614
  whiteIcon: "gt-a-plane-GrowthCenter-2",
14615
+ to: "/competition",
14536
14616
  url: `${layoutConfig2.VITE_AI_HOST}/competition`,
14537
14617
  menueKey: RouteNameEnum.AI_COMPETITION
14538
14618
  }
14539
14619
  ];
14540
14620
  const activeMenu = computed(() => {
14541
14621
  return menus.find((item) => {
14542
- var _a;
14543
- return item.menueKey === (route == null ? void 0 : route.name) || item.menueKey === ((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.pType);
14622
+ var _a, _b;
14623
+ return item.menueKey === (route == null ? void 0 : route.name) || item.menueKey === ((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.pType) || item.repoType === ((_b = repoInfo.value) == null ? void 0 : _b.repo_type);
14544
14624
  }) || {};
14545
14625
  });
14546
14626
  const hoverMenu = ref(void 0);
@@ -14551,14 +14631,16 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14551
14631
  return {
14552
14632
  icon: item.icon,
14553
14633
  name: item.tag_name || "国产模型专区",
14554
- url: `${layoutConfig2.VITE_AI_HOST}/theme/${item.theme_id}`
14634
+ url: `${layoutConfig2.VITE_AI_HOST}/theme/${item.theme_id}`,
14635
+ to: `/theme/${item.theme_id}`
14555
14636
  };
14556
14637
  });
14557
14638
  themeTablist.value = [
14558
14639
  {
14559
14640
  icon: "gt-a-line-alltopics",
14560
14641
  name: "全部主题",
14561
- url: `${layoutConfig2.VITE_AI_HOST}/theme`
14642
+ url: `${layoutConfig2.VITE_AI_HOST}/theme`,
14643
+ to: "/theme"
14562
14644
  },
14563
14645
  ...dataResult
14564
14646
  ];
@@ -14580,30 +14662,35 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14580
14662
  (openBlock(), createElementBlock(Fragment, null, renderList(menus, (menu, index2) => {
14581
14663
  var _a;
14582
14664
  return openBlock(), createElementBlock(Fragment, { key: index2 }, [
14583
- menu.id !== unref(aiThemeMenuId) ? (openBlock(), createElementBlock("a", {
14665
+ menu.id !== unref(aiThemeMenuId) ? (openBlock(), createBlock(GLink, {
14584
14666
  key: 0,
14585
14667
  class: normalizeClass(["ai-hub-menus-item flex items-center gap-[8px]", { active: ((_a = activeMenu.value) == null ? void 0 : _a.url) === menu.url }]),
14586
- href: menu.url,
14668
+ href: isRouterLink.value ? void 0 : menu.url,
14669
+ to: isRouterLink.value ? menu.to : void 0,
14587
14670
  onMouseenter: ($event) => hoverMenu.value = menu,
14588
14671
  onMouseleave: _cache[0] || (_cache[0] = ($event) => hoverMenu.value = void 0)
14589
- }, [
14590
- createVNode(GIcon, {
14591
- size: "16px",
14592
- name: getActiveIcon(menu)
14593
- }, null, 8, ["name"]),
14594
- createElementVNode("span", _hoisted_2$j, toDisplayString$1(menu.label), 1)
14595
- ], 42, _hoisted_1$s)) : (openBlock(), createBlock(unref(Dropdown), {
14672
+ }, {
14673
+ default: withCtx(() => [
14674
+ createVNode(GIcon, {
14675
+ size: "16px",
14676
+ name: getActiveIcon(menu)
14677
+ }, null, 8, ["name"]),
14678
+ createElementVNode("span", _hoisted_1$s, toDisplayString$1(menu.label), 1)
14679
+ ]),
14680
+ _: 2
14681
+ }, 1032, ["class", "href", "to", "onMouseenter"])) : (openBlock(), createBlock(unref(Dropdown), {
14596
14682
  key: 1,
14597
14683
  trigger: "hover",
14598
14684
  "overlay-class": "theme-tablist",
14599
14685
  position: ["top-start"]
14600
14686
  }, {
14601
14687
  menu: withCtx(() => [
14602
- createElementVNode("ul", _hoisted_4$f, [
14688
+ createElementVNode("ul", _hoisted_3$g, [
14603
14689
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
14604
14690
  return openBlock(), createBlock(GLink, {
14605
14691
  key: index22,
14606
- href: item.url,
14692
+ href: isRouterLink.value ? void 0 : item.url,
14693
+ to: isRouterLink.value ? item.to : void 0,
14607
14694
  class: normalizeClass(["menuitems ellipsis block", { "active-theme-item": isActiveThemeItem(item.url) }]),
14608
14695
  title: item.name
14609
14696
  }, {
@@ -14616,7 +14703,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14616
14703
  createElementVNode("span", null, toDisplayString$1(item.name), 1)
14617
14704
  ]),
14618
14705
  _: 2
14619
- }, 1032, ["href", "class", "title"]);
14706
+ }, 1032, ["href", "to", "class", "title"]);
14620
14707
  }), 128))
14621
14708
  ])
14622
14709
  ]),
@@ -14635,7 +14722,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14635
14722
  createElementVNode("span", {
14636
14723
  class: normalizeClass(["ai-hub-menus-item_label hemin", { "theme-tablist-hoverColor": ((_a2 = activeMenu.value) == null ? void 0 : _a2.url) === menu.url || ((_b = hoverMenu.value) == null ? void 0 : _b.url) === menu.url }])
14637
14724
  }, toDisplayString$1(menu.label), 3)
14638
- ], 40, _hoisted_3$h)
14725
+ ], 40, _hoisted_2$j)
14639
14726
  ];
14640
14727
  }),
14641
14728
  _: 2
@@ -14643,28 +14730,35 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14643
14730
  ], 64);
14644
14731
  }), 64))
14645
14732
  ], 2),
14646
- createVNode(GLink, {
14733
+ isRouterLink.value ? (openBlock(), createBlock(AiHubMenusMobile, {
14734
+ key: 0,
14735
+ activeMenu: activeMenu.value,
14736
+ menuList: menus,
14737
+ isRouterLink: isRouterLink.value,
14738
+ class: "md:hidden"
14739
+ }, null, 8, ["activeMenu", "isRouterLink"])) : (openBlock(), createBlock(GLink, {
14740
+ key: 1,
14647
14741
  class: "flex items-center gap-[12px] md:hidden",
14648
14742
  href: activeMenu.value.url
14649
14743
  }, {
14650
14744
  default: withCtx(() => [
14651
- createElementVNode("div", _hoisted_5$b, [
14652
- createVNode(GIcon, {
14653
- size: "18px",
14654
- name: "gt-line-down",
14655
- rotate: "90deg"
14656
- })
14657
- ]),
14658
- createElementVNode("span", _hoisted_6$7, [
14745
+ createElementVNode("span", _hoisted_4$d, [
14659
14746
  createVNode(GIcon, {
14660
14747
  size: "24px",
14661
14748
  name: activeMenu.value.icon
14662
14749
  }, null, 8, ["name"]),
14663
14750
  createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
14751
+ ]),
14752
+ createElementVNode("div", _hoisted_5$9, [
14753
+ createVNode(GIcon, {
14754
+ size: "18px",
14755
+ name: "gt-line-down",
14756
+ rotate: "-90deg"
14757
+ })
14664
14758
  ])
14665
14759
  ]),
14666
14760
  _: 1
14667
- }, 8, ["href"])
14761
+ }, 8, ["href"]))
14668
14762
  ]);
14669
14763
  };
14670
14764
  }
@@ -16489,9 +16583,9 @@ const _hoisted_2$i = {
16489
16583
  key: 1,
16490
16584
  class: "org-layout-toolbar"
16491
16585
  };
16492
- const _hoisted_3$g = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16493
- const _hoisted_4$e = { class: "text-xs" };
16494
- const _hoisted_5$a = { class: "flex items-center w-full" };
16586
+ const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16587
+ const _hoisted_4$c = { class: "text-xs" };
16588
+ const _hoisted_5$8 = { class: "flex items-center w-full" };
16495
16589
  const _hoisted_6$6 = {
16496
16590
  key: 1,
16497
16591
  class: "flex items-center min-w-[30px]"
@@ -16664,7 +16758,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16664
16758
  default: withCtx(() => {
16665
16759
  var _a2, _b2, _c;
16666
16760
  return [
16667
- createVNode(_sfc_main$y, {
16761
+ createVNode(_sfc_main$z, {
16668
16762
  class: "g-border",
16669
16763
  src: (_a2 = unref(orgInfo)) == null ? void 0 : _a2.avatar,
16670
16764
  name: (_b2 = unref(orgInfo)) == null ? void 0 : _b2.name,
@@ -16672,7 +16766,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16672
16766
  height: 28,
16673
16767
  is_round: false
16674
16768
  }, null, 8, ["src", "name"]),
16675
- createElementVNode("div", _hoisted_3$g, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16769
+ createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16676
16770
  ];
16677
16771
  }),
16678
16772
  _: 1
@@ -16687,7 +16781,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16687
16781
  default: withCtx(() => {
16688
16782
  var _a2;
16689
16783
  return [
16690
- createElementVNode("span", _hoisted_4$e, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
16784
+ createElementVNode("span", _hoisted_4$c, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
16691
16785
  ];
16692
16786
  }),
16693
16787
  _: 1
@@ -16709,7 +16803,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16709
16803
  default: withCtx(() => {
16710
16804
  var _a2, _b2, _c, _d, _e, _f, _g;
16711
16805
  return [
16712
- createElementVNode("h2", _hoisted_5$a, [
16806
+ createElementVNode("h2", _hoisted_5$8, [
16713
16807
  createVNode(GLink, {
16714
16808
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
16715
16809
  class: "pr-[12px]"
@@ -16717,7 +16811,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16717
16811
  default: withCtx(() => {
16718
16812
  var _a3, _b3, _c2, _d2;
16719
16813
  return [
16720
- !((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$y, {
16814
+ !((_a3 = _ctx.repoProps) == null ? void 0 : _a3.isGhMirrors) ? (openBlock(), createBlock(_sfc_main$z, {
16721
16815
  key: 0,
16722
16816
  class: normalizeClass({ "g-border": isOrg.value }),
16723
16817
  src: (_c2 = (_b3 = unref(repoInfo)) == null ? void 0 : _b3.namespace) == null ? void 0 : _c2.avatar_url,
@@ -16861,7 +16955,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16861
16955
  default: withCtx(() => {
16862
16956
  var _a2, _b2, _c, _d, _e;
16863
16957
  return [
16864
- createVNode(_sfc_main$y, {
16958
+ createVNode(_sfc_main$z, {
16865
16959
  src: (_a2 = unref(otherUserInfo)) == null ? void 0 : _a2.avatarUrl,
16866
16960
  name: ((_b2 = unref(otherUserInfo)) == null ? void 0 : _b2.name) || ((_c = unref(otherUserInfo)) == null ? void 0 : _c.nickname),
16867
16961
  width: 28,
@@ -16926,21 +17020,6 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
16926
17020
  AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
16927
17021
  return AuthTypeEnum2;
16928
17022
  })(AuthTypeEnum || {});
16929
- var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
16930
- LoginMethodEnum2["PHONE"] = "phone";
16931
- LoginMethodEnum2["PASSWORD"] = "password";
16932
- LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
16933
- LoginMethodEnum2["HARMONY"] = "harmony";
16934
- LoginMethodEnum2["CSDN"] = "csdn";
16935
- LoginMethodEnum2["ATOMGIT"] = "atomgit";
16936
- LoginMethodEnum2["GITEE"] = "gitee";
16937
- LoginMethodEnum2["GITHUB"] = "github";
16938
- LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
16939
- LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
16940
- LoginMethodEnum2["H_BUILDER"] = "hbuilder";
16941
- LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
16942
- return LoginMethodEnum2;
16943
- })(LoginMethodEnum || {});
16944
17023
  var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
16945
17024
  AuthResType2["SUCCESS"] = "success";
16946
17025
  AuthResType2["FAIL"] = "fail";
@@ -17425,9 +17504,9 @@ const _hoisted_1$n = {
17425
17504
  class: "user-level-avatar-badge"
17426
17505
  };
17427
17506
  const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
17428
- const _hoisted_3$f = ["src"];
17429
- const _hoisted_4$d = { class: "level-name" };
17430
- const _hoisted_5$9 = { class: "level-icon" };
17507
+ const _hoisted_3$e = ["src"];
17508
+ const _hoisted_4$b = { class: "level-name" };
17509
+ const _hoisted_5$7 = { class: "level-icon" };
17431
17510
  const _hoisted_6$5 = ["src"];
17432
17511
  const _hoisted_7$4 = { class: "custom-btn" };
17433
17512
  const _hoisted_8$4 = { class: "flex items-center justify-center" };
@@ -17484,10 +17563,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17484
17563
  class: "level-avatar",
17485
17564
  src: levelInfo.value.avatar,
17486
17565
  alt: ""
17487
- }, null, 8, _hoisted_3$f),
17488
- createElementVNode("div", _hoisted_4$d, [
17566
+ }, null, 8, _hoisted_3$e),
17567
+ createElementVNode("div", _hoisted_4$b, [
17489
17568
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
17490
- createElementVNode("div", _hoisted_5$9, [
17569
+ createElementVNode("div", _hoisted_5$7, [
17491
17570
  createElementVNode("img", {
17492
17571
  src: levelInfo.value.level,
17493
17572
  alt: ""
@@ -17505,8 +17584,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17505
17584
  const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17506
17585
  const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
17507
17586
  const _hoisted_2$g = { class: "max-w-[200px]" };
17508
- const _hoisted_3$e = ["title"];
17509
- const _hoisted_4$c = ["title"];
17587
+ const _hoisted_3$d = ["title"];
17588
+ const _hoisted_4$a = ["title"];
17510
17589
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
17511
17590
  __name: "UserAvatarMenu",
17512
17591
  props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
@@ -17602,9 +17681,6 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17602
17681
  [
17603
17682
  { id: "personalSetting", label: t2("gitCodeLayout.header.personSetting"), icon: "gt-plane-setting", to: getRouterLink("setting") },
17604
17683
  { id: "help", label: t2("gitCodeLayout.header.helpDocument"), icon: "gt-plane-project-opened", href: HELP_DOCS_URL }
17605
- ],
17606
- [
17607
- { id: "logout", label: t2("gitCodeLayout.header.logout"), icon: "gt-default", action: logout }
17608
17684
  ]
17609
17685
  ];
17610
17686
  const routerHref = computed(() => {
@@ -17666,7 +17742,7 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17666
17742
  target: __props.isChatBot ? "_blank" : ""
17667
17743
  }, {
17668
17744
  default: withCtx(() => [
17669
- createVNode(_sfc_main$y, {
17745
+ createVNode(_sfc_main$z, {
17670
17746
  name: __props.accountInfo.nickname,
17671
17747
  src: __props.accountInfo.avatar,
17672
17748
  width: 52,
@@ -17677,11 +17753,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17677
17753
  createElementVNode("p", {
17678
17754
  class: "g-user-drawer-info-list-name ellipsis",
17679
17755
  title: __props.accountInfo.nickname
17680
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
17756
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
17681
17757
  createElementVNode("p", {
17682
17758
  class: "g-user-drawer-info-list-id ellipsis",
17683
17759
  title: __props.accountInfo.username
17684
- }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$c)
17760
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
17685
17761
  ]),
17686
17762
  createVNode(GIcon, {
17687
17763
  name: "gt-line-right",
@@ -17727,12 +17803,12 @@ const _hoisted_2$f = {
17727
17803
  key: 0,
17728
17804
  class: "g-user-avatar__badge"
17729
17805
  };
17730
- const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
17731
- const _hoisted_4$b = {
17806
+ const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
17807
+ const _hoisted_4$9 = {
17732
17808
  key: 0,
17733
17809
  class: "g-user-avatar__badge"
17734
17810
  };
17735
- const _hoisted_5$8 = { class: "g-user-drawer" };
17811
+ const _hoisted_5$6 = { class: "g-user-drawer" };
17736
17812
  const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
17737
17813
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
17738
17814
  ...{
@@ -17814,7 +17890,6 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17814
17890
  onBeforeUnmount(() => {
17815
17891
  window.removeEventListener("storage", handleStorageChange);
17816
17892
  });
17817
- console.log("aaa----------------");
17818
17893
  return (_ctx, _cache) => {
17819
17894
  return openBlock(), createElementBlock(Fragment, null, [
17820
17895
  unref(isMobile) ? (openBlock(), createElementBlock("div", {
@@ -17822,7 +17897,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17822
17897
  onClick: _cache[0] || (_cache[0] = ($event) => drawerVisible.value = true)
17823
17898
  }, [
17824
17899
  createElementVNode("div", _hoisted_1$l, [
17825
- createVNode(_sfc_main$y, {
17900
+ createVNode(_sfc_main$z, {
17826
17901
  name: accountInfo.value.nickname,
17827
17902
  src: accountInfo.value.avatar
17828
17903
  }, null, 8, ["name", "src"]),
@@ -17839,7 +17914,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17839
17914
  onToggle: handleToggle
17840
17915
  }, {
17841
17916
  menu: withCtx(() => [
17842
- createElementVNode("div", _hoisted_5$8, [
17917
+ createElementVNode("div", _hoisted_5$6, [
17843
17918
  createVNode(UserAvatarMenu, {
17844
17919
  independence: __props.independence,
17845
17920
  loginOutFinish: __props.loginOutFinish,
@@ -17851,12 +17926,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17851
17926
  ])
17852
17927
  ]),
17853
17928
  default: withCtx(() => [
17854
- createElementVNode("div", _hoisted_3$d, [
17855
- createVNode(_sfc_main$y, {
17929
+ createElementVNode("div", _hoisted_3$c, [
17930
+ createVNode(_sfc_main$z, {
17856
17931
  name: accountInfo.value.nickname,
17857
17932
  src: accountInfo.value.avatar
17858
17933
  }, null, 8, ["name", "src"]),
17859
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, _cache[4] || (_cache[4] = [
17934
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[4] || (_cache[4] = [
17860
17935
  createElementVNode("div", null, null, -1)
17861
17936
  ]))) : createCommentVNode("", true)
17862
17937
  ])
@@ -17986,9 +18061,9 @@ const setlocalVistHistory = (data, localType) => {
17986
18061
  };
17987
18062
  const _hoisted_1$k = { class: "g-header-search-prefix" };
17988
18063
  const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
17989
- const _hoisted_3$c = { class: "g-header-search-suffix-suffixIcon" };
17990
- const _hoisted_4$a = { class: "history-list" };
17991
- const _hoisted_5$7 = {
18064
+ const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
18065
+ const _hoisted_4$8 = { class: "history-list" };
18066
+ const _hoisted_5$5 = {
17992
18067
  key: 1,
17993
18068
  class: "aireposearch flex-1"
17994
18069
  };
@@ -18003,13 +18078,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18003
18078
  var _a;
18004
18079
  const layoutConfig2 = useLayoutConfig();
18005
18080
  const { t: $t } = i18n.global;
18006
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-B1zrQyDQ.js"));
18007
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-BQX10OlD.js"));
18008
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C7LAcV05.js"));
18009
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BuhqGED9.js"));
18010
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-Cgw8fkxu.js"));
18011
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BCkplaHZ.js"));
18012
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Bh1LqtOt.js"));
18081
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-3F_KFdm6.js"));
18082
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-I_wjWohw.js"));
18083
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-NYQoyFIy.js"));
18084
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CP6fyFVM.js"));
18085
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DsVkc0NK.js"));
18086
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-jvjk6q_v.js"));
18087
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Dai2NMWV.js"));
18013
18088
  const props = __props;
18014
18089
  const repoInfo = inject("repoInfo");
18015
18090
  const orgInfo = inject("orgInfo");
@@ -18462,7 +18537,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18462
18537
  }, {
18463
18538
  menu: withCtx(() => [
18464
18539
  createElementVNode("div", null, [
18465
- withDirectives(createElementVNode("div", _hoisted_4$a, [
18540
+ withDirectives(createElementVNode("div", _hoisted_4$8, [
18466
18541
  createVNode(unref(SearchScopeList), {
18467
18542
  searchScopeList: searchScopeList.value,
18468
18543
  searchStr: searchStr.value,
@@ -18580,7 +18655,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18580
18655
  withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
18581
18656
  [vShow, searchStr.value]
18582
18657
  ]),
18583
- createElementVNode("div", _hoisted_3$c, [
18658
+ createElementVNode("div", _hoisted_3$b, [
18584
18659
  createVNode(GIcon, {
18585
18660
  name: "search",
18586
18661
  class: "g-header-search-icon",
@@ -18598,7 +18673,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18598
18673
  _: 1
18599
18674
  }, 8, ["overlay-class", "visible"])
18600
18675
  ], 2)) : createCommentVNode("", true),
18601
- _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
18676
+ _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
18602
18677
  createVNode(unref(Input), {
18603
18678
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
18604
18679
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -18619,7 +18694,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18619
18694
  }
18620
18695
  });
18621
18696
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18622
- const NoticeModal = defineAsyncComponent(() => import("./notice-CR0msS92.js"));
18697
+ const NoticeModal = defineAsyncComponent(() => import("./notice-BXNd4tKQ.js"));
18623
18698
  function clearNotice() {
18624
18699
  if (localStorage$2.getItem("validator_email")) {
18625
18700
  localStorage$2.removeItem("validator_email");
@@ -18651,8 +18726,8 @@ const _hoisted_1$j = {
18651
18726
  class: "g-header-body"
18652
18727
  };
18653
18728
  const _hoisted_2$d = { class: "g-header-body-left h-full" };
18654
- const _hoisted_3$b = { class: "g-header-body-right h-full" };
18655
- const _hoisted_4$9 = { key: 2 };
18729
+ const _hoisted_3$a = { class: "g-header-body-right h-full" };
18730
+ const _hoisted_4$7 = { key: 2 };
18656
18731
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
18657
18732
  ...{
18658
18733
  name: "header"
@@ -19070,12 +19145,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19070
19145
  createElementVNode("div", _hoisted_2$d, [
19071
19146
  renderSlot(_ctx.$slots, "info", {}, void 0, true)
19072
19147
  ]),
19073
- createElementVNode("div", _hoisted_3$b, [
19148
+ createElementVNode("div", _hoisted_3$a, [
19074
19149
  renderSlot(_ctx.$slots, "menu", {}, void 0, true)
19075
19150
  ])
19076
19151
  ], true)
19077
19152
  ])) : createCommentVNode("", true),
19078
- _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
19153
+ _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
19079
19154
  renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
19080
19155
  ])) : createCommentVNode("", true)
19081
19156
  ], 2)
@@ -19105,7 +19180,7 @@ const createSetting = () => {
19105
19180
  };
19106
19181
  const _hoisted_1$i = { class: "tools-item-wrapper" };
19107
19182
  const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
19108
- const _hoisted_3$a = ["onClick", "title"];
19183
+ const _hoisted_3$9 = ["onClick", "title"];
19109
19184
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19110
19185
  __name: "Lang",
19111
19186
  setup(__props) {
@@ -19140,7 +19215,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19140
19215
  color: "var(--theme-icon-fill-weak)",
19141
19216
  class: "checkbox-item-icon"
19142
19217
  }, null, 8, ["name"])
19143
- ], 16, _hoisted_3$a);
19218
+ ], 16, _hoisted_3$9);
19144
19219
  }), 128))
19145
19220
  ])
19146
19221
  ]);
@@ -19149,7 +19224,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19149
19224
  });
19150
19225
  const _hoisted_1$h = { class: "tools-item-wrapper" };
19151
19226
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
19152
- const _hoisted_3$9 = ["onClick", "title"];
19227
+ const _hoisted_3$8 = ["onClick", "title"];
19153
19228
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
19154
19229
  __name: "Theme",
19155
19230
  setup(__props) {
@@ -19193,7 +19268,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19193
19268
  color: "var(--theme-icon-fill-weak)",
19194
19269
  class: "checkbox-item-icon"
19195
19270
  }, null, 8, ["name"])
19196
- ], 16, _hoisted_3$9);
19271
+ ], 16, _hoisted_3$8);
19197
19272
  }), 128))
19198
19273
  ])
19199
19274
  ]);
@@ -19303,12 +19378,12 @@ const _hoisted_2$a = {
19303
19378
  class: "devui-submenu-title layer_2",
19304
19379
  style: { "padding": "0px 24px" }
19305
19380
  };
19306
- const _hoisted_3$8 = { class: "devui-submenu-title-content cursor-auto" };
19307
- const _hoisted_4$8 = {
19381
+ const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19382
+ const _hoisted_4$6 = {
19308
19383
  class: "devui-submenu-title layer_2",
19309
19384
  style: { "padding": "0px 24px" }
19310
19385
  };
19311
- const _hoisted_5$6 = { class: "devui-submenu-title-content cursor-auto" };
19386
+ const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
19312
19387
  const _hoisted_6$3 = { key: 0 };
19313
19388
  const _hoisted_7$3 = { class: "project-label" };
19314
19389
  const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
@@ -19507,7 +19582,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19507
19582
  _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19508
19583
  createElementVNode("div", _hoisted_2$a, [
19509
19584
  _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19510
- createElementVNode("span", _hoisted_3$8, [
19585
+ createElementVNode("span", _hoisted_3$7, [
19511
19586
  createElementVNode("div", {
19512
19587
  class: "fast-click-button",
19513
19588
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
@@ -19566,9 +19641,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19566
19641
  ], 2)
19567
19642
  ], 64)) : createCommentVNode("", true),
19568
19643
  _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19569
- createElementVNode("div", _hoisted_4$8, [
19644
+ createElementVNode("div", _hoisted_4$6, [
19570
19645
  _cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19571
- createElementVNode("span", _hoisted_5$6, [
19646
+ createElementVNode("span", _hoisted_5$4, [
19572
19647
  createElementVNode("div", {
19573
19648
  class: "fast-click-button",
19574
19649
  onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
@@ -19622,7 +19697,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19622
19697
  name: "gt-line-project",
19623
19698
  color: "var(--theme-menu-icon-fill)",
19624
19699
  size: "16"
19625
- })) : (openBlock(), createBlock(_sfc_main$y, {
19700
+ })) : (openBlock(), createBlock(_sfc_main$z, {
19626
19701
  key: 1,
19627
19702
  src: item.avatar,
19628
19703
  name: item.key,
@@ -19675,9 +19750,9 @@ const _hoisted_2$9 = {
19675
19750
  class: "devui-submenu-title layer_2",
19676
19751
  style: { "padding": "0px 24px" }
19677
19752
  };
19678
- const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19679
- const _hoisted_4$7 = { class: "project-label" };
19680
- const _hoisted_5$5 = { class: "project-label flex-1 min-w-0 ellipsis" };
19753
+ const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
19754
+ const _hoisted_4$5 = { class: "project-label" };
19755
+ const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19681
19756
  const INIT_SHOW_COUNT = 4;
19682
19757
  const LOAD_MORE_COUNT = 10;
19683
19758
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -19772,7 +19847,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19772
19847
  return openBlock(), createElementBlock("ul", _hoisted_1$f, [
19773
19848
  createElementVNode("div", _hoisted_2$9, [
19774
19849
  _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19775
- createElementVNode("span", _hoisted_3$7, [
19850
+ createElementVNode("span", _hoisted_3$6, [
19776
19851
  createElementVNode("div", {
19777
19852
  class: "fast-click-button",
19778
19853
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
@@ -19827,8 +19902,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19827
19902
  ]),
19828
19903
  default: withCtx(() => [
19829
19904
  createElementVNode("span", null, [
19830
- createElementVNode("span", _hoisted_4$7, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19831
- createElementVNode("span", _hoisted_5$5, "/" + toDisplayString$1(item.label), 1)
19905
+ createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19906
+ createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
19832
19907
  ])
19833
19908
  ]),
19834
19909
  _: 2
@@ -19866,12 +19941,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19866
19941
  const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19867
19942
  const _hoisted_1$e = { class: "side-bar-label" };
19868
19943
  const _hoisted_2$8 = { class: "side-bar-label" };
19869
- const _hoisted_3$6 = {
19944
+ const _hoisted_3$5 = {
19870
19945
  key: 0,
19871
19946
  class: "line mt-[16px] mb-[6px]"
19872
19947
  };
19873
- const _hoisted_4$6 = ["src"];
19874
- const _hoisted_5$4 = ["src"];
19948
+ const _hoisted_4$4 = ["src"];
19949
+ const _hoisted_5$2 = ["src"];
19875
19950
  const _hoisted_6$2 = { class: "side-bar-label" };
19876
19951
  const _hoisted_7$2 = {
19877
19952
  key: 1,
@@ -20369,7 +20444,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20369
20444
  }, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
20370
20445
  ], 64);
20371
20446
  }), 256)),
20372
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$6)) : createCommentVNode("", true),
20447
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
20373
20448
  (openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
20374
20449
  return openBlock(), createBlock(unref(MenuItem), {
20375
20450
  key: `${item.key}-${item.logo}`,
@@ -20384,11 +20459,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20384
20459
  createElementVNode("img", {
20385
20460
  src: item.logo,
20386
20461
  class: "default-icon w-[16px] h-[16px]"
20387
- }, null, 8, _hoisted_4$6),
20462
+ }, null, 8, _hoisted_4$4),
20388
20463
  createElementVNode("img", {
20389
20464
  src: item.logo_hover,
20390
20465
  class: "active-icon w-[16px] h-[16px]"
20391
- }, null, 8, _hoisted_5$4)
20466
+ }, null, 8, _hoisted_5$2)
20392
20467
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20393
20468
  createVNode(GIcon, {
20394
20469
  name: item.icon,
@@ -21237,8 +21312,8 @@ const headerCustomPropsData = {
21237
21312
  };
21238
21313
  const _hoisted_1$c = { class: "home-wrapper" };
21239
21314
  const _hoisted_2$7 = { class: "home-content" };
21240
- const _hoisted_3$5 = { class: "home-left-side" };
21241
- const _hoisted_4$5 = { class: "home-main" };
21315
+ const _hoisted_3$4 = { class: "home-left-side" };
21316
+ const _hoisted_4$3 = { class: "home-main" };
21242
21317
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
21243
21318
  __name: "home",
21244
21319
  setup(__props) {
@@ -21329,7 +21404,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21329
21404
  onFollowUser: followUser
21330
21405
  }, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
21331
21406
  createElementVNode("div", _hoisted_2$7, [
21332
- createElementVNode("div", _hoisted_3$5, [
21407
+ createElementVNode("div", _hoisted_3$4, [
21333
21408
  createVNode(GitCodeAside, {
21334
21409
  sceneValue: sceneSelected.value,
21335
21410
  userInfo: userInfo.value,
@@ -21349,7 +21424,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21349
21424
  _: 1
21350
21425
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
21351
21426
  ]),
21352
- createElementVNode("div", _hoisted_4$5, [
21427
+ createElementVNode("div", _hoisted_4$3, [
21353
21428
  _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
21354
21429
  _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
21355
21430
  createVNode(unref(RadioGroup), {
@@ -21559,7 +21634,6 @@ const layoutConfig = useLayoutConfig();
21559
21634
  const { t: t$2 } = i18n.global;
21560
21635
  const GRAPH_CODE = 400007;
21561
21636
  const REMOTE_LOGIN_CODE = 400015;
21562
- const MAX_MOBILE_COUNT = 10;
21563
21637
  const createLoginConfig = (request) => {
21564
21638
  const API = headRequest(request);
21565
21639
  return {
@@ -21567,15 +21641,14 @@ const createLoginConfig = (request) => {
21567
21641
  async phone(param, loginParams) {
21568
21642
  const { validFunc, successFunc = () => {
21569
21643
  }, failFunc = () => {
21570
- }, country = "" } = param;
21644
+ } } = param;
21571
21645
  const check = validFunc ? await validFunc() : true;
21572
21646
  if (!check) return;
21573
21647
  const result2 = await API.loginByMobile(loginParams);
21574
21648
  if (!result2.error) {
21575
21649
  const resultData = result2.data.data;
21576
- saveLoginMobile(loginParams.mobile, country);
21577
21650
  successFunc(resultData, loginParams.mobile);
21578
- phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PHONE);
21651
+ phoneAndPasswordLogin(resultData, API);
21579
21652
  } else {
21580
21653
  failFunc(result2.error.error_message);
21581
21654
  }
@@ -21602,7 +21675,7 @@ const createLoginConfig = (request) => {
21602
21675
  const { user_status_enum } = resultData;
21603
21676
  await successFunc(resultData);
21604
21677
  if (user_status_enum !== "MFA_CHECK") {
21605
- phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PASSWORD);
21678
+ phoneAndPasswordLogin(resultData, API);
21606
21679
  }
21607
21680
  } else {
21608
21681
  failFunc(result2.error.error_message);
@@ -21626,7 +21699,7 @@ const createLoginConfig = (request) => {
21626
21699
  scene_id
21627
21700
  });
21628
21701
  if (!result2.error) {
21629
- phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.MINI_PROGRAM);
21702
+ phoneAndPasswordLogin(result2.data.data, API);
21630
21703
  return { success: true, data: result2.data.data };
21631
21704
  }
21632
21705
  return { success: false, error: result2.error };
@@ -21753,12 +21826,11 @@ function bindResultResolve(params, API) {
21753
21826
  function sendMessageToParent(message) {
21754
21827
  window.parent && window.parent.postMessage(message, "*");
21755
21828
  }
21756
- function phoneAndPasswordLogin(userInfo, API, loginMethod) {
21829
+ function phoneAndPasswordLogin(userInfo, API) {
21757
21830
  successResolve({
21758
21831
  path: new URLSearchParams(window.location.search).get("returnUrl") || "",
21759
21832
  userInfo,
21760
- type: AuthTypeEnum.PHONE_AND_PASSWORD,
21761
- loginMethod
21833
+ type: AuthTypeEnum.PHONE_AND_PASSWORD
21762
21834
  }, API);
21763
21835
  const params = {
21764
21836
  access_token: userInfo.access_token,
@@ -21793,13 +21865,12 @@ async function checkUserRepositoryIssue(API) {
21793
21865
  }
21794
21866
  async function successResolve(params, API) {
21795
21867
  var _a;
21796
- const { path, userInfo, type, loginMethod } = params;
21868
+ const { path, userInfo, type } = params;
21797
21869
  if (userInfo) {
21798
21870
  emitEvent("updateUserInfo", userInfo);
21799
21871
  const { username, email } = userInfo;
21800
21872
  setEmailValid(username, email);
21801
21873
  }
21802
- saveLastLoginType(loginMethod);
21803
21874
  if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
21804
21875
  const { unMount, isMounted } = usePopup();
21805
21876
  if (isMounted()) {
@@ -21905,21 +21976,6 @@ const HandleParentWindowGetLoginInfo = (request) => {
21905
21976
  }
21906
21977
  };
21907
21978
  };
21908
- function saveLoginMobile(mobile, country) {
21909
- const loginMobileList = JSON.parse(localStorage$2.getItem("loginMobileList") || "[]");
21910
- const index2 = loginMobileList.findIndex((item) => item.mobile === mobile);
21911
- if (index2 !== -1) {
21912
- loginMobileList.splice(index2, 1);
21913
- }
21914
- loginMobileList.unshift({ mobile, country });
21915
- if (loginMobileList.length > MAX_MOBILE_COUNT) {
21916
- loginMobileList.pop();
21917
- }
21918
- localStorage$2.setItem("loginMobileList", JSON.stringify(loginMobileList));
21919
- }
21920
- function saveLastLoginType(loginMethod) {
21921
- localStorage$2.setItem("lastLoginMethod", loginMethod);
21922
- }
21923
21979
  const logoBack = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eic/左备份%3c/title%3e%3cg%20id='PC端'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='02-登录注册-登录、注册'%20transform='translate(-153,%20-1855)'%20fill='%238A8E99'%20fill-rule='nonzero'%3e%3cg%20id='编组-8'%20transform='translate(125,%201830)'%3e%3cg%20id='ic/左备份'%20transform='translate(31.1393,%2028.9697)'%3e%3cpolygon%20id='路径'%20points='8.03029121%203.55271368e-15%209.09102914%201.0605824%202.8725%207.2795%2017.8606602%207.2802912%2017.8606602%208.7802912%202.8695%208.7795%209.09102914%2014.9999222%208.03036898%2016.0606602%200%208.03146884'%3e%3c/polygon%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
21924
21980
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21925
21981
  __proto__: null,
@@ -22106,10 +22162,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22106
22162
  }
22107
22163
  });
22108
22164
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
22109
- const _hoisted_2$6 = { class: "login-phone" };
22110
- const _hoisted_3$4 = { class: "flex justify-between gap-[8px] flex-wrap" };
22111
- const _hoisted_4$4 = { class: "flex items-center justify-between" };
22112
- const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
22165
+ const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
22113
22166
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
22114
22167
  __name: "inputSelect",
22115
22168
  props: {
@@ -22117,8 +22170,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22117
22170
  "onUpdate:modelValue": { type: Function },
22118
22171
  placeholder: {},
22119
22172
  prop: {},
22120
- country: {},
22121
- editableSelect: { type: Boolean }
22173
+ country: {}
22122
22174
  },
22123
22175
  emits: ["change", "selectChange", "update:modelValue"],
22124
22176
  setup(__props, { emit: __emit }) {
@@ -22127,6 +22179,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22127
22179
  const emits = __emit;
22128
22180
  const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
22129
22181
  const { vModels } = useModel(props, emits);
22182
+ console.log(cache_countdown, "cache_countdown");
22130
22183
  const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
22131
22184
  const options = ref([]);
22132
22185
  const handleChange = () => {
@@ -22144,50 +22197,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22144
22197
  };
22145
22198
  });
22146
22199
  };
22147
- const loginMobileList = ref([]);
22148
- const mobileList = ref([]);
22149
- const getHistoryMobile = () => {
22150
- var _a, _b, _c, _d, _e;
22151
- mobileList.value = JSON.parse(localStorage$2.getItem("loginMobileList")) || [];
22152
- loginMobileList.value = (_a = mobileList.value) == null ? void 0 : _a.map((item) => {
22153
- return {
22154
- label: item.mobile,
22155
- value: item.mobile
22156
- };
22157
- });
22158
- country.value = ((_c = (_b = mobileList.value) == null ? void 0 : _b[0]) == null ? void 0 : _c.country) || country.value;
22159
- emits("update:modelValue", (_e = (_d = mobileList.value) == null ? void 0 : _d[0]) == null ? void 0 : _e.mobile);
22160
- };
22161
- const deleteMobile = (mobile) => {
22162
- loginMobileList.value = loginMobileList.value.filter((item) => item.value !== mobile);
22163
- mobileList.value = mobileList.value.filter((item) => item.mobile !== mobile);
22164
- localStorage$2.setItem("loginMobileList", JSON.stringify(mobileList.value));
22165
- };
22166
- const handleSelectChange = (value) => {
22167
- var _a;
22168
- country.value = ((_a = mobileList.value.find((item) => item.mobile === value)) == null ? void 0 : _a.country) || country.value;
22169
- emits("change");
22170
- };
22200
+ onMounted(() => {
22201
+ getAllCountries();
22202
+ });
22171
22203
  const handleCountryChange = () => {
22172
22204
  emits("selectChange", country.value);
22173
22205
  emits("change");
22174
22206
  };
22175
- const handleInputSelectChange = (value) => {
22176
- emits("update:modelValue", value);
22177
- emits("change");
22178
- };
22179
- onMounted(() => {
22180
- getAllCountries();
22181
- if (props.editableSelect) {
22182
- getHistoryMobile();
22183
- }
22184
- });
22185
22207
  return (_ctx, _cache) => {
22186
22208
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
22187
- createElementVNode("div", _hoisted_2$6, [
22188
- (props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22209
+ createVNode(unref(Input), mergeProps({
22210
+ modelValue: unref(vModels),
22211
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22212
+ }, _ctx.prop, {
22213
+ placeholder: _ctx.placeholder,
22214
+ onChange: handleChange
22215
+ }), {
22216
+ prepend: withCtx(() => [
22189
22217
  createVNode(unref(Select), {
22190
- class: "login-country-select",
22218
+ class: "input-select",
22191
22219
  modelValue: country.value,
22192
22220
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
22193
22221
  menuClass: "country-select",
@@ -22201,7 +22229,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22201
22229
  value: item.value
22202
22230
  }, {
22203
22231
  default: withCtx(() => [
22204
- createElementVNode("div", _hoisted_3$4, [
22232
+ createElementVNode("div", _hoisted_2$6, [
22205
22233
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
22206
22234
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
22207
22235
  ])
@@ -22211,70 +22239,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22211
22239
  }), 128))
22212
22240
  ]),
22213
22241
  _: 1
22214
- }, 8, ["modelValue"]),
22215
- createVNode(unref(EditableSelect), mergeProps({
22216
- modelValue: unref(vModels),
22217
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22218
- }, props, {
22219
- size: "lg",
22220
- width: 292,
22221
- options: loginMobileList.value,
22222
- placeholder: props.placeholder,
22223
- onInputChange: handleInputSelectChange,
22224
- onChange: handleSelectChange,
22225
- class: "login-phone-select"
22226
- }), {
22227
- item: withCtx((slotProps) => [
22228
- createElementVNode("div", _hoisted_4$4, [
22229
- createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
22230
- createVNode(GIcon, {
22231
- name: "gt-line-delete",
22232
- class: "w-[16px] h-[16px] cursor-pointer",
22233
- onClick: withModifiers(($event) => deleteMobile(slotProps.option.value), ["stop"])
22234
- }, null, 8, ["onClick"])
22235
- ])
22236
- ]),
22237
- _: 1
22238
- }, 16, ["modelValue", "options", "placeholder"])
22239
- ], 64)) : (openBlock(), createBlock(unref(Input), mergeProps({
22240
- key: 1,
22241
- modelValue: unref(vModels),
22242
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22243
- }, _ctx.prop, {
22244
- placeholder: _ctx.placeholder,
22245
- onChange: handleChange
22246
- }), {
22247
- prepend: withCtx(() => [
22248
- createVNode(unref(Select), {
22249
- class: "input-select",
22250
- modelValue: country.value,
22251
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => country.value = $event),
22252
- menuClass: "country-select",
22253
- onValueChange: handleCountryChange
22254
- }, {
22255
- default: withCtx(() => [
22256
- (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item, index2) => {
22257
- return openBlock(), createBlock(unref(Option), {
22258
- name: item.label,
22259
- key: index2,
22260
- value: item.value
22261
- }, {
22262
- default: withCtx(() => [
22263
- createElementVNode("div", _hoisted_5$3, [
22264
- createElementVNode("span", null, toDisplayString$1(item.name), 1),
22265
- createElementVNode("span", null, toDisplayString$1(item.label), 1)
22266
- ])
22267
- ]),
22268
- _: 2
22269
- }, 1032, ["name", "value"]);
22270
- }), 128))
22271
- ]),
22272
- _: 1
22273
- }, 8, ["modelValue"])
22274
- ]),
22275
- _: 1
22276
- }, 16, ["modelValue", "placeholder"]))
22277
- ])
22242
+ }, 8, ["modelValue"])
22243
+ ]),
22244
+ _: 1
22245
+ }, 16, ["modelValue", "placeholder"])
22278
22246
  ]);
22279
22247
  };
22280
22248
  }
@@ -22296,8 +22264,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22296
22264
  errors: { default: {
22297
22265
  msgError: false
22298
22266
  } },
22299
- isForget: { type: Boolean, default: false },
22300
- formErrors: { default: {} }
22267
+ isForget: { type: Boolean, default: false }
22301
22268
  },
22302
22269
  emits: ["change", "countDown", "complete"],
22303
22270
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -22538,15 +22505,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22538
22505
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
22539
22506
  key: 2,
22540
22507
  country: Data.country,
22541
- class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
22542
22508
  modelValue: Data[formItem.key],
22543
22509
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
22544
22510
  onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
22545
22511
  onChange: ($event) => handleChange(formItem.key),
22546
22512
  placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label })
22547
- }, { ref_for: true }, formItem.props, {
22548
- editableSelect: formItem.editableSelect
22549
- }), null, 16, ["country", "class", "modelValue", "onUpdate:modelValue", "onChange", "placeholder", "editableSelect"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22513
+ }, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22550
22514
  key: formItem.key,
22551
22515
  modelValue: Data[formItem.key],
22552
22516
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -22567,40 +22531,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22567
22531
  };
22568
22532
  }
22569
22533
  });
22570
- const recentLoginImg = "data:image/png;base64,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";
22571
- const _hoisted_1$8 = { class: "auth-container" };
22572
- const _hoisted_2$5 = { class: "tips text-[var(--devui-disabled-text)]" };
22573
- const _hoisted_3$3 = { class: "icons" };
22574
- const _hoisted_4$3 = ["src", "alt", "onClick"];
22575
- const _hoisted_5$2 = ["src"];
22534
+ const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
22535
+ const _hoisted_2$5 = { class: "icons" };
22536
+ const _hoisted_3$3 = ["src", "alt", "onClick"];
22576
22537
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22577
22538
  __name: "auth",
22578
22539
  props: {
22579
- logos: {},
22580
- recentLoginType: {}
22540
+ logos: {}
22581
22541
  },
22582
22542
  emits: ["auth"],
22583
22543
  setup(__props, { emit: __emit }) {
22584
22544
  const request = inject("request");
22585
22545
  const API = headRequest(request);
22586
22546
  const { t: $t } = i18n.global;
22587
- const props = __props;
22588
22547
  const emits = __emit;
22589
22548
  const handleClick = (icon) => {
22590
22549
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
22591
22550
  emits("auth", icon.alt);
22592
22551
  };
22593
- const checkIsRecentLogin = (loginMethodList) => {
22594
- return loginMethodList.includes(props.recentLoginType);
22595
- };
22596
22552
  return (_ctx, _cache) => {
22597
- return openBlock(), createElementBlock("div", _hoisted_1$8, [
22598
- createElementVNode("div", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
22599
- createElementVNode("div", _hoisted_3$3, [
22553
+ return openBlock(), createElementBlock(Fragment, null, [
22554
+ createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
22555
+ createElementVNode("div", _hoisted_2$5, [
22600
22556
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
22601
22557
  return openBlock(), createElementBlock("div", {
22602
22558
  key: icon.alt,
22603
- class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
22559
+ class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
22604
22560
  }, [
22605
22561
  createVNode(unref(Tooltip), {
22606
22562
  position: "top",
@@ -22613,19 +22569,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22613
22569
  src: icon.src,
22614
22570
  alt: icon.alt,
22615
22571
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
22616
- }, null, 8, _hoisted_4$3)
22572
+ }, null, 8, _hoisted_3$3)
22617
22573
  ]),
22618
22574
  _: 2
22619
- }, 1032, ["content", "disabled"]),
22620
- checkIsRecentLogin(icon.loginMethodList) ? (openBlock(), createElementBlock("img", {
22621
- key: 0,
22622
- src: unref(recentLoginImg),
22623
- class: "w-[38px] h-[20px] recent-login-img"
22624
- }, null, 8, _hoisted_5$2)) : createCommentVNode("", true)
22575
+ }, 1032, ["content", "disabled"])
22625
22576
  ]);
22626
22577
  }), 128))
22627
22578
  ])
22628
- ]);
22579
+ ], 64);
22629
22580
  };
22630
22581
  }
22631
22582
  });
@@ -22715,16 +22666,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22715
22666
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
22716
22667
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
22717
22668
  const _hoisted_3$2 = ["src"];
22718
- const _hoisted_4$2 = {
22719
- key: 0,
22720
- class: "tracking-[.5px]"
22721
- };
22669
+ const _hoisted_4$2 = { class: "tracking-[.5px]" };
22722
22670
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22723
22671
  __name: "title",
22724
22672
  props: {
22725
22673
  title: {},
22726
22674
  showBack: { type: Boolean },
22727
- showTitle: { type: Boolean },
22728
22675
  icon: {}
22729
22676
  },
22730
22677
  emits: ["back"],
@@ -22743,7 +22690,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22743
22690
  onClick: withModifiers(handleClick, ["stop"])
22744
22691
  }, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
22745
22692
  ]),
22746
- _ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
22693
+ createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
22747
22694
  ]);
22748
22695
  };
22749
22696
  }
@@ -25410,7 +25357,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25410
25357
  }
25411
25358
  });
25412
25359
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25413
- const SlidCaptcha = defineAsyncComponent(() => import("./index-BhrxF7Ye.js"));
25360
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-tcQwl6IN.js"));
25414
25361
  const useSlidCaptcha = () => {
25415
25362
  const { mount, unMount } = usePopup("slid-captcha-popup");
25416
25363
  const open = (config) => {
@@ -25533,15 +25480,21 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
25533
25480
  stopPoll
25534
25481
  };
25535
25482
  }
25536
- const _hoisted_1$1 = { class: "flex items-center gap-1 h-[48px]" };
25483
+ const _hoisted_1$1 = { class: "flex items-center gap-1" };
25537
25484
  const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
25538
25485
  const _hoisted_3 = {
25486
+ key: 0,
25487
+ class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
25488
+ };
25489
+ const _hoisted_4 = {
25490
+ key: 0,
25491
+ class: "flex items-center justify-center mb-[24px] mt-[-2px]"
25492
+ };
25493
+ const _hoisted_5 = {
25539
25494
  key: 1,
25540
- class: "login-modal-content"
25495
+ class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25541
25496
  };
25542
- const _hoisted_4 = ["src"];
25543
- const _hoisted_5 = { class: "text-[var(--theme-text)] mt-[6px]" };
25544
- const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center" };
25497
+ const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
25545
25498
  const _hoisted_7 = ["src"];
25546
25499
  const _hoisted_8 = {
25547
25500
  key: 0,
@@ -25549,57 +25502,37 @@ const _hoisted_8 = {
25549
25502
  };
25550
25503
  const _hoisted_9 = {
25551
25504
  key: 0,
25552
- class: "flex flex-col gap-2 items-center justify-center gap-[40px]"
25505
+ class: "flex flex-col gap-2 items-center justify-center"
25553
25506
  };
25554
- const _hoisted_10 = { class: "flex gap-1 items-center justify-center text-[16px] font-medium" };
25555
- const _hoisted_11 = { class: "text-[#252B3A]" };
25556
- const _hoisted_12 = {
25507
+ const _hoisted_10 = {
25557
25508
  key: 1,
25558
25509
  class: "flex flex-col gap-3 items-center justify-center"
25559
25510
  };
25560
- const _hoisted_13 = { class: "text-[var(--color-success)]" };
25561
- const _hoisted_14 = { class: "text-center" };
25562
- const _hoisted_15 = {
25563
- key: 1,
25564
- class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
25565
- };
25566
- const _hoisted_16 = {
25511
+ const _hoisted_11 = { class: "text-[var(--color-success)]" };
25512
+ const _hoisted_12 = { class: "text-center" };
25513
+ const _hoisted_13 = {
25567
25514
  key: 1,
25568
- class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]"
25515
+ class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
25569
25516
  };
25570
- const _hoisted_17 = { class: "font-medium text-[20px]" };
25571
- const _hoisted_18 = { class: "mt-[16px]" };
25572
- const _hoisted_19 = {
25517
+ const _hoisted_14 = {
25573
25518
  key: 0,
25574
- class: "flex items-baseline justify-between mb-[24px]"
25519
+ class: "login-modal-info h-[20px]"
25575
25520
  };
25576
- const _hoisted_20 = { class: "flex items-center" };
25577
- const _hoisted_21 = ["src"];
25578
- const _hoisted_22 = { class: "text-[12px] leading-[32px] text-center" };
25579
- const _hoisted_23 = {
25521
+ const _hoisted_15 = { class: "login-modal-info-left" };
25522
+ const _hoisted_16 = {
25580
25523
  key: 1,
25581
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25524
+ class: "mt-[18px]"
25582
25525
  };
25583
- const _hoisted_24 = { key: 2 };
25584
- const _hoisted_25 = { class: "flex items-center justify-between" };
25585
- const _hoisted_26 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
25586
- const _hoisted_27 = { class: "text-[12px] leading-[32px]" };
25587
- const _hoisted_28 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
25588
- const _hoisted_29 = {
25526
+ const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
25527
+ const _hoisted_18 = { class: "mr-[16px]" };
25528
+ const _hoisted_19 = {
25589
25529
  key: 0,
25590
- class: "login-modal-info h-[20px]"
25530
+ class: "login-modal-footer"
25591
25531
  };
25592
- const _hoisted_30 = { class: "login-modal-info-left" };
25593
- const _hoisted_31 = { class: "mt-[18px]" };
25594
- const _hoisted_32 = { class: "flex justify-center" };
25595
- const _hoisted_33 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
25596
- const _hoisted_34 = { class: "harmony-icon" };
25597
- const _hoisted_35 = ["src"];
25598
- const _hoisted_36 = { class: "ml-[8px] text-[12px]" };
25599
- const _hoisted_37 = { class: "login-modal-footer flex items-center justify-center" };
25600
- const _hoisted_38 = { key: 3 };
25601
- const _hoisted_39 = { class: "line-clamp-2" };
25602
- const _hoisted_40 = { class: "absolute-btn" };
25532
+ const _hoisted_20 = { class: "flex justify-center" };
25533
+ const _hoisted_21 = { key: 1 };
25534
+ const _hoisted_22 = { class: "line-clamp-2" };
25535
+ const _hoisted_23 = { class: "absolute-btn" };
25603
25536
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25604
25537
  ...{
25605
25538
  name: "GLoginModal"
@@ -25642,10 +25575,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25642
25575
  const IconB = TransAssetsUrl(IconSource, "logo-back");
25643
25576
  const IconW = TransAssetsUrl(IconSource, "logo-wechat");
25644
25577
  const IconHb = TransAssetsUrl(IconSource, "logo-hb");
25645
- const logoType = {
25646
- black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
25647
- white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
25648
- };
25649
25578
  const formErrors = reactive({});
25650
25579
  const extraErrors = reactive({
25651
25580
  agreement: "",
@@ -25669,32 +25598,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25669
25598
  {
25670
25599
  src: IconC,
25671
25600
  alt: "csdn",
25672
- describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25673
- loginMethodList: ["csdn"]
25601
+ describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25674
25602
  },
25675
25603
  {
25676
25604
  src: IconHb,
25677
25605
  alt: "hbuilder",
25678
- describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25679
- loginMethodList: ["hbuilder", "hbuilder_plugins"]
25606
+ describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25680
25607
  },
25681
25608
  {
25682
25609
  src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
25683
25610
  alt: "github",
25684
- describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25685
- loginMethodList: ["github"]
25611
+ describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25686
25612
  },
25687
25613
  {
25688
25614
  src: IconH,
25689
25615
  alt: "gitee",
25690
- describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25691
- loginMethodList: ["gitee"]
25616
+ describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25692
25617
  },
25693
25618
  {
25694
25619
  src: IconW,
25695
25620
  alt: "wechat_open",
25696
- describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin"),
25697
- loginMethodList: ["wechat_open", "wechat_mp"]
25621
+ describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
25698
25622
  }
25699
25623
  ]);
25700
25624
  const emits = __emit;
@@ -25733,7 +25657,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25733
25657
  {
25734
25658
  type: "input",
25735
25659
  key: "username",
25736
- label: $t("gitCodeLayout.userSetting.account.phone") + "/" + $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25660
+ label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25737
25661
  required: true
25738
25662
  },
25739
25663
  {
@@ -25916,7 +25840,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25916
25840
  const status = ref(false);
25917
25841
  const hwStatus = ref(false);
25918
25842
  const FormRef = shallowRef(null);
25919
- const tabPanel = ref("verifyCode");
25843
+ const tabPanel = ref("miniProgram");
25920
25844
  const formType = ref(props.defaultType);
25921
25845
  const showProtoCheck = ref(false);
25922
25846
  const agreeAndLogin = () => {
@@ -25936,14 +25860,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25936
25860
  dict: RegisterForm.map((item) => {
25937
25861
  return {
25938
25862
  ...item,
25939
- defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : "",
25940
- editableSelect: false
25863
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
25941
25864
  };
25942
25865
  }),
25943
25866
  showLabel: true,
25944
25867
  layout: "horizontal",
25945
- showTitle: false,
25946
- showBack: false
25868
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
25869
+ showBack: true
25947
25870
  };
25948
25871
  }
25949
25872
  if (formType.value === "forget") {
@@ -25960,13 +25883,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25960
25883
  dict: VerifyForm.map((item) => {
25961
25884
  return {
25962
25885
  ...item,
25963
- defaultValue: item.key === "mobile" ? cacheForm.mobile : "",
25964
- editableSelect: true
25886
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
25965
25887
  };
25966
25888
  }),
25967
25889
  showLabel: false,
25968
25890
  layout: "vertical",
25969
- showTitle: false,
25891
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
25970
25892
  showBack: false
25971
25893
  };
25972
25894
  } else if (tabPanel.value === "password") {
@@ -25974,7 +25896,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25974
25896
  dict: PasswordForm,
25975
25897
  showLabel: false,
25976
25898
  layout: "vertical",
25977
- showTitle: false,
25899
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
25978
25900
  showBack: false
25979
25901
  };
25980
25902
  } else {
@@ -25982,7 +25904,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25982
25904
  dict: MiniProgramForm,
25983
25905
  showLabel: false,
25984
25906
  layout: "vertical",
25985
- showTitle: false,
25907
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
25986
25908
  showBack: false
25987
25909
  };
25988
25910
  }
@@ -26034,7 +25956,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26034
25956
  };
26035
25957
  const mfaCheck = ref(false);
26036
25958
  const handleMFALogin = (data) => {
26037
- phoneAndPasswordLogin(data, API, LoginMethodEnum.PASSWORD);
25959
+ phoneAndPasswordLogin(data, API);
26038
25960
  };
26039
25961
  const slidCaptcha = useSlidCaptcha();
26040
25962
  const LoginCheck = async () => {
@@ -26066,7 +25988,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26066
25988
  }
26067
25989
  };
26068
25990
  const registerAction = async (res, mobile) => {
26069
- var _a;
26070
25991
  const data = {
26071
25992
  username: res.username,
26072
25993
  password: res.password,
@@ -26082,9 +26003,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26082
26003
  cacheForm.user_id = user_id;
26083
26004
  cacheForm.mask = mask;
26084
26005
  cacheForm.mobile = res.mobile;
26085
- const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
26086
- saveLoginMobile(mobile, country);
26087
- phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
26006
+ phoneAndPasswordLogin(result2.data.data, API);
26088
26007
  } else {
26089
26008
  extraErrors.requestInfo = result2.error.error_message;
26090
26009
  }
@@ -26131,7 +26050,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26131
26050
  mobile,
26132
26051
  code: res.code
26133
26052
  };
26134
- await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country }, params, graphValidate, handleRemoteLogin);
26053
+ await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
26135
26054
  }
26136
26055
  setTimeout(() => {
26137
26056
  loading.value = false;
@@ -26404,8 +26323,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26404
26323
  const pcAuthLogin = (type) => {
26405
26324
  authType.value = type;
26406
26325
  saveOauthType(type);
26407
- stopPoll();
26408
- miniProgramStatus.value = "TIMEOUT";
26326
+ if (tabPanel.value === "miniProgram") {
26327
+ stopPoll();
26328
+ miniProgramStatus.value = "TIMEOUT";
26329
+ }
26409
26330
  if (localStorage$2.getItem("access_token")) {
26410
26331
  emits("close", true);
26411
26332
  } else {
@@ -26482,9 +26403,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26482
26403
  emits("directClose");
26483
26404
  return;
26484
26405
  }
26485
- useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
26486
26406
  formType.value = "login";
26487
- checkMiniProgramStatus();
26488
26407
  };
26489
26408
  const miniProgramStatus = ref("WAITING");
26490
26409
  const miniProgramLoading = ref(false);
@@ -26500,7 +26419,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26500
26419
  };
26501
26420
  const fetchMiniProgramStatus = async () => {
26502
26421
  var _a;
26503
- if (formType.value !== "login") {
26422
+ if (tabPanel.value !== "miniProgram") {
26504
26423
  stopPoll();
26505
26424
  return;
26506
26425
  }
@@ -26543,8 +26462,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26543
26462
  tabPanel.value = val;
26544
26463
  authType.value = null;
26545
26464
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
26546
- };
26547
- const checkMiniProgramStatus = async () => {
26465
+ if (val !== "miniProgram") {
26466
+ stopPoll();
26467
+ handleMiniProgramReset();
26468
+ return;
26469
+ }
26548
26470
  if (!miniProgramInfo.value.scene_id) {
26549
26471
  getMiniProgramQrCode();
26550
26472
  return;
@@ -26560,24 +26482,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26560
26482
  shouldMiniProgramPoll.value = true;
26561
26483
  startPoll();
26562
26484
  };
26563
- const recentLoginType = ref(null);
26564
- const getRecentLogin = async () => {
26565
- recentLoginType.value = localStorage$2.getItem("lastLoginMethod") || null;
26566
- };
26567
- const todayTechHistory = ref(null);
26568
- const getTodayTechHistory = async () => {
26569
- var _a, _b, _c;
26570
- const res = await API.getTodayTechHistory();
26571
- todayTechHistory.value = ((_c = (_b = (_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) == null ? void 0 : _b.data) == null ? void 0 : _c[0]) || {};
26572
- };
26573
26485
  const resetPwdDirectly = ref(false);
26574
26486
  const resetPwdWhiteList = ["change_password"];
26575
26487
  onMounted(() => {
26576
- if (formType.value === "login") {
26577
- getMiniProgramQrCode();
26488
+ if (tabPanel.value === "miniProgram" && formType.value === "login") {
26489
+ handleTabPanelChange(tabPanel.value);
26578
26490
  }
26579
- getRecentLogin();
26580
- getTodayTechHistory();
26581
26491
  if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
26582
26492
  resetPwdDirectly.value = true;
26583
26493
  }
@@ -26586,7 +26496,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26586
26496
  return openBlock(), createElementBlock(Fragment, null, [
26587
26497
  createVNode(unref(Modal), {
26588
26498
  modelValue: unref(vModels),
26589
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26499
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26590
26500
  "show-close": false,
26591
26501
  "lock-scroll": _ctx.lockScroll,
26592
26502
  draggable: _ctx.draggable,
@@ -26596,288 +26506,157 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26596
26506
  class: normalizeClass([
26597
26507
  "login-modal",
26598
26508
  formType.value === "login" ? "login-modal-l" : "login-modal-r",
26599
- formType.value === "register" ? "login-modal-register" : "",
26600
26509
  mfaCheck.value ? "login-modal-mfa" : ""
26601
26510
  ]),
26602
26511
  onClose: onModalClose
26603
26512
  }, createSlots({
26604
- default: withCtx(() => {
26605
- var _a, _b;
26606
- return [
26607
- mfaCheck.value ? (openBlock(), createBlock(MFA, {
26608
- key: 0,
26609
- API: unref(API),
26610
- onBack: handleBack,
26611
- onSuccess: handleMFALogin,
26612
- mask: cacheForm.mask
26613
- }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
26614
- formType.value === "login" || formType.value === "register" ? (openBlock(), createElementBlock("div", {
26615
- key: 0,
26616
- class: normalizeClass(["w-[470px] login-modal-content-left", formType.value === "register" ? "login-modal-content-left-register" : "login-modal-content-left-login"])
26617
- }, [
26618
- createElementVNode("div", {
26619
- class: normalizeClass(formType.value === "register" ? "login-modal-content-left-register-logo" : "flex flex-col items-center")
26620
- }, [
26513
+ default: withCtx(() => [
26514
+ mfaCheck.value ? (openBlock(), createBlock(MFA, {
26515
+ key: 0,
26516
+ API: unref(API),
26517
+ onBack: handleBack,
26518
+ onSuccess: handleMFALogin,
26519
+ mask: cacheForm.mask
26520
+ }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26521
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
26522
+ createElementVNode("div", {
26523
+ class: normalizeClass([
26524
+ "login-modal-tab mr-[18px]",
26525
+ tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26526
+ ]),
26527
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
26528
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
26529
+ createElementVNode("div", {
26530
+ class: normalizeClass([
26531
+ "login-modal-tab mr-[18px] ml-[18px]",
26532
+ tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26533
+ ]),
26534
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26535
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
26536
+ createElementVNode("div", {
26537
+ class: normalizeClass([
26538
+ "login-modal-tab ml-[18px]",
26539
+ tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26540
+ ]),
26541
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26542
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26543
+ ])) : createCommentVNode("", true),
26544
+ formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
26545
+ formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
26546
+ key: 2,
26547
+ loading: miniProgramLoading.value,
26548
+ empty: false,
26549
+ card: false,
26550
+ class: "mini-program-qrcode",
26551
+ border: false,
26552
+ animation: true
26553
+ }, {
26554
+ default: withCtx(() => [
26555
+ createElementVNode("div", _hoisted_6, [
26621
26556
  createElementVNode("img", {
26622
- src: logoType[unref(currentTheme)],
26623
- alt: "gitcode-logo",
26624
- class: "w-[130px] h-[30px]"
26625
- }, null, 8, _hoisted_4),
26626
- createElementVNode("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
26627
- ], 2),
26628
- createElementVNode("div", {
26629
- class: normalizeClass(["login-modal-left-bg", "login-modal-left-bg-" + unref(currentTheme)])
26630
- }, [
26631
- formType.value === "login" ? (openBlock(), createBlock(DataPanel, {
26632
- key: 0,
26633
- loading: miniProgramLoading.value,
26634
- empty: false,
26635
- card: false,
26636
- class: "mini-program-qrcode",
26637
- border: false,
26638
- animation: true
26557
+ src: miniProgramInfo.value.qrcode,
26558
+ alt: "小程序二维码",
26559
+ class: "w-[158px] h-[158px]"
26560
+ }, null, 8, _hoisted_7),
26561
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26562
+ miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26563
+ createVNode(GIcon, {
26564
+ name: "gt-line-Refresh",
26565
+ size: "18"
26566
+ }),
26567
+ createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26568
+ createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26569
+ ])) : createCommentVNode("", true),
26570
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
26571
+ createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26572
+ createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26573
+ ])) : createCommentVNode("", true)
26574
+ ])) : createCommentVNode("", true),
26575
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26576
+ key: 2,
26577
+ onClick: getMiniProgramQrCode,
26578
+ class: "mt-2"
26579
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26580
+ ])
26581
+ ]),
26582
+ _: 1
26583
+ }, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
26584
+ key: formType.value,
26585
+ DataList: FormConfig.value.dict,
26586
+ "show-label": FormConfig.value.showLabel,
26587
+ ref_key: "FormRef",
26588
+ ref: FormRef,
26589
+ onCountDown: handleCountDown,
26590
+ onChange: handleFormChange,
26591
+ onComplete: handleFormInput,
26592
+ layout: FormConfig.value.layout,
26593
+ size: "lg",
26594
+ "label-size": "md",
26595
+ "message-type": "none",
26596
+ "hide-required-mark": "",
26597
+ onKeypress: withKeys(handleConfirm, ["enter"]),
26598
+ class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26599
+ errors: { msgError: msgError.value },
26600
+ "is-forget": formType.value === "forget"
26601
+ }, {
26602
+ submit: withCtx(() => [
26603
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
26604
+ createElementVNode("div", _hoisted_15, [
26605
+ createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26606
+ errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26607
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26608
+ createElementVNode("span", {
26609
+ onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
26610
+ class: "login-modal-info-left__link"
26611
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26612
+ ], 64)) : createCommentVNode("", true)
26613
+ ]),
26614
+ withDirectives(createElementVNode("div", {
26615
+ class: "login-modal-info-right",
26616
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26617
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26618
+ [vShow, tabPanel.value === "password" && formType.value === "login"]
26619
+ ])
26620
+ ])) : createCommentVNode("", true),
26621
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26622
+ createVNode(unref(Button), {
26623
+ color: "primary",
26624
+ variant: "solid",
26625
+ size: "lg",
26626
+ onClick: handleConfirm,
26627
+ loading: loading.value,
26628
+ disabled: disabled.value,
26629
+ class: "login-modal-button"
26639
26630
  }, {
26640
26631
  default: withCtx(() => [
26641
- createElementVNode("div", _hoisted_6, [
26642
- createElementVNode("img", {
26643
- src: miniProgramInfo.value.qrcode,
26644
- alt: "小程序二维码",
26645
- class: "w-[180px] h-[180px]"
26646
- }, null, 8, _hoisted_7),
26647
- miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26648
- miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26649
- createVNode(GIcon, {
26650
- name: "gt-line-update",
26651
- size: "18",
26652
- color: "#3B3E55"
26653
- }),
26654
- createElementVNode("div", _hoisted_10, [
26655
- createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26656
- createElementVNode("button", {
26657
- class: "text-[var(--theme-link)]",
26658
- onClick: getMiniProgramQrCode
26659
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26660
- ])
26661
- ])) : createCommentVNode("", true),
26662
- ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_12, [
26663
- createElementVNode("div", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26664
- createElementVNode("div", _hoisted_14, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26665
- ])) : createCommentVNode("", true)
26666
- ])) : createCommentVNode("", true),
26667
- !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_15, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26668
- key: 2,
26669
- onClick: getMiniProgramQrCode,
26670
- class: "mt-2"
26671
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26672
- ])
26632
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26673
26633
  ]),
26674
26634
  _: 1
26675
- }, 8, ["loading"])) : formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26676
- createElementVNode("div", _hoisted_17, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
26677
- createElementVNode("div", _hoisted_18, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
26678
- ])) : createCommentVNode("", true)
26679
- ], 2)
26680
- ], 2)) : createCommentVNode("", true),
26681
- createElementVNode("div", {
26682
- class: normalizeClass(formType.value === "forget" ? "w-[512px]" : "w-[370px]")
26683
- }, [
26684
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26685
- createElementVNode("div", _hoisted_20, [
26686
- createElementVNode("div", {
26687
- class: normalizeClass([
26688
- "login-modal-tab",
26689
- tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26690
- ]),
26691
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26635
+ }, 8, ["loading", "disabled"]),
26636
+ createElementVNode("div", _hoisted_17, [
26637
+ _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26638
+ key: 0,
26639
+ class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
26640
+ onClick: withModifiers(handleRegisterHarmony, ["stop"])
26692
26641
  }, [
26693
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")) + " ", 1),
26694
- recentLoginType.value === unref(LoginMethodEnum).PHONE ? (openBlock(), createElementBlock("img", {
26695
- key: 0,
26696
- src: unref(recentLoginImg),
26697
- class: "w-[38px] h-[20px] last-login-img"
26698
- }, null, 8, _hoisted_21)) : createCommentVNode("", true)
26699
- ], 2),
26642
+ _cache[16] || (_cache[16] = createElementVNode("img", {
26643
+ src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26644
+ alt: "",
26645
+ class: "mr-[16px] inline-block"
26646
+ }, null, -1)),
26647
+ createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26648
+ ])) : createCommentVNode("", true),
26700
26649
  createElementVNode("div", {
26701
- class: normalizeClass([
26702
- "login-modal-tab ml-[24px]",
26703
- tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26704
- ]),
26705
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26706
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26707
- ]),
26708
- createElementVNode("div", _hoisted_22, [
26709
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
26710
- createElementVNode("span", {
26711
- onClick: clickRegister,
26712
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26650
+ class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
26651
+ onClick: withModifiers(clickRegister, ["stop"])
26713
26652
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
26714
26653
  ])
26715
- ])) : createCommentVNode("", true),
26716
- formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
26717
- formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_24, [
26718
- createElementVNode("div", _hoisted_25, [
26719
- createElementVNode("div", _hoisted_26, "🎉 " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.title.register")), 1),
26720
- createElementVNode("div", _hoisted_27, [
26721
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.haveAccount")) + " ", 1),
26722
- createElementVNode("span", {
26723
- onClick: handleTitleBackClick,
26724
- class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26725
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26726
- ])
26727
- ]),
26728
- createElementVNode("div", _hoisted_28, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
26729
- ])) : createCommentVNode("", true),
26730
- (openBlock(), createBlock(unref(_sfc_main$a), {
26731
- key: formType.value,
26732
- DataList: FormConfig.value.dict,
26733
- "show-label": FormConfig.value.showLabel,
26734
- ref_key: "FormRef",
26735
- ref: FormRef,
26736
- onCountDown: handleCountDown,
26737
- onChange: handleFormChange,
26738
- onComplete: handleFormInput,
26739
- layout: FormConfig.value.layout,
26740
- size: "lg",
26741
- "label-size": "md",
26742
- "message-type": "none",
26743
- "hide-required-mark": "",
26744
- onKeypress: withKeys(handleConfirm, ["enter"]),
26745
- class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26746
- errors: { msgError: msgError.value },
26747
- formErrors,
26748
- "is-forget": formType.value === "forget"
26749
- }, {
26750
- submit: withCtx(() => {
26751
- var _a2;
26752
- return [
26753
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_29, [
26754
- createElementVNode("div", _hoisted_30, [
26755
- createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26756
- errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26757
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26758
- createElementVNode("span", {
26759
- onClick: _cache[2] || (_cache[2] = ($event) => handleTabPanelChange("verifyCode")),
26760
- class: "login-modal-info-left__link"
26761
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26762
- ], 64)) : createCommentVNode("", true)
26763
- ]),
26764
- withDirectives(createElementVNode("div", {
26765
- class: "login-modal-info-right",
26766
- onClick: _cache[3] || (_cache[3] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26767
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26768
- [vShow, tabPanel.value === "password" && formType.value === "login"]
26769
- ])
26770
- ])) : createCommentVNode("", true),
26771
- formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26772
- createElementVNode("div", _hoisted_31, [
26773
- createVNode(unref(Button), {
26774
- color: "primary",
26775
- variant: "solid",
26776
- size: "lg",
26777
- onClick: handleConfirm,
26778
- loading: loading.value,
26779
- disabled: disabled.value,
26780
- class: "login-modal-button"
26781
- }, {
26782
- default: withCtx(() => [
26783
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26784
- ]),
26785
- _: 1
26786
- }, 8, ["loading", "disabled"]),
26787
- createElementVNode("div", {
26788
- class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
26789
- }, [
26790
- createElementVNode("div", _hoisted_32, [
26791
- createVNode(_sfc_main$8, {
26792
- modelValue: status.value,
26793
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => status.value = $event),
26794
- onDeclares: _cache[5] || (_cache[5] = (typ) => handleDisplay(typ))
26795
- }, null, 8, ["modelValue"])
26796
- ])
26797
- ], 2),
26798
- createElementVNode("div", _hoisted_33, [
26799
- _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26800
- key: 0,
26801
- class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer openharmony-btn",
26802
- onClick: withModifiers(handleRegisterHarmony, ["stop"])
26803
- }, [
26804
- createElementVNode("div", _hoisted_34, [
26805
- _cache[15] || (_cache[15] = createElementVNode("img", {
26806
- src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26807
- alt: "",
26808
- class: "w-[32px] h-[32px] inline-block harmony-icon-img"
26809
- }, null, -1)),
26810
- recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
26811
- key: 0,
26812
- src: unref(recentLoginImg),
26813
- class: "w-[38px] h-[20px] last-login-img"
26814
- }, null, 8, _hoisted_35)) : createCommentVNode("", true)
26815
- ]),
26816
- createElementVNode("span", _hoisted_36, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26817
- ])) : createCommentVNode("", true)
26818
- ])
26819
- ]),
26820
- createElementVNode("div", _hoisted_37, [
26821
- createVNode(GAuth, {
26822
- logos,
26823
- onAuth: pcAuthLogin,
26824
- recentLoginType: recentLoginType.value,
26825
- class: "flex-1"
26826
- }, null, 8, ["logos", "recentLoginType"])
26827
- ])
26828
- ], 64)) : createCommentVNode("", true),
26829
- formType.value === "register" ? (openBlock(), createElementBlock("div", {
26830
- key: 2,
26831
- class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26832
- }, [
26833
- createVNode(_sfc_main$7, {
26834
- modelValue: hwStatus.value,
26835
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => hwStatus.value = $event),
26836
- onDeclares: _cache[7] || (_cache[7] = (typ) => handleDisplay(typ, "huawei")),
26837
- "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26838
- "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26839
- onClick: _cache[8] || (_cache[8] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26840
- }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26841
- createVNode(_sfc_main$7, {
26842
- modelValue: status.value,
26843
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
26844
- onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
26845
- "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26846
- "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26847
- onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26848
- }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26849
- ], 2)) : createCommentVNode("", true),
26850
- formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_38, [
26851
- createElementVNode("div", {
26852
- class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" && ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""])
26853
- }, [
26854
- createElementVNode("span", _hoisted_39, toDisplayString$1(errorMsg.value), 1)
26855
- ], 2),
26856
- createElementVNode("div", _hoisted_40, [
26857
- createVNode(unref(Button), {
26858
- color: "primary",
26859
- variant: "solid",
26860
- size: "lg",
26861
- onClick: handleConfirm,
26862
- disabled: disabled.value,
26863
- loading: loading.value,
26864
- class: "w-[100%] mb-[18px]"
26865
- }, {
26866
- default: withCtx(() => [
26867
- createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26868
- ]),
26869
- _: 1
26870
- }, 8, ["disabled", "loading"])
26871
- ])
26872
- ])) : createCommentVNode("", true)
26873
- ];
26874
- }),
26875
- _: 1
26876
- }, 8, ["DataList", "show-label", "layout", "class", "errors", "formErrors", "is-forget"]))
26877
- ], 2)
26878
- ]))
26879
- ];
26880
- }),
26654
+ ])) : createCommentVNode("", true)
26655
+ ]),
26656
+ _: 1
26657
+ }, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
26658
+ ], 64))
26659
+ ]),
26881
26660
  _: 2
26882
26661
  }, [
26883
26662
  !mfaCheck.value ? {
@@ -26887,11 +26666,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26887
26666
  createVNode(GTitle, {
26888
26667
  icon: unref(IconB),
26889
26668
  title: FormConfig.value.title,
26890
- "show-title": FormConfig.value.showTitle,
26891
26669
  onBack: handleTitleBackClick,
26892
26670
  "show-back": FormConfig.value.showBack,
26893
26671
  class: "login-modal-title flex-1"
26894
- }, null, 8, ["icon", "title", "show-title", "show-back"]),
26672
+ }, null, 8, ["icon", "title", "show-back"]),
26895
26673
  createElementVNode("div", _hoisted_2, [
26896
26674
  _ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
26897
26675
  key: 0,
@@ -26900,16 +26678,86 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26900
26678
  size: "18"
26901
26679
  })) : createCommentVNode("", true)
26902
26680
  ])
26903
- ])
26681
+ ]),
26682
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
26904
26683
  ]),
26905
26684
  key: "0"
26685
+ } : void 0,
26686
+ !mfaCheck.value ? {
26687
+ name: "footer",
26688
+ fn: withCtx(() => {
26689
+ var _a;
26690
+ return [
26691
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26692
+ createVNode(GAuth, {
26693
+ logos,
26694
+ onAuth: pcAuthLogin
26695
+ }, null, 8, ["logos"]),
26696
+ createElementVNode("div", {
26697
+ class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
26698
+ }, [
26699
+ createElementVNode("div", _hoisted_20, [
26700
+ createVNode(_sfc_main$8, {
26701
+ modelValue: status.value,
26702
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
26703
+ onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
26704
+ }, null, 8, ["modelValue"])
26705
+ ])
26706
+ ], 2)
26707
+ ])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
26708
+ createElementVNode("div", {
26709
+ class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" && ((_a = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a.length) > 42 ? "cursor-pointer" : ""])
26710
+ }, [
26711
+ createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
26712
+ ], 2),
26713
+ formType.value === "register" ? (openBlock(), createElementBlock("div", {
26714
+ key: 0,
26715
+ class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26716
+ }, [
26717
+ createVNode(_sfc_main$7, {
26718
+ modelValue: hwStatus.value,
26719
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
26720
+ onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
26721
+ "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26722
+ "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26723
+ onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26724
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26725
+ createVNode(_sfc_main$7, {
26726
+ modelValue: status.value,
26727
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
26728
+ onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
26729
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26730
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26731
+ onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26732
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26733
+ ], 2)) : createCommentVNode("", true),
26734
+ createElementVNode("div", _hoisted_23, [
26735
+ createVNode(unref(Button), {
26736
+ color: "primary",
26737
+ variant: "solid",
26738
+ size: "lg",
26739
+ onClick: handleConfirm,
26740
+ disabled: disabled.value,
26741
+ loading: loading.value,
26742
+ class: "w-[100%]"
26743
+ }, {
26744
+ default: withCtx(() => [
26745
+ createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26746
+ ]),
26747
+ _: 1
26748
+ }, 8, ["disabled", "loading"])
26749
+ ])
26750
+ ])) : createCommentVNode("", true)
26751
+ ];
26752
+ }),
26753
+ key: "1"
26906
26754
  } : void 0
26907
26755
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
26908
26756
  createVNode(_sfc_main$5, {
26909
26757
  visible: showProtoCheck.value,
26910
- "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
26758
+ "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
26911
26759
  onConfirm: agreeAndLogin,
26912
- onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
26760
+ onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
26913
26761
  }, null, 8, ["visible"])
26914
26762
  ], 64);
26915
26763
  };