vue-layout-gitcode 1.11.2 → 1.11.3

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.
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, inject, createElementBlock, openBlock, Fragment, createElementVNode, toDisplayString, createVNode, unref, renderList, withDirectives, createBlock, ref, watch, onMounted, createCommentVNode } from "vue";
2
2
  import "vue-devui-lal/icon";
3
3
  import "vue-devui-lal/icon/style.css";
4
- import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DkKSX98l.js";
4
+ import { h as headRequest, R as REPO_MODULE, a as i18n, G as GIcon, v as vElementExposure, b as REPO_EVENT, _ as _export_sfc, c as REPO_TYPE, e as extractRepoInfoWithURL } from "./index-DQnMWqKJ.js";
5
5
  import "lodash/debounce";
6
- import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CA_2xRmu.js";
7
- import "./transWebUrl-BamtM6RT.js";
6
+ import { u as useReportRepo, S as SearchRepoCard, f as formatNameSpace } from "./index-CY6eLivm.js";
7
+ import "./transWebUrl-Djrihppm.js";
8
8
  import "vue-devui-lal/tooltip";
9
9
  import "vue-devui-lal/tooltip/style.css";
10
10
  import "vue-router";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, inject, useSlots, ref, computed, createBlock, openBlock, unref, withCtx, createElementVNode, normalizeClass, createElementBlock, createTextVNode, createCommentVNode, toDisplayString, renderSlot } from "vue";
