vue-layout-gitcode 1.3.47 → 1.3.48

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"],
@@ -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,
@@ -14762,14 +14744,14 @@ const _sfc_main$x = /* @__PURE__ */ defineComponent({
14762
14744
  href: activeMenu.value.url
14763
14745
  }, {
14764
14746
  default: withCtx(() => [
14765
- createElementVNode("span", _hoisted_4$f, [
14747
+ createElementVNode("span", _hoisted_4$d, [
14766
14748
  createVNode(GIcon, {
14767
14749
  size: "24px",
14768
14750
  name: activeMenu.value.icon
14769
14751
  }, null, 8, ["name"]),
14770
14752
  createTextVNode(" " + toDisplayString$1(activeMenu.value.label), 1)
14771
14753
  ]),
14772
- createElementVNode("div", _hoisted_5$b, [
14754
+ createElementVNode("div", _hoisted_5$9, [
14773
14755
  createVNode(GIcon, {
14774
14756
  size: "18px",
14775
14757
  name: "gt-line-down",
@@ -16603,10 +16585,10 @@ const _hoisted_2$i = {
16603
16585
  key: 1,
16604
16586
  class: "org-layout-toolbar"
16605
16587
  };
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 = {
16588
+ const _hoisted_3$f = { class: "org-layout-toolbar-title flex-1 ellipsis-two-line" };
16589
+ const _hoisted_4$c = { class: "text-xs" };
16590
+ const _hoisted_5$8 = { class: "flex items-center w-full" };
16591
+ const _hoisted_6$6 = {
16610
16592
  key: 1,
16611
16593
  class: "flex items-center min-w-[30px]"
16612
16594
  };
@@ -16786,7 +16768,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16786
16768
  height: 28,
16787
16769
  is_round: false
16788
16770
  }, null, 8, ["src", "name"]),
16789
- createElementVNode("div", _hoisted_3$g, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16771
+ createElementVNode("div", _hoisted_3$f, toDisplayString$1((_c = unref(orgInfo)) == null ? void 0 : _c.name), 1)
16790
16772
  ];
16791
16773
  }),
16792
16774
  _: 1
@@ -16801,7 +16783,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16801
16783
  default: withCtx(() => {
16802
16784
  var _a2;
16803
16785
  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)
16786
+ createElementVNode("span", _hoisted_4$c, toDisplayString$1(((_a2 = _ctx.orgProps) == null ? void 0 : _a2.isOrgFollow) ? unref(t2)("gitCodeLayout.home.alreadyFollowed") : unref(t2)("gitCodeLayout.home.focusOn")), 1)
16805
16787
  ];
16806
16788
  }),
16807
16789
  _: 1
@@ -16823,7 +16805,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16823
16805
  default: withCtx(() => {
16824
16806
  var _a2, _b2, _c, _d, _e, _f, _g;
16825
16807
  return [
16826
- createElementVNode("h2", _hoisted_5$a, [
16808
+ createElementVNode("h2", _hoisted_5$8, [
16827
16809
  createVNode(GLink, {
16828
16810
  href: (_a2 = unref(breadcrumb)[0]) == null ? void 0 : _a2.path,
16829
16811
  class: "pr-[12px]"
@@ -16839,7 +16821,7 @@ const _sfc_main$v = /* @__PURE__ */ defineComponent({
16839
16821
  width: 28,
16840
16822
  height: 28,
16841
16823
  is_round: !isOrg.value
16842
- }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$7, [
16824
+ }, null, 8, ["class", "src", "name", "is_round"])) : (openBlock(), createElementBlock("div", _hoisted_6$6, [
16843
16825
  unref(isPhone)() ? (openBlock(), createElementBlock("img", _hoisted_7$5)) : (openBlock(), createElementBlock("img", _hoisted_8$5))
16844
16826
  ]))
16845
16827
  ];
@@ -17040,21 +17022,6 @@ var AuthTypeEnum = /* @__PURE__ */ ((AuthTypeEnum2) => {
17040
17022
  AuthTypeEnum2["PHONE_AND_PASSWORD"] = "phoneAndPassword";
17041
17023
  return AuthTypeEnum2;
17042
17024
  })(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
17025
  var AuthResType = /* @__PURE__ */ ((AuthResType2) => {
17059
17026
  AuthResType2["SUCCESS"] = "success";
17060
17027
  AuthResType2["FAIL"] = "fail";
@@ -17539,10 +17506,10 @@ const _hoisted_1$n = {
17539
17506
  class: "user-level-avatar-badge"
17540
17507
  };
17541
17508
  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"];
17509
+ const _hoisted_3$e = ["src"];
17510
+ const _hoisted_4$b = { class: "level-name" };
17511
+ const _hoisted_5$7 = { class: "level-icon" };
17512
+ const _hoisted_6$5 = ["src"];
17546
17513
  const _hoisted_7$4 = { class: "custom-btn" };
17547
17514
  const _hoisted_8$4 = { class: "flex items-center justify-center" };
17548
17515
  const maxLevel = 3;
@@ -17598,14 +17565,14 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17598
17565
  class: "level-avatar",
17599
17566
  src: levelInfo.value.avatar,
17600
17567
  alt: ""
17601
- }, null, 8, _hoisted_3$f),
17602
- createElementVNode("div", _hoisted_4$d, [
17568
+ }, null, 8, _hoisted_3$e),
17569
+ createElementVNode("div", _hoisted_4$b, [
17603
17570
  createElementVNode("div", null, toDisplayString$1(levelInfo.value.name), 1),
17604
- createElementVNode("div", _hoisted_5$9, [
17571
+ createElementVNode("div", _hoisted_5$7, [
17605
17572
  createElementVNode("img", {
17606
17573
  src: levelInfo.value.level,
17607
17574
  alt: ""
17608
- }, null, 8, _hoisted_6$6)
17575
+ }, null, 8, _hoisted_6$5)
17609
17576
  ])
17610
17577
  ])
17611
17578
  ]),
@@ -17619,8 +17586,8 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
17619
17586
  const UserLevel = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-gitcode-layout-lib"]]);
17620
17587
  const _hoisted_1$m = { class: "g-user-drawer-info-list pl-[16px]" };
17621
17588
  const _hoisted_2$g = { class: "max-w-[200px]" };
17622
- const _hoisted_3$e = ["title"];
17623
- const _hoisted_4$c = ["title"];
17589
+ const _hoisted_3$d = ["title"];
17590
+ const _hoisted_4$a = ["title"];
17624
17591
  const _sfc_main$o = /* @__PURE__ */ defineComponent({
17625
17592
  __name: "UserAvatarMenu",
17626
17593
  props: ["isChatBot", "accountInfo", "loginOutFinish", "inAIHub", "independence", "userMenus"],
@@ -17788,11 +17755,11 @@ const _sfc_main$o = /* @__PURE__ */ defineComponent({
17788
17755
  createElementVNode("p", {
17789
17756
  class: "g-user-drawer-info-list-name ellipsis",
17790
17757
  title: __props.accountInfo.nickname
17791
- }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$e),
17758
+ }, toDisplayString$1(__props.accountInfo.nickname), 9, _hoisted_3$d),
17792
17759
  createElementVNode("p", {
17793
17760
  class: "g-user-drawer-info-list-id ellipsis",
17794
17761
  title: __props.accountInfo.username
17795
- }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$c)
17762
+ }, "@" + toDisplayString$1(__props.accountInfo.username), 9, _hoisted_4$a)
17796
17763
  ]),
17797
17764
  createVNode(GIcon, {
17798
17765
  name: "gt-line-right",
@@ -17838,13 +17805,13 @@ const _hoisted_2$f = {
17838
17805
  key: 0,
17839
17806
  class: "g-user-avatar__badge"
17840
17807
  };
17841
- const _hoisted_3$d = { class: "g-user-avatar flex-center ml-1" };
17842
- const _hoisted_4$b = {
17808
+ const _hoisted_3$c = { class: "g-user-avatar flex-center ml-1" };
17809
+ const _hoisted_4$9 = {
17843
17810
  key: 0,
17844
17811
  class: "g-user-avatar__badge"
17845
17812
  };
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]" };
17813
+ const _hoisted_5$6 = { class: "g-user-drawer" };
17814
+ const _hoisted_6$4 = { class: "p-[16px] pt-[8px] pb-0 flex justify-end items-center h-[48px]" };
17848
17815
  const _sfc_main$n = /* @__PURE__ */ defineComponent({
17849
17816
  ...{
17850
17817
  name: "UserAvatar"
@@ -17936,7 +17903,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17936
17903
  name: accountInfo.value.nickname,
17937
17904
  src: accountInfo.value.avatar
17938
17905
  }, null, 8, ["name", "src"]),
17939
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[3] || (_cache[3] = [
17906
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_2$f, _cache[4] || (_cache[4] = [
17940
17907
  createElementVNode("div", null, null, -1)
17941
17908
  ]))) : createCommentVNode("", true)
17942
17909
  ])
@@ -17949,7 +17916,7 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17949
17916
  onToggle: handleToggle
17950
17917
  }, {
17951
17918
  menu: withCtx(() => [
17952
- createElementVNode("div", _hoisted_5$8, [
17919
+ createElementVNode("div", _hoisted_5$6, [
17953
17920
  createVNode(UserAvatarMenu, {
17954
17921
  independence: __props.independence,
17955
17922
  loginOutFinish: __props.loginOutFinish,
@@ -17961,12 +17928,12 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17961
17928
  ])
17962
17929
  ]),
17963
17930
  default: withCtx(() => [
17964
- createElementVNode("div", _hoisted_3$d, [
17931
+ createElementVNode("div", _hoisted_3$c, [
17965
17932
  createVNode(_sfc_main$z, {
17966
17933
  name: accountInfo.value.nickname,
17967
17934
  src: accountInfo.value.avatar
17968
17935
  }, null, 8, ["name", "src"]),
17969
- accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$b, _cache[4] || (_cache[4] = [
17936
+ accountInfo.value.need_tips && !haveVisited.value ? (openBlock(), createElementBlock("div", _hoisted_4$9, _cache[5] || (_cache[5] = [
17970
17937
  createElementVNode("div", null, null, -1)
17971
17938
  ]))) : createCommentVNode("", true)
17972
17939
  ])
@@ -17975,14 +17942,14 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17975
17942
  })),
17976
17943
  createVNode(unref(Drawer), {
17977
17944
  modelValue: drawerVisible.value,
17978
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => drawerVisible.value = $event),
17945
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => drawerVisible.value = $event),
17979
17946
  position: "right",
17980
17947
  "lock-scroll": "",
17981
17948
  style: normalizeStyle([{ "top": "0", "max-height": "100%" }, { width: "240px", overflowY: "scroll" }])
17982
17949
  }, {
17983
17950
  default: withCtx(() => [
17984
17951
  createElementVNode("div", null, [
17985
- createElementVNode("div", _hoisted_6$5, [
17952
+ createElementVNode("div", _hoisted_6$4, [
17986
17953
  createVNode(unref(Button), {
17987
17954
  class: "cursor-pointer draw-side-bar-close",
17988
17955
  icon: "close",
@@ -17996,7 +17963,8 @@ const _sfc_main$n = /* @__PURE__ */ defineComponent({
17996
17963
  accountInfo: accountInfo.value,
17997
17964
  isChatBot: __props.isChatBot,
17998
17965
  inAIHub: __props.inAIHub,
17999
- userMenus: __props.userMenus
17966
+ userMenus: __props.userMenus,
17967
+ onClick: _cache[2] || (_cache[2] = ($event) => drawerVisible.value = false)
18000
17968
  }, null, 8, ["independence", "loginOutFinish", "accountInfo", "isChatBot", "inAIHub", "userMenus"])
18001
17969
  ])
18002
17970
  ]),
@@ -18096,9 +18064,9 @@ const setlocalVistHistory = (data, localType) => {
18096
18064
  };
18097
18065
  const _hoisted_1$k = { class: "g-header-search-prefix" };
18098
18066
  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 = {
18067
+ const _hoisted_3$b = { class: "g-header-search-suffix-suffixIcon" };
18068
+ const _hoisted_4$8 = { class: "history-list" };
18069
+ const _hoisted_5$5 = {
18102
18070
  key: 1,
18103
18071
  class: "aireposearch flex-1"
18104
18072
  };
@@ -18113,13 +18081,13 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18113
18081
  var _a;
18114
18082
  const layoutConfig2 = useLayoutConfig();
18115
18083
  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"));
18084
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-BN0keplf.js"));
18085
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-BEDRV0rm.js"));
18086
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-APkaP1SJ.js"));
18087
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-D2lFHLpC.js"));
18088
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-sMEtGFaa.js"));
18089
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-i4r6kNPk.js"));
18090
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-fkn6kZL2.js"));
18123
18091
  const props = __props;
18124
18092
  const repoInfo = inject("repoInfo");
18125
18093
  const orgInfo = inject("orgInfo");
@@ -18572,7 +18540,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18572
18540
  }, {
18573
18541
  menu: withCtx(() => [
18574
18542
  createElementVNode("div", null, [
18575
- withDirectives(createElementVNode("div", _hoisted_4$a, [
18543
+ withDirectives(createElementVNode("div", _hoisted_4$8, [
18576
18544
  createVNode(unref(SearchScopeList), {
18577
18545
  searchScopeList: searchScopeList.value,
18578
18546
  searchStr: searchStr.value,
@@ -18690,7 +18658,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18690
18658
  withDirectives(createElementVNode("span", _hoisted_2$e, "|", 512), [
18691
18659
  [vShow, searchStr.value]
18692
18660
  ]),
18693
- createElementVNode("div", _hoisted_3$c, [
18661
+ createElementVNode("div", _hoisted_3$b, [
18694
18662
  createVNode(GIcon, {
18695
18663
  name: "search",
18696
18664
  class: "g-header-search-icon",
@@ -18708,7 +18676,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18708
18676
  _: 1
18709
18677
  }, 8, ["overlay-class", "visible"])
18710
18678
  ], 2)) : createCommentVNode("", true),
18711
- _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$7, [
18679
+ _ctx.inAIHub ? (openBlock(), createElementBlock("div", _hoisted_5$5, [
18712
18680
  createVNode(unref(Input), {
18713
18681
  placeholder: unref($t)("gitCodeLayout.home.searchPlaceholder"),
18714
18682
  onKeydown: withKeys(searchResult, ["enter"]),
@@ -18729,7 +18697,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
18729
18697
  }
18730
18698
  });
18731
18699
  const Search = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["__scopeId", "data-v-gitcode-layout-lib"]]);
18732
- const NoticeModal = defineAsyncComponent(() => import("./notice-n22S4t6U.js"));
18700
+ const NoticeModal = defineAsyncComponent(() => import("./notice-BvgnoRgy.js"));
18733
18701
  function clearNotice() {
18734
18702
  if (localStorage$2.getItem("validator_email")) {
18735
18703
  localStorage$2.removeItem("validator_email");
@@ -18761,8 +18729,8 @@ const _hoisted_1$j = {
18761
18729
  class: "g-header-body"
18762
18730
  };
18763
18731
  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 };
18732
+ const _hoisted_3$a = { class: "g-header-body-right h-full" };
18733
+ const _hoisted_4$7 = { key: 2 };
18766
18734
  const _sfc_main$l = /* @__PURE__ */ defineComponent({
18767
18735
  ...{
18768
18736
  name: "header"
@@ -19182,12 +19150,12 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent({
19182
19150
  createElementVNode("div", _hoisted_2$d, [
19183
19151
  renderSlot(_ctx.$slots, "info", {}, void 0, true)
19184
19152
  ]),
19185
- createElementVNode("div", _hoisted_3$b, [
19153
+ createElementVNode("div", _hoisted_3$a, [
19186
19154
  renderSlot(_ctx.$slots, "menu", {}, void 0, true)
19187
19155
  ])
19188
19156
  ], true)
19189
19157
  ])) : createCommentVNode("", true),
19190
- _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$9, [
19158
+ _ctx.$slots.headerBottom ? (openBlock(), createElementBlock("div", _hoisted_4$7, [
19191
19159
  renderSlot(_ctx.$slots, "headerBottom", {}, void 0, true)
19192
19160
  ])) : createCommentVNode("", true)
19193
19161
  ], 2)
@@ -19217,7 +19185,7 @@ const createSetting = () => {
19217
19185
  };
19218
19186
  const _hoisted_1$i = { class: "tools-item-wrapper" };
19219
19187
  const _hoisted_2$c = { class: "tools-item-wrapper-checkbox" };
19220
- const _hoisted_3$a = ["onClick", "title"];
19188
+ const _hoisted_3$9 = ["onClick", "title"];
19221
19189
  const _sfc_main$k = /* @__PURE__ */ defineComponent({
19222
19190
  __name: "Lang",
19223
19191
  setup(__props) {
@@ -19252,7 +19220,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19252
19220
  color: "var(--theme-icon-fill-weak)",
19253
19221
  class: "checkbox-item-icon"
19254
19222
  }, null, 8, ["name"])
19255
- ], 16, _hoisted_3$a);
19223
+ ], 16, _hoisted_3$9);
19256
19224
  }), 128))
19257
19225
  ])
19258
19226
  ]);
@@ -19261,7 +19229,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
19261
19229
  });
19262
19230
  const _hoisted_1$h = { class: "tools-item-wrapper" };
19263
19231
  const _hoisted_2$b = { class: "tools-item-wrapper-checkbox" };
19264
- const _hoisted_3$9 = ["onClick", "title"];
19232
+ const _hoisted_3$8 = ["onClick", "title"];
19265
19233
  const _sfc_main$j = /* @__PURE__ */ defineComponent({
19266
19234
  __name: "Theme",
19267
19235
  setup(__props) {
@@ -19305,7 +19273,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
19305
19273
  color: "var(--theme-icon-fill-weak)",
19306
19274
  class: "checkbox-item-icon"
19307
19275
  }, null, 8, ["name"])
19308
- ], 16, _hoisted_3$9);
19276
+ ], 16, _hoisted_3$8);
19309
19277
  }), 128))
19310
19278
  ])
19311
19279
  ]);
@@ -19415,13 +19383,13 @@ const _hoisted_2$a = {
19415
19383
  class: "devui-submenu-title layer_2",
19416
19384
  style: { "padding": "0px 24px" }
19417
19385
  };
19418
- const _hoisted_3$8 = { class: "devui-submenu-title-content cursor-auto" };
19419
- const _hoisted_4$8 = {
19386
+ const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19387
+ const _hoisted_4$6 = {
19420
19388
  class: "devui-submenu-title layer_2",
19421
19389
  style: { "padding": "0px 24px" }
19422
19390
  };
19423
- const _hoisted_5$6 = { class: "devui-submenu-title-content cursor-auto" };
19424
- const _hoisted_6$4 = { key: 0 };
19391
+ const _hoisted_5$4 = { class: "devui-submenu-title-content cursor-auto" };
19392
+ const _hoisted_6$3 = { key: 0 };
19425
19393
  const _hoisted_7$3 = { class: "project-label" };
19426
19394
  const _hoisted_8$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19427
19395
  const _hoisted_9$3 = {
@@ -19619,7 +19587,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19619
19587
  _ctx.type === "project" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19620
19588
  createElementVNode("div", _hoisted_2$a, [
19621
19589
  _cache[13] || (_cache[13] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19622
- createElementVNode("span", _hoisted_3$8, [
19590
+ createElementVNode("span", _hoisted_3$7, [
19623
19591
  createElementVNode("div", {
19624
19592
  class: "fast-click-button",
19625
19593
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink("project"))
@@ -19678,9 +19646,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19678
19646
  ], 2)
19679
19647
  ], 64)) : createCommentVNode("", true),
19680
19648
  _ctx.type === "team" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19681
- createElementVNode("div", _hoisted_4$8, [
19649
+ createElementVNode("div", _hoisted_4$6, [
19682
19650
  _cache[14] || (_cache[14] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19683
- createElementVNode("span", _hoisted_5$6, [
19651
+ createElementVNode("span", _hoisted_5$4, [
19684
19652
  createElementVNode("div", {
19685
19653
  class: "fast-click-button",
19686
19654
  onClick: _cache[7] || (_cache[7] = ($event) => fastToLink("team"))
@@ -19744,7 +19712,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
19744
19712
  }, null, 8, ["src", "name", "class"]))
19745
19713
  ]),
19746
19714
  default: withCtx(() => [
19747
- _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6$4, [
19715
+ _ctx.type === "project" ? (openBlock(), createElementBlock("span", _hoisted_6$3, [
19748
19716
  createElementVNode("span", _hoisted_7$3, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19749
19717
  createElementVNode("span", _hoisted_8$3, "/" + toDisplayString$1(item.label), 1)
19750
19718
  ])) : (openBlock(), createElementBlock("span", _hoisted_9$3, toDisplayString$1(item.label), 1))
@@ -19787,9 +19755,9 @@ const _hoisted_2$9 = {
19787
19755
  class: "devui-submenu-title layer_2",
19788
19756
  style: { "padding": "0px 24px" }
19789
19757
  };
19790
- const _hoisted_3$7 = { class: "devui-submenu-title-content cursor-auto" };
19791
- const _hoisted_4$7 = { class: "project-label" };
19792
- const _hoisted_5$5 = { class: "project-label flex-1 min-w-0 ellipsis" };
19758
+ const _hoisted_3$6 = { class: "devui-submenu-title-content cursor-auto" };
19759
+ const _hoisted_4$5 = { class: "project-label" };
19760
+ const _hoisted_5$3 = { class: "project-label flex-1 min-w-0 ellipsis" };
19793
19761
  const INIT_SHOW_COUNT = 4;
19794
19762
  const LOAD_MORE_COUNT = 10;
19795
19763
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
@@ -19884,7 +19852,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19884
19852
  return openBlock(), createElementBlock("ul", _hoisted_1$f, [
19885
19853
  createElementVNode("div", _hoisted_2$9, [
19886
19854
  _cache[6] || (_cache[6] = createElementVNode("span", { class: "devui-menu-icon" }, null, -1)),
19887
- createElementVNode("span", _hoisted_3$7, [
19855
+ createElementVNode("span", _hoisted_3$6, [
19888
19856
  createElementVNode("div", {
19889
19857
  class: "fast-click-button",
19890
19858
  onClick: _cache[0] || (_cache[0] = ($event) => fastToLink())
@@ -19939,8 +19907,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19939
19907
  ]),
19940
19908
  default: withCtx(() => [
19941
19909
  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)
19910
+ createElementVNode("span", _hoisted_4$5, toDisplayString$1((item.namespace || "").slice(0, 10)) + toDisplayString$1((item.namespace || "").length > 10 ? "..." : ""), 1),
19911
+ createElementVNode("span", _hoisted_5$3, "/" + toDisplayString$1(item.label), 1)
19944
19912
  ])
19945
19913
  ]),
19946
19914
  _: 2
@@ -19978,13 +19946,13 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
19978
19946
  const ProjectMenuListV2 = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__scopeId", "data-v-gitcode-layout-lib"]]);
19979
19947
  const _hoisted_1$e = { class: "side-bar-label" };
19980
19948
  const _hoisted_2$8 = { class: "side-bar-label" };
19981
- const _hoisted_3$6 = {
19949
+ const _hoisted_3$5 = {
19982
19950
  key: 0,
19983
19951
  class: "line mt-[16px] mb-[6px]"
19984
19952
  };
19985
- const _hoisted_4$6 = ["src"];
19986
- const _hoisted_5$4 = ["src"];
19987
- const _hoisted_6$3 = { class: "side-bar-label" };
19953
+ const _hoisted_4$4 = ["src"];
19954
+ const _hoisted_5$2 = ["src"];
19955
+ const _hoisted_6$2 = { class: "side-bar-label" };
19988
19956
  const _hoisted_7$2 = {
19989
19957
  key: 1,
19990
19958
  class: "line mb-[16px] mt-[6px]"
@@ -20481,7 +20449,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20481
20449
  }, 1032, ["data-key", "data-openBlank", "data-route", "data-href", "data-host"]))
20482
20450
  ], 64);
20483
20451
  }), 256)),
20484
- !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$6)) : createCommentVNode("", true),
20452
+ !_ctx.asideSetShowLittle ? (openBlock(), createElementBlock("hr", _hoisted_3$5)) : createCommentVNode("", true),
20485
20453
  (openBlock(true), createElementBlock(Fragment, null, renderList(externalRoutes.value, (item) => {
20486
20454
  return openBlock(), createBlock(unref(MenuItem), {
20487
20455
  key: `${item.key}-${item.logo}`,
@@ -20496,11 +20464,11 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20496
20464
  createElementVNode("img", {
20497
20465
  src: item.logo,
20498
20466
  class: "default-icon w-[16px] h-[16px]"
20499
- }, null, 8, _hoisted_4$6),
20467
+ }, null, 8, _hoisted_4$4),
20500
20468
  createElementVNode("img", {
20501
20469
  src: item.logo_hover,
20502
20470
  class: "active-icon w-[16px] h-[16px]"
20503
- }, null, 8, _hoisted_5$4)
20471
+ }, null, 8, _hoisted_5$2)
20504
20472
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
20505
20473
  createVNode(GIcon, {
20506
20474
  name: item.icon,
@@ -20517,7 +20485,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
20517
20485
  ], 64))
20518
20486
  ]),
20519
20487
  default: withCtx(() => [
20520
- createElementVNode("span", _hoisted_6$3, toDisplayString$1(item.label), 1)
20488
+ createElementVNode("span", _hoisted_6$2, toDisplayString$1(item.label), 1)
20521
20489
  ]),
20522
20490
  _: 2
20523
20491
  }, 1032, ["data-key", "data-route", "data-href", "data-host", "data-openBlank"]);
@@ -21349,8 +21317,8 @@ const headerCustomPropsData = {
21349
21317
  };
21350
21318
  const _hoisted_1$c = { class: "home-wrapper" };
21351
21319
  const _hoisted_2$7 = { class: "home-content" };
21352
- const _hoisted_3$5 = { class: "home-left-side" };
21353
- const _hoisted_4$5 = { class: "home-main" };
21320
+ const _hoisted_3$4 = { class: "home-left-side" };
21321
+ const _hoisted_4$3 = { class: "home-main" };
21354
21322
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
21355
21323
  __name: "home",
21356
21324
  setup(__props) {
@@ -21441,7 +21409,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21441
21409
  onFollowUser: followUser
21442
21410
  }, null, 8, ["sceneValue", "independence", "isLogin", "request", "globalStore", "userInfo", "repoInfo", "orgInfo", "otherUserInfo", "headerCustomProps"]),
21443
21411
  createElementVNode("div", _hoisted_2$7, [
21444
- createElementVNode("div", _hoisted_3$5, [
21412
+ createElementVNode("div", _hoisted_3$4, [
21445
21413
  createVNode(GitCodeAside, {
21446
21414
  sceneValue: sceneSelected.value,
21447
21415
  userInfo: userInfo.value,
@@ -21461,7 +21429,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
21461
21429
  _: 1
21462
21430
  }, 8, ["sceneValue", "userInfo", "isLogin", "request", "globalStore", "independence", "collapseMode"])
21463
21431
  ]),
21464
- createElementVNode("div", _hoisted_4$5, [
21432
+ createElementVNode("div", _hoisted_4$3, [
21465
21433
  _cache[6] || (_cache[6] = createElementVNode("h1", null, "控制 Header 值传入", -1)),
21466
21434
  _cache[7] || (_cache[7] = createElementVNode("h2", null, "场景值 SceneValue", -1)),
21467
21435
  createVNode(unref(RadioGroup), {
@@ -21671,7 +21639,6 @@ const layoutConfig = useLayoutConfig();
21671
21639
  const { t: t$2 } = i18n.global;
21672
21640
  const GRAPH_CODE = 400007;
21673
21641
  const REMOTE_LOGIN_CODE = 400015;
21674
- const MAX_MOBILE_COUNT = 10;
21675
21642
  const createLoginConfig = (request) => {
21676
21643
  const API = headRequest(request);
21677
21644
  return {
@@ -21679,15 +21646,14 @@ const createLoginConfig = (request) => {
21679
21646
  async phone(param, loginParams) {
21680
21647
  const { validFunc, successFunc = () => {
21681
21648
  }, failFunc = () => {
21682
- }, country = "" } = param;
21649
+ } } = param;
21683
21650
  const check = validFunc ? await validFunc() : true;
21684
21651
  if (!check) return;
21685
21652
  const result2 = await API.loginByMobile(loginParams);
21686
21653
  if (!result2.error) {
21687
21654
  const resultData = result2.data.data;
21688
- saveLoginMobile(loginParams.mobile, country);
21689
21655
  successFunc(resultData, loginParams.mobile);
21690
- phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PHONE);
21656
+ phoneAndPasswordLogin(resultData, API);
21691
21657
  } else {
21692
21658
  failFunc(result2.error.error_message);
21693
21659
  }
@@ -21714,7 +21680,7 @@ const createLoginConfig = (request) => {
21714
21680
  const { user_status_enum } = resultData;
21715
21681
  await successFunc(resultData);
21716
21682
  if (user_status_enum !== "MFA_CHECK") {
21717
- phoneAndPasswordLogin(resultData, API, LoginMethodEnum.PASSWORD);
21683
+ phoneAndPasswordLogin(resultData, API);
21718
21684
  }
21719
21685
  } else {
21720
21686
  failFunc(result2.error.error_message);
@@ -21738,7 +21704,7 @@ const createLoginConfig = (request) => {
21738
21704
  scene_id
21739
21705
  });
21740
21706
  if (!result2.error) {
21741
- phoneAndPasswordLogin(result2.data.data, API, LoginMethodEnum.MINI_PROGRAM);
21707
+ phoneAndPasswordLogin(result2.data.data, API);
21742
21708
  return { success: true, data: result2.data.data };
21743
21709
  }
21744
21710
  return { success: false, error: result2.error };
@@ -21865,12 +21831,11 @@ function bindResultResolve(params, API) {
21865
21831
  function sendMessageToParent(message) {
21866
21832
  window.parent && window.parent.postMessage(message, "*");
21867
21833
  }
21868
- function phoneAndPasswordLogin(userInfo, API, loginMethod) {
21834
+ function phoneAndPasswordLogin(userInfo, API) {
21869
21835
  successResolve({
21870
21836
  path: new URLSearchParams(window.location.search).get("returnUrl") || "",
21871
21837
  userInfo,
21872
- type: AuthTypeEnum.PHONE_AND_PASSWORD,
21873
- loginMethod
21838
+ type: AuthTypeEnum.PHONE_AND_PASSWORD
21874
21839
  }, API);
21875
21840
  const params = {
21876
21841
  access_token: userInfo.access_token,
@@ -21905,13 +21870,12 @@ async function checkUserRepositoryIssue(API) {
21905
21870
  }
21906
21871
  async function successResolve(params, API) {
21907
21872
  var _a;
21908
- const { path, userInfo, type, loginMethod } = params;
21873
+ const { path, userInfo, type } = params;
21909
21874
  if (userInfo) {
21910
21875
  emitEvent("updateUserInfo", userInfo);
21911
21876
  const { username, email } = userInfo;
21912
21877
  setEmailValid(username, email);
21913
21878
  }
21914
- saveLastLoginType(loginMethod);
21915
21879
  if (type === AuthTypeEnum.PHONE_AND_PASSWORD) {
21916
21880
  const { unMount, isMounted } = usePopup();
21917
21881
  if (isMounted()) {
@@ -22017,21 +21981,6 @@ const HandleParentWindowGetLoginInfo = (request) => {
22017
21981
  }
22018
21982
  };
22019
21983
  };
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
21984
  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
21985
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
22037
21986
  __proto__: null,
@@ -22218,10 +22167,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
22218
22167
  }
22219
22168
  });
22220
22169
  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" };
22170
+ const _hoisted_2$6 = { class: "flex justify-between gap-[8px] flex-wrap" };
22225
22171
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
22226
22172
  __name: "inputSelect",
22227
22173
  props: {
@@ -22229,8 +22175,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22229
22175
  "onUpdate:modelValue": { type: Function },
22230
22176
  placeholder: {},
22231
22177
  prop: {},
22232
- country: {},
22233
- editableSelect: { type: Boolean }
22178
+ country: {}
22234
22179
  },
22235
22180
  emits: ["change", "selectChange", "update:modelValue"],
22236
22181
  setup(__props, { emit: __emit }) {
@@ -22239,6 +22184,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22239
22184
  const emits = __emit;
22240
22185
  const cache_countdown = JSON.parse(localStorage$2.getItem("cache_countdown"));
22241
22186
  const { vModels } = useModel(props, emits);
22187
+ console.log(cache_countdown, "cache_countdown");
22242
22188
  const country = ref((cache_countdown == null ? void 0 : cache_countdown.country) || DEFAULT_COUNTRY);
22243
22189
  const options = ref([]);
22244
22190
  const handleChange = () => {
@@ -22256,50 +22202,25 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22256
22202
  };
22257
22203
  });
22258
22204
  };
22259
- const loginMobileList = ref([]);
22260
- const mobileList = ref([]);
22261
- const getHistoryMobile = () => {
22262
- var _a, _b, _c, _d, _e;
22263
- mobileList.value = JSON.parse(localStorage$2.getItem("loginMobileList")) || [];
22264
- loginMobileList.value = (_a = mobileList.value) == null ? void 0 : _a.map((item) => {
22265
- return {
22266
- label: item.mobile,
22267
- value: item.mobile
22268
- };
22269
- });
22270
- country.value = ((_c = (_b = mobileList.value) == null ? void 0 : _b[0]) == null ? void 0 : _c.country) || country.value;
22271
- emits("update:modelValue", (_e = (_d = mobileList.value) == null ? void 0 : _d[0]) == null ? void 0 : _e.mobile);
22272
- };
22273
- const deleteMobile = (mobile) => {
22274
- loginMobileList.value = loginMobileList.value.filter((item) => item.value !== mobile);
22275
- mobileList.value = mobileList.value.filter((item) => item.mobile !== mobile);
22276
- localStorage$2.setItem("loginMobileList", JSON.stringify(mobileList.value));
22277
- };
22278
- const handleSelectChange = (value) => {
22279
- var _a;
22280
- country.value = ((_a = mobileList.value.find((item) => item.mobile === value)) == null ? void 0 : _a.country) || country.value;
22281
- emits("change");
22282
- };
22205
+ onMounted(() => {
22206
+ getAllCountries();
22207
+ });
22283
22208
  const handleCountryChange = () => {
22284
22209
  emits("selectChange", country.value);
22285
22210
  emits("change");
22286
22211
  };
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
22212
  return (_ctx, _cache) => {
22298
22213
  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 }, [
22214
+ createVNode(unref(Input), mergeProps({
22215
+ modelValue: unref(vModels),
22216
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(vModels) ? vModels.value = $event : null)
22217
+ }, _ctx.prop, {
22218
+ placeholder: _ctx.placeholder,
22219
+ onChange: handleChange
22220
+ }), {
22221
+ prepend: withCtx(() => [
22301
22222
  createVNode(unref(Select), {
22302
- class: "login-country-select",
22223
+ class: "input-select",
22303
22224
  modelValue: country.value,
22304
22225
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => country.value = $event),
22305
22226
  menuClass: "country-select",
@@ -22313,7 +22234,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22313
22234
  value: item.value
22314
22235
  }, {
22315
22236
  default: withCtx(() => [
22316
- createElementVNode("div", _hoisted_3$4, [
22237
+ createElementVNode("div", _hoisted_2$6, [
22317
22238
  createElementVNode("span", null, toDisplayString$1(item.name), 1),
22318
22239
  createElementVNode("span", null, toDisplayString$1(item.label), 1)
22319
22240
  ])
@@ -22323,70 +22244,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
22323
22244
  }), 128))
22324
22245
  ]),
22325
22246
  _: 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
- ])
22247
+ }, 8, ["modelValue"])
22248
+ ]),
22249
+ _: 1
22250
+ }, 16, ["modelValue", "placeholder"])
22390
22251
  ]);
22391
22252
  };
22392
22253
  }
@@ -22408,8 +22269,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22408
22269
  errors: { default: {
22409
22270
  msgError: false
22410
22271
  } },
22411
- isForget: { type: Boolean, default: false },
22412
- formErrors: { default: {} }
22272
+ isForget: { type: Boolean, default: false }
22413
22273
  },
22414
22274
  emits: ["change", "countDown", "complete"],
22415
22275
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -22650,15 +22510,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22650
22510
  }), null, 16, ["modelValue", "onUpdate:modelValue", "onChange", "onClick", "placeholder", "hasMobile", "text", "error", "autocomplete"])) : formItem.type === "inputSelect" ? (openBlock(), createBlock(_sfc_main$b, mergeProps({
22651
22511
  key: 2,
22652
22512
  country: Data.country,
22653
- class: _ctx.formErrors["mobile"] ? "input-select-error" : "",
22654
22513
  modelValue: Data[formItem.key],
22655
22514
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
22656
22515
  onSelectChange: _cache[0] || (_cache[0] = (evt) => handleSelectChange("country", evt)),
22657
22516
  onChange: ($event) => handleChange(formItem.key),
22658
22517
  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({
22518
+ }, { ref_for: true }, formItem.props), null, 16, ["country", "modelValue", "onUpdate:modelValue", "onChange", "placeholder"])) : (openBlock(), createBlock(resolveDynamicComponent(formItem.render), mergeProps({
22662
22519
  key: formItem.key,
22663
22520
  modelValue: Data[formItem.key],
22664
22521
  "onUpdate:modelValue": ($event) => Data[formItem.key] = $event,
@@ -22679,41 +22536,32 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
22679
22536
  };
22680
22537
  }
22681
22538
  });
22682
- const recentLoginImg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAoCAYAAAAIeF9DAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAfgSURBVHgB7ZtLbFRlFMfPnU4LhbaMgAJCdJpYImwoK7vgMSwkGDckQgwrARduJNREE4nykhhJMKGNblxIuzOEElcGAptiWeCKuoFIMYykCEoLpQ9eZWY8v9v52tvbOzP33mlLDPefTDtzn993/uf8z/nO3LGkDNxIphJPRVIxyW7MipXUTY0xySVyIgl5gWCJDOTESuu80yK532MS62xId3ZKCFgSAj3JVConuYOW5BpfNOMHQFrN21kp1uH6dGfa70mBCPkjmdqqJBxXL0hKhACw2v0S44sQlabkqOTalIiURAiLtNrv8Mp0V3uxg2JSAn8mN+x9JtnLERllI6n+33YtueF4sYOKRkhPcsNBzRGHJMI0w+pWCdukEjbg3lMwQiIyZhK5Rk0BP3vt8SQkImM2kEt5ydcUySJnZERaJMKsICu5T95Md43bexIhVFMk8GhtMasYqJRYvcknkyQLXYvImHUkRiV70HwYJ+RaMrWTZCP/E8TqaiQsyjl3htBMG4o38YltuYN+z56z+g1J7NouQTB4+ow8utQ9aVvliqWy7Ievpb+1TUbOXZy0D6NV5A0X1+M4Nr6c/8tkXlOjvS29/n0Z7b0z5V5Lju3zHMOj3y7LnFUN9vh7d+y1t720e7vEamvsMRTC/LfXSc3m9eIX/3z2jQTFU8k2679DNiHXk+u3ZgO0QzBW3bYtcv/EKckODpc8flHzLnl46fKU7RjzyZXr8qqSwiQGO86O70vs2mafZ8B9Mvri+KFzXWrcbvuzFyDLDUjMDA7J8PkuSezeJvM3r5MqJXfx/o+lv6UwGaBiQY3nNd2owmn0FYYQTeZ4yBghOYl9wN+gwCh+CCkGBj966/a4VztJeagR9a/ux/B+70MkDbSdmhRxRAGEPGjrsJ0AR8IJAGTca22339e9t0UJuzjlXozJOa5CWLh35yQnCogETds42qVJZauEwMK9u8omBNxraZfK5ctsSXLDS5KKoVYjd5GOi2siQxBEFECCuRYE1KoE4YIDShLAkBg089EXU+QTIHOlcg9yWg4ykmmM659UyC683NHB+zFYw40LJY8JE+ZegAic5OX9e2z5IDIYY9+R78ePYT85ZMVPrfaL3IaM3T3ynScZgIjyI1vlwUrF9YullIQEk5lJzFWvLHUPigW3nAyc6FAXs+zIABBQ33VyyrnG4yHDncPcuKEFRCmUKVmUvGs0h1hrguYPPCrtY4BOeCVgEmuFQwa4rok4jMU5zghEfqrV44fPTei8+7ocQ3Rw7RFN/v0qT8hNsblAOjkM2XRWW85Kzw9idbXjY3DOO4CsJ5SQnO+FIEmv3LBlcEa3a7ScrG5aa79nEnc+1QTfO+alGAIynFLG/SGkT6WlULlL9ce+vx25gMqsGPD+hc1j3k0OuqVyxjXclZ5fJB3RONhxRudw1O+pibhmj6Tf+Ihp+UfiqlHvY5JOo+CFGHW4gAYbOD3aOVC3pHCfx1d6JAhYZzy52mNLD8R4yZQXhjWS7mqOGdLzFqh8mXkNnT5rV5KFsFQdYLT3th2FThBZJiqeBSxK4kFaJWgzmNd0Uh4o8wzYAP2s2/bOtCVnCMZQQeDMASz2MAyJuhiQN5NL7OT/1UTyN8SweB3S+d7PR7YTHONe8L72y49KxG2N0i8lIAbiEhKvHNgjix3hbDSfKEkW8EzWFbfyK+RiMCXmk6vXpRwwnlLrB0rkYsDgLCYXH9hj54ipOaZ20mcIrgy5ONR8ng5NCBEycn5Cnsb0fa09AbySid5898Px/eg7XuMHtGW8PC8oKvIdhWLw09eilEaibYnSRSyybCKL4oG5Uu0RSWyjpC6Vt7yg3ZK/QhOSGxxxbZlYy+CVDJIEzHtTHfXvaCt53cr82sGr1RIUGKdQXysoKBBuXhlzsNdVkog+8gM5BNIpCkbyuSjoYtZALdgdmhAGMbdpojlMH8cUByQ0QhsvwsvxHL8eX5WXq3uuRBkUnG8kr9Bij6YhfSo/bRFAg5FciTpwfYgZqwSP2qVz1eoGKQc8YFfyqZNC6NMeEPnAvBgkMDU4BQChTYJjW7HcgRdTTtNzgrTefNlZLshFyIzXOgTSyYPVb5X+xoHoxuCQgaOx6neuLRgrY2Yb+bNUXiqANE87BiIEvWRVy2ToBWFIXhgdY2J43gOzqDIaXd3kPXGiiDKadQPg/EILqUGt6nrqN/omy2g/93CD8RLRxSLREMGLY8mJptJ0gzGxH8KQL4gplb8mw+rkbyDJmqfeNFcT92OdZMZuhw/ZxqP+Z5FHyDIoPATiOIbPEAlxNCOd/SIKAdO2YBvRseTY5/ZkMKSTGNN+B06iAWSyn3Mpvb1QqJ/mrgid3d/q/PcuzkWmqQDNy90pwAlYzxBNXh3sQsiIdZj/1rXkhuB9dw+YdQgELFePGtFSEW8yRiV6OAZdN14GUUiGs/EHMAQTp/vrLCs9J6LX78uvNTivssxOAo5gKiRDutMxcKIl3+4b316somIs/qLZal+ZvmDr3LQREiE00hmJbVqVf+43dFKPMF3IHV7leAg7IuT5otX98HVEyHOD1b0y/Wuze2tEyHOB/UOeTV57Qq/UI4SGytSF5kI7owiZJfA7RJ7j9ZIpJ6IImR20xiV2qMHj9yBuRITMEMYiQlqrJNZS74MIg4iQacCY8a0B1X9tZ2e1R1PRHfZn0f8BoszztTsf3m0AAAAASUVORK5CYII=";
22683
- const _hoisted_1$8 = { class: "auth-container" };
22684
- const _hoisted_2$5 = { class: "tips text-[var(--devui-disabled-text)]" };
22685
- const _hoisted_3$3 = { class: "icons" };
22686
- const _hoisted_4$3 = ["src", "alt", "onClick"];
22687
- const _hoisted_5$2 = { class: "w-[50px] h-[20px] recent-login-img" };
22688
- const _hoisted_6$2 = ["src"];
22539
+ const _hoisted_1$8 = { class: "tips text-[var(--devui-disabled-text)]" };
22540
+ const _hoisted_2$5 = { class: "icons" };
22541
+ const _hoisted_3$3 = ["src", "alt", "onClick"];
22689
22542
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22690
22543
  __name: "auth",
22691
22544
  props: {
22692
- logos: {},
22693
- recentLoginType: {}
22545
+ logos: {}
22694
22546
  },
22695
22547
  emits: ["auth"],
22696
22548
  setup(__props, { emit: __emit }) {
22697
22549
  const request = inject("request");
22698
22550
  const API = headRequest(request);
22699
22551
  const { t: $t } = i18n.global;
22700
- const props = __props;
22701
22552
  const emits = __emit;
22702
22553
  const handleClick = (icon) => {
22703
22554
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `oauth_${icon.alt}` }, API.report);
22704
22555
  emits("auth", icon.alt);
22705
22556
  };
22706
- const checkIsRecentLogin = (loginMethodList) => {
22707
- return loginMethodList.includes(props.recentLoginType);
22708
- };
22709
22557
  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, [
22558
+ return openBlock(), createElementBlock(Fragment, null, [
22559
+ createElementVNode("div", _hoisted_1$8, " —— " + toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.otherLogin")) + " —— ", 1),
22560
+ createElementVNode("div", _hoisted_2$5, [
22713
22561
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.logos, (icon) => {
22714
22562
  return openBlock(), createElementBlock("div", {
22715
22563
  key: icon.alt,
22716
- class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer otherInfo-icon"
22564
+ class: "rounded-[50%] w-[40px] h-[40px] border-[1px] icon-wrap border-solid cursor-pointer mx-[12px] otherInfo-icon"
22717
22565
  }, [
22718
22566
  createVNode(unref(Tooltip), {
22719
22567
  position: "top",
@@ -22726,21 +22574,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
22726
22574
  src: icon.src,
22727
22575
  alt: icon.alt,
22728
22576
  onClick: withModifiers(($event) => handleClick(icon), ["stop"])
22729
- }, null, 8, _hoisted_4$3)
22577
+ }, null, 8, _hoisted_3$3)
22730
22578
  ]),
22731
22579
  _: 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
- ])
22580
+ }, 1032, ["content", "disabled"])
22740
22581
  ]);
22741
22582
  }), 128))
22742
22583
  ])
22743
- ]);
22584
+ ], 64);
22744
22585
  };
22745
22586
  }
22746
22587
  });
@@ -22808,7 +22649,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22808
22649
  modelValue: unref(vModels),
22809
22650
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(vModels) ? vModels.value = $event : null),
22810
22651
  size: "sm",
22811
- class: "mb-[8px] agree-module flex items-center"
22652
+ class: "mt-[6px] mb-[12px] agree-module flex items-center"
22812
22653
  }, {
22813
22654
  default: withCtx(() => [
22814
22655
  createElementVNode("span", _hoisted_1$6, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.readAgree")), 1),
@@ -22830,16 +22671,12 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
22830
22671
  const _hoisted_1$5 = { class: "text-center text-[18px] leading-[26px] font-bold mb-[24px] flex items-center justify-center relative" };
22831
22672
  const _hoisted_2$3 = { class: "back-img absolute mr-[24px] left-0" };
22832
22673
  const _hoisted_3$2 = ["src"];
22833
- const _hoisted_4$2 = {
22834
- key: 0,
22835
- class: "tracking-[.5px]"
22836
- };
22674
+ const _hoisted_4$2 = { class: "tracking-[.5px]" };
22837
22675
  const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22838
22676
  __name: "title",
22839
22677
  props: {
22840
22678
  title: {},
22841
22679
  showBack: { type: Boolean },
22842
- showTitle: { type: Boolean },
22843
22680
  icon: {}
22844
22681
  },
22845
22682
  emits: ["back"],
@@ -22858,7 +22695,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
22858
22695
  onClick: withModifiers(handleClick, ["stop"])
22859
22696
  }, null, 8, _hoisted_3$2)) : createCommentVNode("", true)
22860
22697
  ]),
22861
- _ctx.showTitle ? (openBlock(), createElementBlock("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)) : createCommentVNode("", true)
22698
+ createElementVNode("span", _hoisted_4$2, toDisplayString$1(_ctx.title), 1)
22862
22699
  ]);
22863
22700
  };
22864
22701
  }
@@ -25525,7 +25362,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
25525
25362
  }
25526
25363
  });
