vue-layout-gitcode 1.3.42 → 1.3.43

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,12 +10921,12 @@ 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" };
10928
+ const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
10929
+ const _hoisted_5$c = { class: "home-nav-text" };
10919
10930
  const _hoisted_6$7 = {
10920
10931
  key: 1,
10921
10932
  class: "tools-list"
@@ -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,7 +11156,7 @@ 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
  ]),
@@ -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"
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"],
@@ -14685,7 +14703,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14685
14703
  position: ["top-start"]
14686
14704
  }, {
14687
14705
  menu: withCtx(() => [
14688
- createElementVNode("ul", _hoisted_3$g, [
14706
+ createElementVNode("ul", _hoisted_3$h, [
14689
14707
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
14690
14708
  return openBlock(), createBlock(GLink, {
14691
14709
  key: index22,
@@ -14742,14 +14760,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14742
14760
  href: activeMenu.value.url
14743
14761
  }, {
14744
14762
  default: withCtx(() => [
14745
- createElementVNode("span", _hoisted_4$d, [
14763
+ createElementVNode("span", _hoisted_4$f, [
14746
14764
  createVNode(GIcon, {
14747
14765
  size: "24px",
14748
14766
  name: activeMenu.value.icon
14749
14767
  }, null, 8, ["name"]),
14750
14768
  createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
14751
14769
  ]),
14752
- createElementVNode("div", _hoisted_5$9, [
14770
+ createElementVNode("div", _hoisted_5$b, [
14753
14771
  createVNode(GIcon, {
14754
14772
  size: "18px",
14755
14773
  name: "gt-line-down",
@@ -16583,9 +16601,9 @@ const _hoisted_2$i = {
16583
16601
  key: 1,
16584
16602
  class: "org-layout-toolbar"
16585
16603
  };
16586
- const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16587
- const _hoisted_4$c = { class: "text-xs" };
16588
- const _hoisted_5$8 = { class: "flex items-center w-full" };
16604
+ const _hoisted_3$g = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16605
+ const _hoisted_4$e = { class: "text-xs" };
16606
+ const _hoisted_5$a = { class: "flex items-center w-full" };
16589
16607
  const _hoisted_6$6 = {
16590
16608
  key: 1,
16591
16609
  class: "flex items-center min-w-[30px]"
@@ -16766,7 +16784,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16766
16784
  height: 28,
16767
16785
  is_round: false
16768
16786
  }, null, 8, ["src", "name"]),
16769
- createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16787
+ createElementVNode("div", _hoisted_3$g, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16770
16788
  ];
16771
16789
  }),
16772
16790
  _: 1
@@ -16781,7 +16799,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16781
16799
  default: withCtx(() => {
16782
16800
  var _a2;
16783
16801
  return [
16784
- createElementVNode("span", _hoisted_4$c, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
16802
+ 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)
16785
16803
  ];
16786
16804
  }),
16787
16805
  _: 1
@@ -16803,7 +16821,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16803
16821
  default: withCtx(() => {
16804
16822
  var _a2, _b2, _c, _d, _e, _f, _g;
16805
16823
  return [
16806
- createElementVNode("h2", _hoisted_5$8, [
16824
+ createElementVNode("h2", _hoisted_5$a, [
16807
16825
  createVNode(GLink, {
16808
16826
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
16809
16827
  class: "pr-[12px]"
@@ -17020,6 +17038,21 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
17020
17038
  AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
17021
17039
  return AuthTypeEnum2;
17022
17040
  })(AuthTypeEnum || {});
17041
+ var LoginMethodEnum = /* @__PURE__ */ ((LoginMethodEnum2) => {
17042
+ LoginMethodEnum2["PHONE"] = "phone";
17043
+ LoginMethodEnum2["PASSWORD"] = "password";
17044
+ LoginMethodEnum2["MINI_PROGRAM"] = "miniProgram";
17045
+ LoginMethodEnum2["HARMONY"] = "harmony";
17046
+ LoginMethodEnum2["CSDN"] = "csdn";
17047
+ LoginMethodEnum2["ATOMGIT"] = "atomgit";
17048
+ LoginMethodEnum2["GITEE"] = "gitee";
17049
+ LoginMethodEnum2["GITHUB"] = "github";
17050
+ LoginMethodEnum2["WECHAT_OPEN"] = "wechat_open";
17051
+ LoginMethodEnum2["WECHAT_MP"] = "wechat_mp";
17052
+ LoginMethodEnum2["H_BUILDER"] = "hbuilder";
17053
+ LoginMethodEnum2["H_BUILDER_PLUGIN"] = "hbuilder_plugins";
17054
+ return LoginMethodEnum2;
17055
+ })(LoginMethodEnum || {});
17023
17056
  var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
17024
17057
  AuthResType2["SUCCESS"] = "success";
17025
17058
  AuthResType2["FAIL"] = "fail";
@@ -17504,9 +17537,9 @@ const _hoisted_1$n = {
17504
17537
  class: "user-level-avatar-badge"
17505
17538
  };
17506
17539
  const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
17507
- const _hoisted_3$e = ["src"];
17508
- const _hoisted_4$b = { class: "level-name" };
17509
- const _hoisted_5$7 = { class: "level-icon" };
17540
+ const _hoisted_3$f = ["src"];
17541
+ const _hoisted_4$d = { class: "level-name" };
17542
+ const _hoisted_5$9 = { class: "level-icon" };
17510
17543
  const _hoisted_6$5 = ["src"];
17511
17544
  const _hoisted_7$4 = { class: "custom-btn" };
17512
17545
  const _hoisted_8$4 = { class: "flex items-center justify-center" };
@@ -17563,10 +17596,10 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17563
17596
  class: "level-avatar",
17564
17597
  src: levelInfo.value.avatar,
17565
17598
  alt: ""
17566
- }, null, 8, _hoisted_3$e),
17567
- createElementVNode("div", _hoisted_4$b, [
17599
+ }, null, 8, _hoisted_3$f),
17600
+ createElementVNode("div", _hoisted_4$d, [
17568
17601
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
17569
- createElementVNode("div", _hoisted_5$7, [
17602
+ createElementVNode("div", _hoisted_5$9, [
17570
17603
  createElementVNode("img", {
17571
17604
  src: levelInfo.value.level,
17572
17605
  alt: ""
@@ -17584,8 +17617,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17584
17617
  const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17585
17618
  const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
17586
17619
  const _hoisted_2$g = { class: "max-w-[200px]" };
17587
- const _hoisted_3$d = ["title"];
17588
- const _hoisted_4$a = ["title"];
17620
+ const _hoisted_3$e = ["title"];
17621
+ const _hoisted_4$c = ["title"];
17589
17622
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
17590
17623
  __name: "UserAvatarMenu",
17591
17624
  props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
@@ -17753,11 +17786,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17753
17786
  createElementVNode("p", {
17754
17787
  class: "g-user-drawer-info-list-name ellipsis",
17755
17788
  title: __props.accountInfo.nickname
17756
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
17789
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
17757
17790
  createElementVNode("p", {
17758
17791
  class: "g-user-drawer-info-list-id ellipsis",
17759
17792
  title: __props.accountInfo.username
17760
- }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
17793
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$c)
17761
17794
  ]),
17762
17795
  createVNode(GIcon, {
17763
17796
  name: "gt-line-right",
@@ -17803,12 +17836,12 @@ const _hoisted_2$f = {
17803
17836
  key: 0,
17804
17837
  class: "g-user-avatar__badge"
17805
17838
  };
17806
- const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
17807
- const _hoisted_4$9 = {
17839
+ const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
17840
+ const _hoisted_4$b = {
17808
17841
  key: 0,
17809
17842
  class: "g-user-avatar__badge"
17810
17843
  };
17811
- const _hoisted_5$6 = { class: "g-user-drawer" };
17844
+ const _hoisted_5$8 = { class: "g-user-drawer" };
17812
17845
  const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
17813
17846
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
17814
17847
  ...{
@@ -17914,7 +17947,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17914
17947
  onToggle: handleToggle
17915
17948
  }, {
17916
17949
  menu: withCtx(() => [
17917
- createElementVNode("div", _hoisted_5$6, [
17950
+ createElementVNode("div", _hoisted_5$8, [
17918
17951
  createVNode(UserAvatarMenu, {
17919
17952
  independence: __props.independence,
17920
17953
  loginOutFinish: __props.loginOutFinish,
@@ -17926,12 +17959,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17926
17959
  ])
17927
17960
  ]),
17928
17961
  default: withCtx(() => [
17929
- createElementVNode("div", _hoisted_3$c, [
17962
+ createElementVNode("div", _hoisted_3$d, [
17930
17963
  createVNode(_sfc_main$z, {
17931
17964
  name: accountInfo.value.nickname,
17932
17965
  src: accountInfo.value.avatar
17933
17966
  }, null, 8, ["name", "src"]),
17934
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[4] || (_cache[4] = [
17967
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, _cache[4] || (_cache[4] = [
17935
17968
  createElementVNode("div", null, null, -1)
17936
17969
  ]))) : createCommentVNode("", true)
17937
17970
  ])
@@ -18061,9 +18094,9 @@ const setlocalVistHistory = (data, localType) => {
18061
18094
  };
18062
18095
  const _hoisted_1$k = { class: "g-header-search-prefix" };
18063
18096
  const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
18064
- const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
18065
- const _hoisted_4$8 = { class: "history-list" };
18066
- const _hoisted_5$5 = {
18097
+ const _hoisted_3$c = { class: "g-header-search-suffix-suffixIcon" };
18098
+ const _hoisted_4$a = { class: "history-list" };
18099
+ const _hoisted_5$7 = {
18067
18100
  key: 1,
18068
18101
  class: "aireposearch flex-1"
18069
18102
  };
@@ -18078,13 +18111,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18078
18111
  var _a;
18079
18112
  const layoutConfig2 = useLayoutConfig();
18080
18113
  const { t: $t } = i18n.global;
18081
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-3F_KFdm6.js"));
18082
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-I_wjWohw.js"));
18083
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-NYQoyFIy.js"));
18084
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-CP6fyFVM.js"));
18085
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-DsVkc0NK.js"));
18086
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-jvjk6q_v.js"));
18087
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-Dai2NMWV.js"));
18114
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-D25Oj55X.js"));
18115
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-CpHemB3q.js"));
18116
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-Cm-kH8Pu.js"));
18117
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-Iyll20xo.js"));
18118
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-B0J_I494.js"));
18119
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-Htl6ZB9E.js"));
18120
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-C6mWZ35K.js"));
18088
18121
  const props = __props;
18089
18122
  const repoInfo = inject("repoInfo");
18090
18123
  const orgInfo = inject("orgInfo");
@@ -18537,7 +18570,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18537
18570
  }, {
18538
18571
  menu: withCtx(() => [
18539
18572
  createElementVNode("div", null, [
18540
- withDirectives(createElementVNode("div", _hoisted_4$8, [
18573
+ withDirectives(createElementVNode("div", _hoisted_4$a, [
18541
18574
  createVNode(unref(SearchScopeList), {
18542
18575
  searchScopeList: searchScopeList.value,
18543
18576
  searchStr: searchStr.value,
@@ -18655,7 +18688,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18655
18688
  withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
18656
18689
  [vShow, searchStr.value]
18657
18690
  ]),
18658
- createElementVNode("div", _hoisted_3$b, [
18691
+ createElementVNode("div", _hoisted_3$c, [
18659
18692
  createVNode(GIcon, {
18660
18693
  name: "search",
18661
18694
  class: "g-header-search-icon",
@@ -18673,7 +18706,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18673
18706
  _: 1
18674
18707
  }, 8, ["overlay-class", "visible"])
18675
18708
  ], 2)) : createCommentVNode("", true),
18676
- _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
18709
+ _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
18677
18710
  createVNode(unref(Input), {
18678
18711
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
18679
18712
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -18694,7 +18727,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18694
18727
  }
18695
18728
  });
18696
18729
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18697
- const NoticeModal = defineAsyncComponent(() => import("./notice-BXNd4tKQ.js"));
18730
+ const NoticeModal = defineAsyncComponent(() => import("./notice-_1JWF_fz.js"));
18698
18731
  function clearNotice() {
18699
18732
  if (localStorage$2.getItem("validator_email")) {
18700
18733
  localStorage$2.removeItem("validator_email");
@@ -18726,8 +18759,8 @@ const _hoisted_1$j = {
18726
18759
  class: "g-header-body"
18727
18760
  };
18728
18761
  const _hoisted_2$d = { class: "g-header-body-left h-full" };
18729
- const _hoisted_3$a = { class: "g-header-body-right h-full" };
18730
- const _hoisted_4$7 = { key: 2 };
18762
+ const _hoisted_3$b = { class: "g-header-body-right h-full" };
18763
+ const _hoisted_4$9 = { key: 2 };
18731
18764
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
18732
18765
  ...{
18733
18766
  name: "header"
@@ -19145,12 +19178,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19145
19178
  createElementVNode("div", _hoisted_2$d, [
19146
19179
  renderSlot(_ctx.$slots, "info", {}, void 0, true)
19147
19180
  ]),
19148
- createElementVNode("div", _hoisted_3$a, [
19181
+ createElementVNode("div", _hoisted_3$b, [
19149
19182
  renderSlot(_ctx.$slots, "menu", {}, void 0, true)
19150
19183
  ])
19151
19184
  ], true)
19152
19185
  ])) : createCommentVNode("", true),
19153
- _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
19186
+ _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
19154
19187
  renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
19155
19188
  ])) : createCommentVNode("", true)
19156
19189
  ], 2)
@@ -19180,7 +19213,7 @@ const createSetting = () => {
19180
19213
  };
19181
19214
  const _hoisted_1$i = { class: "tools-item-wrapper" };
19182
19215
  const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
19183
- const _hoisted_3$9 = ["onClick", "title"];
19216
+ const _hoisted_3$a = ["onClick", "title"];
19184
19217
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19185
19218
  __name: "Lang",
19186
19219
  setup(__props) {
@@ -19215,7 +19248,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19215
19248
  color: "var(--theme-icon-fill-weak)",
19216
19249
  class: "checkbox-item-icon"
19217
19250
  }, null, 8, ["name"])
19218
- ], 16, _hoisted_3$9);
19251
+ ], 16, _hoisted_3$a);
19219
19252
  }), 128))
19220
19253
  ])
19221
19254
  ]);
@@ -19224,7 +19257,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19224
19257
  });
19225
19258
  const _hoisted_1$h = { class: "tools-item-wrapper" };
19226
19259
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
19227
- const _hoisted_3$8 = ["onClick", "title"];
19260
+ const _hoisted_3$9 = ["onClick", "title"];
19228
19261
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
19229
19262
  __name: "Theme",
19230
19263
  setup(__props) {
@@ -19268,7 +19301,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19268
19301
  color: "var(--theme-icon-fill-weak)",
19269
19302
  class: "checkbox-item-icon"
19270
19303
  }, null, 8, ["name"])
19271
- ], 16, _hoisted_3$8);
19304
+ ], 16, _hoisted_3$9);
19272
19305
  }), 128))
19273
19306
  ])
19274
19307
  ]);
@@ -19378,12 +19411,12 @@ const _hoisted_2$a = {
19378
19411
  class: "devui-submenu-title layer_2",
19379
19412
  style: { "padding": "0px 24px" }
19380
19413
  };
19381
- const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19382
- const _hoisted_4$6 = {
19414
+ const _hoisted_3$8 = { class: "devui-submenu-title-content cursor-auto" };
19415
+ const _hoisted_4$8 = {
19383
19416
  class: "devui-submenu-title layer_2",
19384
19417
  style: { "padding": "0px 24px" }
19385
19418
  };
19386
- const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
19419
+ const _hoisted_5$6 = { class: "devui-submenu-title-content cursor-auto" };
19387
19420
  const _hoisted_6$3 = { key: 0 };
19388
19421
  const _hoisted_7$3 = { class: "project-label" };
19389
19422
  const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
@@ -19582,7 +19615,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19582
19615
  _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19583
19616
  createElementVNode("div", _hoisted_2$a, [
19584
19617
  _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19585
- createElementVNode("span", _hoisted_3$7, [
19618
+ createElementVNode("span", _hoisted_3$8, [
19586
19619
  createElementVNode("div", {
19587
19620
  class: "fast-click-button",
19588
19621
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
@@ -19641,9 +19674,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19641
19674
  ], 2)
19642
19675
  ], 64)) : createCommentVNode("", true),
19643
19676
  _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19644
- createElementVNode("div", _hoisted_4$6, [
19677
+ createElementVNode("div", _hoisted_4$8, [
19645
19678
  _cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19646
- createElementVNode("span", _hoisted_5$4, [
19679
+ createElementVNode("span", _hoisted_5$6, [
19647
19680
  createElementVNode("div", {
19648
19681
  class: "fast-click-button",
19649
19682
  onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
@@ -19750,9 +19783,9 @@ const _hoisted_2$9 = {
19750
19783
  class: "devui-submenu-title layer_2",
19751
19784
  style: { "padding": "0px 24px" }
19752
19785
  };
19753
- const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
19754
- const _hoisted_4$5 = { class: "project-label" };
19755
- const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19786
+ const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19787
+ const _hoisted_4$7 = { class: "project-label" };
19788
+ const _hoisted_5$5 = { class: "project-label flex-1 min-w-0 ellipsis" };
19756
19789
  const INIT_SHOW_COUNT = 4;
19757
19790
  const LOAD_MORE_COUNT = 10;
19758
19791
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -19847,7 +19880,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19847
19880
  return openBlock(), createElementBlock("ul", _hoisted_1$f, [
19848
19881
  createElementVNode("div", _hoisted_2$9, [
19849
19882
  _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19850
- createElementVNode("span", _hoisted_3$6, [
19883
+ createElementVNode("span", _hoisted_3$7, [
19851
19884
  createElementVNode("div", {
19852
19885
  class: "fast-click-button",
19853
19886
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
@@ -19902,8 +19935,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19902
19935
  ]),
19903
19936
  default: withCtx(() => [
19904
19937
  createElementVNode("span", null, [
19905
- createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19906
- createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
19938
+ createElementVNode("span", _hoisted_4$7, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19939
+ createElementVNode("span", _hoisted_5$5, "/" + toDisplayString$1(item.label), 1)
19907
19940
  ])
19908
19941
  ]),
19909
19942
  _: 2
@@ -19941,12 +19974,12 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19941
19974
  const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19942
19975
  const _hoisted_1$e = { class: "side-bar-label" };
19943
19976
  const _hoisted_2$8 = { class: "side-bar-label" };
19944
- const _hoisted_3$5 = {
19977
+ const _hoisted_3$6 = {
19945
19978
  key: 0,
19946
19979
  class: "line mt-[16px] mb-[6px]"
19947
19980
  };
19948
- const _hoisted_4$4 = ["src"];
19949
- const _hoisted_5$2 = ["src"];
19981
+ const _hoisted_4$6 = ["src"];
19982
+ const _hoisted_5$4 = ["src"];
19950
19983
  const _hoisted_6$2 = { class: "side-bar-label" };
19951
19984
  const _hoisted_7$2 = {
19952
19985
  key: 1,
@@ -20444,7 +20477,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20444
20477
  }, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
20445
20478
  ], 64);
20446
20479
  }), 256)),
20447
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
20480
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$6)) : createCommentVNode("", true),
20448
20481
  (openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
20449
20482
  return openBlock(), createBlock(unref(MenuItem), {
20450
20483
  key: `${item.key}-${item.logo}`,
@@ -20459,11 +20492,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20459
20492
  createElementVNode("img", {
20460
20493
  src: item.logo,
20461
20494
  class: "default-icon w-[16px] h-[16px]"
20462
- }, null, 8, _hoisted_4$4),
20495
+ }, null, 8, _hoisted_4$6),
20463
20496
  createElementVNode("img", {
20464
20497
  src: item.logo_hover,
20465
20498
  class: "active-icon w-[16px] h-[16px]"
20466
- }, null, 8, _hoisted_5$2)
20499
+ }, null, 8, _hoisted_5$4)
20467
20500
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20468
20501
  createVNode(GIcon, {
20469
20502
  name: item.icon,
@@ -21312,8 +21345,8 @@ const headerCustomPropsData = {
21312
21345
  };
21313
21346
  const _hoisted_1$c = { class: "home-wrapper" };
21314
21347
  const _hoisted_2$7 = { class: "home-content" };
21315
- const _hoisted_3$4 = { class: "home-left-side" };
21316
- const _hoisted_4$3 = { class: "home-main" };
21348
+ const _hoisted_3$5 = { class: "home-left-side" };
21349
+ const _hoisted_4$5 = { class: "home-main" };
21317
21350
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
21318
21351
  __name: "home",
21319
21352
  setup(__props) {
@@ -21404,7 +21437,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21404
21437
  onFollowUser: followUser
21405
21438
  }, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
21406
21439
  createElementVNode("div", _hoisted_2$7, [
21407
- createElementVNode("div", _hoisted_3$4, [
21440
+ createElementVNode("div", _hoisted_3$5, [
21408
21441
  createVNode(GitCodeAside, {
21409
21442
  sceneValue: sceneSelected.value,
21410
21443
  userInfo: userInfo.value,
@@ -21424,7 +21457,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21424
21457
  _: 1
21425
21458
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
21426
21459
  ]),
21427
- createElementVNode("div", _hoisted_4$3, [
21460
+ createElementVNode("div", _hoisted_4$5, [
21428
21461
  _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
21429
21462
  _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
21430
21463
  createVNode(unref(RadioGroup), {
@@ -21634,6 +21667,7 @@ const layoutConfig = useLayoutConfig();
21634
21667
  const { t: t$2 } = i18n.global;
21635
21668
  const GRAPH_CODE = 400007;
21636
21669
  const REMOTE_LOGIN_CODE = 400015;
21670
+ const MAX_MOBILE_COUNT = 10;
21637
21671
  const createLoginConfig = (request) => {
21638
21672
  const API = headRequest(request);
21639
21673
  return {
@@ -21641,14 +21675,15 @@ const createLoginConfig = (request) => {
21641
21675
  async phone(param, loginParams) {
21642
21676
  const { validFunc, successFunc = () => {
21643
21677
  }, failFunc = () => {
21644
- } } = param;
21678
+ }, country = "" } = param;
21645
21679
  const check = validFunc ? await validFunc() : true;
21646
21680
  if (!check) return;
21647
21681
  const result2 = await API.loginByMobile(loginParams);
21648
21682
  if (!result2.error) {
21649
21683
  const resultData = result2.data.data;
21684
+ saveLoginMobile(loginParams.mobile, country);
21650
21685
  successFunc(resultData, loginParams.mobile);
21651
- phoneAndPasswordLogin(resultData, API);
21686
+ phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PHONE);
21652
21687
  } else {
21653
21688
  failFunc(result2.error.error_message);
21654
21689
  }
@@ -21675,7 +21710,7 @@ const createLoginConfig = (request) => {
21675
21710
  const { user_status_enum } = resultData;
21676
21711
  await successFunc(resultData);
21677
21712
  if (user_status_enum !== "MFA_CHECK") {
21678
- phoneAndPasswordLogin(resultData, API);
21713
+ phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PASSWORD);
21679
21714
  }
21680
21715
  } else {
21681
21716
  failFunc(result2.error.error_message);
@@ -21699,7 +21734,7 @@ const createLoginConfig = (request) => {
21699
21734
  scene_id
21700
21735
  });
21701
21736
  if (!result2.error) {
21702
- phoneAndPasswordLogin(result2.data.data, API);
21737
+ phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.MINI_PROGRAM);
21703
21738
  return { success: true, data: result2.data.data };
21704
21739
  }
21705
21740
  return { success: false, error: result2.error };
@@ -21826,11 +21861,12 @@ function bindResultResolve(params, API) {
21826
21861
  function sendMessageToParent(message) {
21827
21862
  window.parent && window.parent.postMessage(message, "*");
21828
21863
  }
21829
- function phoneAndPasswordLogin(userInfo, API) {
21864
+ function phoneAndPasswordLogin(userInfo, API, loginMethod) {
21830
21865
  successResolve({
21831
21866
  path: new URLSearchParams(window.location.search).get("returnUrl") || "",
21832
21867
  userInfo,
21833
- type: AuthTypeEnum.PHONE_AND_PASSWORD
21868
+ type: AuthTypeEnum.PHONE_AND_PASSWORD,
21869
+ loginMethod
21834
21870
  }, API);
21835
21871
  const params = {
21836
21872
  access_token: userInfo.access_token,
@@ -21865,12 +21901,13 @@ async function checkUserRepositoryIssue(API) {
21865
21901
  }
21866
21902
  async function successResolve(params, API) {
21867
21903
  var _a;
21868
- const { path, userInfo, type } = params;
21904
+ const { path, userInfo, type, loginMethod } = params;
21869
21905
  if (userInfo) {
21870
21906
  emitEvent("updateUserInfo", userInfo);
21871
21907
  const { username, email } = userInfo;
21872
21908
  setEmailValid(username, email);
21873
21909
  }
21910
+ saveLastLoginType(loginMethod);
21874
21911
  if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
21875
21912
  const { unMount, isMounted } = usePopup();
21876
21913
  if (isMounted()) {
@@ -21976,6 +22013,21 @@ const HandleParentWindowGetLoginInfo = (request) => {
21976
22013
  }
21977
22014
  };
21978
22015
  };
22016
+ function saveLoginMobile(mobile, country) {
22017
+ const loginMobileList = JSON.parse(localStorage$2.getItem("loginMobileList") || "[]");
22018
+ const index2 = loginMobileList.findIndex((item) => item.mobile === mobile);
22019
+ if (index2 !== -1) {
22020
+ loginMobileList.splice(index2, 1);
22021
+ }
22022
+ loginMobileList.unshift({ mobile, country });
22023
+ if (loginMobileList.length > MAX_MOBILE_COUNT) {
22024
+ loginMobileList.pop();
22025
+ }
22026
+ localStorage$2.setItem("loginMobileList", JSON.stringify(loginMobileList));
22027
+ }
22028
+ function saveLastLoginType(loginMethod) {
22029
+ localStorage$2.setItem("lastLoginMethod", loginMethod);
22030
+ }
21979
22031
  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";
21980
22032
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21981
22033
  __proto__: null,
@@ -22162,7 +22214,10 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22162
22214
  }
22163
22215
  });
22164
22216
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
22165
- const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
22217
+ const _hoisted_2$6 = { class: "login-phone" };
22218
+ const _hoisted_3$4 = { class: "flex justify-between gap-[8px] flex-wrap" };
22219
+ const _hoisted_4$4 = { class: "flex items-center justify-between" };
22220
+ const _hoisted_5$3 = { class: "flex justify-between gap-[8px] flex-wrap" };
22166
22221
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
22167
22222
  __name: "inputSelect",
22168
22223
  props: {
@@ -22170,7 +22225,8 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22170
22225
  "onUpdate:modelValue": { type: Function },
22171
22226
  placeholder: {},
22172
22227
  prop: {},
22173
- country: {}
22228
+ country: {},
22229
+ editableSelect: { type: Boolean }
22174
22230
  },
22175
22231
  emits: ["change", "selectChange", "update:modelValue"],
22176
22232
  setup(__props, { emit: __emit }) {
@@ -22179,7 +22235,6 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22179
22235
  const emits = __emit;
22180
22236
  const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
22181
22237
  const { vModels } = useModel(props, emits);
22182
- console.log(cache_countdown, "cache_countdown");
22183
22238
  const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
22184
22239
  const options = ref([]);
22185
22240
  const handleChange = () => {
@@ -22197,25 +22252,50 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22197
22252
  };
22198
22253
  });
22199
22254
  };
22200
- onMounted(() => {
22201
- getAllCountries();
22202
- });
22255
+ const loginMobileList = ref([]);
22256
+ const mobileList = ref([]);
22257
+ const getHistoryMobile = () => {
22258
+ var _a, _b, _c, _d, _e;
22259
+ mobileList.value = JSON.parse(localStorage$2.getItem("loginMobileList")) || [];
22260
+ loginMobileList.value = (_a = mobileList.value) == null ? void 0 : _a.map((item) => {
22261
+ return {
22262
+ label: item.mobile,
22263
+ value: item.mobile
22264
+ };
22265
+ });
22266
+ country.value = ((_c = (_b = mobileList.value) == null ? void 0 : _b[0]) == null ? void 0 : _c.country) || country.value;
22267
+ emits("update:modelValue", (_e = (_d = mobileList.value) == null ? void 0 : _d[0]) == null ? void 0 : _e.mobile);
22268
+ };
22269
+ const deleteMobile = (mobile) => {
22270
+ loginMobileList.value = loginMobileList.value.filter((item) => item.value !== mobile);
22271
+ mobileList.value = mobileList.value.filter((item) => item.mobile !== mobile);
22272
+ localStorage$2.setItem("loginMobileList", JSON.stringify(mobileList.value));
22273
+ };
22274
+ const handleSelectChange = (value) => {
22275
+ var _a;
22276
+ country.value = ((_a = mobileList.value.find((item) => item.mobile === value)) == null ? void 0 : _a.country) || country.value;
22277
+ emits("change");
22278
+ };
22203
22279
  const handleCountryChange = () => {
22204
22280
  emits("selectChange", country.value);
22205
22281
  emits("change");
22206
22282
  };
22283
+ const handleInputSelectChange = (value) => {
22284
+ emits("update:modelValue", value);
22285
+ emits("change");
22286
+ };
22287
+ onMounted(() => {
22288
+ getAllCountries();
22289
+ if (props.editableSelect) {
22290
+ getHistoryMobile();
22291
+ }
22292
+ });
22207
22293
  return (_ctx, _cache) => {
22208
22294
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
22209
- createVNode(unref(Input), mergeProps({
22210
- modelValue: unref(vModels),
22211
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22212
- }, _ctx.prop, {
22213
- placeholder: _ctx.placeholder,
22214
- onChange: handleChange
22215
- }), {
22216
- prepend: withCtx(() => [
22295
+ createElementVNode("div", _hoisted_2$6, [
22296
+ (props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22217
22297
  createVNode(unref(Select), {
22218
- class: "input-select",
22298
+ class: "login-country-select",
22219
22299
  modelValue: country.value,
22220
22300
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
22221
22301
  menuClass: "country-select",
@@ -22229,7 +22309,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22229
22309
  value: item.value
22230
22310
  }, {
22231
22311
  default: withCtx(() => [
22232
- createElementVNode("div", _hoisted_2$6, [
22312
+ createElementVNode("div", _hoisted_3$4, [
22233
22313
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
22234
22314
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
22235
22315
  ])
@@ -22239,10 +22319,70 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22239
22319
  }), 128))
22240
22320
  ]),
22241
22321
  _: 1
22242
- }, 8, ["modelValue"])
22243
- ]),
22244
- _: 1
22245
- }, 16, ["modelValue", "placeholder"])
22322
+ }, 8, ["modelValue"]),
22323
+ createVNode(unref(EditableSelect), mergeProps({
22324
+ modelValue: unref(vModels),
22325
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22326
+ }, props, {
22327
+ size: "lg",
22328
+ width: 292,
22329
+ options: loginMobileList.value,
22330
+ placeholder: props.placeholder,
22331
+ onInputChange: handleInputSelectChange,
22332
+ onChange: handleSelectChange,
22333
+ class: "login-phone-select"
22334
+ }), {
22335
+ item: withCtx((slotProps) => [
22336
+ createElementVNode("div", _hoisted_4$4, [
22337
+ createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
22338
+ createVNode(GIcon, {
22339
+ name: "gt-line-delete",
22340
+ class: "w-[16px] h-[16px] cursor-pointer",
22341
+ onClick: withModifiers(($event) => deleteMobile(slotProps.option.value), ["stop"])
22342
+ }, null, 8, ["onClick"])
22343
+ ])
22344
+ ]),
22345
+ _: 1
22346
+ }, 16, ["modelValue", "options", "placeholder"])
22347
+ ], 64)) : (openBlock(), createBlock(unref(Input), mergeProps({
22348
+ key: 1,
22349
+ modelValue: unref(vModels),
22350
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22351
+ }, _ctx.prop, {
22352
+ placeholder: _ctx.placeholder,
22353
+ onChange: handleChange
22354
+ }), {
22355
+ prepend: withCtx(() => [
22356
+ createVNode(unref(Select), {
22357
+ class: "input-select",
22358
+ modelValue: country.value,
22359
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => country.value = $event),
22360
+ menuClass: "country-select",
22361
+ onValueChange: handleCountryChange
22362
+ }, {
22363
+ default: withCtx(() => [
22364
+ (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item, index2) => {
22365
+ return openBlock(), createBlock(unref(Option), {
22366
+ name: item.label,
22367
+ key: index2,
22368
+ value: item.value
22369
+ }, {
22370
+ default: withCtx(() => [
22371
+ createElementVNode("div", _hoisted_5$3, [
22372
+ createElementVNode("span", null, toDisplayString$1(item.name), 1),
22373
+ createElementVNode("span", null, toDisplayString$1(item.label), 1)
22374
+ ])
22375
+ ]),
22376
+ _: 2
22377
+ }, 1032, ["name", "value"]);
22378
+ }), 128))
22379
+ ]),
22380
+ _: 1
22381
+ }, 8, ["modelValue"])
22382
+ ]),
22383
+ _: 1
22384
+ }, 16, ["modelValue", "placeholder"]))
22385
+ ])
22246
22386
  ]);
22247
22387
  };
22248
22388
  }
@@ -22264,7 +22404,8 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22264
22404
  errors: { default: {
22265
22405
  msgError: false
22266
22406
  } },
22267
- isForget: { type: Boolean, default: false }
22407
+ isForget: { type: Boolean, default: false },
22408
+ formErrors: { default: {} }
22268
22409
  },
22269
22410
  emits: ["change", "countDown", "complete"],
22270
22411
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -22505,12 +22646,15 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22505
22646
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
22506
22647
  key: 2,
22507
22648
  country: Data.country,
22649
+ class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
22508
22650
  modelValue: Data[formItem.key],
22509
22651
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
22510
22652
  onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
22511
22653
  onChange: ($event) => handleChange(formItem.key),
22512
22654
  placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label })
22513
- }, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22655
+ }, { ref_for: true }, formItem.props, {
22656
+ editableSelect: formItem.editableSelect
22657
+ }), null, 16, ["country", "class", "modelValue", "onUpdate:modelValue", "onChange", "placeholder", "editableSelect"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22514
22658
  key: formItem.key,
22515
22659
  modelValue: Data[formItem.key],
22516
22660
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -22531,32 +22675,40 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22531
22675
  };
22532
22676
  }
22533
22677
  });
22534
- const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
22535
- const _hoisted_2$5 = { class: "icons" };
22536
- const _hoisted_3$3 = ["src", "alt", "onClick"];
22678
+ 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=";
22679
+ const _hoisted_1$8 = { class: "auth-container" };
22680
+ const _hoisted_2$5 = { class: "tips text-[var(--devui-disabled-text)]" };
22681
+ const _hoisted_3$3 = { class: "icons" };
22682
+ const _hoisted_4$3 = ["src", "alt", "onClick"];
22683
+ const _hoisted_5$2 = ["src"];
22537
22684
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22538
22685
  __name: "auth",
22539
22686
  props: {
22540
- logos: {}
22687
+ logos: {},
22688
+ recentLoginType: {}
22541
22689
  },
22542
22690
  emits: ["auth"],
22543
22691
  setup(__props, { emit: __emit }) {
22544
22692
  const request = inject("request");
22545
22693
  const API = headRequest(request);
22546
22694
  const { t: $t } = i18n.global;
22695
+ const props = __props;
22547
22696
  const emits = __emit;
22548
22697
  const handleClick = (icon) => {
22549
22698
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
22550
22699
  emits("auth", icon.alt);
22551
22700
  };
22701
+ const checkIsRecentLogin = (loginMethodList) => {
22702
+ return loginMethodList.includes(props.recentLoginType);
22703
+ };
22552
22704
  return (_ctx, _cache) => {
22553
- return openBlock(), createElementBlock(Fragment, null, [
22554
- createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
22555
- createElementVNode("div", _hoisted_2$5, [
22705
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
22706
+ createElementVNode("div", _hoisted_2$5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")), 1),
22707
+ createElementVNode("div", _hoisted_3$3, [
22556
22708
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
22557
22709
  return openBlock(), createElementBlock("div", {
22558
22710
  key: icon.alt,
22559
- class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
22711
+ class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
22560
22712
  }, [
22561
22713
  createVNode(unref(Tooltip), {
22562
22714
  position: "top",
@@ -22569,14 +22721,19 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22569
22721
  src: icon.src,
22570
22722
  alt: icon.alt,
22571
22723
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
22572
- }, null, 8, _hoisted_3$3)
22724
+ }, null, 8, _hoisted_4$3)
22573
22725
  ]),
22574
22726
  _: 2
22575
- }, 1032, ["content", "disabled"])
22727
+ }, 1032, ["content", "disabled"]),
22728
+ checkIsRecentLogin(icon.loginMethodList) ? (openBlock(), createElementBlock("img", {
22729
+ key: 0,
22730
+ src: unref(recentLoginImg),
22731
+ class: "w-[38px] h-[20px] recent-login-img"
22732
+ }, null, 8, _hoisted_5$2)) : createCommentVNode("", true)
22576
22733
  ]);
22577
22734
  }), 128))
22578
22735
  ])
22579
- ], 64);
22736
+ ]);
22580
22737
  };
22581
22738
  }
22582
22739
  });
@@ -22666,12 +22823,16 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22666
22823
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
22667
22824
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
22668
22825
  const _hoisted_3$2 = ["src"];
22669
- const _hoisted_4$2 = { class: "tracking-[.5px]" };
22826
+ const _hoisted_4$2 = {
22827
+ key: 0,
22828
+ class: "tracking-[.5px]"
22829
+ };
22670
22830
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22671
22831
  __name: "title",
22672
22832
  props: {
22673
22833
  title: {},
22674
22834
  showBack: { type: Boolean },
22835
+ showTitle: { type: Boolean },
22675
22836
  icon: {}
22676
22837
  },
22677
22838
  emits: ["back"],
@@ -22690,7 +22851,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22690
22851
  onClick: withModifiers(handleClick, ["stop"])
22691
22852
  }, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
22692
22853
  ]),
22693
- createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
22854
+ _ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
22694
22855
  ]);
22695
22856
  };
22696
22857
  }
@@ -25357,7 +25518,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25357
25518
  }
25358
25519
  });
25359
25520
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25360
- const SlidCaptcha = defineAsyncComponent(() => import("./index-tcQwl6IN.js"));
25521
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-BmG6buAx.js"));
25361
25522
  const useSlidCaptcha = () => {
25362
25523
  const { mount, unMount } = usePopup("slid-captcha-popup");
25363
25524
  const open = (config) => {
@@ -25480,21 +25641,15 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
25480
25641
  stopPoll
25481
25642
  };
25482
25643
  }
25483
- const _hoisted_1$1 = { class: "flex items-center gap-1" };
25644
+ const _hoisted_1$1 = { class: "flex items-center gap-1 h-[48px]" };
25484
25645
  const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
25485
25646
  const _hoisted_3 = {
25486
- key: 0,
25487
- class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
25488
- };
25489
- const _hoisted_4 = {
25490
- key: 0,
25491
- class: "flex items-center justify-center mb-[24px] mt-[-2px]"
25492
- };
25493
- const _hoisted_5 = {
25494
25647
  key: 1,
25495
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25648
+ class: "login-modal-content"
25496
25649
  };
25497
- const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
25650
+ const _hoisted_4 = ["src"];
25651
+ const _hoisted_5 = { class: "text-[var(--theme-text)] mt-[6px]" };
25652
+ const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center" };
25498
25653
  const _hoisted_7 = ["src"];
25499
25654
  const _hoisted_8 = {
25500
25655
  key: 0,
@@ -25502,37 +25657,57 @@ const _hoisted_8 = {
25502
25657
  };
25503
25658
  const _hoisted_9 = {
25504
25659
  key: 0,
25505
- class: "flex flex-col gap-2 items-center justify-center"
25660
+ class: "flex flex-col gap-2 items-center justify-center gap-[40px]"
25506
25661
  };
25507
- const _hoisted_10 = {
25662
+ const _hoisted_10 = { class: "flex gap-1 items-center justify-center text-[16px] font-medium" };
25663
+ const _hoisted_11 = { class: "text-[#252B3A]" };
25664
+ const _hoisted_12 = {
25508
25665
  key: 1,
25509
25666
  class: "flex flex-col gap-3 items-center justify-center"
25510
25667
  };
25511
- const _hoisted_11 = { class: "text-[var(--color-success)]" };
25512
- const _hoisted_12 = { class: "text-center" };
25513
- const _hoisted_13 = {
25668
+ const _hoisted_13 = { class: "text-[var(--color-success)]" };
25669
+ const _hoisted_14 = { class: "text-center" };
25670
+ const _hoisted_15 = {
25514
25671
  key: 1,
25515
- class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
25516
- };
25517
- const _hoisted_14 = {
25518
- key: 0,
25519
- class: "login-modal-info h-[20px]"
25672
+ class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
25520
25673
  };
25521
- const _hoisted_15 = { class: "login-modal-info-left" };
25522
25674
  const _hoisted_16 = {
25523
25675
  key: 1,
25524
- class: "mt-[18px]"
25676
+ class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]"
25525
25677
  };
25526
- const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
25527
- const _hoisted_18 = { class: "mr-[16px]" };
25678
+ const _hoisted_17 = { class: "font-medium text-[20px]" };
25679
+ const _hoisted_18 = { class: "mt-[16px]" };
25528
25680
  const _hoisted_19 = {
25529
25681
  key: 0,
25530
- class: "login-modal-footer"
25682
+ class: "flex items-baseline justify-between mb-[24px]"
25683
+ };
25684
+ const _hoisted_20 = { class: "flex items-center" };
25685
+ const _hoisted_21 = ["src"];
25686
+ const _hoisted_22 = { class: "text-[12px] leading-[32px] text-center" };
25687
+ const _hoisted_23 = {
25688
+ key: 1,
25689
+ class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25690
+ };
25691
+ const _hoisted_24 = { key: 2 };
25692
+ const _hoisted_25 = { class: "flex items-center justify-between" };
25693
+ const _hoisted_26 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
25694
+ const _hoisted_27 = { class: "text-[12px] leading-[32px]" };
25695
+ const _hoisted_28 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
25696
+ const _hoisted_29 = {
25697
+ key: 0,
25698
+ class: "login-modal-info h-[20px]"
25531
25699
  };
25532
- const _hoisted_20 = { class: "flex justify-center" };
25533
- const _hoisted_21 = { key: 1 };
25534
- const _hoisted_22 = { class: "line-clamp-2" };
25535
- const _hoisted_23 = { class: "absolute-btn" };
25700
+ const _hoisted_30 = { class: "login-modal-info-left" };
25701
+ const _hoisted_31 = { class: "mt-[18px]" };
25702
+ const _hoisted_32 = { class: "flex justify-center" };
25703
+ const _hoisted_33 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
25704
+ const _hoisted_34 = { class: "harmony-icon" };
25705
+ const _hoisted_35 = ["src"];
25706
+ const _hoisted_36 = { class: "ml-[8px] text-[12px]" };
25707
+ const _hoisted_37 = { class: "login-modal-footer flex items-center justify-center" };
25708
+ const _hoisted_38 = { key: 3 };
25709
+ const _hoisted_39 = { class: "line-clamp-2" };
25710
+ const _hoisted_40 = { class: "absolute-btn" };
25536
25711
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25537
25712
  ...{
25538
25713
  name: "GLoginModal"
@@ -25575,6 +25750,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25575
25750
  const IconB = TransAssetsUrl(IconSource, "logo-back");
25576
25751
  const IconW = TransAssetsUrl(IconSource, "logo-wechat");
25577
25752
  const IconHb = TransAssetsUrl(IconSource, "logo-hb");
25753
+ const logoType = {
25754
+ black: "https://cdn-static.gitcode.com/static/images/gitcode-logo-white.png",
25755
+ white: "https://cdn-static.gitcode.com/static/images/gitcode-logo-dark.png"
25756
+ };
25578
25757
  const formErrors = reactive({});
25579
25758
  const extraErrors = reactive({
25580
25759
  agreement: "",
@@ -25598,27 +25777,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25598
25777
  {
25599
25778
  src: IconC,
25600
25779
  alt: "csdn",
25601
- describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25780
+ describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25781
+ loginMethodList: ["csdn"]
25602
25782
  },
25603
25783
  {
25604
25784
  src: IconHb,
25605
25785
  alt: "hbuilder",
25606
- describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25786
+ describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25787
+ loginMethodList: ["hbuilder", "hbuilder_plugins"]
25607
25788
  },
25608
25789
  {
25609
25790
  src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
25610
25791
  alt: "github",
25611
- describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25792
+ describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25793
+ loginMethodList: ["github"]
25612
25794
  },
25613
25795
  {
25614
25796
  src: IconH,
25615
25797
  alt: "gitee",
25616
- describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25798
+ describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25799
+ loginMethodList: ["gitee"]
25617
25800
  },
25618
25801
  {
25619
25802
  src: IconW,
25620
25803
  alt: "wechat_open",
25621
- describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
25804
+ describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin"),
25805
+ loginMethodList: ["wechat_open", "wechat_mp"]
25622
25806
  }
25623
25807
  ]);
25624
25808
  const emits = __emit;
@@ -25657,7 +25841,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25657
25841
  {
25658
25842
  type: "input",
25659
25843
  key: "username",
25660
- label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25844
+ label: $t("gitCodeLayout.userSetting.account.phone") + "/" + $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25661
25845
  required: true
25662
25846
  },
25663
25847
  {
@@ -25840,7 +26024,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25840
26024
  const status = ref(false);
25841
26025
  const hwStatus = ref(false);
25842
26026
  const FormRef = shallowRef(null);
25843
- const tabPanel = ref("miniProgram");
26027
+ const tabPanel = ref("verifyCode");
25844
26028
  const formType = ref(props.defaultType);
25845
26029
  const showProtoCheck = ref(false);
25846
26030
  const agreeAndLogin = () => {
@@ -25860,13 +26044,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25860
26044
  dict: RegisterForm.map((item) => {
25861
26045
  return {
25862
26046
  ...item,
25863
- defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
26047
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : "",
26048
+ editableSelect: false
25864
26049
  };
25865
26050
  }),
25866
26051
  showLabel: true,
25867
26052
  layout: "horizontal",
25868
- title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
25869
- showBack: true
26053
+ showTitle: false,
26054
+ showBack: false
25870
26055
  };
25871
26056
  }
25872
26057
  if (formType.value === "forget") {
@@ -25883,12 +26068,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25883
26068
  dict: VerifyForm.map((item) => {
25884
26069
  return {
25885
26070
  ...item,
25886
- defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
26071
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : "",
26072
+ editableSelect: true
25887
26073
  };
25888
26074
  }),
25889
26075
  showLabel: false,
25890
26076
  layout: "vertical",
25891
- title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26077
+ showTitle: false,
25892
26078
  showBack: false
25893
26079
  };
25894
26080
  } else if (tabPanel.value === "password") {
@@ -25896,7 +26082,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25896
26082
  dict: PasswordForm,
25897
26083
  showLabel: false,
25898
26084
  layout: "vertical",
25899
- title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26085
+ showTitle: false,
25900
26086
  showBack: false
25901
26087
  };
25902
26088
  } else {
@@ -25904,7 +26090,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25904
26090
  dict: MiniProgramForm,
25905
26091
  showLabel: false,
25906
26092
  layout: "vertical",
25907
- title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26093
+ showTitle: false,
25908
26094
  showBack: false
25909
26095
  };
25910
26096
  }
@@ -25956,7 +26142,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25956
26142
  };