2
- import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { a as i18n, y as useLayoutConfig, A as ThemeType, B as currentTheme, L as LANG_ZH, C as LANG_EN, D as getLocaleLang, G as GIcon, F as emitEvent, H as isHttps, b as REPO_EVENT, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import { useRouter } from "vue-router";
4
4
  import { Popover } from "vue-devui-lal/popover";
5
5
  import "vue-devui-lal/popover/style.css";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, watch, computed, createElementBlock, openBlock, createCommentVNode, createBlock, withDirectives, Fragment, createElementVNode, createVNode, toDisplayString, unref, withModifiers, normalizeClass, withCtx, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { a as i18n, y as useLayoutConfig, G as GIcon, t as transformUrl, J as _sfc_main$1, K as loadAsideData, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, I as asideRequest, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BamtM6RT.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Djrihppm.js";
5
5
  import { Select, Option } from "vue-devui-lal/select";
6
6
  import { Input } from "vue-devui-lal/input";
7
7
  import { Skeleton } from "vue-devui-lal/skeleton";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, inject, ref, reactive, computed, watch, createElementBlock, openBlock, createElementVNode, createVNode, createBlock, createCommentVNode, withDirectives, toDisplayString, unref, withModifiers, normalizeClass, withCtx, Fragment, renderList, createTextVNode, vShow } from "vue";
2
- import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { a as i18n, y as useLayoutConfig, t as transformUrl, I as asideRequest, G as GIcon, F as emitEvent, s as setLoginTriggerSource, f as useRequestReport, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import { useRouter } from "vue-router";
4
- import { t as transWebUrl } from "./transWebUrl-BamtM6RT.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Djrihppm.js";
5
5
  import { Input } from "vue-devui-lal/input";
6
6
  import { Skeleton } from "vue-devui-lal/skeleton";
7
7
  import { MenuItem } from "vue-devui-lal/menu";
@@ -1,5 +1,5 @@
1
1
  import { ref, inject, computed, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DkKSX98l.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, r as reqCatch } from "./index-DQnMWqKJ.js";
3
3
  import { useRoute, useRouter } from "vue-router";
4
4
  import "vue-devui-lal/icon";
5
5
  import "vue-devui-lal/icon/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, createElementBlock, openBlock, createCommentVNode, Fragment, renderList, normalizeClass, createElementVNode, createVNode, toDisplayString, withModifiers } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "history-list" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, createElementVNode, withDirectives, toDisplayString, withModifiers, createVNode, vShow } from "vue";
2
- import { G as GIcon, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { G as GIcon, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "ellipsis" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, inject, ref, onMounted, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, renderSlot, createBlock, createVNode, withCtx } from "vue";
2
- import { u as useReportRepo, S as SearchRepoCard } from "./index-CA_2xRmu.js";
3
- import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { u as useReportRepo, S as SearchRepoCard } from "./index-CY6eLivm.js";
3
+ import { a as i18n, h as headRequest, R as REPO_MODULE, b as REPO_EVENT, l as localStorage, _ as _export_sfc } from "./index-DQnMWqKJ.js";
4
4
  import { Row, Col } from "vue-devui-lal/grid";
5
5
  import { SkeletonItem } from "vue-devui-lal/skeleton";
6
6
  import "vue-devui-lal/grid/style.css";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, createElementBlock, openBlock, Fragment, renderList, createElementVNode, createVNode, createCommentVNode, toDisplayString, unref } from "vue";
2
- import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { a as i18n, G as GIcon, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = ["onClick"];
@@ -1,5 +1,5 @@
1
1
  import { inject, ref, watch, withDirectives, createElementBlock, openBlock, createElementVNode, toDisplayString, unref, Fragment, renderList, createVNode, vShow } from "vue";
2
- import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DkKSX98l.js";
2
+ import { a as i18n, h as headRequest, G as GIcon, t as transformUrl } from "./index-DQnMWqKJ.js";
3
3
  import "vue-devui-lal/icon";
4
4
  import "vue-devui-lal/icon/style.css";
5
5
  const _hoisted_1 = { class: "px-[8px] history-list-project pl-[8px]" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, onMounted, nextTick, onUnmounted, createBlock, openBlock, unref, withCtx, createElementVNode } from "vue";
2
- import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-DkKSX98l.js";
2
+ import { x as slidCaptchaManager, y as useLayoutConfig, z as isZh, _ as _export_sfc } from "./index-DQnMWqKJ.js";
3
3
  import { FixedOverlay } from "vue-devui-lal/overlay";
4
4
  import "vue-devui-lal/overlay/style.css";
5
5
  const TARGET_TEXT = "Click in order:";
@@ -1,7 +1,7 @@
1
1
  import { ref, watchEffect, defineComponent, toDisplayString, unref, mergeModels, useModel, watch, createElementBlock, openBlock, createVNode, withDirectives, normalizeClass, createElementVNode, vShow, inject, withModifiers, createBlock, Fragment, computed, createCommentVNode, normalizeStyle, createTextVNode, onMounted, onUnmounted, renderList, withCtx, reactive } from "vue";
2
2
  import debounce from "lodash/debounce";
3
- import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-DkKSX98l.js";
4
- import { t as transWebUrl } from "./transWebUrl-BamtM6RT.js";
3
+ import { d as transferNumber, G as GIcon, _ as _export_sfc, s as setLoginTriggerSource, f as useRequestReport, r as reqCatch, h as headRequest, a as i18n, T as TOPIC_TYPE, g as useTimeFormat, j as useCookie, k as usePageResize, L as LANG_ZH, m as isGstarRepo, n as _sfc_main$b, o as isIncubationRepo, p as highlightWords, t as transformUrl, q as _frEventTrack, E as EVENT_NAME, c as REPO_TYPE, e as extractRepoInfoWithURL, w as LANG_KEY } from "./index-DQnMWqKJ.js";
4
+ import { t as transWebUrl } from "./transWebUrl-Djrihppm.js";
5
5
  import { useRouter } from "vue-router";
6
6
  import { Row, Col } from "vue-devui-lal/grid";
7
7
  import { Skeleton, SkeletonItem } from "vue-devui-lal/skeleton";
@@ -171,6 +171,13 @@ function asideRequest(request) {
171
171
  method: "get"
172
172
  }), {});
173
173
  },
174
+ // 获取头部入口配置
175
+ getHeaderEntryConfig() {
176
+ return reqCatch(() => request({
177
+ url: "/api/v1/search/common/config/header_entry_config",
178
+ method: "get"
179
+ }), {});
180
+ },
174
181
  // 获取天启路由配置
