vue-layout-gitcode 1.3.47 → 1.3.49

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,8 +40,6 @@ import "vue-devui-lal/layout/style.css";
40
40
  import { RadioGroup, Radio } from "vue-devui-lal/radio";
41
41
  import "@devui-design/icons/icomoon/devui-icon.css";
42
42
  import "vue-devui-lal/radio/style.css";
43
- import { EditableSelect } from "vue-devui-lal/editable-select";
44
- import "vue-devui-lal/editable-select/style.css";
45
43
  import { Checkbox } from "vue-devui-lal/checkbox";
46
44
  import "vue-devui-lal/checkbox/style.css";
47
45
  import { Modal } from "vue-devui-lal/modal";
@@ -478,7 +476,6 @@ const OAUTH_CANCEL = "oauth_cancel";
478
476
  const OAUTH_LOGIN_TYPE_KEY = "oauthType";
479
477
  const REGISTER_SOURCE_TAB = "register_source_tab";
480
478
  const LOGIN_MODAL_TRIGGER_SOURCE = "login_trigger_source";
481
- const REGISTER_CLICK_TO_LOGIN = "register_click_to_login";
482
479
  /*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */
483
480
  const {
484
481
  entries,
@@ -7750,16 +7747,12 @@ const gitCodeLayout$1 = {
7750
7747
  phone: "手机号码",
7751
7748
  cipher: "密码",
7752
7749
  otherLogin: "其他登录方式",
7753
- useAgrAndPriPolTip: "用户协议与隐私政策提示",
7754
- desc: "代码有我,智能随行"
7750
+ useAgrAndPriPolTip: "用户协议与隐私政策提示"
7755
7751
  },
7756
7752
  action: {
7757
7753
  oh: "鸿蒙开发者登录",
7758
7754
  login: "登 录",
7759
- noAccount: "没有账号?",
7760
- haveAccount: "已有账号?",
7761
- registerAgain: "点击注册",
7762
- backLogin: "返回登录",
7755
+ registerAgain: "注册新账号",
7763
7756
  phone: "手机验证码",
7764
7757
  readAgree: "我已阅读并同意",
7765
7758
  verify: "确 认",
@@ -8038,16 +8031,12 @@ const gitCodeLayout = {
8038
8031
  phone: "Phone number",
8039
8032
  cipher: "Password",
8040
8033
  otherLogin: "Other login methods",
8041
- useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice",
8042
- desc: "Code with me, intelligent companion"
8034
+ useAgrAndPriPolTip: "User Agreement and Privacy Policy Notice"
8043
8035
  },
8044
8036
  action: {
8045
8037
  oh: "OpenHarmony Developers",
8046
8038
  login: "Log In",
8047
- noAccount: "No account?",
8048
- haveAccount: "Have an account?",
8049
8039
  registerAgain: "Sign up",
8050
- backLogin: "Log in",
8051
8040
  phone: "SMS code",
8052
8041
  readAgree: "I have read and agree to",
8053
8042
  verify: "Confirm",
@@ -10921,13 +10910,13 @@ const proxyService = (params, customConfigs) => {
10921
10910
  };
10922
10911
  const _hoisted_1$v = { class: "home-nav-right" };
10923
10912
  const _hoisted_2$l = { class: "home-nav-item" };
10924
- const _hoisted_3$j = {
10913
+ const _hoisted_3$i = {
10925
10914
  key: 0,
10926
10915
  class: "tooltip-sign"
10927
10916
  };
10928
- const _hoisted_4$g = { class: "home-nav-tooltip-wrapper" };
10929
- const _hoisted_5$c = { class: "home-nav-text" };
10930
- const _hoisted_6$8 = {
10917
+ const _hoisted_4$e = { class: "home-nav-tooltip-wrapper" };
10918
+ const _hoisted_5$a = { class: "home-nav-text" };
10919
+ const _hoisted_6$7 = {
10931
10920
  key: 1,
10932
10921
  class: "tools-list"
10933
10922
  };
@@ -10963,16 +10952,16 @@ const _hoisted_23$3 = {
10963
10952
  key: 0,
10964
10953
  class: "absolute top-0 right-0 text-[var(--theme-aide-text)]"
10965
10954
  };
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 = {
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 = {
10969
10958
  key: 1,
10970
10959
  class: "finish flex items-center"
10971
10960
  };
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"];
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"];
10976
10965
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
10977
10966
  __name: "index",
10978
10967
  props: {
@@ -11141,8 +11130,8 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11141
11130
  "overlay-class": "tools-tag-tooltip"
11142
11131
  }, {
11143
11132
  content: withCtx(() => [
11144
- createElementVNode("div", _hoisted_4$g, [
11145
- createElementVNode("div", _hoisted_5$c, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11133
+ createElementVNode("div", _hoisted_4$e, [
11134
+ createElementVNode("div", _hoisted_5$a, toDisplayString$1(unref(t2)("gitCodeLayout.userSetting.menu.growthCenter")), 1)
11146
11135
  ])
11147
11136
  ]),
11148
11137
  default: withCtx(() => [
@@ -11156,13 +11145,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11156
11145
  src: "https://cdn-static.gitcode.com/static/images/homeweb/czzx.svg",
11157
11146
  alt: ""
11158
11147
  }, null, -1)),
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)
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)
11160
11149
  ])
11161
11150
  ])
11162
11151
  ]),
11163
11152
  _: 1
11164
11153
  })) : createCommentVNode("", true),
11165
- isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$8, [
11154
+ isModuleVisible(unref(ToolsFloatDisplayItem).ELSE) ? (openBlock(), createElementBlock("div", _hoisted_6$7, [
11166
11155
  createVNode(unref(Tooltip), {
11167
11156
  position: "left",
11168
11157
  "overlay-class": "tools-tag-tooltip"
@@ -11279,10 +11268,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11279
11268
  rateNow.value !== null ? (openBlock(), createElementBlock("div", _hoisted_23$3, [
11280
11269
  createElementVNode("span", null, toDisplayString$1(rateIcon[rateNow.value].title), 1)
11281
11270
  ])) : createCommentVNode("", true),
11282
- createElementVNode("div", _hoisted_24$1, [
11271
+ createElementVNode("div", _hoisted_24, [
11283
11272
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.improveQuestion")) + "?", 1)
11284
11273
  ]),
11285
- createElementVNode("div", _hoisted_25$1, [
11274
+ createElementVNode("div", _hoisted_25, [
11286
11275
  createVNode(unref(Textarea), {
11287
11276
  modelValue: opinionText.value,
11288
11277
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => opinionText.value = $event),
@@ -11306,15 +11295,15 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11306
11295
  ])
11307
11296
  ])) : createCommentVNode("", true)
11308
11297
  ])
11309
- ])) : (openBlock(), createElementBlock("div", _hoisted_26$1, [
11310
- createElementVNode("div", _hoisted_27$1, [
11298
+ ])) : (openBlock(), createElementBlock("div", _hoisted_26, [
11299
+ createElementVNode("div", _hoisted_27, [
11311
11300
  createVNode(GIcon, {
11312
11301
  name: "gt-success",
11313
11302
  size: "14px",
11314
11303
  color: "#fff"
11315
11304
  })
11316
11305
  ]),
11317
- createElementVNode("div", _hoisted_28$1, [
11306
+ createElementVNode("div", _hoisted_28, [
11318
11307
  createElementVNode("span", null, toDisplayString$1(unref(t2)("gitCodeLayout.home.thankFaceback")) + "!", 1)
11319
11308
  ])
11320
11309
  ]))
@@ -11359,7 +11348,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11359
11348
  onClick: _cache[2] || (_cache[2] = //@ts-ignore
11360
11349
  (...args) => unref(scrollToTop) && unref(scrollToTop)(...args))
11361
11350
  }, [
11362
- createElementVNode("div", _hoisted_29$1, [
11351
+ createElementVNode("div", _hoisted_29, [
11363
11352
  createVNode(GIcon, {
11364
11353
  name: "gt-plane-Topping1",
11365
11354
  size: "20px"
@@ -11382,7 +11371,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11382
11371
  width: "200",
11383
11372
  src: activeAdItem.value.imgUrl,
11384
11373
  alt: activeAdItem.value.title
11385
- }, null, 8, _hoisted_30$1)
11374
+ }, null, 8, _hoisted_30)
11386
11375
  ])) : createCommentVNode("", true)
11387
11376
  ]);
11388
11377
  };
@@ -14460,13 +14449,6 @@ function headRequest(request) {
14460
14449
  url: `/aihub/api/v1/theme/label/config/list`,
14461
14450
  method: "get"
14462
14451
  }));
14463
- },
14464
- // 获取今日技术历史
14465
- getTodayTechHistory() {
14466
- return reqCatch(() => request({
14467
- url: `/uc/api/v1/operation/tech-history`,
14468
- method: "get"
14469
- }));
14470
14452
  }