25957
26143
  const mfaCheck = ref(false);
25958
26144
  const handleMFALogin = (data) => {
25959
- phoneAndPasswordLogin(data, API);
26145
+ phoneAndPasswordLogin(data, API, LoginMethodEnum.PASSWORD);
25960
26146
  };
25961
26147
  const slidCaptcha = useSlidCaptcha();
25962
26148
  const LoginCheck = async () => {
@@ -25988,6 +26174,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25988
26174
  }
25989
26175
  };
25990
26176
  const registerAction = async (res, mobile) => {
26177
+ var _a;
25991
26178
  const data = {
25992
26179
  username: res.username,
25993
26180
  password: res.password,
@@ -26003,7 +26190,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26003
26190
  cacheForm.user_id = user_id;
26004
26191
  cacheForm.mask = mask;
26005
26192
  cacheForm.mobile = res.mobile;
26006
- phoneAndPasswordLogin(result2.data.data, API);
26193
+ const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
26194
+ saveLoginMobile(mobile, country);
26195
+ phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
26007
26196
  } else {
26008
26197
  extraErrors.requestInfo = result2.error.error_message;
26009
26198
  }
@@ -26050,7 +26239,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26050
26239
  mobile,
26051
26240
  code: res.code
26052
26241
  };
26053
- await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
26242
+ await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country }, params, graphValidate, handleRemoteLogin);
26054
26243
  }