175
182
  getTianqiRouteConfig() {
176
183
  return reqCatch(() => request({
@@ -499,7 +506,6 @@ const AICopilot_ROUTE_NAME = "aiCopilot";
499
506
  const HELP_DOCS_URL_GITCODE = "https://docs.gitcode.com";
500
507
  const HELP_DOCS_URL_ATOMGIT = "https://docs.atomgit.com";
501
508
  const INFORMATION_CENTER_URL = "https://news.gitcode.com/news";
502
- const OPENCLAW_URL = "https://ai.gitcode.com/user/username/openclaw?source_module=home_toolbar";
503
509
  const AVATAR_VISITED_DATE = "avatar-visitedDate";
504
510
  const AVATAR_VISITED_USERNAME = "avatar-visited-username";
505
511
  var CLICK_TIME_MODULE = /* @__PURE__ */ ((CLICK_TIME_MODULE2) => {
@@ -9022,9 +9028,63 @@ const isGitCodeHost = () => {
9022
9028
  return location.hostname.includes("gitcode");
9023
9029
  };
9024
9030
  const currentSiteName = () => isGitCodeHost() ? "GitCode" : "AtomGit";
9025
- const currentHelpDocsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
9026
- const currentHelpDocsAboutUsUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
9027
- const currentHelpDocsAiCommunityUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
9031
+ const appendLangPathToHelpDocsUrl = (baseUrl) => {
9032
+ if (!baseUrl) {
9033
+ return baseUrl;
9034
+ }
9035
+ const currentLang = getLocaleLang();
9036
+ if (currentLang !== LANG_ZH) {
9037
+ try {
9038
+ const urlObj = new URL(baseUrl);
9039
+ if (urlObj.pathname.startsWith("/en")) {
9040
+ return baseUrl;
9041
+ }
9042
+ urlObj.pathname = "/en" + urlObj.pathname;
9043
+ return urlObj.toString();
9044
+ } catch (error) {
9045
+ console.warn("appendLangPathToHelpDocsUrl: URL 解析失败", error);
9046
+ if (baseUrl.includes("://")) {
9047
+ const parts = baseUrl.split("://");
9048
+ const protocol = parts[0];
9049
+ const rest = parts[1];
9050
+ const firstSlashIndex = rest.indexOf("/");
9051
+ if (firstSlashIndex === -1) {
9052
+ return `${protocol}://${rest}/en`;
9053
+ }
9054
+ const domain = rest.slice(0, firstSlashIndex);
9055
+ const path = rest.slice(firstSlashIndex);
9056
+ if (path.startsWith("/en")) {
9057
+ return baseUrl;
9058
+ }
9059
+ return `${protocol}://${domain}/en${path}`;
9060
+ }
9061
+ if (baseUrl && !baseUrl.startsWith("/en")) {
9062
+ const firstSlashIndex = baseUrl.indexOf("/");
9063
+ if (firstSlashIndex === -1) {
9064
+ return `${baseUrl}/en`;
9065
+ }
9066
+ const domain = baseUrl.slice(0, firstSlashIndex);
9067
+ const path = baseUrl.slice(firstSlashIndex);
9068
+ return `${domain}/en${path}`;
9069
+ }
9070
+ return baseUrl;
9071
+ }
9072
+ }
9073
+ return baseUrl;
9074
+ };
9075
+ const currentHelpDocsBaseUrl = () => isGitCodeHost() ? HELP_DOCS_URL_GITCODE : HELP_DOCS_URL_ATOMGIT;
9076
+ const currentHelpDocsUrl = () => {
9077
+ const baseUrl = currentHelpDocsBaseUrl();
9078
+ return appendLangPathToHelpDocsUrl(baseUrl);
9079
+ };
9080
+ const currentHelpDocsAboutUsUrl = () => {
9081
+ const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/aboutus/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/aboutus/";
9082
+ return appendLangPathToHelpDocsUrl(baseUrl);
9083
+ };
9084
+ const currentHelpDocsAiCommunityUrl = () => {
9085
+ const baseUrl = isGitCodeHost() ? HELP_DOCS_URL_GITCODE + "/docs/help/home/ai-community/" : HELP_DOCS_URL_ATOMGIT + "/docs/help/home/ai-community/";
9086
+ return appendLangPathToHelpDocsUrl(baseUrl);
9087
+ };
9028
9088
  const _hoisted_1$y = { class: "home-nav-right" };
9029
9089
  const _hoisted_2$o = { class: "home-nav-item" };
9030
9090
  const _hoisted_3$n = { class: "tooltip-sign" };
@@ -11678,11 +11738,33 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11678
11738
  ...{ name: "OperationEntry" },
11679
11739
  __name: "OperationEntry",
11680
11740
  setup(__props) {
11741
+ const request = inject("request");
11742
+ const API = asideRequest(request);
11743
+ const headerEntryConfig = ref({
11744
+ img: "",
11745
+ url: ""
11746
+ });
11681
11747
  const handleClick = () => {
11682
- window.open(`${transformUrl(OPENCLAW_URL)}`, "_blank");
11748
+ var _a;
11749
+ window.open(`${transformUrl((_a = headerEntryConfig.value) == null ? void 0 : _a.url)}`, "_blank");
11750
+ };
11751
+ const getHeaderEntryConfig = async () => {
11752
+ var _a;
11753
+ try {
11754
+ const res = await API.getHeaderEntryConfig();
11755
+ const data = ((_a = res == null ? void 0 : res.data) == null ? void 0 : _a.data) || {};
11756
+ headerEntryConfig.value = {
11757
+ img: data.img,
11758
+ url: data.url
11759
+ };
11760
+ } catch (error) {
11761
+ console.error(error);
11762
+ }
11683
11763
  };
11764
+ getHeaderEntryConfig();
11684
11765
  return (_ctx, _cache) => {
11685
- return openBlock(), createElementBlock("div", {
11766
+ return headerEntryConfig.value.img && headerEntryConfig.value.url ? (openBlock(), createElementBlock("div", {
11767
+ key: 0,
11686
11768
  class: "operation-entry cursor-pointer",
11687
11769
  onClick: handleClick
11688
11770
  }, [..._cache[0] || (_cache[0] = [
@@ -11691,7 +11773,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
11691
11773
  src: "https://cdn-static.gitcode.com/image/openclaw.png",
11692
11774
  alt: "operation-entry"
11693
11775
  }, null, -1)
11694
- ])]);
11776
+ ])])) : createCommentVNode("", true);
11695
11777
  };
11696
11778
  }
11697
11779
  });