14471
14453
  };
14472
14454
  }
@@ -14491,7 +14473,7 @@ const _hoisted_1$t = {
14491
14473
  class: "ai-home-mb-menu-wrap md:!hidden"
14492
14474
  };
14493
14475
  const _hoisted_2$k = { class: "right-content cursor-pointer" };
14494
- const _hoisted_3$i = { class: "list-menu-ai-home" };
14476
+ const _hoisted_3$h = { class: "list-menu-ai-home" };
14495
14477
  const _sfc_main$y = /* @__PURE__ */ defineComponent({
14496
14478
  __name: "AiHubMenusMobile",
14497
14479
  props: ["activeMenu", "menuList", "isRouterLink"],
@@ -14506,7 +14488,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14506
14488
  });
14507
14489
  const dynamicStyle = computed(() => !isHome.value ? "isBlack" : "isWhite");
14508
14490
  return (_ctx, _cache) => {
14509
- return __props.activeMenu ? (openBlock(), createElementBlock("section", _hoisted_1$t, [
14491
+ return __props.activeMenu.menueKey ? (openBlock(), createElementBlock("section", _hoisted_1$t, [
14510
14492
  __props.activeMenu.icon ? (openBlock(), createBlock(GIcon, {
14511
14493
  key: 0,
14512
14494
  class: "gt-line-ok1",
@@ -14517,7 +14499,7 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14517
14499
  class: normalizeClass(["menu-bg", { "menu-bg-white": !isHome.value }])
14518
14500
  }, {
14519
14501
  menu: withCtx(() => [
14520
- createElementVNode("ul", _hoisted_3$i, [
14502
+ createElementVNode("ul", _hoisted_3$h, [
14521
14503
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.menuList, (item) => {
14522
14504
  var _a;
14523
14505
  return openBlock(), createElementBlock("li", {
@@ -14568,9 +14550,9 @@ const _sfc_main$y = /* @__PURE__ */ defineComponent({
14568
14550
  const AiHubMenusMobile = /* @__PURE__ */ _export_sfc(_sfc_main$y, [["__scopeId", "data-v-gitcode-layout-lib"]]);
14569
14551
  const _hoisted_1$s = { class: "ai-hub-menus-item_label" };
14570
14552
  const _hoisted_2$j = ["onMouseenter"];
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" };
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" };
14574
14556
  const _sfc_main$x = /* @__PURE__ */ defineComponent({
14575
14557
  __name: "AiHubMenus",
14576
14558
  props: ["scene"],
@@ -14705,7 +14687,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14705
14687
  position: ["top-start"]
14706
14688
  }, {
14707
14689
  menu: withCtx(() => [
14708
- createElementVNode("ul", _hoisted_3$h, [
14690
+ createElementVNode("ul", _hoisted_3$g, [
14709
14691
  (openBlock(true), createElementBlock(Fragment, null, renderList(themeTablist.value, (item, index22) => {
14710
14692
  return openBlock(), createBlock(GLink, {
14711
14693
  key: index22,
@@ -14756,20 +14738,21 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14756
14738
  menuList: menus,
14757
14739
  isRouterLink: isRouterLink.value,
14758
14740
  class: "md:hidden"
14759
- }, null, 8, ["activeMenu", "isRouterLink"])) : (openBlock(), createBlock(GLink, {
14741
+ }, null, 8, ["activeMenu", "isRouterLink"])) : createCommentVNode("", true),
14742
+ activeMenu.value.menueKey && !isRouterLink.value ? (openBlock(), createBlock(GLink, {
14760
14743
  key: 1,
14761
14744
  class: "flex items-center gap-[12px] md:hidden",
14762
14745
  href: activeMenu.value.url
14763
14746
  }, {
14764
14747
  default: withCtx(() => [
14765
- createElementVNode("span", _hoisted_4$f, [
14748
+ createElementVNode("span", _hoisted_4$d, [
14766
14749
  createVNode(GIcon, {
14767
14750
  size: "24px",
14768
14751
  name: activeMenu.value.icon
14769
14752
  }, null, 8, ["name"]),
14770
14753
  createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
14771
14754
  ]),
14772
- createElementVNode("div", _hoisted_5$b, [
14755
+ createElementVNode("div", _hoisted_5$9, [
14773
14756
  createVNode(GIcon, {
14774
14757
  size: "18px",
14775
14758
  name: "gt-line-down",
@@ -14778,7 +14761,7 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14778
14761
  ])
14779
14762
  ]),
14780
14763
  _: 1
14781
- }, 8, ["href"]))
14764
+ }, 8, ["href"])) : createCommentVNode("", true)
14782
14765
  ]);
14783
14766
  };
14784
14767
  }
@@ -16603,10 +16586,10 @@ const _hoisted_2$i = {
16603
16586
  key: 1,
16604
16587
  class: "org-layout-toolbar"
16605
16588
  };
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 = {
16589
+ const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16590
+ const _hoisted_4$c = { class: "text-xs" };
16591
+ const _hoisted_5$8 = { class: "flex items-center w-full" };
16592
+ const _hoisted_6$6 = {
16610
16593
  key: 1,
16611
16594
  class: "flex items-center min-w-[30px]"
16612
16595
  };
@@ -16786,7 +16769,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16786
16769
  height: 28,
16787
16770
  is_round: false
16788
16771
  }, null, 8, ["src", "name"]),
16789
- createElementVNode("div", _hoisted_3$g, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16772
+ createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16790
16773
  ];
16791
16774
  }),
16792
16775
  _: 1
@@ -16801,7 +16784,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16801
16784
  default: withCtx(() => {
16802
16785
  var _a2;
16803
16786
  return [
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
+ 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)
16805
16788
  ];
16806
16789
  }),
16807
16790
  _: 1
@@ -16823,7 +16806,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16823
16806
  default: withCtx(() => {
16824
16807
  var _a2, _b2, _c, _d, _e, _f, _g;
16825
16808
  return [
16826
- createElementVNode("h2", _hoisted_5$a, [
16809
+ createElementVNode("h2", _hoisted_5$8, [
16827
16810
  createVNode(GLink, {
16828
16811
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
16829
16812
  class: "pr-[12px]"
@@ -16839,7 +16822,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16839
16822
  width: 28,
16840
16823
  height: 28,
16841
16824
  is_round: !isOrg.value
16842
- }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$7, [
16825
+ }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$6, [
16843
16826
  unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$5)) : (openBlock(), createElementBlock("img", _hoisted_8$5))
16844
16827
  ]))
16845
16828
  ];
@@ -17040,21 +17023,6 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
17040
17023
  AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
17041
17024
  return AuthTypeEnum2;
17042
17025
  })(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 || {});
17058
17026
  var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
17059
17027
  AuthResType2["SUCCESS"] = "success";
17060
17028
  AuthResType2["FAIL"] = "fail";
@@ -17539,10 +17507,10 @@ const _hoisted_1$n = {
17539
17507
  class: "user-level-avatar-badge"
17540
17508
  };
17541
17509
  const _hoisted_2$h = { class: "flex items-center font-medium gap-[4px]" };
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"];
17510
+ const _hoisted_3$e = ["src"];
17511
+ const _hoisted_4$b = { class: "level-name" };
17512
+ const _hoisted_5$7 = { class: "level-icon" };
17513
+ const _hoisted_6$5 = ["src"];
17546
17514
  const _hoisted_7$4 = { class: "custom-btn" };
17547
17515
  const _hoisted_8$4 = { class: "flex items-center justify-center" };
17548
17516
  const maxLevel = 3;
@@ -17598,14 +17566,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17598
17566
  class: "level-avatar",
17599
17567
  src: levelInfo.value.avatar,
17600
17568
  alt: ""
17601
- }, null, 8, _hoisted_3$f),
17602
- createElementVNode("div", _hoisted_4$d, [
17569
+ }, null, 8, _hoisted_3$e),
17570
+ createElementVNode("div", _hoisted_4$b, [
17603
17571
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
17604
- createElementVNode("div", _hoisted_5$9, [
17572
+ createElementVNode("div", _hoisted_5$7, [
17605
17573
  createElementVNode("img", {
17606
17574
  src: levelInfo.value.level,
17607
17575
  alt: ""
17608
- }, null, 8, _hoisted_6$6)
17576
+ }, null, 8, _hoisted_6$5)
17609
17577
  ])
17610
17578
  ])
17611
17579
  ]),
@@ -17619,8 +17587,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17619
17587
  const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17620
17588
  const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
17621
17589
  const _hoisted_2$g = { class: "max-w-[200px]" };
17622
- const _hoisted_3$e = ["title"];
17623
- const _hoisted_4$c = ["title"];
17590
+ const _hoisted_3$d = ["title"];
17591
+ const _hoisted_4$a = ["title"];
17624
17592
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
17625
17593
  __name: "UserAvatarMenu",
17626
17594
  props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
@@ -17788,11 +17756,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17788
17756
  createElementVNode("p", {
17789
17757
  class: "g-user-drawer-info-list-name ellipsis",
17790
17758
  title: __props.accountInfo.nickname
17791
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
17759
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
17792
17760
  createElementVNode("p", {
17793
17761
  class: "g-user-drawer-info-list-id ellipsis",
17794
17762
  title: __props.accountInfo.username
17795
- }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$c)
17763
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
17796
17764
  ]),
17797
17765
  createVNode(GIcon, {
17798
17766
  name: "gt-line-right",
@@ -17838,13 +17806,13 @@ const _hoisted_2$f = {
17838
17806
  key: 0,
17839
17807
  class: "g-user-avatar__badge"
17840
17808
  };
17841
- const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
17842
- const _hoisted_4$b = {
17809
+ const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
17810
+ const _hoisted_4$9 = {
17843
17811
  key: 0,
17844
17812
  class: "g-user-avatar__badge"
17845
17813
  };
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]" };
17814
+ const _hoisted_5$6 = { class: "g-user-drawer" };
17815
+ const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
17848
17816
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
17849
17817
  ...{
17850
17818
  name: "UserAvatar"
@@ -17936,7 +17904,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17936
17904
  name: accountInfo.value.nickname,
17937
17905
  src: accountInfo.value.avatar
17938
17906
  }, null, 8, ["name", "src"]),
17939
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[3] || (_cache[3] = [
17907
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[4] || (_cache[4] = [
17940
17908
  createElementVNode("div", null, null, -1)
17941
17909
  ]))) : createCommentVNode("", true)
17942
17910
  ])
@@ -17949,7 +17917,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17949
17917
  onToggle: handleToggle
17950
17918
  }, {
17951
17919
  menu: withCtx(() => [
17952
- createElementVNode("div", _hoisted_5$8, [
17920
+ createElementVNode("div", _hoisted_5$6, [
17953
17921
  createVNode(UserAvatarMenu, {
17954
17922
  independence: __props.independence,
17955
17923
  loginOutFinish: __props.loginOutFinish,
@@ -17961,12 +17929,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17961
17929
  ])
17962
17930
  ]),
17963
17931
  default: withCtx(() => [
17964
- createElementVNode("div", _hoisted_3$d, [
17932
+ createElementVNode("div", _hoisted_3$c, [
17965
17933
  createVNode(_sfc_main$z, {
17966
17934
  name: accountInfo.value.nickname,
17967
17935
  src: accountInfo.value.avatar
17968
17936
  }, null, 8, ["name", "src"]),
17969
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, _cache[4] || (_cache[4] = [
17937
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[5] || (_cache[5] = [
17970
17938
  createElementVNode("div", null, null, -1)
17971
17939
  ]))) : createCommentVNode("", true)
17972
17940
  ])
@@ -17975,14 +17943,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17975
17943
  })),
17976
17944
  createVNode(unref(Drawer), {
17977
17945
  modelValue: drawerVisible.value,
17978
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => drawerVisible.value = $event),
17946
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => drawerVisible.value = $event),
17979
17947
  position: "right",
17980
17948
  "lock-scroll": "",
17981
17949
  style: normalizeStyle([{ "top": "0", "max-height": "100%" }, { width: "240px", overflowY: "scroll" }])
17982
17950
  }, {
17983
17951
  default: withCtx(() => [
17984
17952
  createElementVNode("div", null, [
17985
- createElementVNode("div", _hoisted_6$5, [
17953
+ createElementVNode("div", _hoisted_6$4, [
17986
17954
  createVNode(unref(Button), {
17987
17955
  class: "cursor-pointer draw-side-bar-close",
17988
17956
  icon: "close",
@@ -17996,7 +17964,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17996
17964
  accountInfo: accountInfo.value,
17997
17965
  isChatBot: __props.isChatBot,
17998
17966
  inAIHub: __props.inAIHub,
17999
- userMenus: __props.userMenus
17967
+ userMenus: __props.userMenus,
17968
+ onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
18000
17969
  }, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
18001
17970
  ])
18002
17971
  ]),
@@ -18096,9 +18065,9 @@ const setlocalVistHistory = (data, localType) => {
18096
18065
  };
18097
18066
  const _hoisted_1$k = { class: "g-header-search-prefix" };
18098
18067
  const _hoisted_2$e = { class: "g-header-search-suffix-splitline" };
18099
- const _hoisted_3$c = { class: "g-header-search-suffix-suffixIcon" };
18100
- const _hoisted_4$a = { class: "history-list" };
18101
- const _hoisted_5$7 = {
18068
+ const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
18069
+ const _hoisted_4$8 = { class: "history-list" };
18070
+ const _hoisted_5$5 = {
18102
18071
  key: 1,
18103
18072
  class: "aireposearch flex-1"
18104
18073
  };
@@ -18113,13 +18082,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18113
18082
  var _a;
18114
18083
  const layoutConfig2 = useLayoutConfig();
18115
18084
  const { t: $t } = i18n.global;
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"));
18085
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DB6xcwoP.js"));
18086
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-B1gIwefy.js"));
18087
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-xBXYbxaF.js"));
18088
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-U44SUR3B.js"));
18089
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-BqqLDz9Y.js"));
18090
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-BBrYPCOn.js"));
18091
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-DPquXtCK.js"));
18123
18092
  const props = __props;
18124
18093
  const repoInfo = inject("repoInfo");
18125
18094
  const orgInfo = inject("orgInfo");
@@ -18572,7 +18541,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18572
18541
  }, {
18573
18542
  menu: withCtx(() => [
18574
18543
  createElementVNode("div", null, [
18575
- withDirectives(createElementVNode("div", _hoisted_4$a, [
18544
+ withDirectives(createElementVNode("div", _hoisted_4$8, [
18576
18545
  createVNode(unref(SearchScopeList), {
18577
18546
  searchScopeList: searchScopeList.value,
18578
18547
  searchStr: searchStr.value,
@@ -18690,7 +18659,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18690
18659
  withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
18691
18660
  [vShow, searchStr.value]
18692
18661
  ]),
18693
- createElementVNode("div", _hoisted_3$c, [
18662
+ createElementVNode("div", _hoisted_3$b, [
18694
18663
  createVNode(GIcon, {
18695
18664
  name: "search",
18696
18665
  class: "g-header-search-icon",
@@ -18708,7 +18677,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18708
18677
  _: 1
18709
18678
  }, 8, ["overlay-class", "visible"])
18710
18679
  ], 2)) : createCommentVNode("", true),
18711
- _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
18680
+ _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
18712
18681
  createVNode(unref(Input), {
18713
18682
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
18714
18683
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -18729,7 +18698,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18729
18698
  }
18730
18699
  });
18731
18700
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18732
- const NoticeModal = defineAsyncComponent(() => import("./notice-n22S4t6U.js"));
18701
+ const NoticeModal = defineAsyncComponent(() => import("./notice-6jK_R0x7.js"));
18733
18702
  function clearNotice() {
18734
18703
  if (localStorage$2.getItem("validator_email")) {
18735
18704
  localStorage$2.removeItem("validator_email");
@@ -18761,8 +18730,8 @@ const _hoisted_1$j = {
18761
18730
  class: "g-header-body"
18762
18731
  };
18763
18732
  const _hoisted_2$d = { class: "g-header-body-left h-full" };
18764
- const _hoisted_3$b = { class: "g-header-body-right h-full" };
18765
- const _hoisted_4$9 = { key: 2 };
18733
+ const _hoisted_3$a = { class: "g-header-body-right h-full" };
18734
+ const _hoisted_4$7 = { key: 2 };
18766
18735
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
18767
18736
  ...{
18768
18737
  name: "header"
@@ -19182,12 +19151,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19182
19151
  createElementVNode("div", _hoisted_2$d, [
19183
19152
  renderSlot(_ctx.$slots, "info", {}, void 0, true)
19184
19153
  ]),
19185
- createElementVNode("div", _hoisted_3$b, [
19154
+ createElementVNode("div", _hoisted_3$a, [
19186
19155
  renderSlot(_ctx.$slots, "menu", {}, void 0, true)
19187
19156
  ])
19188
19157
  ], true)
19189
19158
  ])) : createCommentVNode("", true),
19190
- _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
19159
+ _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
19191
19160
  renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
19192
19161
  ])) : createCommentVNode("", true)
19193
19162
  ], 2)
@@ -19217,7 +19186,7 @@ const createSetting = () => {
19217
19186
  };
19218
19187
  const _hoisted_1$i = { class: "tools-item-wrapper" };
19219
19188
  const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
19220
- const _hoisted_3$a = ["onClick", "title"];
19189
+ const _hoisted_3$9 = ["onClick", "title"];
19221
19190
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19222
19191
  __name: "Lang",
19223
19192
  setup(__props) {
@@ -19252,7 +19221,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19252
19221
  color: "var(--theme-icon-fill-weak)",
19253
19222
  class: "checkbox-item-icon"
19254
19223
  }, null, 8, ["name"])
19255
- ], 16, _hoisted_3$a);
19224
+ ], 16, _hoisted_3$9);
19256
19225
  }), 128))
19257
19226
  ])
19258
19227
  ]);
@@ -19261,7 +19230,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19261
19230
  });
19262
19231
  const _hoisted_1$h = { class: "tools-item-wrapper" };
19263
19232
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
19264
- const _hoisted_3$9 = ["onClick", "title"];
19233
+ const _hoisted_3$8 = ["onClick", "title"];
19265
19234
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
19266
19235
  __name: "Theme",
19267
19236
  setup(__props) {
@@ -19305,7 +19274,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19305
19274
  color: "var(--theme-icon-fill-weak)",
19306
19275
  class: "checkbox-item-icon"
19307
19276
  }, null, 8, ["name"])
19308
- ], 16, _hoisted_3$9);
19277
+ ], 16, _hoisted_3$8);
19309
19278
  }), 128))
19310
19279
  ])
19311
19280
  ]);
@@ -19415,13 +19384,13 @@ const _hoisted_2$a = {
19415
19384
  class: "devui-submenu-title layer_2",
19416
19385
  style: { "padding": "0px 24px" }
19417
19386
  };
19418
- const _hoisted_3$8 = { class: "devui-submenu-title-content cursor-auto" };
19419
- const _hoisted_4$8 = {
19387
+ const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19388
+ const _hoisted_4$6 = {
19420
19389
  class: "devui-submenu-title layer_2",
19421
19390
  style: { "padding": "0px 24px" }
19422
19391
  };
19423
- const _hoisted_5$6 = { class: "devui-submenu-title-content cursor-auto" };
19424
- const _hoisted_6$4 = { key: 0 };
19392
+ const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
19393
+ const _hoisted_6$3 = { key: 0 };
19425
19394
  const _hoisted_7$3 = { class: "project-label" };
19426
19395
  const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19427
19396
  const _hoisted_9$3 = {
@@ -19619,7 +19588,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19619
19588
  _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19620
19589
  createElementVNode("div", _hoisted_2$a, [
19621
19590
  _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19622
- createElementVNode("span", _hoisted_3$8, [
19591
+ createElementVNode("span", _hoisted_3$7, [
19623
19592
  createElementVNode("div", {
19624
19593
  class: "fast-click-button",
19625
19594
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
@@ -19678,9 +19647,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19678
19647
  ], 2)
19679
19648
  ], 64)) : createCommentVNode("", true),
19680
19649
  _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19681
- createElementVNode("div", _hoisted_4$8, [
19650
+ createElementVNode("div", _hoisted_4$6, [
19682
19651
  _cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19683
- createElementVNode("span", _hoisted_5$6, [
19652
+ createElementVNode("span", _hoisted_5$4, [
19684
19653
  createElementVNode("div", {
19685
19654
  class: "fast-click-button",
19686
19655
  onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
@@ -19744,7 +19713,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19744
19713
  }, null, 8, ["src", "name", "class"]))
19745
19714
  ]),
19746
19715
  default: withCtx(() => [
19747
- _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6$4, [
19716
+ _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
19748
19717
  createElementVNode("span", _hoisted_7$3, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19749
19718
  createElementVNode("span", _hoisted_8$3, "/" + toDisplayString$1(item.label), 1)
19750
19719
  ])) : (openBlock(), createElementBlock("span", _hoisted_9$3, toDisplayString$1(item.label), 1))
@@ -19787,9 +19756,9 @@ const _hoisted_2$9 = {
19787
19756
  class: "devui-submenu-title layer_2",
19788
19757
  style: { "padding": "0px 24px" }
19789
19758
  };
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" };
19759
+ const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
19760
+ const _hoisted_4$5 = { class: "project-label" };
19761
+ const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19793
19762
  const INIT_SHOW_COUNT = 4;
19794
19763
  const LOAD_MORE_COUNT = 10;
19795
19764
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -19884,7 +19853,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19884
19853
  return openBlock(), createElementBlock("ul", _hoisted_1$f, [
19885
19854
  createElementVNode("div", _hoisted_2$9, [
19886
19855
  _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19887
- createElementVNode("span", _hoisted_3$7, [
19856
+ createElementVNode("span", _hoisted_3$6, [
19888
19857
  createElementVNode("div", {
19889
19858
  class: "fast-click-button",
19890
19859
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
@@ -19939,8 +19908,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19939
19908
  ]),
19940
19909
  default: withCtx(() => [
19941
19910
  createElementVNode("span", null, [
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
+ createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19912
+ createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
19944
19913
  ])
19945
19914
  ]),
19946
19915
  _: 2
@@ -19978,13 +19947,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19978
19947
  const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19979
19948
  const _hoisted_1$e = { class: "side-bar-label" };
19980
19949
  const _hoisted_2$8 = { class: "side-bar-label" };
19981
- const _hoisted_3$6 = {
19950
+ const _hoisted_3$5 = {
19982
19951
  key: 0,
19983
19952
  class: "line mt-[16px] mb-[6px]"
19984
19953
  };
19985
- const _hoisted_4$6 = ["src"];
19986
- const _hoisted_5$4 = ["src"];
19987
- const _hoisted_6$3 = { class: "side-bar-label" };
19954
+ const _hoisted_4$4 = ["src"];
19955
+ const _hoisted_5$2 = ["src"];
19956
+ const _hoisted_6$2 = { class: "side-bar-label" };
19988
19957
  const _hoisted_7$2 = {
19989
19958
  key: 1,
19990
19959
  class: "line mb-[16px] mt-[6px]"
@@ -20481,7 +20450,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20481
20450
  }, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
20482
20451
  ], 64);
20483
20452
  }), 256)),
20484
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$6)) : createCommentVNode("", true),
20453
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
20485
20454
  (openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
20486
20455
  return openBlock(), createBlock(unref(MenuItem), {
20487
20456
  key: `${item.key}-${item.logo}`,
@@ -20496,11 +20465,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20496
20465
  createElementVNode("img", {
20497
20466
  src: item.logo,
20498
20467
  class: "default-icon w-[16px] h-[16px]"
20499
- }, null, 8, _hoisted_4$6),
20468
+ }, null, 8, _hoisted_4$4),
20500
20469
  createElementVNode("img", {
20501
20470
  src: item.logo_hover,
20502
20471
  class: "active-icon w-[16px] h-[16px]"
20503
- }, null, 8, _hoisted_5$4)
20472
+ }, null, 8, _hoisted_5$2)
20504
20473
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20505
20474
  createVNode(GIcon, {
20506
20475
  name: item.icon,
@@ -20517,7 +20486,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20517
20486
  ], 64))
20518
20487
  ]),
20519
20488
  default: withCtx(() => [
20520
- createElementVNode("span", _hoisted_6$3, toDisplayString$1(item.label), 1)
20489
+ createElementVNode("span", _hoisted_6$2, toDisplayString$1(item.label), 1)
20521
20490
  ]),
20522
20491
  _: 2
20523
20492
  }, 1032, ["data-key", "data-route", "data-href", "data-host", "data-openBlank"]);
@@ -21349,8 +21318,8 @@ const headerCustomPropsData = {
21349
21318
  };
21350
21319
  const _hoisted_1$c = { class: "home-wrapper" };
21351
21320
  const _hoisted_2$7 = { class: "home-content" };
21352
- const _hoisted_3$5 = { class: "home-left-side" };
21353
- const _hoisted_4$5 = { class: "home-main" };
21321
+ const _hoisted_3$4 = { class: "home-left-side" };
21322
+ const _hoisted_4$3 = { class: "home-main" };
21354
21323
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
21355
21324
  __name: "home",
21356
21325
  setup(__props) {
@@ -21441,7 +21410,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21441
21410
  onFollowUser: followUser
21442
21411
  }, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
21443
21412
  createElementVNode("div", _hoisted_2$7, [
21444
- createElementVNode("div", _hoisted_3$5, [
21413
+ createElementVNode("div", _hoisted_3$4, [
21445
21414
  createVNode(GitCodeAside, {
21446
21415
  sceneValue: sceneSelected.value,
21447
21416
  userInfo: userInfo.value,
@@ -21461,7 +21430,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21461
21430
  _: 1
21462
21431
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
21463
21432
  ]),
21464
- createElementVNode("div", _hoisted_4$5, [
21433
+ createElementVNode("div", _hoisted_4$3, [
21465
21434
  _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
21466
21435
  _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
21467
21436
  createVNode(unref(RadioGroup), {
@@ -21671,7 +21640,6 @@ const layoutConfig = useLayoutConfig();
21671
21640
  const { t: t$2 } = i18n.global;
21672
21641
  const GRAPH_CODE = 400007;
21673
21642
  const REMOTE_LOGIN_CODE = 400015;
21674
- const MAX_MOBILE_COUNT = 10;
21675
21643
  const createLoginConfig = (request) => {
21676
21644
  const API = headRequest(request);
21677
21645
  return {
@@ -21679,15 +21647,14 @@ const createLoginConfig = (request) => {
21679
21647
  async phone(param, loginParams) {
21680
21648
  const { validFunc, successFunc = () => {
21681
21649
  }, failFunc = () => {
21682
- }, country = "" } = param;
21650
+ } } = param;
21683
21651
  const check = validFunc ? await validFunc() : true;
21684
21652
  if (!check) return;
21685
21653
  const result2 = await API.loginByMobile(loginParams);
21686
21654
  if (!result2.error) {
21687
21655
  const resultData = result2.data.data;
21688
- saveLoginMobile(loginParams.mobile, country);
21689
21656
  successFunc(resultData, loginParams.mobile);
21690
- phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PHONE);
21657
+ phoneAndPasswordLogin(resultData, API);
21691
21658
  } else {
21692
21659
  failFunc(result2.error.error_message);
21693
21660
  }
@@ -21714,7 +21681,7 @@ const createLoginConfig = (request) => {
21714
21681
  const { user_status_enum } = resultData;
21715
21682
  await successFunc(resultData);
21716
21683
  if (user_status_enum !== "MFA_CHECK") {
21717
- phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PASSWORD);
21684
+ phoneAndPasswordLogin(resultData, API);
21718
21685
  }
21719
21686
  } else {
21720
21687
  failFunc(result2.error.error_message);
@@ -21738,7 +21705,7 @@ const createLoginConfig = (request) => {
21738
21705
  scene_id
21739
21706
  });
21740
21707
  if (!result2.error) {
21741
- phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.MINI_PROGRAM);
21708
+ phoneAndPasswordLogin(result2.data.data, API);
21742
21709
  return { success: true, data: result2.data.data };
21743
21710
  }
21744
21711
  return { success: false, error: result2.error };
@@ -21865,12 +21832,11 @@ function bindResultResolve(params, API) {
21865
21832
  function sendMessageToParent(message) {
21866
21833
  window.parent && window.parent.postMessage(message, "*");
21867
21834
  }
21868
- function phoneAndPasswordLogin(userInfo, API, loginMethod) {
21835
+ function phoneAndPasswordLogin(userInfo, API) {
21869
21836
  successResolve({
21870
21837
  path: new URLSearchParams(window.location.search).get("returnUrl") || "",
21871
21838
  userInfo,
21872
- type: AuthTypeEnum.PHONE_AND_PASSWORD,
21873
- loginMethod
21839
+ type: AuthTypeEnum.PHONE_AND_PASSWORD
21874
21840
  }, API);
21875
21841
  const params = {
21876
21842
  access_token: userInfo.access_token,
@@ -21905,13 +21871,12 @@ async function checkUserRepositoryIssue(API) {
21905
21871
  }
21906
21872
  async function successResolve(params, API) {
21907
21873
  var _a;
21908
- const { path, userInfo, type, loginMethod } = params;
21874
+ const { path, userInfo, type } = params;
21909
21875
  if (userInfo) {
21910
21876
  emitEvent("updateUserInfo", userInfo);
21911
21877
  const { username, email } = userInfo;
21912
21878
  setEmailValid(username, email);
21913
21879
  }
21914
- saveLastLoginType(loginMethod);
21915
21880
  if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
21916
21881
  const { unMount, isMounted } = usePopup();
21917
21882
  if (isMounted()) {
@@ -22017,21 +21982,6 @@ const HandleParentWindowGetLoginInfo = (request) => {
22017
21982
  }
22018
21983
  };
22019
21984
  };
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
- }
22035
21985
  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";
22036
21986
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22037
21987
  __proto__: null,
@@ -22218,10 +22168,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22218
22168
  }
22219
22169
  });
22220
22170
  const _hoisted_1$9 = { class: "flex flex-1 g-input-select" };
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" };
22171
+ const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
22225
22172
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
22226
22173
  __name: "inputSelect",
22227
22174
  props: {
@@ -22229,8 +22176,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22229
22176
  "onUpdate:modelValue": { type: Function },
22230
22177
  placeholder: {},
22231
22178
  prop: {},
22232
- country: {},
22233
- editableSelect: { type: Boolean }
22179
+ country: {}
22234
22180
  },
22235
22181
  emits: ["change", "selectChange", "update:modelValue"],
22236
22182
  setup(__props, { emit: __emit }) {
@@ -22239,6 +22185,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22239
22185
  const emits = __emit;
22240
22186
  const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
22241
22187
  const { vModels } = useModel(props, emits);
22188
+ console.log(cache_countdown, "cache_countdown");
22242
22189
  const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
22243
22190
  const options = ref([]);
22244
22191
  const handleChange = () => {
@@ -22256,50 +22203,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22256
22203
  };
22257
22204
  });
22258
22205
  };
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
- };
22206
+ onMounted(() => {
22207
+ getAllCountries();
22208
+ });
22283
22209
  const handleCountryChange = () => {
22284
22210
  emits("selectChange", country.value);
22285
22211
  emits("change");
22286
22212
  };
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
- });
22297
22213
  return (_ctx, _cache) => {
22298
22214
  return openBlock(), createElementBlock("div", _hoisted_1$9, [
22299
- createElementVNode("div", _hoisted_2$6, [
22300
- (props == null ? void 0 : props.editableSelect) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
22215
+ createVNode(unref(Input), mergeProps({
22216
+ modelValue: unref(vModels),
22217
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22218
+ }, _ctx.prop, {
22219
+ placeholder: _ctx.placeholder,
22220
+ onChange: handleChange
22221
+ }), {
22222
+ prepend: withCtx(() => [
22301
22223
  createVNode(unref(Select), {
22302
- class: "login-country-select",
22224
+ class: "input-select",
22303
22225
  modelValue: country.value,
22304
22226
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
22305
22227
  menuClass: "country-select",
@@ -22313,7 +22235,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22313
22235
  value: item.value
22314
22236
  }, {
22315
22237
  default: withCtx(() => [
22316
- createElementVNode("div", _hoisted_3$4, [
22238
+ createElementVNode("div", _hoisted_2$6, [
22317
22239
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
22318
22240
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
22319
22241
  ])
@@ -22323,70 +22245,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22323
22245
  }), 128))
22324
22246
  ]),
22325
22247
  _: 1
22326
- }, 8, ["modelValue"]),
22327
- createVNode(unref(EditableSelect), mergeProps({
22328
- modelValue: unref(vModels),
22329
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22330
- }, props, {
22331
- size: "lg",
22332
- width: 292,
22333
- options: loginMobileList.value,
22334
- placeholder: props.placeholder,
22335
- onInputChange: handleInputSelectChange,
22336
- onChange: handleSelectChange,
22337
- class: "login-phone-select"
22338
- }), {
22339
- item: withCtx((slotProps) => [
22340
- createElementVNode("div", _hoisted_4$4, [
22341
- createElementVNode("div", null, toDisplayString$1(slotProps.option.label), 1),
22342
- createVNode(GIcon, {
22343
- name: "gt-line-delete",
22344
- class: "w-[16px] h-[16px] cursor-pointer",
22345
- onClick: withModifiers(($event) => deleteMobile(slotProps.option.value), ["stop"])
22346
- }, null, 8, ["onClick"])
22347
- ])
22348
- ]),
22349
- _: 1
22350
- }, 16, ["modelValue", "options", "placeholder"])
22351
- ], 64)) : (openBlock(), createBlock(unref(Input), mergeProps({
22352
- key: 1,
22353
- modelValue: unref(vModels),
22354
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22355
- }, _ctx.prop, {
22356
- placeholder: _ctx.placeholder,
22357
- onChange: handleChange
22358
- }), {
22359
- prepend: withCtx(() => [
22360
- createVNode(unref(Select), {
22361
- class: "input-select",
22362
- modelValue: country.value,
22363
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => country.value = $event),
22364
- menuClass: "country-select",
22365
- onValueChange: handleCountryChange
22366
- }, {
22367
- default: withCtx(() => [
22368
- (openBlock(true), createElementBlock(Fragment, null, renderList(options.value, (item, index2) => {
22369
- return openBlock(), createBlock(unref(Option), {
22370
- name: item.label,
22371
- key: index2,
22372
- value: item.value
22373
- }, {
22374
- default: withCtx(() => [
22375
- createElementVNode("div", _hoisted_5$3, [
22376
- createElementVNode("span", null, toDisplayString$1(item.name), 1),
22377
- createElementVNode("span", null, toDisplayString$1(item.label), 1)
22378
- ])
22379
- ]),
22380
- _: 2
22381
- }, 1032, ["name", "value"]);
22382
- }), 128))
22383
- ]),
22384
- _: 1
22385
- }, 8, ["modelValue"])
22386
- ]),
22387
- _: 1
22388
- }, 16, ["modelValue", "placeholder"]))
22389
- ])
22248
+ }, 8, ["modelValue"])
22249
+ ]),
22250
+ _: 1
22251
+ }, 16, ["modelValue", "placeholder"])
22390
22252
  ]);
22391
22253
  };
22392
22254
  }
@@ -22408,8 +22270,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22408
22270
  errors: { default: {
22409
22271
  msgError: false
22410
22272
  } },
22411
- isForget: { type: Boolean, default: false },
22412
- formErrors: { default: {} }
22273
+ isForget: { type: Boolean, default: false }
22413
22274
  },
22414
22275
  emits: ["change", "countDown", "complete"],
22415
22276
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -22650,15 +22511,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22650
22511
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
22651
22512
  key: 2,
22652
22513
  country: Data.country,
22653
- class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
22654
22514
  modelValue: Data[formItem.key],
22655
22515
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
22656
22516
  onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
22657
22517
  onChange: ($event) => handleChange(formItem.key),
22658
22518
  placeholder: unref($t)("gitCodeLayout.LoginModal.rule.pleaseFill", { label: formItem.label })
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({
22519
+ }, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22662
22520
  key: formItem.key,
22663
22521
  modelValue: Data[formItem.key],
22664
22522
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -22679,41 +22537,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22679
22537
  };
22680
22538
  }
22681
22539
  });
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"];
22540
+ const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
22541
+ const _hoisted_2$5 = { class: "icons" };
22542
+ const _hoisted_3$3 = ["src", "alt", "onClick"];
22689
22543
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22690
22544
  __name: "auth",
22691
22545
  props: {
22692
- logos: {},
22693
- recentLoginType: {}
22546
+ logos: {}
22694
22547
  },
22695
22548
  emits: ["auth"],
22696
22549
  setup(__props, { emit: __emit }) {
22697
22550
  const request = inject("request");
22698
22551
  const API = headRequest(request);
22699
22552
  const { t: $t } = i18n.global;
22700
- const props = __props;
22701
22553
  const emits = __emit;
22702
22554
  const handleClick = (icon) => {
22703
22555
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
22704
22556
  emits("auth", icon.alt);
22705
22557
  };
22706
- const checkIsRecentLogin = (loginMethodList) => {
22707
- return loginMethodList.includes(props.recentLoginType);
22708
- };
22709
22558
  return (_ctx, _cache) => {
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, [
22559
+ return openBlock(), createElementBlock(Fragment, null, [
22560
+ createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
22561
+ createElementVNode("div", _hoisted_2$5, [
22713
22562
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
22714
22563
  return openBlock(), createElementBlock("div", {
22715
22564
  key: icon.alt,
22716
- class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
22565
+ class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
22717
22566
  }, [
22718
22567
  createVNode(unref(Tooltip), {
22719
22568
  position: "top",
@@ -22726,21 +22575,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22726
22575
  src: icon.src,
22727
22576
  alt: icon.alt,
22728
22577
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
22729
- }, null, 8, _hoisted_4$3)
22578
+ }, null, 8, _hoisted_3$3)
22730
22579
  ]),
22731
22580
  _: 2
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
- ])
22581
+ }, 1032, ["content", "disabled"])
22740
22582
  ]);
22741
22583
  }), 128))
22742
22584
  ])
22743
- ]);
22585
+ ], 64);
22744
22586
  };
