PageSourceSearch

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

js pacdora.com collected 2026-10-03 22:10:18 UTC 2,342 bytes, 1 lines download raw bytes

1import{r as e}from"./rolldown-runtime-CMxvf4Ktp1.js";import{Si as t,Xi as n,da as r,la as i,na as a,oa as o,ra as s,wr as c}from"./src-D9GYhO4rRw.js";import{Bt as l,It as u,Nt as d,St as f,Xt as p,an as m,bt as h,ct as g,dn as _,fn as v,gt as y,hn as b,ht as x,pt as S,st as C}from"./vue-DR-_0DQxXA.js";var w={class:`list`},T=[`href`,`onClick`],E={key:0,class:`p-icon-correct check-icon`,alt:`checkIcon`},D=f({__name:`LangSwitchList`,props:{gtm:{}},setup(e){let n=e,{backgroundTheme:f}=c(),D=[`/mockup-detail`,`/dielines-detail`,`/3d-modeling`,`/render-collaborate-page`,`/dieline-collaborate-page`,`/mockup-detail-collaborate-page`],O=m();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 i.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}d(()=>{O.value=A(),k()});function j(e,t){var i,c,l,u;if(console.log(`handleToggleLanguage`,e),n.gtm&&((i=(c=window).$track)==null||i.call(c,{event:n.gtm})),(l=(u=window).$track)==null||l.call(u,{event:`language_choose`,type:e.text}),s()==e.symbol){t.preventDefault();return}let d=``;Object.keys(o).includes(e.symbol)&&(d=e.symbol==`ja-JP`?`jp`:e.symbol==`ko-KR`?`kr`:e.symbol.slice(0,2)),r.set(`user_local_lang`,d);let f=a().find(t=>t.symbol===e.symbol);f&&(window.location.href=f.href)}return(e,n)=>(u(),y(`div`,{class:v([`lang-switch-list`,{"lang-switch-list--dark":_(f)===`dark`,"lang-switch-list--light":_(f)==="default"}])},[S(`div`,w,[h(_(t),{size:4,gutterOfSide:6,placeholderHeight:4,maskHeight:25,topMaskVisible:``,hoverShowBar:``,hasScrollBar:``},{default:p(()=>[(u(!0),y(g,null,l(_(a)(),e=>(u(),y(`a`,{class:v([`lang-item`,{"item-active":_(s)()==e.symbol,"item-disabled":k(e.symbol)}]),key:e.symbol,href:e.href,onClick:C(t=>j(e,t),[`stop`])},[S(`span`,{class:v({"chinese-text":[`zh-CN`,`ja-JP`,`ko-KR`].includes(e.symbol)})},b(e.text),3),_(s)()===e.symbol?(u(),y(`i`,E)):x(``,!0)],10,T))),128))]),_:1})])],2))}}),O=e({default:()=>k}),k=n(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.