vue-layout-gitcode 1.3.45 → 1.3.47

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.
@@ -40,6 +40,8 @@ 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";
43
45
  import { Checkbox } from "vue-devui-lal/checkbox";
44
46
  import "vue-devui-lal/checkbox/style.css";
45
47
  import { Modal } from "vue-devui-lal/modal";
@@ -476,6 +478,7 @@ const OAUTH_CANCEL = "oauth_cancel";
476
478
  const OAUTH_LOGIN_TYPE_KEY = "oauthType";
477
479
  const REGISTER_SOURCE_TAB = "register_source_tab";
478
480
  const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
481
+ const REGISTER_CLICK_TO_LOGIN = "register_click_to_login";
479
482
  /*! @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 */
480
483
  const {
481
484
  entries,
@@ -7747,12 +7750,16 @@ const gitCodeLayout$1 = {
7747
7750
  phone: "手机号码",
7748
7751
  cipher: "密码",
7749
7752
  otherLogin: "其他登录方式",
7750
- useAgrAndPriPolTip: "用户协议与隐私政策提示"
7753
+ useAgrAndPriPolTip: "用户协议与隐私政策提示",
7754
+ desc: "代码有我,智能随行"
7751
7755
  },
7752
7756
  action: {
7753
7757
  oh: "鸿蒙开发者登录",
7754
7758
  login: "登 录",
7755
- registerAgain: "注册新账号",
7759
+ noAccount: "没有账号?",
7760
+ haveAccount: "已有账号?",
7761
+ registerAgain: "点击注册",
7762
+ backLogin: "返回登录",
7756
7763
  phone: "手机验证码",
7757
7764
  readAgree: "我已阅读并同意",
7758
7765
  verify: "确 认",
@@ -8031,12 +8038,16 @@ const gitCodeLayout = {
8031
8038
  phone: "Phone number",
8032
8039
  cipher: "Password",
8033
8040
  otherLogin: "Other login methods",
8034
- useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
8041
+ useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice",
8042
+ desc: "Code with me, intelligent companion"
8035
8043
  },
8036
8044
  action: {
8037
8045
  oh: "OpenHarmony Developers",
8038
8046
  login: "Log In",
8047
+ noAccount: "No account?",
8048
+ haveAccount: "Have an account?",
8039
8049
  registerAgain: "Sign up",
8050
+ backLogin: "Log in",
8040
8051
  phone: "SMS code",
8041
8052
  readAgree: "I have read and agree to",
8042
8053
  verify: "Confirm",
@@ -10910,13 +10921,13 @@ const proxyService = (params, customConfigs) => {
10910
10921
  };
10911
10922
  const _hoisted_1$v = { class: "home-nav-right" };
10912
10923
  const _hoisted_2$l = { class: "home-nav-item" };
10913
- const _hoisted_3$i = {
10924
+ const _hoisted_3$j = {
10914
10925
  key: 0,
10915
10926
  class: "tooltip-sign"
10916
10927
  };
10917
- const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
10918
- const _hoisted_5$a = { class: "home-nav-text" };
10919
- const _hoisted_6$7 = {
10928
+ const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
10929
+ const _hoisted_5$c = { class: "home-nav-text" };
10930
+ const _hoisted_6$8 = {
10920
10931
  key: 1,
10921
10932
  class: "tools-list"
10922
10933
  };
@@ -10952,16 +10963,16 @@ const _hoisted_23$3 = {
10952
10963
  key: 0,
10953
10964
  class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
10954
10965
  };
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 = {
10966
+ const _hoisted_24$1 = { class: "font-[600] text-[var(--theme-aide-text)] mt-3 text-sm leading-[20px]" };
10967
+ const _hoisted_25$1 = { class: "mt-3" };
10968
+ const _hoisted_26$1 = {
10958
10969
  key: 1,
10959
10970
  class: "finish flex items-center"
10960
10971
  };
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"];
10972
+ const _hoisted_27$1 = { class: "flex justify-center items-center w-[30px] h-[30px] rounded-[50%] bg-[#0EB07B]" };
10973
+ const _hoisted_28$1 = { class: "ml-2 font-[600] text-[var(--theme-aide-text)] text-sm leading-[20px]" };
10974
+ const _hoisted_29$1 = { class: "home-nav-item" };
10975
+ const _hoisted_30$1 = ["src", "alt"];
10965
10976
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
10966
10977
  __name: "index",
10967
10978
  props: {
@@ -11130,8 +11141,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11130
11141
  "overlay-class": "tools-tag-tooltip"
11131
11142
  }, {
11132
11143
  content: withCtx(() => [
11133
- createElementVNode("div", _hoisted_4$e, [
11134
- createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11144
+ createElementVNode("div", _hoisted_4$g, [
11145
+ createElementVNode("div", _hoisted_5$c, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11135
11146
  ])
11136
11147
  ]),
11137
11148
  default: withCtx(() => [
@@ -11145,13 +11156,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11145
11156
  src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
11146
11157
  alt: ""
11147
11158
  }, null, -1)),
11148
- !_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$i, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
11159
+ !_ctx.isLogin || !isSignIn.value ? (openBlock(), createElementBlock("div", _hoisted_3$j, toDisplayString$1(!_ctx.isLogin ? unref(t2)("gitCodeLayout.growthCenter.receive") : unref(t2)("gitCodeLayout.growthCenter.signIn")), 1)) : createCommentVNode("", true)
11149
11160
  ])
11150
11161
  ])
11151
11162
  ]),
11152
11163
  _: 1
11153
11164
  })) : createCommentVNode("", true),
11154
- isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
11165
+ isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
11155
11166
  createVNode(unref(Tooltip), {
11156
11167
  position: "left",
11157
11168
  "overlay-class": "tools-tag-tooltip"
@@ -11268,10 +11279,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11268
11279
  rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_23$3, [
11269
11280
  createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
11270
11281
  ])) : createCommentVNode("", true),
11271
- createElementVNode("div", _hoisted_24, [
11282
+ createElementVNode("div", _hoisted_24$1, [
11272
11283
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
11273
11284
  ]),
11274
- createElementVNode("div", _hoisted_25, [
11285
+ createElementVNode("div", _hoisted_25$1, [
11275
11286
  createVNode(unref(Textarea), {
11276
11287
  modelValue: opinionText.value,
11277
11288
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => opinionText.value = $event),
@@ -11295,15 +11306,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11295
11306
  ])
11296
11307
  ])) : createCommentVNode("", true)
11297
11308
  ])
11298
- ])) : (openBlock(), createElementBlock("div", _hoisted_26, [
11299
- createElementVNode("div", _hoisted_27, [
11309
+ ])) : (openBlock(), createElementBlock("div", _hoisted_26$1, [
11310
+ createElementVNode("div", _hoisted_27$1, [
11300
11311
  createVNode(GIcon, {
11301
11312
  name: "gt-success",
11302
11313
  size: "14px",
11303
11314
  color: "#fff"
11304
11315
  })
11305
11316
  ]),
11306
- createElementVNode("div", _hoisted_28, [
11317
+ createElementVNode("div", _hoisted_28$1, [
11307
11318
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
11308
11319
  ])
11309
11320
  ]))
@@ -11348,7 +11359,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11348
11359
  onClick: _cache[2] || (_cache[2] = //@ts-ignore
11349
11360
  (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
11350
11361
  }, [
11351
- createElementVNode("div", _hoisted_29, [
11362
+ createElementVNode("div", _hoisted_29$1, [
11352
11363
  createVNode(GIcon, {
11353
11364
  name: "gt-plane-Topping1",
11354
11365
  size: "20px"
@@ -11371,7 +11382,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11371
11382
  width: "200",
11372
11383
  src: activeAdItem.value.imgUrl,
11373
11384
  alt: activeAdItem.value.title
11374
- }, null, 8, _hoisted_30)
11385
+ }, null, 8, _hoisted_30$1)
11375
11386
  ])) : createCommentVNode("", true)
11376
11387
  ]);
11377
11388
  };
@@ -14449,6 +14460,13 @@ function headRequest(request) {
14449
14460
  url: `/aihub/api/v1/theme/label/config/list`,
14450
14461
  method: "get"
14451
14462
  }));
14463
+ },
14464
+ // 获取今日技术历史
14465
+ getTodayTechHistory() {
14466
+ return reqCatch(() => request({
14467
+ url: `/uc/api/v1/operation/tech-history`,
14468
+ method: "get"
14469
+ }));
14452
14470
  }
14453
14471
  };
14454
14472
  }
@@ -14473,7 +14491,7 @@ const _hoisted_1$t = {
14473
14491
  class: "ai-home-mb-menu-wrap md:!hidden"
14474
14492
  };
14475
14493
  const _hoisted_2$k = { class: "right-content cursor-pointer" };
14476
- const _hoisted_3$h = { class: "list-menu-ai-home" };
14494
+ const _hoisted_3$i = { class: "list-menu-ai-home" };
14477
14495
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
14478
14496
  __name: "AiHubMenusMobile",
14479
14497
  props: ["activeMenu", "menuList", "isRouterLink"],
@@ -14499,7 +14517,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14499
14517
  class: normalizeClass(["menu-bg", { "menu-bg-white": !isHome.value }])