22745
22587
  }
22746
22588
  });
@@ -22808,7 +22650,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22808
22650
  modelValue: unref(vModels),
22809
22651
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
22810
22652
  size: "sm",
22811
- class: "mb-[8px] agree-module flex items-center"
22653
+ class: "mt-[6px] mb-[12px] agree-module flex items-center"
22812
22654
  }, {
22813
22655
  default: withCtx(() => [
22814
22656
  createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
@@ -22830,16 +22672,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22830
22672
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
22831
22673
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
22832
22674
  const _hoisted_3$2 = ["src"];
22833
- const _hoisted_4$2 = {
22834
- key: 0,
22835
- class: "tracking-[.5px]"
22836
- };
22675
+ const _hoisted_4$2 = { class: "tracking-[.5px]" };
22837
22676
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22838
22677
  __name: "title",
22839
22678
  props: {
22840
22679
  title: {},
22841
22680
  showBack: { type: Boolean },
22842
- showTitle: { type: Boolean },
22843
22681
  icon: {}
22844
22682
  },
22845
22683
  emits: ["back"],
@@ -22858,7 +22696,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22858
22696
  onClick: withModifiers(handleClick, ["stop"])
22859
22697
  }, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
22860
22698
  ]),
22861
- _ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
22699
+ createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
22862
22700
  ]);
