PageSourceSearch

https://cdn.pacdora.com/_pacui/assets/LangSwitchList-BC7X5fszVv.js

js pacdora.com collected 2026-09-25 19:11:51 UTC 2,339 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-CMxvf4Ktp1.js";import{Ji as t,Sr as n,bi as r,ea as i,ia as a,la as o,sa as s,ta as c}from"./src-DdRYxgPx8x.js";import{Ht as l,Jt as u,K as d,Pt as f,Q as p,Qt as m,Yt as h,at as g,bt as _,et as v,q as y,st as b,tt as x,vt as S,wt as C}from"./vue-D0d8k1b_qq.js";var w={class:`list`},T=[`href`,`onClick`],E={key:0,class:`p-icon-correct check-icon`,alt:`checkIcon`},D=b({__name:`LangSwitchList`,props:{gtm:{}},setup(e){let t=e,{backgroundTheme:b}=n(),D=[`/mockup-detail`,`/dielines-detail`,`/3d-modeling`,`/render-collaborate-page`,`/dieline-collaborate-page`,`/mockup-detail-collaborate-page`],O=l();function k(e){let t=document.querySelectorAll(`link[rel="alternate"]`),n=[];return D.some(e=>window.location.pathname.indexOf(e)!==-1)?!1:(n=t.length===0?[`en-US`]:Array.from(t).map(e=>e.getAttribute(`hreflang`)).filter(e=>e!=`x-default`).map(e=>{let t=e.split(`-`);return s.get(t[0])}),!n.includes(e))}function A(){let e=document.getElementById(`app`),t=document.getElementById(`header`),n=(e==null?void 0:e.dataset.multilingual)||(t==null?void 0:t.dataset.multilingual);return n?n===`true`:!0}S(()=>{O.value=A(),k()});function j(e,n){var r,s,l,u;if(console.log(`handleToggleLanguage`,e),t.gtm&&((r=(s=window).$track)==null||r.call(s,{event:t.gtm})),(l=(u=window).$track)==null||l.call(u,{event:`language_choose`,type:e.text}),c()==e.symbol){n.preventDefault();return}let d=``;Object.keys(a).includes(e.symbol)&&(d=e.symbol==`ja-JP`?`jp`:e.symbol==`ko-KR`?`kr`:e.symbol.slice(0,2)),o.set(`user_local_lang`,d);let f=i().find(t=>t.symbol===e.symbol);f&&(window.location.href=f.href)}return(e,t)=>(_(),x(`div`,{class:h([`lang-switch-list`,{"lang-switch-list--dark":u(b)===`dark`,"lang-switch-list--light":u(b)==="default"}])},[p(`div`,w,[g(u(r),{size:4,gutterOfSide:6,placeholderHeight:4,maskHeight:25,topMaskVisible:``,hoverShowBar:``,hasScrollBar:``},{default:f(()=>[(_(!0),x(y,null,C(u(i)(),e=>(_(),x(`a`,{class:h([`lang-item`,{"item-active":u(c)()==e.symbol,"item-disabled":k(e.symbol)}]),key:e.symbol,href:e.href,onClick:d(t=>j(e,t),[`stop`])},[p(`span`,{class:h({"chinese-text":[`zh-CN`,`ja-JP`,`ko-KR`].includes(e.symbol)})},m(e.text),3),u(c)()===e.symbol?(_(),x(`i`,E)):v(``,!0)],10,T))),128))]),_:1})])],2))}}),O=e({default:()=>k}),k=t(D,[[`__scopeId`,`data-v-12ced689`]]);export{O as n,k as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.