14500
14518
  }, {
14501
14519
  menu: withCtx(() => [
14502
- createElementVNode("ul", _hoisted_3$h, [
14520
+ createElementVNode("ul", _hoisted_3$i, [
14503
14521
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
14504
14522
  var _a;
14505
14523
  return openBlock(), createElementBlock("li", {
@@ -14550,9 +14568,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14550
14568
  const AiHubMenusMobile = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
14551
14569
  const _hoisted_1$s = { class: "ai-hub-menus-item_label" };
14552
14570
  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" };
14571
+ const _hoisted_3$h = { class: "ai-hub-menus-themetablist" };
14572
+ const _hoisted_4$f = { class: "flex items-center gap-[8px] font-semibold" };
14573
+ const _hoisted_5$b = { class: "w-[32px] h-[32px] flex items-center justify-center" };
14556
14574
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
14557
14575
  __name: "AiHubMenus",
14558
14576
  props: ["scene"],
@@ -14687,7 +14705,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14687
14705
  position: ["top-start"]
14688
14706
  }, {
14689
14707
  menu: withCtx(() => [
14690
- createElementVNode("ul", _hoisted_3$g, [
14708
+ createElementVNode("ul", _hoisted_3$h, [
14691
14709
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
14692
14710
  return openBlock(), createBlock(GLink, {
14693
14711
  key: index22,
@@ -14744,14 +14762,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14744
14762
  href: activeMenu.value.url
14745
14763
  }, {
14746
14764
  default: withCtx(() => [
14747
- createElementVNode("span", _hoisted_4$d, [
14765
+ createElementVNode("span", _hoisted_4$f, [
14748
14766
  createVNode(GIcon, {
14749
14767
  size: "24px",
14750
14768
  name: activeMenu.value.icon
14751
14769
  }, null, 8, ["name"]),
14752
14770
  createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
14753
14771
  ]),
14754
- createElementVNode("div", _hoisted_5$9, [
14772
+ createElementVNode("div", _hoisted_5$b, [
14755
14773
  createVNode(GIcon, {
14756
14774
  size: "18px",
14757
14775
  name: "gt-line-down",
@@ -16585,10 +16603,10 @@ const _hoisted_2$i = {
16585
16603
  key: 1,
16586
16604
  class: "org-layout-toolbar"
16587
16605
  };
16588
- const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16589
- const _hoisted_4$c = { class: "text-xs" };
16590
- const _hoisted_5$8 = { class: "flex items-center w-full" };
16591
- const _hoisted_6$6 = {
16606
+ const _hoisted_3$g = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16607
+ const _hoisted_4$e = { class: "text-xs" };
16608
+ const _hoisted_5$a = { class: "flex items-center w-full" };
16609
+ const _hoisted_6$7 = {
16592
16610
  key: 1,
16593
16611
  class: "flex items-center min-w-[30px]"
16594
16612
  };
@@ -16768,7 +16786,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16768
16786
  height: 28,
16769
16787
  is_round: false
16770
16788
  }, null, 8, ["src", "name"]),
16771
- createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16789
+ createElementVNode("div", _hoisted_3$g, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16772
16790
  ];
16773
16791
  }),
16774
16792
  _: 1
@@ -16783,7 +16801,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16783
16801
  default: withCtx(() => {
16784
16802
  var _a2;
16785
16803
  return [
16786
- 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)
16804
+ 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)
16787
16805
  ];
16788
16806
  }),
16789
16807
  _: 1
@@ -16805,7 +16823,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16805
16823
  default: withCtx(() => {
16806
16824
  var _a2, _b2, _c, _d, _e, _f, _g;
16807
16825
  return [
16808
- createElementVNode("h2", _hoisted_5$8, [
16826
+ createElementVNode("h2", _hoisted_5$a, [
16809
16827
  createVNode(GLink, {
16810
16828
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
16811
16829
  class: "pr-[12px]"
@@ -16821,7 +16839,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16821
16839
  width: 28,
16822
16840
  height: 28,
16823
16841
  is_round: !isOrg.value
16824
- }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$6, [
16842
+ }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$7, [
16825
16843
  unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$5)) : (openBlock(), createElementBlock("img", _hoisted_8$5))
16826
16844
  ]))
16827
16845
  ];
@@ -17022,6 +17040,21 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
17022
17040
  AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
17023
17041
  return AuthTypeEnum2;
17024
17042
  })(AuthTypeEnum || {});
17043
+ var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
17044
+ LoginMethodEnum2["PHONE"] = "phone";
17045
+ LoginMethodEnum2["PASSWORD"] = "password";
17046
+ LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
17047
+ LoginMethodEnum2["HARMONY"] = "harmony";
17048
+ LoginMethodEnum2["CSDN"] = "csdn";
17049
+ LoginMethodEnum2["ATOMGIT"] = "atomgit";
17050
+ LoginMethodEnum2["GITEE"] = "gitee";
17051
+ LoginMethodEnum2["GITHUB"] = "github";
17052
+ LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
17053
+ LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
17054
+ LoginMethodEnum2["H_BUILDER"] = "hbuilder";
17055
+ LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
17056
+ return LoginMethodEnum2;
17057
+ })(LoginMethodEnum || {});
17025
17058
  var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
17026
17059
  AuthResType2["SUCCESS"] = "success";
17027
17060
  AuthResType2["FAIL"] = "fail";
@@ -17506,10 +17539,10 @@ const _hoisted_1$n = {
17506
17539
  class: "user-level-avatar-badge"
17507
17540
  };
17508
17541
  const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
17509
- const _hoisted_3$e = ["src"];
17510
- const _hoisted_4$b = { class: "level-name" };
17511
- const _hoisted_5$7 = { class: "level-icon" };
17512
- const _hoisted_6$5 = ["src"];
17542
+ const _hoisted_3$f = ["src"];
17543
+ const _hoisted_4$d = { class: "level-name" };
17544
+ const _hoisted_5$9 = { class: "level-icon" };
17545
+ const _hoisted_6$6 = ["src"];
17513
17546
  const _hoisted_7$4 = { class: "custom-btn" };
17514
17547
  const _hoisted_8$4 = { class: "flex items-center justify-center" };
17515
17548
  const maxLevel = 3;
@@ -17565,14 +17598,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17565
17598
  class: "level-avatar",
17566
17599
  src: levelInfo.value.avatar,
17567
17600
  alt: ""
17568
- }, null, 8, _hoisted_3$e),
17569
- createElementVNode("div", _hoisted_4$b, [
17601
+ }, null, 8, _hoisted_3$f),
17602
+ createElementVNode("div", _hoisted_4$d, [
17570
17603
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
17571
- createElementVNode("div", _hoisted_5$7, [
17604
+ createElementVNode("div", _hoisted_5$9, [
17572
17605
  createElementVNode("img", {
17573
17606
  src: levelInfo.value.level,
17574
17607
  alt: ""
17575
- }, null, 8, _hoisted_6$5)
17608
+ }, null, 8, _hoisted_6$6)
17576
17609
  ])
17577
17610
  ])
17578
17611
  ]),
@@ -17586,8 +17619,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17586
17619
  const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17587
17620
  const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
17588
17621
  const _hoisted_2$g = { class: "max-w-[200px]" };
17589
- const _hoisted_3$d = ["title"];
17590
- const _hoisted_4$a = ["title"];
17622
+ const _hoisted_3$e = ["title"];
17623
+ const _hoisted_4$c = ["title"];
17591
17624
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
17592
17625
  __name: "UserAvatarMenu",
17593
17626
  props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
@@ -17755,11 +17788,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17755
17788
  createElementVNode("p", {
17756
17789
  class: "g-user-drawer-info-list-name ellipsis",
17757
17790
  title: __props.accountInfo.nickname
17758
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
17791
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
17759
17792
  createElementVNode("p", {
17760
17793
  class: "g-user-drawer-info-list-id ellipsis",
17761
17794
  title: __props.accountInfo.username
17762
- }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
17795
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$c)
17763
17796
  ]),
17764
17797
  createVNode(GIcon, {
17765
17798
  name: "gt-line-right",
@@ -17805,13 +17838,13 @@ const _hoisted_2$f = {
17805
17838
  key: 0,
17806
17839
  class: "g-user-avatar__badge"
17807
17840
  };
17808
- const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
17809
- const _hoisted_4$9 = {
17841
+ const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
17842
+ const _hoisted_4$b = {
17810
17843
  key: 0,
17811
17844
  class: "g-user-avatar__badge"
17812
17845
  };
17813
- const _hoisted_5$6 = { class: "g-user-drawer" };
17814
- const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
17846
+ const _hoisted_5$8 = { class: "g-user-drawer" };
17847
+ const _hoisted_6$5 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
17815
17848
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
17816
17849
  ...{
17817
17850
  name: "UserAvatar"
@@ -17916,7 +17949,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17916
17949
  onToggle: handleToggle
17917
17950
  }, {
17918
17951
  menu: withCtx(() => [
17919
- createElementVNode("div", _hoisted_5$6, [
17952
+ createElementVNode("div", _hoisted_5$8, [
17920
17953
  createVNode(UserAvatarMenu, {
17921
17954
  independence: __props.independence,
17922
17955
  loginOutFinish: __props.loginOutFinish,
@@ -17928,12 +17961,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17928
17961
  ])
17929
17962
  ]),
17930
17963
  default: withCtx(() => [
17931
- createElementVNode("div", _hoisted_3$c, [
17964
+ createElementVNode("div", _hoisted_3$d, [
17932
17965
  createVNode(_sfc_main$z, {
17933
17966
  name: accountInfo.value.nickname,
17934
17967
  src: accountInfo.value.avatar
17935
17968
  }, null, 8, ["name", "src"]),
17936
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[4] || (_cache[4] = [
17969
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, _cache[4] || (_cache[4] = [
17937
17970
  createElementVNode("div", null, null, -1)
17938
17971
  ]))) : createCommentVNode("", true)
17939
17972
  ])
@@ -17949,7 +17982,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17949
17982
  }, {
17950
17983
  default: withCtx(() => [
17951
17984
  createElementVNode("div", null, [
17952
- createElementVNode("div", _hoisted_6$4, [
17985
+ createElementVNode("div", _hoisted_6$5, [
17953
17986
  createVNode(unref(Button), {
17954
17987
  class: "cursor-pointer draw-side-bar-close",
17955
17988
  icon: "close",
@@ -18063,9 +18096,9 @@ const setlocalVistHistory = (data, localType) => {
18063
18096
  };
18064
18097
  const _hoisted_1$k = { class: "g-header-search-prefix" };
18065
18098
  const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
18066
- const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
18067
- const _hoisted_4$8 = { class: "history-list" };
18068
- const _hoisted_5$5 = {
18099
+ const _hoisted_3$c = { class: "g-header-search-suffix-suffixIcon" };
18100
+ const _hoisted_4$a = { class: "history-list" };
18101
+ const _hoisted_5$7 = {
18069
18102
  key: 1,
18070
18103
  class: "aireposearch flex-1"
18071
18104
  };
@@ -18080,13 +18113,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18080
18113
  var _a;
18081
18114
  const layoutConfig2 = useLayoutConfig();
18082
18115
  const { t: $t } = i18n.global;
18083
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BZ-nYkPC.js"));
18084
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-Cz5DhF1B.js"));
18085
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-9NOTyesg.js"));
18086
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-BakI-PLb.js"));
18087
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DXVQsIcg.js"));
18088
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Ddl3gFW1.js"));
18089
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-BZpePqbc.js"));
18116
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BBajZEXQ.js"));
18117
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BXxdyMZL.js"));
18118
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-DalzX_56.js"));
18119
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-B4ooNPuc.js"));
18120
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BKnbctyZ.js"));
18121
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CSJHjYRx.js"));
18122
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-2FF0yfT0.js"));
18090
18123
  const props = __props;
18091
18124
  const repoInfo = inject("repoInfo");
18092
18125
  const orgInfo = inject("orgInfo");
@@ -18539,7 +18572,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18539
18572
  }, {
18540
18573
  menu: withCtx(() => [
18541
18574
  createElementVNode("div", null, [
18542
- withDirectives(createElementVNode("div", _hoisted_4$8, [
18575
+ withDirectives(createElementVNode("div", _hoisted_4$a, [
18543
18576
  createVNode(unref(SearchScopeList), {
18544
18577
  searchScopeList: searchScopeList.value,
18545
18578
  searchStr: searchStr.value,
@@ -18657,7 +18690,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18657
18690
  withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
18658
18691
  [vShow, searchStr.value]
18659
18692
  ]),
18660
- createElementVNode("div", _hoisted_3$b, [
18693
+ createElementVNode("div", _hoisted_3$c, [
18661
18694
  createVNode(GIcon, {
18662
18695
  name: "search",
18663
18696
  class: "g-header-search-icon",
@@ -18675,7 +18708,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18675
18708
  _: 1
18676
18709
  }, 8, ["overlay-class", "visible"])
18677
18710
  ], 2)) : createCommentVNode("", true),
18678
- _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
18711
+ _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
18679
18712
  createVNode(unref(Input), {
18680
18713
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
18681
18714
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -18696,7 +18729,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18696
18729
  }
18697
18730
  });
18698
18731
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18699
- const NoticeModal = defineAsyncComponent(() => import("./notice-DaJhOgCZ.js"));
18732
+ const NoticeModal = defineAsyncComponent(() => import("./notice-n22S4t6U.js"));
18700
18733
  function clearNotice() {
18701
18734
  if (localStorage$2.getItem("validator_email")) {
18702
18735
  localStorage$2.removeItem("validator_email");
@@ -18728,8 +18761,8 @@ const _hoisted_1$j = {
18728
18761
  class: "g-header-body"
18729
18762
  };
18730
18763
  const _hoisted_2$d = { class: "g-header-body-left h-full" };
18731
- const _hoisted_3$a = { class: "g-header-body-right h-full" };
18732
- const _hoisted_4$7 = { key: 2 };
18764
+ const _hoisted_3$b = { class: "g-header-body-right h-full" };
18765
+ const _hoisted_4$9 = { key: 2 };
18733
18766
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
18734
18767
  ...{
18735
18768
  name: "header"
@@ -18817,7 +18850,6 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18817
18850
  const { widthType } = usePageResize();
18818
18851
  const headerRef = ref(null);
18819
18852
  const { height = 56 } = useElementSize(headerRef);
18820
- theme.initAutoTheme();
18821
18853
  const GrayBgSceneValue = [SceneValue.repo, SceneValue.org, SceneValue.user];
18822
18854
  const headerClassName = computed(() => {
18823
18855
  var _a, _b;
@@ -18835,6 +18867,9 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
18835
18867
  });
18836
18868
  const aiHubSceneValue = [SceneValue.aiHome, SceneValue.aiGuide, SceneValue.aiRepo];
18837
18869
  const inAIHub = computed(() => aiHubSceneValue.includes(props.sceneValue));
18870
+ if (!inAIHub.value) {
18871
+ theme.initAutoTheme();
18872
+ }
18838
18873
  const isChatBot = ref(false);
18839
18874
  const isHome = computed(() => props.sceneValue === SceneValue.home);
18840
18875
  const showHeaderShadow = ref(false);
@@ -19147,12 +19182,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19147
19182
  createElementVNode("div", _hoisted_2$d, [
19148
19183
  renderSlot(_ctx.$slots, "info", {}, void 0, true)
19149
19184
  ]),
19150
- createElementVNode("div", _hoisted_3$a, [
19185
+ createElementVNode("div", _hoisted_3$b, [
19151
19186
  renderSlot(_ctx.$slots, "menu", {}, void 0, true)
19152
19187
  ])
19153
19188
  ], true)
19154
19189
  ])) : createCommentVNode("", true),
19155
- _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
19190
+ _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
19156
19191
  renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
19157
19192
  ])) : createCommentVNode("", true)
19158
19193
  ], 2)
@@ -19182,7 +19217,7 @@ const createSetting = () => {
19182
19217
  };
19183
19218
  const _hoisted_1$i = { class: "tools-item-wrapper" };
19184
19219
  const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
19185
- const _hoisted_3$9 = ["onClick", "title"];
19220
+ const _hoisted_3$a = ["onClick", "title"];
19186
19221
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19187
19222
  __name: "Lang",
19188
19223
  setup(__props) {
@@ -19217,7 +19252,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19217
19252
  color: "var(--theme-icon-fill-weak)",
19218
19253
  class: "checkbox-item-icon"
19219
19254
  }, null, 8, ["name"])
19220
- ], 16, _hoisted_3$9);
19255
+ ], 16, _hoisted_3$a);
19221
19256
  }), 128))
19222
19257
  ])
19223
19258
  ]);
@@ -19226,7 +19261,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19226
19261
  });
19227
19262
  const _hoisted_1$h = { class: "tools-item-wrapper" };
19228
19263
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
19229
- const _hoisted_3$8 = ["onClick", "title"];
19264
+ const _hoisted_3$9 = ["onClick", "title"];
19230
19265
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
19231
19266
  __name: "Theme",
19232
19267
  setup(__props) {
@@ -19270,7 +19305,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19270
19305
  color: "var(--theme-icon-fill-weak)",
19271
19306
  class: "checkbox-item-icon"
19272
19307
  }, null, 8, ["name"])
19273
- ], 16, _hoisted_3$8);
19308
+ ], 16, _hoisted_3$9);
19274
19309
  }), 128))
19275
19310
  ])
19276
19311
  ]);
@@ -19380,13 +19415,13 @@ const _hoisted_2$a = {
19380
19415
  class: "devui-submenu-title layer_2",
19381
19416
  style: { "padding": "0px 24px" }
19382
19417
  };
19383
- const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19384
- const _hoisted_4$6 = {
19418
+ const _hoisted_3$8 = { class: "devui-submenu-title-content cursor-auto" };
19419
+ const _hoisted_4$8 = {
19385
19420
  class: "devui-submenu-title layer_2",
19386
19421
  style: { "padding": "0px 24px" }
19387
19422
  };
19388
- const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
19389
- const _hoisted_6$3 = { key: 0 };
19423
+ const _hoisted_5$6 = { class: "devui-submenu-title-content cursor-auto" };
19424
+ const _hoisted_6$4 = { key: 0 };
19390
19425
  const _hoisted_7$3 = { class: "project-label" };
19391
19426
  const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19392
19427
  const _hoisted_9$3 = {
@@ -19584,7 +19619,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19584
19619
  _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19585
19620
  createElementVNode("div", _hoisted_2$a, [
19586
19621
  _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19587
- createElementVNode("span", _hoisted_3$7, [
19622
+ createElementVNode("span", _hoisted_3$8, [
19588
19623
  createElementVNode("div", {
19589
19624
  class: "fast-click-button",
19590
19625
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
@@ -19643,9 +19678,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19643
19678
  ], 2)
19644
19679
  ], 64)) : createCommentVNode("", true),
19645
19680
  _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19646
- createElementVNode("div", _hoisted_4$6, [
19681
+ createElementVNode("div", _hoisted_4$8, [
19647
19682
  _cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19648
- createElementVNode("span", _hoisted_5$4, [
19683
+ createElementVNode("span", _hoisted_5$6, [
19649
19684
  createElementVNode("div", {
19650
19685
  class: "fast-click-button",
19651
19686
  onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
@@ -19709,7 +19744,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19709
19744
  }, null, 8, ["src", "name", "class"]))
19710
19745
  ]),
19711
19746
  default: withCtx(() => [
19712
- _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
19747
+ _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6$4, [
19713
19748
  createElementVNode("span", _hoisted_7$3, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19714
19749
  createElementVNode("span", _hoisted_8$3, "/" + toDisplayString$1(item.label), 1)
19715
19750
  ])) : (openBlock(), createElementBlock("span", _hoisted_9$3, toDisplayString$1(item.label), 1))
@@ -19752,9 +19787,9 @@ const _hoisted_2$9 = {
19752
19787
  class: "devui-submenu-title layer_2",
19753
19788
  style: { "padding": "0px 24px" }
19754
19789
  };
19755
- const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
19756
- const _hoisted_4$5 = { class: "project-label" };
19757
- const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19790
+ const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19791
+ const _hoisted_4$7 = { class: "project-label" };
19792
+ const _hoisted_5$5 = { class: "project-label flex-1 min-w-0 ellipsis" };
19758
19793
  const INIT_SHOW_COUNT = 4;
19759
19794
  const LOAD_MORE_COUNT = 10;
19760
19795
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -19849,7 +19884,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19849
19884
  return openBlock(), createElementBlock("ul", _hoisted_1$f, [
19850
19885
  createElementVNode("div", _hoisted_2$9, [
19851
19886
  _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19852
- createElementVNode("span", _hoisted_3$6, [
19887
+ createElementVNode("span", _hoisted_3$7, [
19853
19888
  createElementVNode("div", {
19854
19889
  class: "fast-click-button",
19855
19890
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
@@ -19904,8 +19939,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19904
19939
  ]),
19905
19940
  default: withCtx(() => [
19906
19941
  createElementVNode("span", null, [
19907
- createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19908
- createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
19942
+ createElementVNode("span", _hoisted_4$7, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19943
+ createElementVNode("span", _hoisted_5$5, "/" + toDisplayString$1(item.label), 1)
19909
19944
  ])
19910
19945
  ]),
19911
19946
  _: 2
@@ -19943,13 +19978,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19943
19978
  const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19944
19979
  const _hoisted_1$e = { class: "side-bar-label" };
19945
19980
  const _hoisted_2$8 = { class: "side-bar-label" };
19946
- const _hoisted_3$5 = {
19981
+ const _hoisted_3$6 = {
19947
19982
  key: 0,
19948
19983
  class: "line mt-[16px] mb-[6px]"
19949
19984
  };
19950
- const _hoisted_4$4 = ["src"];
19951
- const _hoisted_5$2 = ["src"];
19952
- const _hoisted_6$2 = { class: "side-bar-label" };
19985
+ const _hoisted_4$6 = ["src"];
19986
+ const _hoisted_5$4 = ["src"];
19987
+ const _hoisted_6$3 = { class: "side-bar-label" };
19953
19988
  const _hoisted_7$2 = {
19954
19989
  key: 1,
19955
19990
  class: "line mb-[16px] mt-[6px]"
@@ -20446,7 +20481,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20446
20481
  }, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
20447
20482
  ], 64);
20448
20483
  }), 256)),
20449
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
20484
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$6)) : createCommentVNode("", true),
20450
20485
  (openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
20451
20486
  return openBlock(), createBlock(unref(MenuItem), {
20452
20487
  key: `${item.key}-${item.logo}`,
@@ -20461,11 +20496,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20461
20496
  createElementVNode("img", {
20462
20497
  src: item.logo,
20463
20498
  class: "default-icon w-[16px] h-[16px]"
20464
- }, null, 8, _hoisted_4$4),
20499
+ }, null, 8, _hoisted_4$6),
20465
20500
  createElementVNode("img", {
20466
20501
  src: item.logo_hover,
20467
20502
  class: "active-icon w-[16px] h-[16px]"
20468
- }, null, 8, _hoisted_5$2)
20503
+ }, null, 8, _hoisted_5$4)
20469
20504
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20470
20505
  createVNode(GIcon, {
20471
20506
  name: item.icon,
@@ -20482,7 +20517,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20482
20517
  ], 64))
20483
20518
  ]),
20484
20519
  default: withCtx(() => [
20485
- createElementVNode("span", _hoisted_6$2, toDisplayString$1(item.label), 1)
20520
+ createElementVNode("span", _hoisted_6$3, toDisplayString$1(item.label), 1)
20486
20521
  ]),
20487
20522
  _: 2
20488
20523
  }, 1032, ["data-key", "data-route", "data-href", "data-host", "data-openBlank"]);
@@ -21314,8 +21349,8 @@ const headerCustomPropsData = {
21314
21349
  };
21315
21350
  const _hoisted_1$c = { class: "home-wrapper" };
21316
21351
  const _hoisted_2$7 = { class: "home-content" };
21317
- const _hoisted_3$4 = { class: "home-left-side" };
21318
- const _hoisted_4$3 = { class: "home-main" };
21352
+ const _hoisted_3$5 = { class: "home-left-side" };
21353
+ const _hoisted_4$5 = { class: "home-main" };
21319
21354
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
21320
21355
  __name: "home",
21321
21356
  setup(__props) {
@@ -21406,7 +21441,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21406
21441
  onFollowUser: followUser
21407
21442
  }, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
21408
21443
  createElementVNode("div", _hoisted_2$7, [
21409
- createElementVNode("div", _hoisted_3$4, [
21444
+ createElementVNode("div", _hoisted_3$5, [
21410
21445
  createVNode(GitCodeAside, {
21411
21446
  sceneValue: sceneSelected.value,
21412
21447
  userInfo: userInfo.value,
@@ -21426,7 +21461,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21426
21461
  _: 1
21427
21462
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
21428
21463
  ]),
21429
- createElementVNode("div", _hoisted_4$3, [
21464
+ createElementVNode("div", _hoisted_4$5, [
21430
21465
  _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
21431
21466
  _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
21432
21467
  createVNode(unref(RadioGroup), {
@@ -21636,6 +21671,7 @@ const layoutConfig = useLayoutConfig();
21636
21671
  const { t: t$2 } = i18n.global;
21637
21672
  const GRAPH_CODE = 400007;
21638
21673
  const REMOTE_LOGIN_CODE = 400015;
21674
+ const MAX_MOBILE_COUNT = 10;
21639
21675
  const createLoginConfig = (request) => {
21640
21676
  const API = headRequest(request);
21641
21677
  return {
@@ -21643,14 +21679,15 @@ const createLoginConfig = (request) => {
21643
21679
  async phone(param, loginParams) {
21644
21680
  const { validFunc, successFunc = () => {
21645
21681
  }, failFunc = () => {
21646
- } } = param;
21682
+ }, country = "" } = param;
21647
21683
  const check = validFunc ? await validFunc() : true;
21648
21684
  if (!check) return;
21649
21685
  const result2 = await API.loginByMobile(loginParams);
21650
21686
  if (!result2.error) {
21651
21687
  const resultData = result2.data.data;
21688
+ saveLoginMobile(loginParams.mobile, country);
21652
21689
  successFunc(resultData, loginParams.mobile);
21653
- phoneAndPasswordLogin(resultData, API);
21690
+ phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PHONE);
21654
21691
  } else {
21655
21692
  failFunc(result2.error.error_message);
21656
21693
  }
@@ -21677,7 +21714,7 @@ const createLoginConfig = (request) => {
21677
21714
  const { user_status_enum } = resultData;
21678
21715
  await successFunc(resultData);
21679
21716
  if (user_status_enum !== "MFA_CHECK") {
21680
- phoneAndPasswordLogin(resultData, API);
21717
+ phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PASSWORD);
21681
21718
  }
21682
21719
  } else {
21683
21720
  failFunc(result2.error.error_message);
@@ -21701,7 +21738,7 @@ const createLoginConfig = (request) => {
21701
21738
  scene_id
21702
21739
  });
21703
21740
  if (!result2.error) {
21704
- phoneAndPasswordLogin(result2.data.data, API);
21741
+ phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.MINI_PROGRAM);
21705
21742
  return { success: true, data: result2.data.data };
21706
21743
  }
21707
21744
  return { success: false, error: result2.error };
@@ -21828,11 +21865,12 @@ function bindResultResolve(params, API) {
21828
21865
  function sendMessageToParent(message) {
21829
21866
  window.parent && window.parent.postMessage(message, "*");
21830
21867
  }
21831
- function phoneAndPasswordLogin(userInfo, API) {
21868
+ function phoneAndPasswordLogin(userInfo, API, loginMethod) {
21832
21869
  successResolve({
21833
21870
  path: new URLSearchParams(window.location.search).get("returnUrl") || "",
21834
21871
  userInfo,
21835
- type: AuthTypeEnum.PHONE_AND_PASSWORD
21872
+ type: AuthTypeEnum.PHONE_AND_PASSWORD,
21873
+ loginMethod
21836
21874
  }, API);
21837
21875
  const params = {
21838
21876
  access_token: userInfo.access_token,
@@ -21867,12 +21905,13 @@ async function checkUserRepositoryIssue(API) {
21867
21905
  }
21868
21906
  async function successResolve(params, API) {
21869
21907
  var _a;
21870
- const { path, userInfo, type } = params;
21908
+ const { path, userInfo, type, loginMethod } = params;
21871
21909
  if (userInfo) {
21872
21910
  emitEvent("updateUserInfo", userInfo);
21873
21911
  const { username, email } = userInfo;
21874
21912
  setEmailValid(username, email);
21875
21913
  }
21914
+ saveLastLoginType(loginMethod);
21876
21915
  if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
21877
21916
  const { unMount, isMounted } = usePopup();
21878
21917
  if (isMounted()) {
@@ -21978,6 +22017,21 @@ const HandleParentWindowGetLoginInfo = (request) => {
21978
22017
  }
21979
22018
  };
21980
22019
  };
22020
+ function saveLoginMobile(mobile, country) {
22021
+ const loginMobileList = JSON.parse(localStorage$2.getItem("loginMobileList") || "[]");
22022
+ const index2 = loginMobileList.findIndex((item) => item.mobile === mobile);
22023
+ if (index2 !== -1) {
22024
+ loginMobileList.splice(index2, 1);
22025
+ }
22026
+ loginMobileList.unshift({ mobile, country });
22027
+ if (loginMobileList.length > MAX_MOBILE_COUNT) {
22028
+ loginMobileList.pop();
22029
+ }
22030
+ localStorage$2.setItem("loginMobileList", JSON.stringify(loginMobileList));
22031
+ }
22032
+ function saveLastLoginType(loginMethod) {
22033
+ localStorage$2.setItem("lastLoginMethod", loginMethod);
22034
+ }
21981
22035
  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";
21982
22036
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21983
22037
  __proto__: null,
@@ -22164,7 +22218,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22164
22218
  }
22165
22219
  });
22166
22220
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
22167
- const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
22221
+ const _hoisted_2$6 = { class: "login-phone" };
22222
+ const _hoisted_3$4 = { class: "flex justify-between gap-[8px] flex-wrap" };
22223
+ const _hoisted_4$4 = { class: "flex items-center justify-between" };
22224
+ const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
22168
22225
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
22169
22226
  __name: "inputSelect",
22170
22227
  props: {
@@ -22172,7 +22229,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22172
22229
  "onUpdate:modelValue": { type: Function },
22173
22230
  placeholder: {},
22174
22231
  prop: {},
22175
- country: {}
22232
+ country: {},
22233
+ editableSelect: { type: Boolean }
22176
22234
  },
22177
22235
  emits: ["change", "selectChange", "update:modelValue"],
22178
22236
  setup(__props, { emit: __emit }) {
@@ -22181,7 +22239,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22181
22239
  const emits = __emit;
22182
22240
  const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
22183
22241
  const { vModels } = useModel(props, emits);
22184
- console.log(cache_countdown, "cache_countdown");
22185
22242
  const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
22186
22243
  const options = ref([]);
22187
22244
  const handleChange = () => {
@@ -22199,25 +22256,50 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22199
22256
  };
22200
22257
  });
22201
22258
  };
22202
- onMounted(() => {
22203
- getAllCountries();
22204
- });
22259
+ const loginMobileList = ref([]);
22260
+ const mobileList = ref([]);
22261
+ const getHistoryMobile = () => {
22262
+ var _a, _b, _c, _d, _e;
22263
+ mobileList.value = JSON.parse(localStorage$2.getItem("loginMobileList")) || [];
22264
+ loginMobileList.value = (_a = mobileList.value) == null ? void 0 : _a.map((item) => {
22265
+ return {
22266
+ label: item.mobile,
22267
+ value: item.mobile
22268
+ };
22269
+ });
22270
+ country.value = ((_c = (_b = mobileList.value) == null ? void 0 : _b[0]) == null ? void 0 : _c.country) || country.value;
22271
+ emits("update:modelValue", (_e = (_d = mobileList.value) == null ? void 0 : _d[0]) == null ? void 0 : _e.mobile);
22272
+ };
22273
+ const deleteMobile = (mobile) => {
22274
+ loginMobileList.value = loginMobileList.value.filter((item) => item.value !== mobile);
22275
+ mobileList.value = mobileList.value.filter((item) => item.mobile !== mobile);
22276
+ localStorage$2.setItem("loginMobileList", JSON.stringify(mobileList.value));
22277
+ };
22278
+ const handleSelectChange = (value) => {
22279
+ var _a;
22280
+ country.value = ((_a = mobileList.value.find((item) => item.mobile === value)) == null ? void 0 : _a.country) || country.value;
22281
+ emits("change");
22282
+ };
22205
22283
  const handleCountryChange = () => {
22206
22284
  emits("selectChange", country.value);
22207
22285
  emits("change");
22208
22286
  };
22287
+ const handleInputSelectChange = (value) => {
22288
+ emits("update:modelValue", value);
22289
+ emits("change");
22290
+ };
22291
+ onMounted(() => {
22292
+ getAllCountries();
22293
+ if (props.editableSelect) {
22294
+ getHistoryMobile();
22295
+ }
22296
+ });
22209
22297
  return (_ctx, _cache) => {
22210
22298
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
22211
- createVNode(unref(Input), mergeProps({
22212
- modelValue: unref(vModels),
22213
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22214
- }, _ctx.prop, {
22215
- placeholder: _ctx.placeholder,
22216
- onChange: handleChange
22217
- }), {
22218
- prepend: withCtx(() => [
22299
+ createElementVNode("div", _hoisted_2$6, [
22300
+ (props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22219
22301
  createVNode(unref(Select), {
22220
- class: "input-select",
22302
+ class: "login-country-select",
22221
22303
  modelValue: country.value,
22222
22304
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
22223
22305
  menuClass: "country-select",
@@ -22231,7 +22313,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22231
22313
  value: item.value
22232
22314
  }, {
22233
22315
  default: withCtx(() => [
22234
- createElementVNode("div", _hoisted_2$6, [
22316
+ createElementVNode("div", _hoisted_3$4, [
22235
22317
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
22236
22318
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
22237
22319
  ])
@@ -22241,10 +22323,70 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22241
22323
  }), 128))
22242
22324
  ]),
22243
22325
  _: 1
22244
- }, 8, ["modelValue"])
22245
- ]),
22246
- _: 1
22247
- }, 16, ["modelValue", "placeholder"])
22326
+ }, 8, ["modelValue"]),
22327
+ createVNode(unref(EditableSelect), mergeProps({
22328
+ modelValue: unref(vModels),
22329
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22330
+ }, props, {
22331
+ size: "lg",
22332
+ width: 292,
22333
+ options: loginMobileList.value,
22334
+ placeholder: props.placeholder,
22335
+ onInputChange: handleInputSelectChange,
22336
+ onChange: handleSelectChange,
22337
+ class: "login-phone-select"
22338
+ }), {
22339
+ item: withCtx((slotProps) => [
22340
+ createElementVNode("div", _hoisted_4$4, [
22341
+ createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
22342
+ createVNode(GIcon, {
22343
+ name: "gt-line-delete",
22344
+ class: "w-[16px] h-[16px] cursor-pointer",
22345
+ onClick: withModifiers(($event) => deleteMobile(slotProps.option.value), ["stop"])
22346
+ }, null, 8, ["onClick"])
22347
+ ])
22348
+ ]),
22349
+ _: 1
22350
+ }, 16, ["modelValue", "options", "placeholder"])
22351
+ ], 64)) : (openBlock(), createBlock(unref(Input), mergeProps({
22352
+ key: 1,
22353
+ modelValue: unref(vModels),
22354
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22355
+ }, _ctx.prop, {
22356
+ placeholder: _ctx.placeholder,
22357
+ onChange: handleChange
22358
+ }), {
22359
+ prepend: withCtx(() => [
22360
+ createVNode(unref(Select), {
22361
+ class: "input-select",
22362
+ modelValue: country.value,
22363
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => country.value = $event),
22364
+ menuClass: "country-select",
22365
+ onValueChange: handleCountryChange
22366
+ }, {
22367
+ default: withCtx(() => [
22368
+ (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item, index2) => {
22369
+ return openBlock(), createBlock(unref(Option), {
22370
+ name: item.label,
22371
+ key: index2,
22372
+ value: item.value
22373
+ }, {
22374
+ default: withCtx(() => [
22375
+ createElementVNode("div", _hoisted_5$3, [
22376
+ createElementVNode("span", null, toDisplayString$1(item.name), 1),
22377
+ createElementVNode("span", null, toDisplayString$1(item.label), 1)
22378
+ ])
22379
+ ]),
22380
+ _: 2
22381
+ }, 1032, ["name", "value"]);
22382
+ }), 128))
22383
+ ]),
22384
+ _: 1
22385
+ }, 8, ["modelValue"])
22386
+ ]),
22387
+ _: 1
22388
+ }, 16, ["modelValue", "placeholder"]))
22389
+ ])
22248
22390
  ]);
22249
22391
  };
22250
22392
  }
@@ -22266,7 +22408,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22266
22408
  errors: { default: {
22267
22409
  msgError: false
22268
22410
  } },
22269
- isForget: { type: Boolean, default: false }
22411
+ isForget: { type: Boolean, default: false },
22412
+ formErrors: { default: {} }
22270
22413
  },
22271
22414
  emits: ["change", "countDown", "complete"],
22272
22415
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -22507,12 +22650,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22507
22650
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
22508
22651
  key: 2,
22509
22652
  country: Data.country,
22653
+ class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
22510
22654
  modelValue: Data[formItem.key],
22511
22655
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
22512
22656
  onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
22513
22657
  onChange: ($event) => handleChange(formItem.key),
22514
22658
  placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label })
22515
- }, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22659
+ }, { ref_for: true }, formItem.props, {
22660
+ editableSelect: formItem.editableSelect
22661
+ }), null, 16, ["country", "class", "modelValue", "onUpdate:modelValue", "onChange", "placeholder", "editableSelect"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22516
22662
  key: formItem.key,
22517
22663
  modelValue: Data[formItem.key],
22518
22664
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -22533,32 +22679,41 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22533
22679
  };
22534
22680
  }
22535
22681
  });
22536
- const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
22537
- const _hoisted_2$5 = { class: "icons" };
22538
- const _hoisted_3$3 = ["src", "alt", "onClick"];
22682
+ const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI0w+pWCdukEjbg3lMwQiIyZhK5Rk0BP3vt8SQkImM2kEt5ydcUySJnZERaJMKsICu5T95Md43bexIhVFMk8GhtMasYqJRYvcknkyQLXYvImHUkRiV70HwYJ+RaMrWTZCP/E8TqaiQsyjl3htBMG4o38YltuYN+z56z+g1J7NouQTB4+ow8utQ9aVvliqWy7Ievpb+1TUbOXZy0D6NV5A0X1+M4Nr6c/8tkXlOjvS29/n0Z7b0z5V5Lju3zHMOj3y7LnFUN9vh7d+y1t720e7vEamvsMRTC/LfXSc3m9eIX/3z2jQTFU8k2679DNiHXk+u3ZgO0QzBW3bYtcv/EKckODpc8flHzLnl46fKU7RjzyZXr8qqSwiQGO86O70vs2mafZ8B9Mvri+KFzXWrcbvuzFyDLDUjMDA7J8PkuSezeJvM3r5MqJXfx/o+lv6UwGaBiQY3nNd2owmn0FYYQTeZ4yBghOYl9wN+gwCh+CCkGBj966/a4VztJeagR9a/ux/B+70MkDbSdmhRxRAGEPGjrsJ0AR8IJAGTca22339e9t0UJuzjlXozJOa5CWLh35yQnCogETds42qVJZauEwMK9u8omBNxraZfK5ctsSXLDS5KKoVYjd5GOi2siQxBEFECCuRYE1KoE4YIDShLAkBg089EXU+QTIHOlcg9yWg4ykmmM659UyC683NHB+zFYw40LJY8JE+ZegAic5OX9e2z5IDIYY9+R78ePYT85ZMVPrfaL3IaM3T3ynScZgIjyI1vlwUrF9YullIQEk5lJzFWvLHUPigW3nAyc6FAXs+zIABBQ33VyyrnG4yHDncPcuKEFRCmUKVmUvGs0h1hrguYPPCrtY4BOeCVgEmuFQwa4rok4jMU5zghEfqrV44fPTei8+7ocQ3Rw7RFN/v0qT8hNsblAOjkM2XRWW85Kzw9idbXjY3DOO4CsJ5SQnO+FIEmv3LBlcEa3a7ScrG5aa79nEnc+1QTfO+alGAIynFLG/SGkT6WlULlL9ce+vx25gMqsGPD+hc1j3k0OuqVyxjXclZ5fJB3RONhxRudw1O+pibhmj6Tf+Ihp+UfiqlHvY5JOo+CFGHW4gAYbOD3aOVC3pHCfx1d6JAhYZzy52mNLD8R4yZQXhjWS7mqOGdLzFqh8mXkNnT5rV5KFsFQdYLT3th2FThBZJiqeBSxK4kFaJWgzmNd0Uh4o8wzYAP2s2/bOtCVnCMZQQeDMASz2MAyJuhiQN5NL7OT/1UTyN8SweB3S+d7PR7YTHONe8L72y49KxG2N0i8lIAbiEhKvHNgjix3hbDSfKEkW8EzWFbfyK+RiMCXmk6vXpRwwnlLrB0rkYsDgLCYXH9hj54ipOaZ20mcIrgy5ONR8ng5NCBEycn5Cnsb0fa09AbySid5898Px/eg7XuMHtGW8PC8oKvIdhWLw09eilEaibYnSRSyybCKL4oG5Uu0RSWyjpC6Vt7yg3ZK/QhOSGxxxbZlYy+CVDJIEzHtTHfXvaCt53cr82sGr1RIUGKdQXysoKBBuXhlzsNdVkog+8gM5BNIpCkbyuSjoYtZALdgdmhAGMbdpojlMH8cUByQ0QhsvwsvxHL8eX5WXq3uuRBkUnG8kr9Bij6YhfSo/bRFAg5FciTpwfYgZqwSP2qVz1eoGKQc8YFfyqZNC6NMeEPnAvBgkMDU4BQChTYJjW7HcgRdTTtNzgrTefNlZLshFyIzXOgTSyYPVb5X+xoHoxuCQgaOx6neuLRgrY2Yb+bNUXiqANE87BiIEvWRVy2ToBWFIXhgdY2J43gOzqDIaXd3kPXGiiDKadQPg/EILqUGt6nrqN/omy2g/93CD8RLRxSLREMGLY8mJptJ0gzGxH8KQL4gplb8mw+rkbyDJmqfeNFcT92OdZMZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
22683
+ const _hoisted_1$8 = { class: "auth-container" };
22684
+ const _hoisted_2$5 = { class: "tips text-[var(--devui-disabled-text)]" };
22685
+ const _hoisted_3$3 = { class: "icons" };
22686
+ const _hoisted_4$3 = ["src", "alt", "onClick"];
22687
+ const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
22688
+ const _hoisted_6$2 = ["src"];
22539
22689
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22540
22690
  __name: "auth",
22541
22691
  props: {
22542
- logos: {}
22692
+ logos: {},
22693
+ recentLoginType: {}
22543
22694
  },
22544
22695
  emits: ["auth"],
22545
22696
  setup(__props, { emit: __emit }) {
22546
22697
  const request = inject("request");
22547
22698
  const API = headRequest(request);
22548
22699
  const { t: $t } = i18n.global;
22700
+ const props = __props;
22549
22701
  const emits = __emit;
22550
22702
  const handleClick = (icon) => {
22551
22703
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
22552
22704
  emits("auth", icon.alt);
22553
22705
  };
22706
+ const checkIsRecentLogin = (loginMethodList) => {
22707
+ return loginMethodList.includes(props.recentLoginType);
22708
+ };
22554
22709
  return (_ctx, _cache) => {
22555
- return openBlock(), createElementBlock(Fragment, null, [
22556
- createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
22557
- createElementVNode("div", _hoisted_2$5, [
22710
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
22711
+ createElementVNode("div", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
22712
+ createElementVNode("div", _hoisted_3$3, [
22558
22713
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
22559
22714
  return openBlock(), createElementBlock("div", {
22560
22715
  key: icon.alt,
22561
- class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
22716
+ class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
22562
22717
  }, [
22563
22718
  createVNode(unref(Tooltip), {
22564
22719
  position: "top",
@@ -22571,14 +22726,21 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22571
22726
  src: icon.src,
22572
22727
  alt: icon.alt,
22573
22728
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
22574
- }, null, 8, _hoisted_3$3)
22729
+ }, null, 8, _hoisted_4$3)
22575
22730
  ]),
22576
22731
  _: 2
22577
- }, 1032, ["content", "disabled"])
22732
+ }, 1032, ["content", "disabled"]),
22733
+ createElementVNode("div", _hoisted_5$2, [
22734
+ checkIsRecentLogin(icon.loginMethodList) ? (openBlock(), createElementBlock("img", {
22735
+ key: 0,
22736
+ src: unref(recentLoginImg),
22737
+ class: "w-[50px] h-[20px]"
22738
+ }, null, 8, _hoisted_6$2)) : createCommentVNode("", true)
22739
+ ])
22578
22740
  ]);
22579
22741
  }), 128))
22580
22742
  ])
22581
- ], 64);
22743
+ ]);
22582
22744
  };
22583
22745
  }
22584
22746
  });