22863
22701
  };
22864
22702
  }
@@ -25525,7 +25363,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25525
25363
  }
25526
25364
  });
25527
25365
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25528
- const SlidCaptcha = defineAsyncComponent(() => import("./index-ChtMNoT-.js"));
25366
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-DeA-WN-i.js"));
25529
25367
  const useSlidCaptcha = () => {
25530
25368
  const { mount, unMount } = usePopup("slid-captcha-popup");
25531
25369
  const open = (config) => {
@@ -25648,76 +25486,59 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
25648
25486
  stopPoll
25649
25487
  };
25650
25488
  }
25651
- const _hoisted_1$1 = { class: "flex items-center gap-1 h-[48px]" };
25489
+ const _hoisted_1$1 = { class: "flex items-center gap-1" };
25652
25490
  const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
25653
25491
  const _hoisted_3 = {
25492
+ key: 0,
25493
+ class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
25494
+ };
25495
+ const _hoisted_4 = {
25496
+ key: 0,
25497
+ class: "flex items-center justify-center mb-[24px] mt-[-2px]"
25498
+ };
25499
+ const _hoisted_5 = {
25654
25500
  key: 1,
25655
- class: "login-modal-content"
25501
+ class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25656
25502
  };
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 = {
25503
+ const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
25504
+ const _hoisted_7 = ["src"];
25505
+ const _hoisted_8 = {
25663
25506
  key: 0,
25664
25507
  class: "mask"
25665
25508
  };
25666
- const _hoisted_10 = {
25509
+ const _hoisted_9 = {
25667
25510
  key: 0,
25668
- class: "flex flex-col gap-2 items-center justify-center gap-[40px]"
25511
+ class: "flex flex-col gap-2 items-center justify-center"
25669
25512
  };
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 = {
25513
+ const _hoisted_10 = {
25673
25514
  key: 1,
25674
25515
  class: "flex flex-col gap-3 items-center justify-center"
25675
25516
  };
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 = {
25517
+ const _hoisted_11 = { class: "text-[var(--color-success)]" };
25518
+ const _hoisted_12 = { class: "text-center" };
25519
+ const _hoisted_13 = {
25683
25520
  key: 1,
25684
- class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]"
25521
+ class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
25685
25522
  };
25686
- const _hoisted_18 = { class: "font-medium text-[20px]" };
25687
- const _hoisted_19 = { class: "mt-[16px]" };
25688
- const _hoisted_20 = {
25523
+ const _hoisted_14 = {
25689
25524
  key: 0,
25690
- class: "flex items-baseline justify-between mb-[24px]"
25525
+ class: "login-modal-info h-[20px]"
25691
25526
  };
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
+ const _hoisted_15 = { class: "login-modal-info-left" };
25528
+ const _hoisted_16 = {
25697
25529
  key: 1,
25698
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25530
+ class: "mt-[18px]"
25699
25531
  };
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 = {
25532
+ const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
25533
+ const _hoisted_18 = { class: "mr-[16px]" };
25534
+ const _hoisted_19 = {
25706
25535
  key: 0,
25707
- class: "login-modal-info h-[20px]"
25536
+ class: "login-modal-footer"
25708
25537
  };
25709
- const _hoisted_32 = { class: "login-modal-info-left" };
25710
- const _hoisted_33 = { class: "mt-[18px]" };
25711
- const _hoisted_34 = { class: "flex justify-center" };
25712
- const _hoisted_35 = { class: "flex items-center justify-center pr-[16px] mt-[16px]" };
25713
- const _hoisted_36 = { class: "harmony-icon" };
25714
- const _hoisted_37 = { class: "w-[50px] h-[20px] last-login-img" };
25715
- const _hoisted_38 = ["src"];
25716
- const _hoisted_39 = { class: "ml-[8px] text-[12px]" };
25717
- const _hoisted_40 = { class: "login-modal-footer flex items-center justify-center" };
25718
- const _hoisted_41 = { key: 2 };
25719
- const _hoisted_42 = { class: "line-clamp-2" };
25720
- const _hoisted_43 = { class: "absolute-btn" };
25538
+ const _hoisted_20 = { class: "flex justify-center" };
25539
+ const _hoisted_21 = { key: 1 };
25540
+ const _hoisted_22 = { class: "line-clamp-2" };
25541
+ const _hoisted_23 = { class: "absolute-btn" };
25721
25542
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25722
25543
  ...{
25723
25544
  name: "GLoginModal"
@@ -25760,10 +25581,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25760
25581
  const IconB = TransAssetsUrl(IconSource, "logo-back");
25761
25582
  const IconW = TransAssetsUrl(IconSource, "logo-wechat");
25762
25583
  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
- };
25767
25584
  const formErrors = reactive({});
25768
25585
  const extraErrors = reactive({
25769
25586
  agreement: "",
@@ -25787,32 +25604,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25787
25604
  {
25788
25605
  src: IconC,
25789
25606
  alt: "csdn",
25790
- describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25791
- loginMethodList: ["csdn"]
25607
+ describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25792
25608
  },
25793
25609
  {
25794
25610
  src: IconHb,
25795
25611
  alt: "hbuilder",
25796
- describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25797
- loginMethodList: ["hbuilder", "hbuilder_plugins"]
25612
+ describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25798
25613
  },
25799
25614
  {
25800
25615
  src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
25801
25616
  alt: "github",
25802
- describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25803
- loginMethodList: ["github"]
25617
+ describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25804
25618
  },
25805
25619
  {
25806
25620
  src: IconH,
25807
25621
  alt: "gitee",
25808
- describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25809
- loginMethodList: ["gitee"]
25622
+ describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25810
25623
  },
25811
25624
  {
25812
25625
  src: IconW,
25813
25626
  alt: "wechat_open",
25814
- describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin"),
25815
- loginMethodList: ["wechat_open", "wechat_mp"]
25627
+ describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
25816
25628
  }
25817
25629
  ]);
25818
25630
  const emits = __emit;
@@ -25851,7 +25663,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25851
25663
  {
25852
25664
  type: "input",
25853
25665
  key: "username",
25854
- label: $t("gitCodeLayout.userSetting.account.phone") + "/" + $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25666
+ label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25855
25667
  required: true
25856
25668
  },
25857
25669
  {
@@ -26034,7 +25846,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26034
25846
  const status = ref(false);
26035
25847
  const hwStatus = ref(false);
26036
25848
  const FormRef = shallowRef(null);
26037
- const tabPanel = ref("verifyCode");
25849
+ const tabPanel = ref("miniProgram");
26038
25850
  const formType = ref(props.defaultType);
26039
25851
  const showProtoCheck = ref(false);
26040
25852
  const agreeAndLogin = () => {
@@ -26054,14 +25866,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26054
25866
  dict: RegisterForm.map((item) => {
26055
25867
  return {
26056
25868
  ...item,
26057
- defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : "",
26058
- editableSelect: false
25869
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
26059
25870
  };
26060
25871
  }),
26061
25872
  showLabel: true,
26062
25873
  layout: "horizontal",
26063
- showTitle: false,
26064
- showBack: false
25874
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
25875
+ showBack: true
26065
25876
  };
26066
25877
  }
26067
25878
  if (formType.value === "forget") {
@@ -26078,13 +25889,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26078
25889
  dict: VerifyForm.map((item) => {
26079
25890
  return {
26080
25891
  ...item,
26081
- defaultValue: item.key === "mobile" ? cacheForm.mobile : "",
26082
- editableSelect: true
25892
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
26083
25893
  };
26084
25894
  }),
26085
25895
  showLabel: false,
26086
25896
  layout: "vertical",
26087
- showTitle: false,
25897
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26088
25898
  showBack: false
26089
25899
  };
26090
25900
  } else if (tabPanel.value === "password") {
@@ -26092,7 +25902,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26092
25902
  dict: PasswordForm,
26093
25903
  showLabel: false,
26094
25904
  layout: "vertical",
26095
- showTitle: false,
25905
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26096
25906
  showBack: false
26097
25907
  };
26098
25908
  } else {
@@ -26100,7 +25910,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26100
25910
  dict: MiniProgramForm,
26101
25911
  showLabel: false,
26102
25912
  layout: "vertical",
26103
- showTitle: false,
25913
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26104
25914
  showBack: false
26105
25915
  };
26106
25916
  }
@@ -26152,7 +25962,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26152
25962
  };
26153
25963
  const mfaCheck = ref(false);
26154
25964
  const handleMFALogin = (data) => {
26155
- phoneAndPasswordLogin(data, API, LoginMethodEnum.PASSWORD);
25965
+ phoneAndPasswordLogin(data, API);
26156
25966
  };
26157
25967
  const slidCaptcha = useSlidCaptcha();
26158
25968
  const LoginCheck = async () => {
@@ -26184,7 +25994,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26184
25994
  }
26185
25995
  };