@@ -15708,13 +15790,13 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
15708
15790
  var _a;
15709
15791
  const layoutConfig2 = useLayoutConfig();
15710
15792
  const { t: $t } = i18n.global;
15711
- const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-9TTQl8nI.js"));
15712
- const UserSearch = defineAsyncComponent(() => import("./UserSearch-DM0rS7aY.js"));
15713
- const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-C2ZT1wSb.js"));
15714
- const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-DLT3Rynn.js"));
15715
- const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CkYeQCV8.js"));
15716
- const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-CEZJ3E1I.js"));
15717
- const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-B24zaKeM.js"));
15793
+ const ProjectSearch = defineAsyncComponent(() => import("./ProjectSearch-DbkrnF2O.js"));
15794
+ const UserSearch = defineAsyncComponent(() => import("./UserSearch-DuPtX5lP.js"));
15795
+ const GloabarSearch = defineAsyncComponent(() => import("./GloabarSearch-COeT1OnR.js"));
15796
+ const SearchHistoryList = defineAsyncComponent(() => import("./SearchHistoryList-aWGKbvQf.js"));
15797
+ const SearchScopeList = defineAsyncComponent(() => import("./SearchScopeList-CRB67LH0.js"));
15798
+ const SearchPrefixTag = defineAsyncComponent(() => import("./SearchPrefixTag-IGRCIzFI.js"));
15799
+ const SearchRecommed = defineAsyncComponent(() => import("./SearchRecommed-b36WxWz7.js"));
15718
15800
  const props = __props;
15719
15801
  const repoInfo = inject("repoInfo");
15720
15802
  const orgInfo = inject("orgInfo");
@@ -16488,7 +16570,7 @@ const autoAvokeLogin = ({ isLogin, loginFunc, openHarmonyGuide, loginSuccess, lo
16488
16570
  loginFunc({ type: "login", triggerType: "", loginTriggerSource: "router_login_auth", ...loginFuncOpts }, loginSuccess, openHarmonyGuide);
16489
16571
  }
16490
16572
  };
16491
- const NoticeModal = defineAsyncComponent(() => import("./notice-17huVNIA.js"));
16573
+ const NoticeModal = defineAsyncComponent(() => import("./notice-CdJASwxp.js"));
16492
16574
  function clearNotice() {
16493
16575
  if (localStorage$2.getItem("validator_email")) {
16494
16576
  localStorage$2.removeItem("validator_email");
@@ -17295,9 +17377,9 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
17295
17377
  const layoutConfig2 = useLayoutConfig();
17296
17378
  const { t: t2 } = i18n.global;
17297
17379
  const route = useRoute();
17298
- const MenuItem = defineAsyncComponent(() => import("./MenuItem-CZUrycMd.js"));
17299
- const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-B4LT4C9V.js"));
17300
- const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-CQuYAB44.js"));
17380
+ const MenuItem = defineAsyncComponent(() => import("./MenuItem-6Bt-M55G.js"));
17381
+ const ProjectMenuListV2 = defineAsyncComponent(() => import("./ProjectMenuListV2-BKPoTYJc.js"));
17382
+ const ProjectMenuList = defineAsyncComponent(() => import("./ProjectMenuList-Dv0DmYS8.js"));
17301
17383
  const props = __props;
17302
17384
  console.log("slotKeys", props.slotKeys);
17303
17385
  console.log("props", props);
@@ -17691,6 +17773,12 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
17691
17773
  });