@@ -22646,7 +22808,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22646
22808
  modelValue: unref(vModels),
22647
22809
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
22648
22810
  size: "sm",
22649
- class: "mt-[6px] mb-[12px] agree-module flex items-center"
22811
+ class: "mb-[8px] agree-module flex items-center"
22650
22812
  }, {
22651
22813
  default: withCtx(() => [
22652
22814
  createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
@@ -22668,12 +22830,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22668
22830
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
22669
22831
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
22670
22832
  const _hoisted_3$2 = ["src"];
22671
- const _hoisted_4$2 = { class: "tracking-[.5px]" };
22833
+ const _hoisted_4$2 = {
22834
+ key: 0,
22835
+ class: "tracking-[.5px]"
22836
+ };
22672
22837
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22673
22838
  __name: "title",
22674
22839
  props: {
22675
22840
  title: {},
22676
22841
  showBack: { type: Boolean },
22842
+ showTitle: { type: Boolean },
22677
22843
  icon: {}
22678
22844
  },
22679
22845
  emits: ["back"],
@@ -22692,7 +22858,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22692
22858
  onClick: withModifiers(handleClick, ["stop"])
22693
22859
  }, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
22694
22860
  ]),
22695
- createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
22861
+ _ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
22696
22862
  ]);
22697
22863
  };