26186
25996
  const registerAction = async (res, mobile) => {
26187
- var _a;
26188
25997
  const data = {
26189
25998
  username: res.username,
26190
25999
  password: res.password,
@@ -26200,9 +26009,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26200
26009
  cacheForm.user_id = user_id;
26201
26010
  cacheForm.mask = mask;
26202
26011
  cacheForm.mobile = res.mobile;
26203
- const { country } = ((_a = FormRef.value) == null ? void 0 : _a.Data) || {};
26204
- saveLoginMobile(mobile, country);
26205
- phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.PHONE);
26012
+ phoneAndPasswordLogin(result2.data.data, API);
26206
26013
  } else {
26207
26014
  extraErrors.requestInfo = result2.error.error_message;
26208
26015
  }
@@ -26249,7 +26056,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26249
26056
  mobile,
26250
26057
  code: res.code
26251
26058
  };
26252
- await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country }, params, graphValidate, handleRemoteLogin);
26059
+ await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
26253
26060
  }
26254
26061
  setTimeout(() => {
26255
26062
  loading.value = false;
@@ -26522,8 +26329,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26522
26329
  const pcAuthLogin = (type) => {
26523
26330
  authType.value = type;
26524
26331
  saveOauthType(type);
26525
- stopPoll();
26526
- miniProgramStatus.value = "TIMEOUT";
26332
+ if (tabPanel.value === "miniProgram") {
26333
+ stopPoll();
26334
+ miniProgramStatus.value = "TIMEOUT";
26335
+ }
26527
26336
  if (localStorage$2.getItem("access_token")) {
26528
26337
  emits("close", true);
26529
26338
  } else {
@@ -26600,9 +26409,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26600
26409
  emits("directClose");
26601
26410
  return;
26602
26411
  }
26603
- useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
26604
26412
  formType.value = "login";
26605
- checkMiniProgramStatus();
26606
26413
  };
26607
26414
  const miniProgramStatus = ref("WAITING");
26608
26415
  const miniProgramLoading = ref(false);
@@ -26618,7 +26425,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26618
26425
  };
26619
26426
  const fetchMiniProgramStatus = async () => {
26620
26427
  var _a;
26621
- if (formType.value !== "login") {
26428
+ if (tabPanel.value !== "miniProgram") {
26622
26429
  stopPoll();
26623
26430
  return;
26624
26431
  }
@@ -26661,8 +26468,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26661
26468
  tabPanel.value = val;
26662
26469
  authType.value = null;
26663
26470
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
26664
- };
26665
- const checkMiniProgramStatus = async () => {
26471
+ if (val !== "miniProgram") {
26472
+ stopPoll();
26473
+ handleMiniProgramReset();
26474
+ return;
26475
+ }
26666
26476
  if (!miniProgramInfo.value.scene_id) {
26667
26477
  getMiniProgramQrCode();
26668
26478
  return;
@@ -26678,24 +26488,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26678
26488
  shouldMiniProgramPoll.value = true;
26679
26489
  startPoll();
26680
26490
  };
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
- };
26691
26491
  const resetPwdDirectly = ref(false);
26692
26492
  const resetPwdWhiteList = ["change_password"];
26693
26493
  onMounted(() => {
26694
- if (formType.value === "login") {
26695
- getMiniProgramQrCode();
26494
+ if (tabPanel.value === "miniProgram" && formType.value === "login") {
26495
+ handleTabPanelChange(tabPanel.value);
26696
26496
  }
26697
- getRecentLogin();
26698
- getTodayTechHistory();
26699
26497
  if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
26700
26498
  resetPwdDirectly.value = true;
26701
26499
  }
@@ -26704,7 +26502,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26704
26502
  return openBlock(), createElementBlock(Fragment, null, [
26705
26503
  createVNode(unref(Modal), {
26706
26504
  modelValue: unref(vModels),
26707
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26505
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26708
26506
  "show-close": false,
26709
26507
  "lock-scroll": _ctx.lockScroll,
26710
26508
  draggable: _ctx.draggable,
@@ -26714,293 +26512,157 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26714
26512
  class: normalizeClass([
26715
26513
  "login-modal",
26716
26514
  formType.value === "login" ? "login-modal-l" : "login-modal-r",
26717
- formType.value === "register" ? "login-modal-register" : "",
26718
26515
  mfaCheck.value ? "login-modal-mfa" : ""
26719
26516
  ]),
26720
26517
  onClose: onModalClose
26721
26518
  }, createSlots({
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
- }, [
26519
+ default: withCtx(() => [
26520
+ mfaCheck.value ? (openBlock(), createBlock(MFA, {
26521
+ key: 0,
26522
+ API: unref(API),
26523
+ onBack: handleBack,
26524
+ onSuccess: handleMFALogin,
26525
+ mask: cacheForm.mask
26526
+ }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26527
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
26528
+ createElementVNode("div", {
26529
+ class: normalizeClass([
26530
+ "login-modal-tab mr-[18px]",
26531
+ tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26532
+ ]),
26533
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
26534
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
26535
+ createElementVNode("div", {
26536
+ class: normalizeClass([
26537
+ "login-modal-tab mr-[18px] ml-[18px]",
26538
+ tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26539
+ ]),
26540
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26541
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
26542
+ createElementVNode("div", {
26543
+ class: normalizeClass([
26544
+ "login-modal-tab ml-[18px]",
26545
+ tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26546
+ ]),
26547
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26548
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26549
+ ])) : createCommentVNode("", true),
26550
+ 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),
26551
+ formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
26552
+ key: 2,
26553
+ loading: miniProgramLoading.value,
26554
+ empty: false,
26555
+ card: false,
26556
+ class: "mini-program-qrcode",
26557
+ border: false,
26558
+ animation: true
26559
+ }, {
26560
+ default: withCtx(() => [
26561
+ createElementVNode("div", _hoisted_6, [
26739
26562
  createElementVNode("img", {
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
26563
+ src: miniProgramInfo.value.qrcode,
26564
+ alt: "小程序二维码",
26565
+ class: "w-[158px] h-[158px]"
26566
+ }, null, 8, _hoisted_7),
26567
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26568
+ miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26569
+ createVNode(GIcon, {
26570
+ name: "gt-line-Refresh",
26571
+ size: "18"
26572
+ }),
26573
+ createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26574
+ createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26575
+ ])) : createCommentVNode("", true),
26576
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
26577
+ createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26578
+ createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26579
+ ])) : createCommentVNode("", true)
26580
+ ])) : createCommentVNode("", true),
26581
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26582
+ key: 2,
26583
+ onClick: getMiniProgramQrCode,
26584
+ class: "mt-2"
26585
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26586
+ ])
26587
+ ]),
26588
+ _: 1
26589
+ }, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
26590
+ key: formType.value,
26591
+ DataList: FormConfig.value.dict,
26592
+ "show-label": FormConfig.value.showLabel,
26593
+ ref_key: "FormRef",
26594
+ ref: FormRef,
26595
+ onCountDown: handleCountDown,
26596
+ onChange: handleFormChange,
26597
+ onComplete: handleFormInput,
26598
+ layout: FormConfig.value.layout,
26599
+ size: "lg",
26600
+ "label-size": "md",
26601
+ "message-type": "none",
26602
+ "hide-required-mark": "",
26603
+ onKeypress: withKeys(handleConfirm, ["enter"]),
26604
+ class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26605
+ errors: { msgError: msgError.value },
26606
+ "is-forget": formType.value === "forget"
26607
+ }, {
26608
+ submit: withCtx(() => [
26609
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
26610
+ createElementVNode("div", _hoisted_15, [
26611
+ createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26612
+ errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26613
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26614
+ createElementVNode("span", {
26615
+ onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
26616
+ class: "login-modal-info-left__link"
26617
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26618
+ ], 64)) : createCommentVNode("", true)
26619
+ ]),
26620
+ withDirectives(createElementVNode("div", {
26621
+ class: "login-modal-info-right",
26622
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26623
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26624
+ [vShow, tabPanel.value === "password" && formType.value === "login"]
26625
+ ])
26626
+ ])) : createCommentVNode("", true),
26627
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26628
+ createVNode(unref(Button), {
26629
+ color: "primary",
26630
+ variant: "solid",
26631
+ size: "lg",
26632
+ onClick: handleConfirm,
26633
+ loading: loading.value,
26634
+ disabled: disabled.value,
26635
+ class: "login-modal-button"
26757
26636
  }, {
26758
26637
  default: withCtx(() => [
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
- ])
26638
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26793
26639
  ]),
26794
26640
  _: 1
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"]))
26641
+ }, 8, ["loading", "disabled"]),
26642
+ createElementVNode("div", _hoisted_17, [
26643
+ _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26644
+ key: 0,
26645
+ class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
26646
+ onClick: withModifiers(handleRegisterHarmony, ["stop"])
26812
26647
  }, [
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),
26648
+ _cache[16] || (_cache[16] = createElementVNode("img", {
26649
+ src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26650
+ alt: "",
26651
+ class: "mr-[16px] inline-block"
26652
+ }, null, -1)),
26653
+ createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26654
+ ])) : createCommentVNode("", true),
26822
26655
  createElementVNode("div", {
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
+ class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
26657
+ onClick: withModifiers(clickRegister, ["stop"])
26835
26658
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
26836
26659
  ])
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
- }),
26660
+ ])) : createCommentVNode("", true)
26661
+ ]),
26662
+ _: 1
26663
+ }, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
26664
+ ], 64))
26665
+ ]),
27004
26666
  _: 2