17692
17774
  const linkList = computed(() => {
17693
17775
  return [
17776
+ {
17777
+ name: t2("gitCodeLayout.home.informationCenter"),
17778
+ icon: "gt-line-consulting",
17779
+ url: `${transformNewsUrl(INFORMATION_CENTER_URL)}?lang=${getLocaleLang() || "zh"}`,
17780
+ target: "_blank"
17781
+ },
17694
17782
  {
17695
17783
  name: t2("gitCodeLayout.header.helpDocument"),
17696
17784
  icon: "gt-line-file",
@@ -23502,7 +23590,7 @@ const _SlidCaptchaManager = class _SlidCaptchaManager {
23502
23590
  __publicField(_SlidCaptchaManager, "instance");
23503
23591
  let SlidCaptchaManager = _SlidCaptchaManager;
23504
23592
  const slidCaptchaManager = SlidCaptchaManager.getInstance();
23505
- const SlidCaptcha = defineAsyncComponent(() => import("./index-B0sltWOA.js"));
23593
+ const SlidCaptcha = defineAsyncComponent(() => import("./index-6oEE89FQ.js"));
23506
23594
  const useSlidCaptcha = () => {
23507
23595
  const { mount, unMount, isMounted } = usePopup("slid-captcha-popup");
23508
23596
  const open = (config) => {
@@ -23532,7 +23620,7 @@ const useSlidCaptcha = () => {
23532
23620
  close
23533
23621
  };
23534
23622
  };
23535
- const YunpianCaptcha = defineAsyncComponent(() => import("./index-CoZdoltb.js"));
23623
+ const YunpianCaptcha = defineAsyncComponent(() => import("./index-q0xtLy8r.js"));
23536
23624
  const useYunpianCaptcha = () => {
23537
23625
  const { mount, unMount } = usePopup("yunpian-captcha-popup");
23538
23626
  const open = (config) => {
@@ -25073,10 +25161,32 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25073
25161
  close();
25074
25162
  }
25075
25163
  };
25164
+ const getHelpDocsUrlWithPath = (path, hash) => {
25165
+ const baseUrl = currentHelpDocsBaseUrl();
25166
+ const currentLang2 = getLocaleLang();
25167
+ let normalizedPath = path;
25168
+ if (normalizedPath && !normalizedPath.startsWith("/")) {
25169
+ normalizedPath = "/" + normalizedPath;
25170
+ }
25171
+ let fullPath = normalizedPath;
25172
+ if (currentLang2 !== LANG_ZH) {
25173
+ fullPath = "/en" + normalizedPath;
25174
+ }
25175
+ if (hash) {
25176
+ let normalizedHash = hash;
25177
+ if (!normalizedHash.startsWith("#")) {
25178
+ normalizedHash = "#" + normalizedHash;
25179
+ }
25180
+ fullPath += normalizedHash;
25181
+ }
25182
+ return baseUrl + fullPath;
25183
+ };
25184
+ const currentLang = getLocaleLang();
25185
+ const dataShareHash = currentLang !== LANG_ZH ? "#viii-data-synchronization-and-account-integration" : "#八数据同步与账户整合";
25076
25186
  const links = {
25077
- agreement: currentHelpDocsUrl() + "/docs/help/home/protocol/terms-of-service",
25078
- privacy: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy",
25079
- dataShare: currentHelpDocsUrl() + "/docs/help/home/protocol/privacy-policy#八数据同步与账户整合"
25187
+ agreement: getHelpDocsUrlWithPath("/docs/help/home/protocol/terms-of-service"),
25188
+ privacy: getHelpDocsUrlWithPath("/docs/help/home/protocol/privacy-policy"),
25189
+ dataShare: getHelpDocsUrlWithPath("/docs/help/home/protocol/privacy-policy", dataShareHash)
25080
25190
  };
25081
25191
  const links_hw = {
25082
25192
  agreement: "https://www.huaweicloud.com/declaration/sa_cua.html",
@@ -8,7 +8,7 @@ import { Message } from "vue-devui-lal/message";
8
8
  import "vue-devui-lal/message/style.css";
9
9
  import { FixedOverlay } from "vue-devui-lal/overlay";
10
10
  import "vue-devui-lal/overlay/style.css";
11
- import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-DkKSX98l.js";
11
+ import { a as i18n, k as usePageResize, z as isZh, _ as _export_sfc } from "./index-DQnMWqKJ.js";
12
12
  const _YunpianCaptchaManager = class _YunpianCaptchaManager {
13
13
  // eslint-disable-next-line no-useless-constructor
14
14
  constructor() {