22698
22864
  }
@@ -25359,7 +25525,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25359
25525
  }
25360
25526
  });
25361
25527
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25362
- const SlidCaptcha = defineAsyncComponent(() => import("./index-NGWCqH72.js"));
25528
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-ChtMNoT-.js"));
25363
25529
  const useSlidCaptcha = () => {
25364
25530
  const { mount, unMount } = usePopup("slid-captcha-popup");
25365
25531
  const open = (config) => {
@@ -25482,59 +25648,76 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
25482
25648
  stopPoll
25483
25649
  };
25484
25650
  }
25485
- const _hoisted_1$1 = { class: "flex items-center gap-1" };
25651
+ const _hoisted_1$1 = { class: "flex items-center gap-1 h-[48px]" };
25486
25652
  const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
25487
25653
  const _hoisted_3 = {
25488
- key: 0,
25489
- class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
25490
- };
25491
- const _hoisted_4 = {
25492
- key: 0,
25493
- class: "flex items-center justify-center mb-[24px] mt-[-2px]"
25494
- };
25495
- const _hoisted_5 = {
25496
25654
  key: 1,
25497
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25655
+ class: "login-modal-content"
25498
25656
  };
25499
- const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
25500
- const _hoisted_7 = ["src"];
25501
- const _hoisted_8 = {
25657
+ const _hoisted_4 = ["src"];
25658
+ const _hoisted_5 = { class: "text-[var(--theme-text)] mt-[6px]" };
25659
+ const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center" };
25660
+ const _hoisted_7 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
25661
+ const _hoisted_8 = ["src"];
25662
+ const _hoisted_9 = {
25502
25663
  key: 0,
25503
25664
  class: "mask"
25504
25665
  };
25505
- const _hoisted_9 = {
25666
+ const _hoisted_10 = {
25506
25667
  key: 0,
25507
- class: "flex flex-col gap-2 items-center justify-center"
25668
+ class: "flex flex-col gap-2 items-center justify-center gap-[40px]"
25508
25669
  };
25509
- const _hoisted_10 = {
25670
+ const _hoisted_11 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
25671
+ const _hoisted_12 = { class: "text-[#252B3A]" };
25672
+ const _hoisted_13 = {
25510
25673
  key: 1,
25511
25674
  class: "flex flex-col gap-3 items-center justify-center"
25512
25675
  };
25513
- const _hoisted_11 = { class: "text-[var(--color-success)]" };
25514
- const _hoisted_12 = { class: "text-center" };
25515
- const _hoisted_13 = {
25676
+ const _hoisted_14 = { class: "text-[var(--color-success)]" };
25677
+ const _hoisted_15 = { class: "text-center" };
25678
+ const _hoisted_16 = {
25679
+ key: 0,
25680
+ class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
25681
+ };
25682
+ const _hoisted_17 = {
25516
25683
  key: 1,
25517
- class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
25684
+ class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]"
25518
25685
  };
25519
- const _hoisted_14 = {
25686
+ const _hoisted_18 = { class: "font-medium text-[20px]" };
25687
+ const _hoisted_19 = { class: "mt-[16px]" };
25688
+ const _hoisted_20 = {
25520
25689
  key: 0,
25521
- class: "login-modal-info h-[20px]"
25690
+ class: "flex items-baseline justify-between mb-[24px]"
25522
25691
  };
25523
- const _hoisted_15 = { class: "login-modal-info-left" };
25524
- const _hoisted_16 = {
25692
+ const _hoisted_21 = { class: "flex items-center" };
25693
+ const _hoisted_22 = { class: "w-[50px] h-[20px] last-login-img" };
25694
+ const _hoisted_23 = ["src"];
25695
+ const _hoisted_24 = { class: "text-[12px] leading-[32px] text-center" };
25696
+ const _hoisted_25 = {
25525
25697
  key: 1,
25526
- class: "mt-[18px]"
25698
+ class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25527
25699
  };
25528
- const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
25529
- const _hoisted_18 = { class: "mr-[16px]" };
25530
- const _hoisted_19 = {
25700
+ const _hoisted_26 = { key: 2 };
25701
+ const _hoisted_27 = { class: "flex items-center justify-between" };
25702
+ const _hoisted_28 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
25703
+ const _hoisted_29 = { class: "text-[12px] leading-[32px]" };
25704
+ const _hoisted_30 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
25705
+ const _hoisted_31 = {
25531
25706
  key: 0,
25532
- class: "login-modal-footer"
25707
+ class: "login-modal-info h-[20px]"
25533
25708
  };
25534
- const _hoisted_20 = { class: "flex justify-center" };
25535
- const _hoisted_21 = { key: 1 };
25536
- const _hoisted_22 = { class: "line-clamp-2" };
25537
- const _hoisted_23 = { class: "absolute-btn" };
25709
+ const _hoisted_32 = { class: "login-modal-info-left" };
25710
+ const _hoisted_33 = { class: "mt-[18px]" };
25711
+ const _hoisted_34 = { class: "flex justify-center" };
25712
+ const _hoisted_35 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
25713
+ const _hoisted_36 = { class: "harmony-icon" };
25714
+ const _hoisted_37 = { class: "w-[50px] h-[20px] last-login-img" };
25715
+ const _hoisted_38 = ["src"];
25716
+ const _hoisted_39 = { class: "ml-[8px] text-[12px]" };
25717
+ const _hoisted_40 = { class: "login-modal-footer flex items-center justify-center" };
25718
+ const _hoisted_41 = { key: 2 };
25719
+ const _hoisted_42 = { class: "line-clamp-2" };
25720
+ const _hoisted_43 = { class: "absolute-btn" };
25538
25721
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25539
25722
  ...{
25540
25723
  name: "GLoginModal"
@@ -25577,6 +25760,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25577
25760
  const IconB = TransAssetsUrl(IconSource, "logo-back");
25578
25761
  const IconW = TransAssetsUrl(IconSource, "logo-wechat");
25579
25762
  const IconHb = TransAssetsUrl(IconSource, "logo-hb");
25763
+ const logoType = {
25764
+ black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
25765
+ white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
25766
+ };
25580
25767
  const formErrors = reactive({});
25581
25768
  const extraErrors = reactive({
25582
25769
  agreement: "",
@@ -25600,27 +25787,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25600
25787
  {
25601
25788
  src: IconC,
25602
25789
  alt: "csdn",
25603
- describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25790
+ describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25791
+ loginMethodList: ["csdn"]
25604
25792
  },
25605
25793
  {
25606
25794
  src: IconHb,
25607
25795
  alt: "hbuilder",
25608
- describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25796
+ describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25797
+ loginMethodList: ["hbuilder", "hbuilder_plugins"]
25609
25798
  },
25610
25799
  {
25611
25800
  src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
25612
25801
  alt: "github",
25613
- describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25802
+ describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25803
+ loginMethodList: ["github"]
25614
25804
  },
25615
25805
  {
25616
25806
  src: IconH,
25617
25807
  alt: "gitee",
25618
- describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25808
+ describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25809
+ loginMethodList: ["gitee"]
25619
25810
  },
25620
25811
  {
25621
25812
  src: IconW,
25622
25813
  alt: "wechat_open",
25623
- describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
25814
+ describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin"),
25815
+ loginMethodList: ["wechat_open", "wechat_mp"]
25624
25816
  }
25625
25817
  ]);
25626
25818
  const emits = __emit;
@@ -25659,7 +25851,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25659
25851
  {
25660
25852
  type: "input",
25661
25853
  key: "username",
25662
- label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25854
+ label: $t("gitCodeLayout.userSetting.account.phone") + "/" + $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25663
25855
  required: true
25664
25856
  },
25665
25857
  {
@@ -25842,7 +26034,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25842
26034
  const status = ref(false);
25843
26035
  const hwStatus = ref(false);
25844
26036
  const FormRef = shallowRef(null);
25845
- const tabPanel = ref("miniProgram");
26037
+ const tabPanel = ref("verifyCode");
25846
26038
  const formType = ref(props.defaultType);
25847
26039
  const showProtoCheck = ref(false);
25848
26040
  const agreeAndLogin = () => {
@@ -25862,13 +26054,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25862
26054
  dict: RegisterForm.map((item) => {
25863
26055
  return {
25864
26056
  ...item,
25865
- defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
26057
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : "",
26058
+ editableSelect: false
25866
26059
  };
25867
26060
  }),
25868
26061
  showLabel: true,
25869
26062
  layout: "horizontal",
25870
- title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
25871
- showBack: true
26063
+ showTitle: false,
26064
+ showBack: false
25872
26065
  };
25873
26066
  }
25874
26067
  if (formType.value === "forget") {
@@ -25885,12 +26078,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25885
26078
  dict: VerifyForm.map((item) => {
25886
26079
  return {
25887
26080
  ...item,
25888
- defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
26081
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : "",
26082
+ editableSelect: true
25889
26083
  };
25890
26084
  }),
25891
26085
  showLabel: false,
25892
26086
  layout: "vertical",
25893
- title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26087
+ showTitle: false,
25894
26088
  showBack: false
25895
26089
  };
25896
26090
  } else if (tabPanel.value === "password") {
@@ -25898,7 +26092,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25898
26092
  dict: PasswordForm,
25899
26093
  showLabel: false,
25900
26094
  layout: "vertical",
25901
- title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26095
+ showTitle: false,
25902
26096
  showBack: false
25903
26097
  };
25904
26098
  } else {
@@ -25906,7 +26100,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25906
26100
  dict: MiniProgramForm,
25907
26101
  showLabel: false,
25908
26102
  layout: "vertical",
25909
- title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26103
+ showTitle: false,
25910
26104
  showBack: false
25911
26105
  };
25912
26106
  }
@@ -25958,7 +26152,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25958
26152
  };
25959
26153
  const mfaCheck = ref(false);
25960
26154
  const handleMFALogin = (data) => {
25961
- phoneAndPasswordLogin(data, API);
26155
+ phoneAndPasswordLogin(data, API, LoginMethodEnum.PASSWORD);
25962
26156
  };
25963
26157
  const slidCaptcha = useSlidCaptcha();
25964
26158
  const LoginCheck = async () => {
@@ -25990,6 +26184,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25990
26184
  }
25991
26185
  };
25992
26186
  const registerAction = async (res, mobile) => {
26187
+ var _a;
25993
26188
  const data = {
25994
26189
  username: res.username,
25995
26190
  password: res.password,
@@ -26005,7 +26200,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26005
26200
  cacheForm.user_id = user_id;
26006
26201
  cacheForm.mask = mask;
26007
26202
  cacheForm.mobile = res.mobile;
26008
- phoneAndPasswordLogin(result2.data.data, API);
26203
+ const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
26204
+ saveLoginMobile(mobile, country);
26205
+ phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
26009
26206
  } else {
26010
26207
  extraErrors.requestInfo = result2.error.error_message;
26011
26208
  }
@@ -26052,7 +26249,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26052
26249
  mobile,
26053
26250
  code: res.code
26054
26251
  };
26055
- await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
26252
+ await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country }, params, graphValidate, handleRemoteLogin);
26056
26253
  }
