vue-layout-gitcode 1.3.46 → 1.3.47

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