import x from"./B-k7b6Ff.js";import{D as L,p as G,h as S,i as w,X as d,o as g,c as m,u as a,b as n,f as o,m as i,a as s,Y as r,d as k,q as H,j as u,_ as M}from"./Y1qr2oID.js";const E={key:0},I={class:"backdrop"},J={role:"dialog","aria-modal":"true",class:"modal"},j={class:"modal__content slp-mx-24"},V=L({__name:"Modal",emits:["close"],setup(B,{emit:h}){const b=h,_=G(),f=u({headingEn:"Visiting GitLab from Mainland China, Macau, or Hong Kong?",paragraphEn:"We advise you to visit the JiHu website. JiHu is an independent company with the exclusive right to provide a localized GitLab offering that is tailored to assist individuals based in these geographies.",headingCn:"尊敬的用户,我们注意到您正在从中国大陆、中国香港地区或中国澳门地区访问 GitLab。",paragraphCn:"我们建议您访问极狐页面。极狐是一家独立经营运作的公司,具有上述地区内GitLab产品的永久唯一独家授权,并向用户提供本地化的GitLab产品。",primaryCta:{text:"Take me to JiHu (去极狐GitLab)",config:{href:"https://gitlab.cn/"}},secondaryCta:{text:"Continue to GitLab.com"}}),y=u({headingEn:"Visiting GitLab from Mainland China, Macau, or Hong Kong?",paragraphEn:"We advise you to install offerings from the JiHu website. JiHu is an independent company with the exclusive right to provide a localized GitLab offering that is tailored to assist individuals based in these geographies.",headingCn:"尊敬的用户,我们注意到您正在从中国大陆、中国香港地区或中国澳门地区访问 GitLab。",paragraphCn:"我们建议您从极狐页面下载产品。极狐是一家独立经营运作的公司,具有上述地区内GitLab产品的永久唯一独家授权,并向用户提供本地化的GitLab产品。",primaryCta:{text:"Install JiHu (下载极狐GitLab)",config:{href:"https://gitlab.cn/install"}},secondaryCta:{text:"Continue to GitLab.com"}}),t=H(()=>_.path.includes("install")?y.value:f.value),v=()=>{b("close")};return S(()=>{const e=document.querySelector("body");e&&e.classList.add("noScroll")}),w(()=>{const e=document.querySelector("body");e&&e.classList.remove("noScroll")}),(e,c)=>{const C=d("SlpIcon"),l=d("SlpTypography"),p=d("SlpButton");return g(),m("div",null,[a(t)?(g(),m("div",E,[c[0]||(c[0]=n("nav",{class:"minimal-nav"},[n("img",{class:"desktop",src:"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",width:"160px"}),n("img",{class:"mobile",src:"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg",width:"25px"})],-1)),n("div",I,[n("div",J,[n("div",j,[o(C,{icon:a(x),size:"lg",class:"slp-mb-24"},null,8,["icon"]),o(l,{tag:"h2",variant:"heading5-bold"},{default:i(()=>[s(r(a(t).headingEn),1)]),_:1}),o(l,{tag:"p",variant:"body2",class:"paragraph"},{default:i(()=>[s(r(a(t).paragraphEn),1)]),_:1}),o(l,{tag:"h2",variant:"heading5-bold"},{default:i(()=>[s(r(a(t).headingCn),1)]),_:1}),o(l,{tag:"p",variant:"body2",class:"paragraph"},{default:i(()=>[s(r(a(t).paragraphCn),1)]),_:1}),o(p,{variant:"primary","data-ga-location":"jihu-modal","data-ga-name":a(t).primaryCta?.text,href:a(t).primaryCta?.config?.href},{default:i(()=>[s(r(a(t).primaryCta?.text),1)]),_:1},8,["data-ga-name","href"]),o(p,{variant:"tertiary","data-ga-location":"jihu-modal","data-ga-name":a(t).secondaryCta?.text,type:"button",onClick:v},{default:i(()=>[s(r(a(t).secondaryCta?.text),1)]),_:1},8,["data-ga-name"])])])])])):k("",!0)])}}}),T=Object.assign(M(V,[["__scopeId","data-v-1fcf96e9"]]),{__name:"JihuModal"});export{T as default};

AltStyle によって変換されたページ (->オリジナル) /