26057
26254
  setTimeout(() => {
26058
26255
  loading.value = false;
@@ -26325,10 +26522,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26325
26522
  const pcAuthLogin = (type) => {
26326
26523
  authType.value = type;
26327
26524
  saveOauthType(type);
26328
- if (tabPanel.value === "miniProgram") {
26329
- stopPoll();
26330
- miniProgramStatus.value = "TIMEOUT";
26331
- }
26525
+ stopPoll();
26526
+ miniProgramStatus.value = "TIMEOUT";
26332
26527
  if (localStorage$2.getItem("access_token")) {
26333
26528
  emits("close", true);
26334
26529
  } else {
@@ -26405,7 +26600,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26405
26600
  emits("directClose");
26406
26601
  return;
26407
26602
  }
26603
+ useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
26408
26604
  formType.value = "login";
26605
+ checkMiniProgramStatus();
26409
26606
  };
26410
26607
  const miniProgramStatus = ref("WAITING");
26411
26608
  const miniProgramLoading = ref(false);
@@ -26421,7 +26618,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26421
26618
  };
26422
26619
  const fetchMiniProgramStatus = async () => {
26423
26620
  var _a;
26424
- if (tabPanel.value !== "miniProgram") {
26621
+ if (formType.value !== "login") {
26425
26622
  stopPoll();
26426
26623
  return;
26427
26624
  }
@@ -26464,11 +26661,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26464
26661
  tabPanel.value = val;
26465
26662
  authType.value = null;
26466
26663
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
26467
- if (val !== "miniProgram") {
26468
- stopPoll();
26469
- handleMiniProgramReset();
26470
- return;
26471
- }
26664
+ };
26665
+ const checkMiniProgramStatus = async () => {
26472
26666
  if (!miniProgramInfo.value.scene_id) {
26473
26667
  getMiniProgramQrCode();
26474
26668
  return;
@@ -26484,12 +26678,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26484
26678
  shouldMiniProgramPoll.value = true;
26485
26679
  startPoll();
26486
26680
  };
26681
+ const recentLoginType = ref(null);
26682
+ const getRecentLogin = async () => {
26683
+ recentLoginType.value = localStorage$2.getItem("lastLoginMethod") || null;
26684
+ };
26685
+ const todayTechHistory = ref(null);
26686
+ const getTodayTechHistory = async () => {
26687
+ var _a, _b, _c;
26688
+ const res = await API.getTodayTechHistory();
26689
+ 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]) || {};
26690
+ };
26487
26691
  const resetPwdDirectly = ref(false);
26488
26692
  const resetPwdWhiteList = ["change_password"];
26489
26693
  onMounted(() => {
26490
- if (tabPanel.value === "miniProgram" && formType.value === "login") {
26491
- handleTabPanelChange(tabPanel.value);
26694
+ if (formType.value === "login") {
26695
+ getMiniProgramQrCode();
26492
26696
  }
26697
+ getRecentLogin();
26698
+ getTodayTechHistory();
26493
26699
  if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
26494
26700
  resetPwdDirectly.value = true;
26495
26701
  }
@@ -26498,7 +26704,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26498
26704
  return openBlock(), createElementBlock(Fragment, null, [
26499
26705
  createVNode(unref(Modal), {
26500
26706
  modelValue: unref(vModels),
26501
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26707
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26502
26708
  "show-close": false,
26503
26709
  "lock-scroll": _ctx.lockScroll,
26504
26710
  draggable: _ctx.draggable,
@@ -26508,157 +26714,293 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26508
26714
  class: normalizeClass([
26509
26715
  "login-modal",
26510
26716
  formType.value === "login" ? "login-modal-l" : "login-modal-r",
26717
+ formType.value === "register" ? "login-modal-register" : "",
26511
26718
  mfaCheck.value ? "login-modal-mfa" : ""
26512
26719
  ]),
26513
26720
  onClose: onModalClose
26514
26721
  }, createSlots({
26515
- default: withCtx(() => [
26516
- mfaCheck.value ? (openBlock(), createBlock(MFA, {
26517
- key: 0,
26518
- API: unref(API),
26519
- onBack: handleBack,
26520
- onSuccess: handleMFALogin,
26521
- mask: cacheForm.mask
26522
- }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26523
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
26524
- createElementVNode("div", {
26525
- class: normalizeClass([
26526
- "login-modal-tab mr-[18px]",
26527
- tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26528
- ]),
26529
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
26530
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
26531
- createElementVNode("div", {
26532
- class: normalizeClass([
26533
- "login-modal-tab mr-[18px] ml-[18px]",
26534
- tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26535
- ]),
26536
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26537
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
26538
- createElementVNode("div", {
26539
- class: normalizeClass([
26540
- "login-modal-tab ml-[18px]",
26541
- tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26542
- ]),
26543
- onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26544
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26545
- ])) : createCommentVNode("", true),
26546
- 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),
26547
- formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
26548
- key: 2,
26549
- loading: miniProgramLoading.value,
26550
- empty: false,
26551
- card: false,
26552
- class: "mini-program-qrcode",
26553
- border: false,
26554
- animation: true
26555
- }, {
26556
- default: withCtx(() => [
26557
- createElementVNode("div", _hoisted_6, [
26722
+ default: withCtx(() => {
26723
+ var _a, _b;
26724
+ return [
26725
+ mfaCheck.value ? (openBlock(), createBlock(MFA, {
26726
+ key: 0,
26727
+ API: unref(API),
26728
+ onBack: handleBack,
26729
+ onSuccess: handleMFALogin,
26730
+ mask: cacheForm.mask
26731
+ }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
26732
+ formType.value === "login" || formType.value === "register" ? (openBlock(), createElementBlock("div", {
26733
+ key: 0,
26734
+ class: normalizeClass(["w-[470px] login-modal-content-left", formType.value === "register" ? "login-modal-content-left-register" : "login-modal-content-left-login"])
26735
+ }, [
26736
+ createElementVNode("div", {
26737
+ class: normalizeClass(formType.value === "register" ? "login-modal-content-left-register-logo" : "flex flex-col items-center")
26738
+ }, [
26558
26739
  createElementVNode("img", {
26559
- src: miniProgramInfo.value.qrcode,
26560
- alt: "小程序二维码",
26561
- class: "w-[158px] h-[158px]"
26562
- }, null, 8, _hoisted_7),
26563
- miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26564
- miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26565
- createVNode(GIcon, {
26566
- name: "gt-line-Refresh",
26567
- size: "18"
26568
- }),
26569
- createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26570
- createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26571
- ])) : createCommentVNode("", true),
26572
- ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
26573
- createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26574
- createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26575
- ])) : createCommentVNode("", true)
26576
- ])) : createCommentVNode("", true),
26577
- !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26578
- key: 2,
26579
- onClick: getMiniProgramQrCode,
26580
- class: "mt-2"
26581
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26582
- ])
26583
- ]),
26584
- _: 1
26585
- }, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
26586
- key: formType.value,
26587
- DataList: FormConfig.value.dict,
26588
- "show-label": FormConfig.value.showLabel,
26589
- ref_key: "FormRef",
26590
- ref: FormRef,
26591
- onCountDown: handleCountDown,
26592
- onChange: handleFormChange,
26593
- onComplete: handleFormInput,
26594
- layout: FormConfig.value.layout,
26595
- size: "lg",
26596
- "label-size": "md",
26597
- "message-type": "none",
26598
- "hide-required-mark": "",
26599
- onKeypress: withKeys(handleConfirm, ["enter"]),
26600
- class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26601
- errors: { msgError: msgError.value },
26602
- "is-forget": formType.value === "forget"
26603
- }, {
26604
- submit: withCtx(() => [
26605
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
26606
- createElementVNode("div", _hoisted_15, [
26607
- createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26608
- errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26609
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26610
- createElementVNode("span", {
26611
- onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
26612
- class: "login-modal-info-left__link"
26613
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26614
- ], 64)) : createCommentVNode("", true)
26615
- ]),
26616
- withDirectives(createElementVNode("div", {
26617
- class: "login-modal-info-right",
26618
- onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26619
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26620
- [vShow, tabPanel.value === "password" && formType.value === "login"]
26621
- ])
26622
- ])) : createCommentVNode("", true),
26623
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26624
- createVNode(unref(Button), {
26625
- color: "primary",
26626
- variant: "solid",
26627
- size: "lg",
26628
- onClick: handleConfirm,
26629
- loading: loading.value,
26630
- disabled: disabled.value,
26631
- class: "login-modal-button"
26740
+ src: logoType[unref(currentTheme)],
26741
+ alt: "gitcode-logo",
26742
+ class: "w-[130px] h-[30px]"
26743
+ }, null, 8, _hoisted_4),
26744
+ createElementVNode("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
26745
+ ], 2),
26746
+ createElementVNode("div", {
26747
+ class: normalizeClass(["login-modal-left-bg", "login-modal-left-bg-" + unref(currentTheme)])
26748
+ }, [
26749
+ formType.value === "login" ? (openBlock(), createBlock(DataPanel, {
26750
+ key: 0,
26751
+ loading: miniProgramLoading.value,
26752
+ empty: false,
26753
+ card: false,
26754
+ class: "mini-program-qrcode",
26755
+ border: false,
26756
+ animation: true
26632
26757
  }, {
26633
26758
  default: withCtx(() => [
26634
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26759
+ createElementVNode("div", _hoisted_6, [
26760
+ createElementVNode("div", _hoisted_7, [
26761
+ createElementVNode("img", {
26762
+ src: miniProgramInfo.value.qrcode,
26763
+ alt: "小程序二维码",
26764
+ class: "w-[180px] h-[180px]"
26765
+ }, null, 8, _hoisted_8),
26766
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26767
+ miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_10, [
26768
+ createVNode(GIcon, {
26769
+ name: "gt-line-update",
26770
+ size: "18",
26771
+ color: "#3B3E55"
26772
+ }),
26773
+ createElementVNode("div", _hoisted_11, [
26774
+ createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26775
+ createElementVNode("button", {
26776
+ class: "text-[var(--theme-link)]",
26777
+ onClick: getMiniProgramQrCode
26778
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26779
+ ])
26780
+ ])) : createCommentVNode("", true),
26781
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_13, [
26782
+ createElementVNode("div", _hoisted_14, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26783
+ createElementVNode("div", _hoisted_15, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26784
+ ])) : createCommentVNode("", true)
26785
+ ])) : createCommentVNode("", true)
26786
+ ]),
26787
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_16, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26788
+ key: 1,
26789
+ onClick: getMiniProgramQrCode,
26790
+ class: "mt-2"
26791
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26792
+ ])
26635
26793
  ]),
26636
26794
  _: 1
26637
- }, 8, ["loading", "disabled"]),
26638
- createElementVNode("div", _hoisted_17, [
26639
- _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26640
- key: 0,
26641
- class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
26642
- onClick: withModifiers(handleRegisterHarmony, ["stop"])
26795
+ }, 8, ["loading"])) : formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_17, [
26796
+ createElementVNode("div", _hoisted_18, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
26797
+ createElementVNode("div", _hoisted_19, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
26798
+ ])) : createCommentVNode("", true)
26799
+ ], 2)
26800
+ ], 2)) : createCommentVNode("", true),
26801
+ createElementVNode("div", {
26802
+ class: normalizeClass(formType.value === "forget" ? "w-[512px]" : "w-[370px]")
26803
+ }, [
26804
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_20, [
26805
+ createElementVNode("div", _hoisted_21, [
26806
+ createElementVNode("div", {
26807
+ class: normalizeClass([
26808
+ "login-modal-tab",
26809
+ tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26810
+ ]),
26811
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26643
26812
  }, [
26644
- _cache[16] || (_cache[16] = createElementVNode("img", {
26645
- src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26646
- alt: "",
26647
- class: "mr-[16px] inline-block"
26648
- }, null, -1)),
26649
- createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26650
- ])) : createCommentVNode("", true),
26813
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")) + " ", 1),
26814
+ createElementVNode("div", _hoisted_22, [
26815
+ recentLoginType.value === unref(LoginMethodEnum).PHONE ? (openBlock(), createElementBlock("img", {
26816
+ key: 0,
26817
+ src: unref(recentLoginImg),
26818
+ class: "w-[50px] h-[20px]"
26819
+ }, null, 8, _hoisted_23)) : createCommentVNode("", true)
26820
+ ])
26821
+ ], 2),
26651
26822
  createElementVNode("div", {
26652
- class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
26653
- onClick: withModifiers(clickRegister, ["stop"])
26823
+ class: normalizeClass([
26824
+ "login-modal-tab ml-[24px]",
26825
+ tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26826
+ ]),
26827
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26828
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26829
+ ]),
26830
+ createElementVNode("div", _hoisted_24, [
26831
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
26832
+ createElementVNode("span", {
26833
+ onClick: clickRegister,
26834
+ class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26654
26835
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
26655
26836
  ])
26656
- ])) : createCommentVNode("", true)
26657
- ]),
26658
- _: 1
26659
- }, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
26660
- ], 64))
26661
- ]),
26837
+ ])) : createCommentVNode("", true),
26838
+ formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_25, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
26839
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_26, [
26840
+ createElementVNode("div", _hoisted_27, [
26841
+ createElementVNode("div", _hoisted_28, "🎉 " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.title.register")), 1),
26842
+ createElementVNode("div", _hoisted_29, [
26843
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.haveAccount")) + " ", 1),
26844
+ createElementVNode("span", {
26845
+ onClick: handleTitleBackClick,
26846
+ class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26847
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26848
+ ])
26849
+ ]),
26850
+ createElementVNode("div", _hoisted_30, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
26851
+ ])) : createCommentVNode("", true),
26852
+ (openBlock(), createBlock(unref(_sfc_main$a), {
26853
+ key: formType.value,
26854
+ DataList: FormConfig.value.dict,
26855
+ "show-label": FormConfig.value.showLabel,
26856
+ ref_key: "FormRef",
26857
+ ref: FormRef,
26858
+ onCountDown: handleCountDown,
26859
+ onChange: handleFormChange,
26860
+ onComplete: handleFormInput,
26861
+ layout: FormConfig.value.layout,
26862
+ size: "lg",
26863
+ "label-size": "md",
26864
+ "message-type": "none",
26865
+ "hide-required-mark": "",
26866
+ onKeypress: withKeys(handleConfirm, ["enter"]),
26867
+ class: normalizeClass(formType.value === "register" ? "mt-[16px] login-form-register-cell" : "login-form-common-cell"),
26868
+ errors: { msgError: msgError.value },
26869
+ formErrors,
26870
+ "is-forget": formType.value === "forget"
26871
+ }, {
26872
+ submit: withCtx(() => {
26873
+ var _a2;
26874
+ return [
26875
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_31, [
26876
+ createElementVNode("div", _hoisted_32, [
26877
+ createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26878
+ errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26879
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26880
+ createElementVNode("span", {
26881
+ onClick: _cache[2] || (_cache[2] = ($event) => handleTabPanelChange("verifyCode")),
26882
+ class: "login-modal-info-left__link"
26883
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26884
+ ], 64)) : createCommentVNode("", true)
26885
+ ]),
26886
+ withDirectives(createElementVNode("div", {
26887
+ class: "login-modal-info-right",
26888
+ onClick: _cache[3] || (_cache[3] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26889
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26890
+ [vShow, tabPanel.value === "password" && formType.value === "login"]
26891
+ ])
26892
+ ])) : createCommentVNode("", true),
26893
+ formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26894
+ createElementVNode("div", _hoisted_33, [
26895
+ createVNode(unref(Button), {
26896
+ color: "primary",
26897
+ variant: "solid",
26898
+ size: "lg",
26899
+ onClick: handleConfirm,
26900
+ loading: loading.value,
26901
+ disabled: disabled.value,
26902
+ class: "login-modal-button"
26903
+ }, {
26904
+ default: withCtx(() => [
26905
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26906
+ ]),
26907
+ _: 1
26908
+ }, 8, ["loading", "disabled"]),
26909
+ createElementVNode("div", {
26910
+ class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
26911
+ }, [
26912
+ createElementVNode("div", _hoisted_34, [
26913
+ createVNode(_sfc_main$8, {
26914
+ modelValue: status.value,
26915
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => status.value = $event),
26916
+ onDeclares: _cache[5] || (_cache[5] = (typ) => handleDisplay(typ))
26917
+ }, null, 8, ["modelValue"])
26918
+ ])
26919
+ ], 2),
26920
+ createElementVNode("div", _hoisted_35, [
26921
+ _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26922
+ key: 0,
26923
+ class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
26924
+ onClick: withModifiers(handleRegisterHarmony, ["stop"])
26925
+ }, [
26926
+ createElementVNode("div", _hoisted_36, [
26927
+ _cache[15] || (_cache[15] = createElementVNode("img", {
26928
+ src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26929
+ alt: "",
26930
+ class: "w-[32px] h-[32px] inline-block harmony-icon-img"
26931
+ }, null, -1)),
26932
+ createElementVNode("div", _hoisted_37, [
26933
+ recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
26934
+ key: 0,
26935
+ src: unref(recentLoginImg),
26936
+ class: "w-[50px] h-[20px]"
26937
+ }, null, 8, _hoisted_38)) : createCommentVNode("", true)
26938
+ ])
26939
+ ]),
26940
+ createElementVNode("span", _hoisted_39, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26941
+ ])) : createCommentVNode("", true)
26942
+ ])
26943
+ ]),
26944
+ createElementVNode("div", _hoisted_40, [
26945
+ createVNode(GAuth, {
26946
+ logos,
26947
+ onAuth: pcAuthLogin,
26948
+ recentLoginType: recentLoginType.value,
26949
+ class: "flex-1"
26950
+ }, null, 8, ["logos", "recentLoginType"])
26951
+ ])
26952
+ ], 64)) : createCommentVNode("", true),
26953
+ formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_41, [
26954
+ createElementVNode("div", {
26955
+ class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" ? "mt-[-8px]" : ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""])
26956
+ }, [
26957
+ createElementVNode("span", _hoisted_42, toDisplayString$1(errorMsg.value), 1)
26958
+ ], 2),
26959
+ createElementVNode("div", {
26960
+ class: normalizeClass(["register-agree mt-[16px]", [AgreementWarn.value ? "shaking-box" : ""]])
26961
+ }, [
26962
+ createVNode(_sfc_main$7, {
26963
+ modelValue: hwStatus.value,
26964
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => hwStatus.value = $event),
26965
+ onDeclares: _cache[7] || (_cache[7] = (typ) => handleDisplay(typ, "huawei")),
26966
+ "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26967
+ "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26968
+ onClick: _cache[8] || (_cache[8] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26969
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26970
+ createVNode(_sfc_main$7, {
26971
+ modelValue: status.value,
26972
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
26973
+ onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
26974
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26975
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26976
+ onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26977
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26978
+ ], 2),
26979
+ createElementVNode("div", _hoisted_43, [
26980
+ createVNode(unref(Button), {
26981
+ color: "primary",
26982
+ variant: "solid",
26983
+ size: "lg",
26984
+ onClick: handleConfirm,
26985
+ disabled: disabled.value,
26986
+ loading: loading.value,
26987
+ class: "w-[100%] mb-[14px] mt-[10px]"
26988
+ }, {
26989
+ default: withCtx(() => [
26990
+ createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26991
+ ]),
26992
+ _: 1
26993
+ }, 8, ["disabled", "loading"])
26994
+ ])
26995
+ ])) : createCommentVNode("", true)
26996
+ ];
26997
+ }),
26998
+ _: 1
26999
+ }, 8, ["DataList", "show-label", "layout", "class", "errors", "formErrors", "is-forget"]))
27000
+ ], 2)
27001
+ ]))
27002
+ ];
27003
+ }),
26662
27004
  _: 2
