1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Dy7LalTF.js","./Deie1YYH.js","./Bdsq-2Hc.js","./BHyX0zGx.js","./BFU_sm0N.js","./entry.qMaPnK2u.css","./C5AY_amu.js","./CZ9w5ngk.js","./ZNc5PjZr.js","./DPjQhL7z.js","./CKbJSpm8.js","./index.BJDjTz-Q.css","./order.SGDB8GG3.css","./BuIU4M7K.js","./index.azlZmD2w.css","./Result.1QFFYf0n.css","./PaymentRiskControlFail.B64W-qGN.css","./StoreSiteSwitch.B9M_r6hg.css"])))=>i.map(i=>d[i]); 2var N=(a,S,r)=>new Promise((T,E)=>{var U=f=>{try{B(r.next(f))}catch(h){E(h)}},p=f=>{try{B(r.throw(f))}catch(h){E(h)}},B=f=>f.done?T(f.value):Promise.resolve(f.value).then(U,p);B((r=r.apply(a,S)).next())});import{_ as de,f as ue,d as ce,b as _e,h as me,L as be,c as fe}from"./Deie1YYH.js";import{d as g,m as $,f as ve,n as pe,o as ye,a4 as he,Y as n,K as l,J as b,O as u,N as O,L as _,M as ke,R as i,F as c,Z as w,a5 as D,U as P,S as m,a3 as R,ag as W,u as C,T as ge,a6 as we}from"./Bdsq-2Hc.js";import{_ as Ce}from"./DzfRu6lQ.js";import{r as Y}from"./BnyBOTcy.js";import"./BHyX0zGx.js";import"./BFU_sm0N.js";import"./hV5BZvcf.js";import"./C5AY_amu.js";import"./CZ9w5ngk.js";import"./ZNc5PjZr.js";import"./DPjQhL7z.js";import"./CKbJSpm8.js";import"./BuIU4M7K.js";import"./ClEn5SkI.js";import"./Dy7LalTF.js";import"./CZHOnaNv.js";import"./D5xziSVP.js";import"./Bl9z7Pne.js";import"./BBHFXknx.js";(function(){try{var a=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{};a.SENTRY_RELEASE={id:"90e6ae45135811f53903a6406dd98a720cc380a5"};var S=new a.Error().stack;S&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[S]="9b19e2ec-8003-4d13-ad6a-9723adcb3a93",a._sentryDebugIdIdentifier="sentry-dbid-9b19e2ec-8003-4d13-ad6a-9723adcb3a93")}catch(r){}})();const Se=we(()=>fe(()=>import("./Dy7LalTF.js").then(a=>a.S),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]),import.meta.url).then(a=>a.default||a)),xe={class:"mobile-nav-overlay__panel"},Le={class:"mobile-nav-menu"},$e={key:0,class:"mobile-nav-sale"},Ee={width:"32",height:"32",alt:"image"},Be={key:1,class:"mobile-nav-group"},Ve=["onClick"],Me={class:"mobile-nav-row__label"},Oe={key:0,class:"mobile-nav-group__body mobile-nav-expand"},Te={class:"mobile-nav-row__label"},ze=["onClick"],Ae={class:"mobile-nav-row__label"},De={key:0,class:"mobile-nav-products mobile-nav-expand"},Re={class:"mobile-nav-product-card__media"},Ue=["alt"],Fe={class:"mobile-nav-product-card__title"},je={key:0,class:"mobile-nav-products mobile-nav-products--scene"},Pe={class:"mobile-nav-product-card__media"},We=["alt"],Ye={class:"mobile-nav-products"},qe={class:"mobile-nav-product-card__media"},Je=["alt"],Ke={class:"mobile-nav-product-card__title"},Ze={class:"mobile-nav-row__label"},He={class:"mobile-nav-footer"},Qe={class:"mobile-nav-footer__site-name"},Xe={key:1},Ge={key:0,class:"mobile-nav-footer__currency"},Ne={key:1,class:"mobile-nav-footer__legacy-currency"},Ie={class:"mobile-nav-footer__legacy-select"},eo={__name:"MobileNavMenu",props:{visible:{type:Boolean,default:!0}},emits:["close"],setup(a,{emit:S}){const r=S,T=a,{t:E}=ue(),{shouldShow:U}=ce(),p=_e(),B=g(()=>p.menuList),f=g(()=>{var e;return((e=p.siteInfo)==null?void 0:e.currency)||""}),h=$({}),V=$(!1),M=$(null),x=$(null),z=$(0),F=$(""),I=g(()=>p.openCountrySelectorLoading),ee=g(()=>{var e;return((e=p.siteInfo)==null?void 0:e.country_code)||""}),oe=g(()=>p.flattenedAreaList),te=g(()=>{var e,o;return((o=(e=oe.value)==null?void 0:e.find(d=>d.iso_code_2==ee.value))==null?void 0:o.title)||""}),le=g(()=>({top:`${z.value}px`,"--mobile-nav-mask-top":`${z.value}px`,"--mobile-nav-panel-max-height":`min(70vh, calc(100vh - ${z.value}px))`})),q=()=>{if(typeof document=="undefined")return;const e=document.querySelector("#navbar_header_height");z.value=e?e.getBoundingClientRect().bottom:52},ie=e=>{var o;return e.typeid===1&&e.parent_id===0?!0:!!((o=e.arcchild_list)!=null&&o.is_normal_arcchild&&e.parent_id===0)},J=e=>{if(!(e!=null&&e.arcchild_list)||!(e!=null&&e.arcchild))return[];const o=Object.values(e.arcchild_list).filter(y=>y.parent_id===e.id&&y.status===1&&y.typeid!==4),d=e.arcchild.split(",").filter(y=>y);return o.sort((y,L)=>{const t=d.indexOf(String(y.id)),k=d.indexOf(String(L.id));return t-k})},se=e=>Object.values((e==null?void 0:e.arcchild_list)||{}).filter(o=>o.parent_id===e.id&&o.status===1&&o.is_application_scene),ne=e=>{M.value=M.value===e.id?null:e.id,x.value=null},ae=e=>{x.value=x.value===e.id?null:e.id},re=()=>N(this,null,function*(){if(p.areaList.length){V.value=!0;return}const e=yield p.getAreaList();e&&e.code===200&&(V.value=!0)}),K=()=>{q()};return ve(()=>T.visible,e=>
2{if(typeof document!="undefined"){if(e){q(),F.value=document.body.style.overflow,document.body.style.overflow="hidden";return}document.body.style.overflow=F.value}},{immediate:!0}),pe(()=>{window.addEventListener("resize",K)}),ye(()=>{typeof document!="undefined"&&T.visible&&(document.body.style.overflow=F.value),window.removeEventListener("resize",K)}),(e,o)=>{const d=me,y=Se,L=he("lazy");return l(),n(c,null,[(l(),b(ge,{to:"body"},[O(W,{name:"mobile-nav",appear:""},{default:_(()=>[a.visible?(l(),n("div",{key:0,class:"mobile-nav-overlay",style:ke(le.value)},[i("div",{class:"mobile-nav-overlay__backdrop","aria-hidden":"true",onClick:o[0]||(o[0]=t=>r("close"))}),i("div",xe,[i("div",Le,[(l(!0),n(c,null,w(B.value,(t,k)=>{var Z;return l(),n(c,{key:(Z=t.id)!=null?Z:k},[t.status===1&&t.parent_id===0?(l(),n(c,{key:0},[t.typeid===3&&k===0?(l(),n("div",$e,[O(d,{href:t.url||"#","aria-label":"link"},{default:_(()=>[D(i("img",Ee,null,512),[[L,"https://resource.xp-pen.com/img/xppen/fire.png"]]),P(" "+m(t.name),1)]),_:2},1032,["href"])])):ie(t)?(l(),n("div",Be,[i("button",{type:"button",class:R(["mobile-nav-row",{"mobile-nav-row--active":M.value===t.id}]),onClick:A=>ne(t)},[i("span",Me,m(t.name),1),i("i",{class:R(["iconfont mobile-nav-row__icon",M.value===t.id?"icon-a-SystemIcons-31":"icon-a-SystemIcons-30"])},null,2)],10,Ve),O(W,{name:"mobile-nav-expand"},{default:_(()=>{var A,H,Q,X,G;return[M.value===t.id?(l(),n("div",Oe,[(A=t.arcchild_list)!=null&&A.is_normal_arcchild?(l(!0),n(c,{key:0},w(J(t),s=>(l(),b(d,{key:s.id,class:"mobile-nav-row mobile-nav-row--link",href:C(Y)(s),"aria-label":"link",onClick:o[1]||(o[1]=v=>r("close"))},{default:_(()=>[i("span",Te,m(s.name),1)]),_:2},1032,["href"]))),128)):t.typeid===1&&((H=t.arcchild_list)!=null&&H.has_goods_list)?(l(),n(c,{key:1},[(l(!0),n(c,null,w(J(t),s=>(l(),n("div",{key:s.id,class:"mobile-nav-subgroup"},[s.goods_list?(l(),n(c,{key:0},[i("button",{type:"button",class:R(["mobile-nav-row mobile-nav-row--nested",{"mobile-nav-row--nested-active":x.value===s.id}]),onClick:v=>ae(s)},[i("span",Ae,m(s.name),1),i("i",{class:R(["iconfont mobile-nav-row__icon",x.value===s.id?"icon-a-SystemIcons-31":"icon-a-SystemIcons-30"])},null,2)],10,ze),O(W,{name:"mobile-nav-expand"},{default:_(()=>[x.value===s.id&&s.goods_list.length>0?(l(),n("div",De,[(l(!0),n(c,null,w(s.goods_list,(v,j)=>(l(),b(d,{key:j,class:"mobile-nav-product-card",href:C(Y)(v),"aria-label":"link",onClick:o[2]||(o[2]=oo=>r("close"))},{default:_(()=>[i("div",Re,[D(i("img",{alt:v.goods_name||"image"},null,8,Ue),[[L,v.thumb||""]])]),i("p",Fe,m(v.goods_name),1)]),_:2},1032,["href"]))),128))])):u("",!0)]),_:2},1024)],64)):u("",!0)]))),128)),(Q=t.arcchild_list)!=null&&Q.has_application_scene?(l(),n("div",je,[(l(!0),n(c,null,w(se(t),(s,v)=>(l(),b(d,{key:`scene-${v}`,class:"mobile-nav-product-card",href:s.url||"#","aria-label":"link",onClick:o[3]||(o[3]=j=>r("close"))},{default:_(()=>[i("div",Pe,[D(i("img",{alt:s.name||"image"},null,8,We),[[L,s.mobile_thumb||s.pc_thumb||""]])])]),_:2},1032,["href"]))),128))])):u("",!0),t.url?(l(),b(d,{key:1,class:"mobile-nav-view-more",href:t.url,"aria-label":"link",onClick:o[4]||(o[4]=s=>r("close"))},{default:_(()=>[P(m(C(E)("VIEW_MORE"))+" ",1),o[9]||(o[9]=i("i",{class:"iconfont icon-a-icon1x-32"},null,-1))]),_:2},1032,["href"])):u("",!0)],64)):t.typeid===1&&!((X=t.arcchild_list)!=null&&X.has_goods_list)&&((G=t.single_goods_list)!=null&&G.goods_list)?(l(),n(c,{key:2},[i("div",Ye,[(l(!0),n(c,null,w(t.single_goods_list.goods_list,(s,v)=>(l(),b(d,{key:v,class:"mobile-nav-product-card",href:C(Y)(s),"aria-label":"link",onClick:o[5]||(o[5]=j=>r("close"))},{default:_(()=>[i("div",qe,[D(i("img",{alt:s.goods_name||"image"},null,8,Je),[[L,s.thumb||""]])]),i("p",Ke,m(s.goods_name),1)]),_:2},1032,["href"]))),128))]),t.url?(l(),b(d,{key:0,class:"mobile-nav-view-more",href:t.url,"aria-label":"link",onClick:o[6]||(o[6]=s=>r("close"))},{default:_(()=>[P(m(C(E)("VIEW_MORE"))+" ",1),o[10]||(o[10]=i("i",{class:"iconfont icon-a-icon1x-32"},null,-1))]),_:2},1032,["href"])):u("",!0)],64)):u("",!0)])):u("",!0)]}),_:2},1024)])):t.typeid!==4?(l(),b(d,{key:2,class:"mobile-nav-row mobile-nav-row--link",href:t.url||"#","aria-label":"link",onClick:o[7]||(o[7]=A=>r("close"))},{default:_(()=>[i("span",Ze,m(t.name),1)]),_:2},1032,["href"])):u("",!0)],64)):u("",!0)],64)}),128)),i("div",He,[i("div",{class:"mobile-nav-footer__site",onClick:re},[i("p",Qe,[I.value?(l(),b(C(be),{key:0,class:"mobile-nav-footer__loader"})):(l(),n("span",Xe,m(te.value),1))]),o[11]||(o[11]=i("i",{class:"iconfont icon-inter"},null,-1))]),C(U)("MultiCurrencyFeature")?(l(),n("div",Ge,[O(Ce,{"trigger-class":"w-full h-[36px] border-[#ceccd3]","content-class":"z-[10002]"})])):u("",!0),h.value&&Object.keys(h.value).length?(l(),n("div",Ne,[i("div",Ie,[o[12]||(o[12]=i("i",{class:"iconfont icon-cash"},null,-1)),i("span",null,m(f.value),1),i("ul",null,[f.value!==e.key?(l(!0),n(c,{key:0},w(h.value,(t,k)=>(l(),b(d,{key:k,href:`?country_code=${t}`,"aria-label":"link"},{default:_(()=>[i("li",null,m(k),1)]),_:2},1032,["href"]))),128)):u("",!0)])])])):u("",!0)])])])],4)):u("",!0)]),_:1})])),V.value?(l(),b(y,{key:0,modelValue:V.value,"onUpdate:modelValue":o[8]||(o[8]=t=>V.value=t)},null,8,["modelValue"])):u("",!0)],64)}}},Co=de(eo,[["__scopeId","data-v-fa0b2fa6"]]);export{Co as default};
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.