26055
26244
  setTimeout(() => {
26056
26245
  loading.value = false;
@@ -26323,10 +26512,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26323
26512
  const pcAuthLogin = (type) => {
26324
26513
  authType.value = type;
26325
26514
  saveOauthType(type);
26326
- if (tabPanel.value === "miniProgram") {
26327
- stopPoll();
26328
- miniProgramStatus.value = "TIMEOUT";
26329
- }
26515
+ stopPoll();
26516
+ miniProgramStatus.value = "TIMEOUT";
26330
26517
  if (localStorage$2.getItem("access_token")) {
26331
26518
  emits("close", true);
26332
26519
  } else {
@@ -26403,7 +26590,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26403
26590
  emits("directClose");
26404
26591
  return;
26405
26592
  }
26593
+ useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
26406
26594
  formType.value = "login";
26595
+ checkMiniProgramStatus();
26407
26596
  };
26408
26597
  const miniProgramStatus = ref("WAITING");
26409
26598
  const miniProgramLoading = ref(false);
@@ -26419,7 +26608,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26419
26608
  };
26420
26609
  const fetchMiniProgramStatus = async () => {
26421
26610
  var _a;
26422
- if (tabPanel.value !== "miniProgram") {
26611
+ if (formType.value !== "login") {
26423
26612
  stopPoll();
26424
26613
  return;
26425
26614
  }
@@ -26462,11 +26651,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26462
26651
  tabPanel.value = val;
26463
26652
  authType.value = null;
26464
26653
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
26465
- if (val !== "miniProgram") {
26466
- stopPoll();
26467
- handleMiniProgramReset();
26468
- return;
26469
- }
26654
+ };
26655
+ const checkMiniProgramStatus = async () => {
26470
26656
  if (!miniProgramInfo.value.scene_id) {
26471
26657
  getMiniProgramQrCode();
26472
26658
  return;
@@ -26482,12 +26668,24 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26482
26668
  shouldMiniProgramPoll.value = true;
26483
26669
  startPoll();
26484
26670
  };
26671
+ const recentLoginType = ref(null);
26672
+ const getRecentLogin = async () => {
26673
+ recentLoginType.value = localStorage$2.getItem("lastLoginMethod") || null;
26674
+ };
26675
+ const todayTechHistory = ref(null);
26676
+ const getTodayTechHistory = async () => {
26677
+ var _a, _b, _c;
26678
+ const res = await API.getTodayTechHistory();
26679
+ 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]) || {};
26680
+ };
26485
26681
  const resetPwdDirectly = ref(false);
26486
26682
  const resetPwdWhiteList = ["change_password"];
26487
26683
  onMounted(() => {
26488
- if (tabPanel.value === "miniProgram" && formType.value === "login") {
26489
- handleTabPanelChange(tabPanel.value);
26684
+ if (formType.value === "login") {
26685
+ getMiniProgramQrCode();
26490
26686
  }
26687
+ getRecentLogin();
26688
+ getTodayTechHistory();
26491
26689
  if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
26492
26690
  resetPwdDirectly.value = true;
26493
26691
  }
@@ -26496,7 +26694,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26496
26694
  return openBlock(), createElementBlock(Fragment, null, [
26497
26695
  createVNode(unref(Modal), {
26498
26696
  modelValue: unref(vModels),
26499
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26697
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26500
26698
  "show-close": false,
26501
26699
  "lock-scroll": _ctx.lockScroll,
26502
26700
  draggable: _ctx.draggable,
@@ -26506,157 +26704,288 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26506
26704
  class: normalizeClass([
26507
26705
  "login-modal",
26508
26706
  formType.value === "login" ? "login-modal-l" : "login-modal-r",
26707
+ formType.value === "register" ? "login-modal-register" : "",
26509
26708
  mfaCheck.value ? "login-modal-mfa" : ""
26510
26709
  ]),
26511
26710
  onClose: onModalClose
26512
26711
  }, createSlots({
26513
- default: withCtx(() => [
26514
- mfaCheck.value ? (openBlock(), createBlock(MFA, {
26515
- key: 0,
26516
- API: unref(API),
26517
- onBack: handleBack,
26518
- onSuccess: handleMFALogin,
26519
- mask: cacheForm.mask
26520
- }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26521
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
26522
- createElementVNode("div", {
26523
- class: normalizeClass([
26524
- "login-modal-tab mr-[18px]",
26525
- tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26526
- ]),
26527
- onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
26528
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
26529
- createElementVNode("div", {
26530
- class: normalizeClass([
26531
- "login-modal-tab mr-[18px] ml-[18px]",
26532
- tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26533
- ]),
26534
- onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26535
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
26536
- createElementVNode("div", {
26537
- class: normalizeClass([
26538
- "login-modal-tab ml-[18px]",
26539
- tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26540
- ]),
26541
- onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26542
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26543
- ])) : createCommentVNode("", true),
26544
- formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
26545
- formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
26546
- key: 2,
26547
- loading: miniProgramLoading.value,
26548
- empty: false,
26549
- card: false,
26550
- class: "mini-program-qrcode",
26551
- border: false,
26552
- animation: true
26553
- }, {
26554
- default: withCtx(() => [
26555
- createElementVNode("div", _hoisted_6, [
26712
+ default: withCtx(() => {
26713
+ var _a, _b;
26714
+ return [
26715
+ mfaCheck.value ? (openBlock(), createBlock(MFA, {
26716
+ key: 0,
26717
+ API: unref(API),
26718
+ onBack: handleBack,
26719
+ onSuccess: handleMFALogin,
26720
+ mask: cacheForm.mask
26721
+ }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock("div", _hoisted_3, [
26722
+ formType.value === "login" || formType.value === "register" ? (openBlock(), createElementBlock("div", {
26723
+ key: 0,
26724
+ class: normalizeClass(["w-[470px] login-modal-content-left", formType.value === "register" ? "login-modal-content-left-register" : "login-modal-content-left-login"])
26725
+ }, [
26726
+ createElementVNode("div", {
26727
+ class: normalizeClass(formType.value === "register" ? "login-modal-content-left-register-logo" : "flex flex-col items-center")
26728
+ }, [
26556
26729
  createElementVNode("img", {
26557
- src: miniProgramInfo.value.qrcode,
26558
- alt: "小程序二维码",
26559
- class: "w-[158px] h-[158px]"
26560
- }, null, 8, _hoisted_7),
26561
- miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26562
- miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26563
- createVNode(GIcon, {
26564
- name: "gt-line-Refresh",
26565
- size: "18"
26566
- }),
26567
- createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26568
- createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26569
- ])) : createCommentVNode("", true),
26570
- ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
26571
- createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26572
- createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26573
- ])) : createCommentVNode("", true)
26574
- ])) : createCommentVNode("", true),
26575
- !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26576
- key: 2,
26577
- onClick: getMiniProgramQrCode,
26578
- class: "mt-2"
26579
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26580
- ])
26581
- ]),
26582
- _: 1
26583
- }, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
26584
- key: formType.value,
26585
- DataList: FormConfig.value.dict,
26586
- "show-label": FormConfig.value.showLabel,
26587
- ref_key: "FormRef",
26588
- ref: FormRef,
26589
- onCountDown: handleCountDown,
26590
- onChange: handleFormChange,
26591
- onComplete: handleFormInput,
26592
- layout: FormConfig.value.layout,
26593
- size: "lg",
26594
- "label-size": "md",
26595
- "message-type": "none",
26596
- "hide-required-mark": "",
26597
- onKeypress: withKeys(handleConfirm, ["enter"]),
26598
- class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26599
- errors: { msgError: msgError.value },
26600
- "is-forget": formType.value === "forget"
26601
- }, {
26602
- submit: withCtx(() => [
26603
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
26604
- createElementVNode("div", _hoisted_15, [
26605
- createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26606
- errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26607
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26608
- createElementVNode("span", {
26609
- onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
26610
- class: "login-modal-info-left__link"
26611
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26612
- ], 64)) : createCommentVNode("", true)
26613
- ]),
26614
- withDirectives(createElementVNode("div", {
26615
- class: "login-modal-info-right",
26616
- onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26617
- }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26618
- [vShow, tabPanel.value === "password" && formType.value === "login"]
26619
- ])
26620
- ])) : createCommentVNode("", true),
26621
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26622
- createVNode(unref(Button), {
26623
- color: "primary",
26624
- variant: "solid",
26625
- size: "lg",
26626
- onClick: handleConfirm,
26627
- loading: loading.value,
26628
- disabled: disabled.value,
26629
- class: "login-modal-button"
26730
+ src: logoType[unref(currentTheme)],
26731
+ alt: "gitcode-logo",
26732
+ class: "w-[130px] h-[30px]"
26733
+ }, null, 8, _hoisted_4),
26734
+ createElementVNode("div", _hoisted_5, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.desc")), 1)
26735
+ ], 2),
26736
+ createElementVNode("div", {
26737
+ class: normalizeClass(["login-modal-left-bg", "login-modal-left-bg-" + unref(currentTheme)])
26738
+ }, [
26739
+ formType.value === "login" ? (openBlock(), createBlock(DataPanel, {
26740
+ key: 0,
26741
+ loading: miniProgramLoading.value,
26742
+ empty: false,
26743
+ card: false,
26744
+ class: "mini-program-qrcode",
26745
+ border: false,
26746
+ animation: true
26630
26747
  }, {
26631
26748
  default: withCtx(() => [
26632
- createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26749
+ createElementVNode("div", _hoisted_6, [
26750
+ createElementVNode("img", {
26751
+ src: miniProgramInfo.value.qrcode,
26752
+ alt: "小程序二维码",
26753
+ class: "w-[180px] h-[180px]"
26754
+ }, null, 8, _hoisted_7),
26755
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26756
+ miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26757
+ createVNode(GIcon, {
26758
+ name: "gt-line-update",
26759
+ size: "18",
26760
+ color: "#3B3E55"
26761
+ }),
26762
+ createElementVNode("div", _hoisted_10, [
26763
+ createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26764
+ createElementVNode("button", {
26765
+ class: "text-[var(--theme-link)]",
26766
+ onClick: getMiniProgramQrCode
26767
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26768
+ ])
26769
+ ])) : createCommentVNode("", true),
26770
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_12, [
26771
+ createElementVNode("div", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26772
+ createElementVNode("div", _hoisted_14, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26773
+ ])) : createCommentVNode("", true)
26774
+ ])) : createCommentVNode("", true),
26775
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_15, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26776
+ key: 2,
26777
+ onClick: getMiniProgramQrCode,
26778
+ class: "mt-2"
26779
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26780
+ ])
26633
26781
  ]),
26634
26782
  _: 1
26635
- }, 8, ["loading", "disabled"]),
26636
- createElementVNode("div", _hoisted_17, [
26637
- _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26638
- key: 0,
26639
- class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
26640
- onClick: withModifiers(handleRegisterHarmony, ["stop"])
26783
+ }, 8, ["loading"])) : formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26784
+ createElementVNode("div", _hoisted_17, toDisplayString$1((_a = todayTechHistory.value) == null ? void 0 : _a.title), 1),
26785
+ createElementVNode("div", _hoisted_18, toDisplayString$1((_b = todayTechHistory.value) == null ? void 0 : _b.content), 1)
26786
+ ])) : createCommentVNode("", true)
26787
+ ], 2)
26788
+ ], 2)) : createCommentVNode("", true),
26789
+ createElementVNode("div", {
26790
+ class: normalizeClass(formType.value === "forget" ? "w-[512px]" : "w-[370px]")
26791
+ }, [
26792
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26793
+ createElementVNode("div", _hoisted_20, [
26794
+ createElementVNode("div", {
26795
+ class: normalizeClass([
26796
+ "login-modal-tab",
26797
+ tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26798
+ ]),
26799
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26641
26800
  }, [
26642
- _cache[16] || (_cache[16] = createElementVNode("img", {
26643
- src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26644
- alt: "",
26645
- class: "mr-[16px] inline-block"
26646
- }, null, -1)),
26647
- createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26648
- ])) : createCommentVNode("", true),
26801
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")) + " ", 1),
26802
+ recentLoginType.value === unref(LoginMethodEnum).PHONE ? (openBlock(), createElementBlock("img", {
26803
+ key: 0,
26804
+ src: unref(recentLoginImg),
26805
+ class: "w-[38px] h-[20px] last-login-img"
26806
+ }, null, 8, _hoisted_21)) : createCommentVNode("", true)
26807
+ ], 2),
26649
26808
  createElementVNode("div", {
26650
- class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
26651
- onClick: withModifiers(clickRegister, ["stop"])
26809
+ class: normalizeClass([
26810
+ "login-modal-tab ml-[24px]",
26811
+ tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26812
+ ]),
26813
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26814
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26815
+ ]),
26816
+ createElementVNode("div", _hoisted_22, [
26817
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.noAccount")) + " ", 1),
26818
+ createElementVNode("span", {
26819
+ onClick: clickRegister,
26820
+ class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26652
26821
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
26653
26822
  ])
26654
- ])) : createCommentVNode("", true)
26655
- ]),
26656
- _: 1
26657
- }, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
26658
- ], 64))
26659
- ]),
26823
+ ])) : createCommentVNode("", true),
26824
+ formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_23, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.bindMobileWithAccount")) + "/" + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.resetYourPassword")), 1)) : createCommentVNode("", true),
26825
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_24, [
26826
+ createElementVNode("div", _hoisted_25, [
26827
+ createElementVNode("div", _hoisted_26, "🎉 " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.title.register")), 1),
26828
+ createElementVNode("div", _hoisted_27, [
26829
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.haveAccount")) + " ", 1),
26830
+ createElementVNode("span", {
26831
+ onClick: handleTitleBackClick,
26832
+ class: "text-[var(--theme-link)] cursor-pointer hover:underline"
26833
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.backLogin")), 1)
26834
+ ])
26835
+ ]),
26836
+ createElementVNode("div", _hoisted_28, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)
26837
+ ])) : createCommentVNode("", true),
26838
+ (openBlock(), createBlock(unref(_sfc_main$a), {
26839
+ key: formType.value,
26840
+ DataList: FormConfig.value.dict,
26841
+ "show-label": FormConfig.value.showLabel,
26842
+ ref_key: "FormRef",
26843
+ ref: FormRef,
26844
+ onCountDown: handleCountDown,
26845
+ onChange: handleFormChange,
26846
+ onComplete: handleFormInput,
26847
+ layout: FormConfig.value.layout,
26848
+ size: "lg",
26849
+ "label-size": "md",
26850
+ "message-type": "none",
26851
+ "hide-required-mark": "",
26852
+ onKeypress: withKeys(handleConfirm, ["enter"]),
26853
+ class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26854
+ errors: { msgError: msgError.value },
26855
+ formErrors,
26856
+ "is-forget": formType.value === "forget"
26857
+ }, {
26858
+ submit: withCtx(() => {
26859
+ var _a2;
26860
+ return [
26861
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_29, [
26862
+ createElementVNode("div", _hoisted_30, [
26863
+ createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26864
+ errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26865
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26866
+ createElementVNode("span", {
26867
+ onClick: _cache[2] || (_cache[2] = ($event) => handleTabPanelChange("verifyCode")),
26868
+ class: "login-modal-info-left__link"
26869
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26870
+ ], 64)) : createCommentVNode("", true)
26871
+ ]),
26872
+ withDirectives(createElementVNode("div", {
26873
+ class: "login-modal-info-right",
26874
+ onClick: _cache[3] || (_cache[3] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26875
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26876
+ [vShow, tabPanel.value === "password" && formType.value === "login"]
26877
+ ])
26878
+ ])) : createCommentVNode("", true),
26879
+ formType.value === "login" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26880
+ createElementVNode("div", _hoisted_31, [
26881
+ createVNode(unref(Button), {
26882
+ color: "primary",
26883
+ variant: "solid",
26884
+ size: "lg",
26885
+ onClick: handleConfirm,
26886
+ loading: loading.value,
26887
+ disabled: disabled.value,
26888
+ class: "login-modal-button"
26889
+ }, {
26890
+ default: withCtx(() => [
26891
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26892
+ ]),
26893
+ _: 1
26894
+ }, 8, ["loading", "disabled"]),
26895
+ createElementVNode("div", {
26896
+ class: normalizeClass([["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""], "mt-[16px]"])
26897
+ }, [
26898
+ createElementVNode("div", _hoisted_32, [
26899
+ createVNode(_sfc_main$8, {
26900
+ modelValue: status.value,
26901
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => status.value = $event),
26902
+ onDeclares: _cache[5] || (_cache[5] = (typ) => handleDisplay(typ))
26903
+ }, null, 8, ["modelValue"])
26904
+ ])
26905
+ ], 2),
26906
+ createElementVNode("div", _hoisted_33, [
26907
+ _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26908
+ key: 0,
26909
+ class: "text-[var(--theme-link)] flex items-center mt-[12px] cursor-pointer",
26910
+ onClick: withModifiers(handleRegisterHarmony, ["stop"])
26911
+ }, [
26912
+ createElementVNode("div", _hoisted_34, [
26913
+ _cache[15] || (_cache[15] = createElementVNode("img", {
26914
+ src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26915
+ alt: "",
26916
+ class: "w-[32px] h-[32px] inline-block harmony-icon-img"
26917
+ }, null, -1)),
26918
+ recentLoginType.value === unref(LoginMethodEnum).HARMONY ? (openBlock(), createElementBlock("img", {
26919
+ key: 0,
26920
+ src: unref(recentLoginImg),
26921
+ class: "w-[38px] h-[20px] last-login-img"
26922
+ }, null, 8, _hoisted_35)) : createCommentVNode("", true)
26923
+ ]),
26924
+ createElementVNode("span", _hoisted_36, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26925
+ ])) : createCommentVNode("", true)
26926
+ ])
26927
+ ]),
26928
+ createElementVNode("div", _hoisted_37, [
26929
+ createVNode(GAuth, {
26930
+ logos,
26931
+ onAuth: pcAuthLogin,
26932
+ recentLoginType: recentLoginType.value,
26933
+ class: "flex-1"
26934
+ }, null, 8, ["logos", "recentLoginType"])
26935
+ ])
26936
+ ], 64)) : createCommentVNode("", true),
26937
+ formType.value === "register" ? (openBlock(), createElementBlock("div", {
26938
+ key: 2,
26939
+ class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26940
+ }, [
26941
+ createVNode(_sfc_main$7, {
26942
+ modelValue: hwStatus.value,
26943
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => hwStatus.value = $event),
26944
+ onDeclares: _cache[7] || (_cache[7] = (typ) => handleDisplay(typ, "huawei")),
26945
+ "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26946
+ "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26947
+ onClick: _cache[8] || (_cache[8] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26948
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26949
+ createVNode(_sfc_main$7, {
26950
+ modelValue: status.value,
26951
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => status.value = $event),
26952
+ onDeclares: _cache[10] || (_cache[10] = (typ) => handleDisplay(typ)),
26953
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26954
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26955
+ onClick: _cache[11] || (_cache[11] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26956
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26957
+ ], 2)) : createCommentVNode("", true),
26958
+ formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_38, [
26959
+ createElementVNode("div", {
26960
+ class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" && ((_a2 = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a2.length) > 42 ? "cursor-pointer" : ""])
26961
+ }, [
26962
+ createElementVNode("span", _hoisted_39, toDisplayString$1(errorMsg.value), 1)
26963
+ ], 2),
26964
+ createElementVNode("div", _hoisted_40, [
26965
+ createVNode(unref(Button), {
26966
+ color: "primary",
26967
+ variant: "solid",
26968
+ size: "lg",
26969
+ onClick: handleConfirm,
26970
+ disabled: disabled.value,
26971
+ loading: loading.value,
26972
+ class: "w-[100%] mb-[18px]"
26973
+ }, {
26974
+ default: withCtx(() => [
26975
+ createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26976
+ ]),
26977
+ _: 1
26978
+ }, 8, ["disabled", "loading"])
26979
+ ])
26980
+ ])) : createCommentVNode("", true)
26981
+ ];
26982
+ }),
26983
+ _: 1
26984
+ }, 8, ["DataList", "show-label", "layout", "class", "errors", "formErrors", "is-forget"]))
26985
+ ], 2)
26986
+ ]))
26987
+ ];
26988
+ }),
26660
26989
  _: 2