25527
25364
  const MFA = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-gitcode-layout-lib"]]);
25528
- const SlidCaptcha = defineAsyncComponent(() => import("./index-ChtMNoT-.js"));
25365
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-CGnpy-QF.js"));
25529
25366
  const useSlidCaptcha = () => {
25530
25367
  const { mount, unMount } = usePopup("slid-captcha-popup");
25531
25368
  const open = (config) => {
@@ -25648,76 +25485,59 @@ function useVisibilityPoll(pollFunction, options = {}, shouldPoll) {
25648
25485
  stopPoll
25649
25486
  };
25650
25487
  }
25651
- const _hoisted_1$1 = { class: "flex items-center gap-1 h-[48px]" };
25488
+ const _hoisted_1$1 = { class: "flex items-center gap-1" };
25652
25489
  const _hoisted_2 = { class: "devui-icon__container devui-icon--operable devui-icon--no-slots self-start min-w-[34px] mt-[-6px]" };
25653
25490
  const _hoisted_3 = {
25491
+ key: 0,
25492
+ class: "text-[14px] leading-[20px] text-[var(--devui-placeholder)] font-normal"
25493
+ };
25494
+ const _hoisted_4 = {
25495
+ key: 0,
25496
+ class: "flex items-center justify-center mb-[24px] mt-[-2px]"
25497
+ };
25498
+ const _hoisted_5 = {
25654
25499
  key: 1,
25655
- class: "login-modal-content"
25500
+ class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25656
25501
  };
25657
- const _hoisted_4 = ["src"];
25658
- const _hoisted_5 = { class: "text-[var(--theme-text)] mt-[6px]" };
25659
- const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center" };
25660
- const _hoisted_7 = { class: "flex flex-col items-center justify-center w-[180px] h-[180px] relative" };
25661
- const _hoisted_8 = ["src"];
25662
- const _hoisted_9 = {
25502
+ const _hoisted_6 = { class: "qrcode-container flex flex-col items-center justify-center my-4" };
25503
+ const _hoisted_7 = ["src"];
25504
+ const _hoisted_8 = {
25663
25505
  key: 0,
25664
25506
  class: "mask"
25665
25507
  };
25666
- const _hoisted_10 = {
25508
+ const _hoisted_9 = {
25667
25509
  key: 0,
25668
- class: "flex flex-col gap-2 items-center justify-center gap-[40px]"
25510
+ class: "flex flex-col gap-2 items-center justify-center"
25669
25511
  };
25670
- const _hoisted_11 = { class: "flex gap-1 items-center justify-center text-[16px] flex-wrap font-medium" };
25671
- const _hoisted_12 = { class: "text-[#252B3A]" };
25672
- const _hoisted_13 = {
25512
+ const _hoisted_10 = {
25673
25513
  key: 1,
25674
25514
  class: "flex flex-col gap-3 items-center justify-center"
25675
25515
  };
25676
- const _hoisted_14 = { class: "text-[var(--color-success)]" };
25677
- const _hoisted_15 = { class: "text-center" };
25678
- const _hoisted_16 = {
25679
- key: 0,
25680
- class: "text-center text-[16px] mt-[40px] text-[var(--devui-text-weak)] font-bold"
25681
- };
25682
- const _hoisted_17 = {
25516
+ const _hoisted_11 = { class: "text-[var(--color-success)]" };
25517
+ const _hoisted_12 = { class: "text-center" };
25518
+ const _hoisted_13 = {
25683
25519
  key: 1,
25684
- class: "ml-[44px] mt-[32px] mr-[44px] text-[var(--theme-text)] leading-[22px]"
25520
+ class: "text-center mt-2 text-[var(--devui-text-weak)] font-bold"
25685
25521
  };
25686
- const _hoisted_18 = { class: "font-medium text-[20px]" };
25687
- const _hoisted_19 = { class: "mt-[16px]" };
25688
- const _hoisted_20 = {
25522
+ const _hoisted_14 = {
25689
25523
  key: 0,
25690
- class: "flex items-baseline justify-between mb-[24px]"
25524
+ class: "login-modal-info h-[20px]"
25691
25525
  };
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 = {
25526
+ const _hoisted_15 = { class: "login-modal-info-left" };
25527
+ const _hoisted_16 = {
25697
25528
  key: 1,
25698
- class: "forget-tips text-[var(--devui-link)] my-[16px] min-h-[32px] leading-[32px] px-[12px] tracking-[.5px]"
25529
+ class: "mt-[18px]"
25699
25530
  };
25700
- const _hoisted_26 = { key: 2 };
25701
- const _hoisted_27 = { class: "flex items-center justify-between" };
25702
- const _hoisted_28 = { class: "text-[var(--devui-text-weak)] font-bold text-[16px]" };
25703
- const _hoisted_29 = { class: "text-[12px] leading-[32px]" };
25704
- const _hoisted_30 = { class: "text-[12px] leading-[20px] mt-[16px] text-[var(--devui-placeholder)] font-normal" };
25705
- const _hoisted_31 = {
25531
+ const _hoisted_17 = { class: "flex items-center justify-between pr-[16px]" };
25532
+ const _hoisted_18 = { class: "mr-[16px]" };
25533
+ const _hoisted_19 = {
25706
25534
  key: 0,
25707
- class: "login-modal-info h-[20px]"
25535
+ class: "login-modal-footer"
25708
25536
  };
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" };
25537
+ const _hoisted_20 = { class: "flex justify-center" };
25538
+ const _hoisted_21 = { key: 1 };
25539
+ const _hoisted_22 = { class: "line-clamp-2" };
25540
+ const _hoisted_23 = { class: "absolute-btn" };
25721
25541
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25722
25542
  ...{
25723
25543
  name: "GLoginModal"
@@ -25760,10 +25580,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25760
25580
  const IconB = TransAssetsUrl(IconSource, "logo-back");
25761
25581
  const IconW = TransAssetsUrl(IconSource, "logo-wechat");
25762
25582
  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
25583
  const formErrors = reactive({});
25768
25584
  const extraErrors = reactive({
25769
25585
  agreement: "",
@@ -25787,32 +25603,27 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25787
25603
  {
25788
25604
  src: IconC,
25789
25605
  alt: "csdn",
25790
- describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25791
- loginMethodList: ["csdn"]
25606
+ describe: "csdn" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25792
25607
  },
25793
25608
  {
25794
25609
  src: IconHb,
25795
25610
  alt: "hbuilder",
25796
- describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25797
- loginMethodList: ["hbuilder", "hbuilder_plugins"]
25611
+ describe: "Hbuilder" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25798
25612
  },
25799
25613
  {
25800
25614
  src: currentTheme.value === ThemeType.WHITE ? IconG : IconGW,
25801
25615
  alt: "github",
25802
- describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25803
- loginMethodList: ["github"]
25616
+ describe: "github" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25804
25617
  },
25805
25618
  {
25806
25619
  src: IconH,
25807
25620
  alt: "gitee",
25808
- describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin"),
25809
- loginMethodList: ["gitee"]
25621
+ describe: "gitee" + $t("gitCodeLayout.LoginModal.action.AccountLogin")
25810
25622
  },
25811
25623
  {
25812
25624
  src: IconW,
25813
25625
  alt: "wechat_open",
25814
- describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin"),
25815
- loginMethodList: ["wechat_open", "wechat_mp"]
25626
+ describe: $t("gitCodeLayout.LoginModal.action.wechatScanCodeLogin")
25816
25627
  }
25817
25628
  ]);
25818
25629
  const emits = __emit;
@@ -25851,7 +25662,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25851
25662
  {
25852
25663
  type: "input",
25853
25664
  key: "username",
25854
- label: $t("gitCodeLayout.userSetting.account.phone") + "/" + $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25665
+ label: $t("gitCodeLayout.LoginModal.subtitle.name") + "/" + $t("gitCodeLayout.common.email"),
25855
25666
  required: true
25856
25667
  },
25857
25668
  {
@@ -26034,7 +25845,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26034
25845
  const status = ref(false);
26035
25846
  const hwStatus = ref(false);
26036
25847
  const FormRef = shallowRef(null);
26037
- const tabPanel = ref("verifyCode");
25848
+ const tabPanel = ref("miniProgram");
26038
25849
  const formType = ref(props.defaultType);
26039
25850
  const showProtoCheck = ref(false);
26040
25851
  const agreeAndLogin = () => {
@@ -26054,14 +25865,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26054
25865
  dict: RegisterForm.map((item) => {
26055
25866
  return {
26056
25867
  ...item,
26057
- defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : "",
26058
- editableSelect: false
25868
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : item.key === "verificationcode" ? cacheForm.verificationcode : ""
26059
25869
  };
26060
25870
  }),
26061
25871
  showLabel: true,
26062
25872
  layout: "horizontal",
26063
- showTitle: false,
26064
- showBack: false
25873
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.register")}`,
25874
+ showBack: true
26065
25875
  };
26066
25876
  }
26067
25877
  if (formType.value === "forget") {
@@ -26078,13 +25888,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26078
25888
  dict: VerifyForm.map((item) => {
26079
25889
  return {
26080
25890
  ...item,
26081
- defaultValue: item.key === "mobile" ? cacheForm.mobile : "",
26082
- editableSelect: true
25891
+ defaultValue: item.key === "mobile" ? cacheForm.mobile : ""
26083
25892
  };
26084
25893
  }),
26085
25894
  showLabel: false,
26086
25895
  layout: "vertical",
26087
- showTitle: false,
25896
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26088
25897
  showBack: false
26089
25898
  };
26090
25899
  } else if (tabPanel.value === "password") {
@@ -26092,7 +25901,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26092
25901
  dict: PasswordForm,
26093
25902
  showLabel: false,
26094
25903
  layout: "vertical",
26095
- showTitle: false,
25904
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26096
25905
  showBack: false
26097
25906
  };
26098
25907
  } else {
@@ -26100,7 +25909,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26100
25909
  dict: MiniProgramForm,
26101
25910
  showLabel: false,
26102
25911
  layout: "vertical",
26103
- showTitle: false,
25912
+ title: `🎉${$t("gitCodeLayout.LoginModal.title.login")}`,
26104
25913
  showBack: false
26105
25914
  };
26106
25915
  }
@@ -26152,7 +25961,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26152
25961
  };
26153
25962
  const mfaCheck = ref(false);
26154
25963
  const handleMFALogin = (data) => {
26155
- phoneAndPasswordLogin(data, API, LoginMethodEnum.PASSWORD);
25964
+ phoneAndPasswordLogin(data, API);
26156
25965
  };
26157
25966
  const slidCaptcha = useSlidCaptcha();
26158
25967
  const LoginCheck = async () => {
@@ -26184,7 +25993,6 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26184
25993
  }
26185
25994
  };
26186
25995
  const registerAction = async (res, mobile) => {
26187
- var _a;
26188
25996
  const data = {
26189
25997
  username: res.username,
26190
25998
  password: res.password,
@@ -26200,9 +26008,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26200
26008
  cacheForm.user_id = user_id;
26201
26009
  cacheForm.mask = mask;
26202
26010
  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);
26011
+ phoneAndPasswordLogin(result2.data.data, API);
26206
26012
  } else {
26207
26013
  extraErrors.requestInfo = result2.error.error_message;
26208
26014
  }
@@ -26249,7 +26055,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26249
26055
  mobile,
26250
26056
  code: res.code
26251
26057
  };
26252
- await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc", country }, params, graphValidate, handleRemoteLogin);
26058
+ await loginFunction({ validFunc: LoginCheck, successFunc: loginSuccess, failFunc: loginFail, loginDeviceType: "pc" }, params, graphValidate, handleRemoteLogin);
26253
26059
  }
26254
26060
  setTimeout(() => {
26255
26061
  loading.value = false;
@@ -26522,8 +26328,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26522
26328
  const pcAuthLogin = (type) => {
26523
26329
  authType.value = type;
26524
26330
  saveOauthType(type);
26525
- stopPoll();
26526
- miniProgramStatus.value = "TIMEOUT";
26331
+ if (tabPanel.value === "miniProgram") {
26332
+ stopPoll();
26333
+ miniProgramStatus.value = "TIMEOUT";
26334
+ }
26527
26335
  if (localStorage$2.getItem("access_token")) {
26528
26336
  emits("close", true);
26529
26337
  } else {
@@ -26600,9 +26408,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26600
26408
  emits("directClose");
26601
26409
  return;
26602
26410
  }
26603
- useReport(REGISTER_CLICK_TO_LOGIN, {}, API.report);
26604
26411
  formType.value = "login";
26605
- checkMiniProgramStatus();
26606
26412
  };
26607
26413
  const miniProgramStatus = ref("WAITING");
26608
26414
  const miniProgramLoading = ref(false);
@@ -26618,7 +26424,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26618
26424
  };
26619
26425
  const fetchMiniProgramStatus = async () => {
26620
26426
  var _a;
26621
- if (formType.value !== "login") {
26427
+ if (tabPanel.value !== "miniProgram") {
26622
26428
  stopPoll();
26623
26429
  return;
26624
26430
  }
@@ -26661,8 +26467,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26661
26467
  tabPanel.value = val;
26662
26468
  authType.value = null;
26663
26469
  useReport(LOGIN_MODAL_TAB_SWITCH, { source: `tab_${val}` }, API.report);
26664
- };
26665
- const checkMiniProgramStatus = async () => {
26470
+ if (val !== "miniProgram") {
26471
+ stopPoll();
26472
+ handleMiniProgramReset();
26473
+ return;
26474
+ }
26666
26475
  if (!miniProgramInfo.value.scene_id) {
26667
26476
  getMiniProgramQrCode();
26668
26477
  return;
@@ -26678,24 +26487,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26678
26487
  shouldMiniProgramPoll.value = true;
26679
26488
  startPoll();
26680
26489
  };
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
26490
  const resetPwdDirectly = ref(false);
26692
26491
  const resetPwdWhiteList = ["change_password"];
26693
26492
  onMounted(() => {
26694
- if (formType.value === "login") {
26695
- getMiniProgramQrCode();
26493
+ if (tabPanel.value === "miniProgram" && formType.value === "login") {
26494
+ handleTabPanelChange(tabPanel.value);
26696
26495
  }
26697
- getRecentLogin();
26698
- getTodayTechHistory();
26699
26496
  if (resetPwdWhiteList.includes(props.resetPwdSource) && formType.value === "forget") {
26700
26497
  resetPwdDirectly.value = true;
26701
26498
  }
@@ -26704,7 +26501,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26704
26501
  return openBlock(), createElementBlock(Fragment, null, [
26705
26502
  createVNode(unref(Modal), {
26706
26503
  modelValue: unref(vModels),
26707
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26504
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => isRef(vModels) ? vModels.value = $event : null),
26708
26505
  "show-close": false,
26709
26506
  "lock-scroll": _ctx.lockScroll,
26710
26507
  draggable: _ctx.draggable,
@@ -26714,293 +26511,157 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26714
26511
  class: normalizeClass([
26715
26512
  "login-modal",
26716
26513
  formType.value === "login" ? "login-modal-l" : "login-modal-r",
26717
- formType.value === "register" ? "login-modal-register" : "",
26718
26514
  mfaCheck.value ? "login-modal-mfa" : ""
26719
26515
  ]),
26720
26516
  onClose: onModalClose
26721
26517
  }, 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
- }, [
26518
+ default: withCtx(() => [
26519
+ mfaCheck.value ? (openBlock(), createBlock(MFA, {
26520
+ key: 0,
26521
+ API: unref(API),
26522
+ onBack: handleBack,
26523
+ onSuccess: handleMFALogin,
26524
+ mask: cacheForm.mask
26525
+ }, null, 8, ["API", "mask"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
26526
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_4, [
26527
+ createElementVNode("div", {
26528
+ class: normalizeClass([
26529
+ "login-modal-tab mr-[18px]",
26530
+ tabPanel.value === "miniProgram" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26531
+ ]),
26532
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => handleTabPanelChange("miniProgram"), ["stop"]))
26533
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.title")), 3),
26534
+ createElementVNode("div", {
26535
+ class: normalizeClass([
26536
+ "login-modal-tab mr-[18px] ml-[18px]",
26537
+ tabPanel.value === "verifyCode" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26538
+ ]),
26539
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => handleTabPanelChange("verifyCode"), ["stop"]))
26540
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.sms")), 3),
26541
+ createElementVNode("div", {
26542
+ class: normalizeClass([
26543
+ "login-modal-tab ml-[18px]",
26544
+ tabPanel.value === "password" ? "login-modal-tab-active" : "login-modal-tab-inactive"
26545
+ ]),
26546
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => handleTabPanelChange("password"), ["stop"]))
26547
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.subtitle.password")), 3)
26548
+ ])) : createCommentVNode("", true),
26549
+ 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),
26550
+ formType.value === "login" && tabPanel.value === "miniProgram" ? (openBlock(), createBlock(DataPanel, {
26551
+ key: 2,
26552
+ loading: miniProgramLoading.value,
26553
+ empty: false,
26554
+ card: false,
26555
+ class: "mini-program-qrcode",
26556
+ border: false,
26557
+ animation: true
26558
+ }, {
26559
+ default: withCtx(() => [
26560
+ createElementVNode("div", _hoisted_6, [
26739
26561
  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
26562
+ src: miniProgramInfo.value.qrcode,
26563
+ alt: "小程序二维码",
26564
+ class: "w-[158px] h-[158px]"
26565
+ }, null, 8, _hoisted_7),
26566
+ miniProgramStatus.value !== "WAITING" ? (openBlock(), createElementBlock("div", _hoisted_8, [
26567
+ miniProgramStatus.value === "TIMEOUT" ? (openBlock(), createElementBlock("div", _hoisted_9, [
26568
+ createVNode(GIcon, {
26569
+ name: "gt-line-Refresh",
26570
+ size: "18"
26571
+ }),
26572
+ createElementVNode("div", null, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip01")), 1),
26573
+ createElementVNode("button", { onClick: getMiniProgramQrCode }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip02")), 1)
26574
+ ])) : createCommentVNode("", true),
26575
+ ["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("div", _hoisted_10, [
26576
+ createElementVNode("div", _hoisted_11, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip03")), 1),
26577
+ createElementVNode("div", _hoisted_12, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip04")), 1)
26578
+ ])) : createCommentVNode("", true)
26579
+ ])) : createCommentVNode("", true),
26580
+ !["SCAN", "CANCEL", "LOGIN"].includes(miniProgramStatus.value) ? (openBlock(), createElementBlock("p", _hoisted_13, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip05")), 1)) : (openBlock(), createElementBlock("button", {
26581
+ key: 2,
26582
+ onClick: getMiniProgramQrCode,
26583
+ class: "mt-2"
26584
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.miniProgram.tip06")), 1))
26585
+ ])
26586
+ ]),
26587
+ _: 1
26588
+ }, 8, ["loading"])) : (openBlock(), createBlock(unref(_sfc_main$a), {
26589
+ key: formType.value,
26590
+ DataList: FormConfig.value.dict,
26591
+ "show-label": FormConfig.value.showLabel,
26592
+ ref_key: "FormRef",
26593
+ ref: FormRef,
26594
+ onCountDown: handleCountDown,
26595
+ onChange: handleFormChange,
26596
+ onComplete: handleFormInput,
26597
+ layout: FormConfig.value.layout,
26598
+ size: "lg",
26599
+ "label-size": "md",
26600
+ "message-type": "none",
26601
+ "hide-required-mark": "",
26602
+ onKeypress: withKeys(handleConfirm, ["enter"]),
26603
+ class: normalizeClass(formType.value === "register" ? "mt-[20px] login-form-register-cell" : "login-form-common-cell"),
26604
+ errors: { msgError: msgError.value },
26605
+ "is-forget": formType.value === "forget"
26606
+ }, {
26607
+ submit: withCtx(() => [
26608
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_14, [
26609
+ createElementVNode("div", _hoisted_15, [
26610
+ createTextVNode(toDisplayString$1(errorMsg.value) + " ", 1),
26611
+ errForRemoteLogin.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
26612
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.unusualLogin")), 1),
26613
+ createElementVNode("span", {
26614
+ onClick: _cache[3] || (_cache[3] = ($event) => handleTabPanelChange("verifyCode")),
26615
+ class: "login-modal-info-left__link"
26616
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.smsLogin")), 1)
26617
+ ], 64)) : createCommentVNode("", true)
26618
+ ]),
26619
+ withDirectives(createElementVNode("div", {
26620
+ class: "login-modal-info-right",
26621
+ onClick: _cache[4] || (_cache[4] = withModifiers(($event) => formType.value = "forget", ["stop"]))
26622
+ }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.tips.forgotPassword")), 513), [
26623
+ [vShow, tabPanel.value === "password" && formType.value === "login"]
26624
+ ])
26625
+ ])) : createCommentVNode("", true),
26626
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_16, [
26627
+ createVNode(unref(Button), {
26628
+ color: "primary",
26629
+ variant: "solid",
26630
+ size: "lg",
26631
+ onClick: handleConfirm,
26632
+ loading: loading.value,
26633
+ disabled: disabled.value,
26634
+ class: "login-modal-button"
26757
26635
  }, {
26758
26636
  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
- ])
26637
+ createTextVNode(toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.login")), 1)
26793
26638
  ]),
26794
26639
  _: 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"]))
26640
+ }, 8, ["loading", "disabled"]),
26641
+ createElementVNode("div", _hoisted_17, [
26642
+ _ctx.openHarmonyGuide ? (openBlock(), createElementBlock("div", {
26643
+ key: 0,
26644
+ class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] openharmony-btn",
26645
+ onClick: withModifiers(handleRegisterHarmony, ["stop"])
26812
26646
  }, [
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),
26647
+ _cache[16] || (_cache[16] = createElementVNode("img", {
26648
+ src: "https://cdn-static.gitcode.com/static/images/guide/openharmony.svg",
26649
+ alt: "",
26650
+ class: "mr-[16px] inline-block"
26651
+ }, null, -1)),
26652
+ createElementVNode("span", _hoisted_18, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.oh")), 1)
26653
+ ])) : createCommentVNode("", true),
26822
26654
  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"
26655
+ class: "text-[var(--theme-link)] text-center mt-[12px] cursor-pointer leading-[32px] hover:underline",
26656
+ onClick: withModifiers(clickRegister, ["stop"])
26835
26657
  }, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.action.registerAgain")), 1)
26836
26658
  ])
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
- }),
26659
+ ])) : createCommentVNode("", true)
26660
+ ]),
26661
+ _: 1
26662
+ }, 8, ["DataList", "show-label", "layout", "class", "errors", "is-forget"]))
26663
+ ], 64))
26664
+ ]),
27004
26665
  _: 2