26663
27005
  }, [
26664
27006
  !mfaCheck.value ? {
@@ -26668,10 +27010,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26668
27010
  createVNode(GTitle, {
26669
27011
  icon: unref(IconB),
26670
27012
  title: FormConfig.value.title,
27013
+ "show-title": FormConfig.value.showTitle,
26671
27014
  onBack: handleTitleBackClick,
26672
27015
  "show-back": FormConfig.value.showBack,
26673
27016
  class: "login-modal-title flex-1"
26674
- }, null, 8, ["icon", "title", "show-back"]),
27017
+ }, null, 8, ["icon", "title", "show-title", "show-back"]),
26675
27018
  createElementVNode("div", _hoisted_2, [
26676
27019
  _ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
26677
27020
  key: 0,
@@ -26680,86 +27023,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26680
27023
  size: "18"
26681
27024
  })) : createCommentVNode("", true)
26682
27025
  ])
26683
- ]),
26684
- formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
27026
+ ])
26685
27027
  ]),
26686
27028
  key: "0"
26687
- } : void 0,
26688
- !mfaCheck.value ? {
26689
- name: "footer",
26690
- fn: withCtx(() => {
26691
- var _a;
26692
- return [
26693
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26694
- createVNode(GAuth, {
26695
- logos,
26696
- onAuth: pcAuthLogin
26697
- }, null, 8, ["logos"]),
26698
- createElementVNode("div", {
26699
- class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
26700
- }, [
26701
- createElementVNode("div", _hoisted_20, [
26702
- createVNode(_sfc_main$8, {
26703
- modelValue: status.value,
26704
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
26705
- onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
26706
- }, null, 8, ["modelValue"])
26707
- ])
26708
- ], 2)
26709
- ])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
26710
- createElementVNode("div", {
26711
- 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" : ""])
26712
- }, [
26713
- createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
26714
- ], 2),
26715
- formType.value === "register" ? (openBlock(), createElementBlock("div", {
26716
- key: 0,
26717
- class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26718
- }, [
26719
- createVNode(_sfc_main$7, {
26720
- modelValue: hwStatus.value,
26721
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
26722
- onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
26723
- "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26724
- "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26725
- onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26726
- }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26727
- createVNode(_sfc_main$7, {
26728
- modelValue: status.value,
26729
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
26730
- onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
26731
- "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26732
- "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26733
- onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26734
- }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26735
- ], 2)) : createCommentVNode("", true),
26736
- createElementVNode("div", _hoisted_23, [
26737
- createVNode(unref(Button), {
26738
- color: "primary",
26739
- variant: "solid",
26740
- size: "lg",
26741
- onClick: handleConfirm,
26742
- disabled: disabled.value,
26743
- loading: loading.value,
26744
- class: "w-[100%]"
26745
- }, {
26746
- default: withCtx(() => [
26747
- createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26748
- ]),
26749
- _: 1
26750
- }, 8, ["disabled", "loading"])
26751
- ])
26752
- ])) : createCommentVNode("", true)
26753
- ];
26754
- }),
26755
- key: "1"
26756
27029
  } : void 0
26757
27030
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
26758
27031
  createVNode(_sfc_main$5, {
26759
27032
  visible: showProtoCheck.value,
26760
- "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
27033
+ "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
26761
27034
  onConfirm: agreeAndLogin,
26762
- onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
27035
+ onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
26763
27036
  }, null, 8, ["visible"])
26764
27037
  ], 64);
26765
27038
  };