27005
26667
  }, [
27006
26668
  !mfaCheck.value ? {
@@ -27010,11 +26672,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27010
26672
  createVNode(GTitle, {
27011
26673
  icon: unref(IconB),
27012
26674
  title: FormConfig.value.title,
27013
- "show-title": FormConfig.value.showTitle,
27014
26675
  onBack: handleTitleBackClick,
27015
26676
  "show-back": FormConfig.value.showBack,
27016
26677
  class: "login-modal-title flex-1"
27017
- }, null, 8, ["icon", "title", "show-title", "show-back"]),
26678
+ }, null, 8, ["icon", "title", "show-back"]),
27018
26679
  createElementVNode("div", _hoisted_2, [
27019
26680
  _ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
27020
26681
  key: 0,
@@ -27023,16 +26684,86 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27023
26684
  size: "18"
27024
26685
  })) : createCommentVNode("", true)
27025
26686
  ])
27026
- ])
26687
+ ]),
26688
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
27027
26689
  ]),
27028
26690
  key: "0"
26691
+ } : void 0,
26692
+ !mfaCheck.value ? {
26693
+ name: "footer",
26694
+ fn: withCtx(() => {
26695
+ var _a;
26696
+ return [
26697
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26698
+ createVNode(GAuth, {
26699
+ logos,
26700
+ onAuth: pcAuthLogin
26701
+ }, null, 8, ["logos"]),
26702
+ createElementVNode("div", {
26703
+ class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
26704
+ }, [
26705
+ createElementVNode("div", _hoisted_20, [
26706
+ createVNode(_sfc_main$8, {
26707
+ modelValue: status.value,
26708
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
26709
+ onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
26710
+ }, null, 8, ["modelValue"])
26711
+ ])
26712
+ ], 2)
26713
+ ])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
26714
+ createElementVNode("div", {
26715
+ 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" : ""])
26716
+ }, [
26717
+ createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
26718
+ ], 2),
26719
+ formType.value === "register" ? (openBlock(), createElementBlock("div", {
26720
+ key: 0,
26721
+ class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26722
+ }, [
26723
+ createVNode(_sfc_main$7, {
26724
+ modelValue: hwStatus.value,
26725
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
26726
+ onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
26727
+ "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26728
+ "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26729
+ onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26730
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26731
+ createVNode(_sfc_main$7, {
26732
+ modelValue: status.value,
26733
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
26734
+ onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
26735
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26736
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26737
+ onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26738
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26739
+ ], 2)) : createCommentVNode("", true),
26740
+ createElementVNode("div", _hoisted_23, [
26741
+ createVNode(unref(Button), {
26742
+ color: "primary",
26743
+ variant: "solid",
26744
+ size: "lg",
26745
+ onClick: handleConfirm,
26746
+ disabled: disabled.value,
26747
+ loading: loading.value,
26748
+ class: "w-[100%]"
26749
+ }, {
26750
+ default: withCtx(() => [
26751
+ createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26752
+ ]),
26753
+ _: 1
26754
+ }, 8, ["disabled", "loading"])
26755
+ ])
26756
+ ])) : createCommentVNode("", true)
26757
+ ];
26758
+ }),
26759
+ key: "1"
27029
26760
  } : void 0
27030
26761
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
27031
26762
  createVNode(_sfc_main$5, {
27032
26763
  visible: showProtoCheck.value,
27033
- "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
26764
+ "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
27034
26765
  onConfirm: agreeAndLogin,
27035
- onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
26766
+ onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
27036
26767
  }, null, 8, ["visible"])
27037
26768
  ], 64);
27038
26769
  };