27005
26666
  }, [
27006
26667
  !mfaCheck.value ? {
@@ -27010,11 +26671,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27010
26671
  createVNode(GTitle, {
27011
26672
  icon: unref(IconB),
27012
26673
  title: FormConfig.value.title,
27013
- "show-title": FormConfig.value.showTitle,
27014
26674
  onBack: handleTitleBackClick,
27015
26675
  "show-back": FormConfig.value.showBack,
27016
26676
  class: "login-modal-title flex-1"
27017
- }, null, 8, ["icon", "title", "show-title", "show-back"]),
26677
+ }, null, 8, ["icon", "title", "show-back"]),
27018
26678
  createElementVNode("div", _hoisted_2, [
27019
26679
  _ctx.showClose && !showProtoCheck.value ? (openBlock(), createBlock(GIcon, {
27020
26680
  key: 0,
@@ -27023,16 +26683,86 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
27023
26683
  size: "18"
27024
26684
  })) : createCommentVNode("", true)
27025
26685
  ])
27026
- ])
26686
+ ]),
26687
+ formType.value === "register" ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString$1(unref($t)("gitCodeLayout.LoginModal.registerDesc")), 1)) : createCommentVNode("", true)
27027
26688
  ]),
27028
26689
  key: "0"
26690
+ } : void 0,
26691
+ !mfaCheck.value ? {
26692
+ name: "footer",
26693
+ fn: withCtx(() => {
26694
+ var _a;
26695
+ return [
26696
+ formType.value === "login" ? (openBlock(), createElementBlock("div", _hoisted_19, [
26697
+ createVNode(GAuth, {
26698
+ logos,
26699
+ onAuth: pcAuthLogin
26700
+ }, null, 8, ["logos"]),
26701
+ createElementVNode("div", {
26702
+ class: normalizeClass(["login-modal-footer-args", AgreementWarn.value ? "shaking-box" : ""])
26703
+ }, [
26704
+ createElementVNode("div", _hoisted_20, [
26705
+ createVNode(_sfc_main$8, {
26706
+ modelValue: status.value,
26707
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => status.value = $event),
26708
+ onDeclares: _cache[6] || (_cache[6] = (typ) => handleDisplay(typ))
26709
+ }, null, 8, ["modelValue"])
26710
+ ])
26711
+ ], 2)
26712
+ ])) : formType.value === "register" || formType.value === "forget" ? (openBlock(), createElementBlock("div", _hoisted_21, [
26713
+ createElementVNode("div", {
26714
+ 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" : ""])
26715
+ }, [
26716
+ createElementVNode("span", _hoisted_22, toDisplayString$1(errorMsg.value), 1)
26717
+ ], 2),
26718
+ formType.value === "register" ? (openBlock(), createElementBlock("div", {
26719
+ key: 0,
26720
+ class: normalizeClass(["register-agree", [AgreementWarn.value ? "shaking-box" : ""]])
26721
+ }, [
26722
+ createVNode(_sfc_main$7, {
26723
+ modelValue: hwStatus.value,
26724
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => hwStatus.value = $event),
26725
+ onDeclares: _cache[8] || (_cache[8] = (typ) => handleDisplay(typ, "huawei")),
26726
+ "agreement-text": `《${unref($t)("gitCodeLayout.LoginModal.link.huaweiCloudAgreement")}》`,
26727
+ "privacy-text": `《${unref($t)("gitCodeLayout.LoginModal.link.agreementPrivacy")}》`,
26728
+ onClick: _cache[9] || (_cache[9] = ($event) => agreementReport("signup_select", `hw${hwStatus.value ? 1 : 0}`))
26729
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"]),
26730
+ createVNode(_sfc_main$7, {
26731
+ modelValue: status.value,
26732
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => status.value = $event),
26733
+ onDeclares: _cache[11] || (_cache[11] = (typ) => handleDisplay(typ)),
26734
+ "agreement-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.agreement")}》`,
26735
+ "privacy-text": `《GitCode ${unref($t)("gitCodeLayout.LoginModal.link.privacyPolicy")}》`,
26736
+ onClick: _cache[12] || (_cache[12] = ($event) => agreementReport("signup_select", `gitcode${status.value ? 1 : 0}`))
26737
+ }, null, 8, ["modelValue", "agreement-text", "privacy-text"])
26738
+ ], 2)) : createCommentVNode("", true),
26739
+ createElementVNode("div", _hoisted_23, [
26740
+ createVNode(unref(Button), {
26741
+ color: "primary",
26742
+ variant: "solid",
26743
+ size: "lg",
26744
+ onClick: handleConfirm,
26745
+ disabled: disabled.value,
26746
+ loading: loading.value,
26747
+ class: "w-[100%]"
26748
+ }, {
26749
+ default: withCtx(() => [
26750
+ createTextVNode(toDisplayString$1(formType.value === "forget" ? unref($t)("gitCodeLayout.userSetting.account.changePassword") : unref($t)("gitCodeLayout.LoginModal.action.verify")), 1)
26751
+ ]),
26752
+ _: 1
26753
+ }, 8, ["disabled", "loading"])
26754
+ ])
26755
+ ])) : createCommentVNode("", true)
26756
+ ];
26757
+ }),
26758
+ key: "1"
27029
26759
  } : void 0
27030
26760
  ]), 1032, ["modelValue", "lock-scroll", "draggable", "escapable", "append-to-body", "class"]),
27031
26761
  createVNode(_sfc_main$5, {
27032
26762
  visible: showProtoCheck.value,
27033
- "onUpdate:visible": _cache[13] || (_cache[13] = ($event) => showProtoCheck.value = $event),
26763
+ "onUpdate:visible": _cache[14] || (_cache[14] = ($event) => showProtoCheck.value = $event),
27034
26764
  onConfirm: agreeAndLogin,
27035
- onDeclares: _cache[14] || (_cache[14] = (typ) => handleDisplay(typ))
26765
+ onDeclares: _cache[15] || (_cache[15] = (typ) => handleDisplay(typ))
27036
26766
  }, null, 8, ["visible"])
27037
26767
  ], 64);
27038
26768
  };