26661
26990
  }, [
26662
26991
  !mfaCheck.value ? {
@@ -26666,10 +26995,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26666
26995
  createVNode(GTitle, {
26667
26996
  icon: unref(IconB),
26668
26997
  title: FormConfig.value.title,
26998
+ "show-title": FormConfig.value.showTitle,
26669
26999
  onBack: handleTitleBackClick,
26670
27000
  "show-back": FormConfig.value.showBack,
26671
27001
  class: "login-modal-title flex-1"
26672
- }, null, 8, ["icon", "title", "show-back"]),
27002
+ }, null, 8, ["icon", "title", "show-title", "show-back"]),
26673
27003
  createElementVNode("div", _hoisted_2, [
26674
27004
  _ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
26675
27005
  key: 0,
@@ -26678,86 +27008,16 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26678
27008
  size: "18"
26679
27009
  })) : createCommentVNode("", true)
26680
27010
  ])
26681
- ]),
26682
- formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
27011
+ ])
26683
27012
  ]),
26684
27013
  key: "0"
26685
- } : void 0,
26686
- !mfaCheck.value ? {
26687
- name: "footer",
26688
- fn: withCtx(() => {
26689
- var _a;
26690
- return [
26691
- formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26692
- createVNode(GAuth, {
26693
- logos,
26694
- onAuth: pcAuthLogin
26695
- }, null, 8, ["logos"]),
26696
- createElementVNode("div", {
26697
- class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
26698
- }, [
26699
- createElementVNode("div", _hoisted_20, [
26700
- createVNode(_sfc_main$8, {
26701
- modelValue: status.value,
26702
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
26703
- onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
26704
- }, null, 8, ["modelValue"])
26705
- ])
26706
- ], 2)
26707
- ])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
26708
- createElementVNode("div", {
26709
- class: normalizeClass(["text-[var(--devui-danger)] text-[14px] break-all box-border leading-[20px] h-[40px]", formType.value === "register" && ((_a = formErrors == null ? void 0 : formErrors.username) == null ? void 0 : _a.length) > 42 ? "cursor-pointer" : ""])
26710
- }, [
26711
- createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
26712
- ], 2),
26713
- formType.value === "register" ? (openBlock(), createElementBlock("div", {
26714
- key: 0,
26715
- class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26716
- }, [
26717
- createVNode(_sfc_main$7, {
26718
- modelValue: hwStatus.value,
26719
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
26720
- onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
26721
- "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26722
- "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26723
- onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26724
- }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26725
- createVNode(_sfc_main$7, {
26726
- modelValue: status.value,
26727
- "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
26728
- onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
26729
- "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26730
- "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26731
- onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26732
- }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26733
- ], 2)) : createCommentVNode("", true),
26734
- createElementVNode("div", _hoisted_23, [
26735
- createVNode(unref(Button), {
26736
- color: "primary",
26737
- variant: "solid",
26738
- size: "lg",
26739
- onClick: handleConfirm,
26740
- disabled: disabled.value,
26741
- loading: loading.value,
26742
- class: "w-[100%]"
26743
- }, {
26744
- default: withCtx(() => [
26745
- createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26746
- ]),
26747
- _: 1
26748
- }, 8, ["disabled", "loading"])
26749
- ])
26750
- ])) : createCommentVNode("", true)
26751
- ];
26752
- }),
26753
- key: "1"
26754
27014
  } : void 0
26755
27015
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
26756
27016
  createVNode(_sfc_main$5, {
26757
27017
  visible: showProtoCheck.value,
26758
- "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
27018
+ "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
26759
27019
  onConfirm: agreeAndLogin,
26760
- onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
27020
+ onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
26761
27021
  }, null, 8, ["visible"])
26762
27022
  ], 64);
26763
27023
  };