1import{d as H,f as W,n as D,q as h,c as _,v as V,b7 as j,j as P,_ as M,o as n,a as l,F as k,l as w,C as N,b as v,t as T,m as C,k as y,r as b,Q as I,i as $,b2 as z,u as O,b4 as R,a0 as q,e as B,w as Y,W as A}from"./index.c85c3f79.js";import{S as E,H as Q,a as U}from"./HeaderNav.e02f2042.js";import"./page.bafebfc4.js";import"./Country.ff2660a7.js";import"./LoginModal.f3f1de0d.js";import"./FsButton.cf7c68b7.js";import"./InputItem.89fb5858.js";import"./ArticlePop.3bddff24.js";const G=H({name:"NavBarFirst",props:{navType:{type:String,default:"1"}},setup(e){const r=W(),s=D(),d=h(-1),u=h(0),m=h(0),o=_(()=>s.navData),a=_(()=>o.value.nav),i=_(()=>s.navSubLeave);let t=null;const p=(f,S,F)=>{clearTimeout(t),s.setNavSubLeave(0),s.setSubNavData(f),d.value=S},g=()=>{s.setNavSubLeave(1)};V(i,(f,S)=>{c()});const c=()=>{t=setTimeout(()=>{o.value.nav&&i.value===1&&p(o.value.nav[0].sub_category[0],0)},150)};return j(()=>{c()}),{navList:a,hoverIndex:d,curHeight:u,curPadding:m,selectItem:p,selectLeave:g,toLink:f=>{f&&P(r,f)},initNav:c}}});const J=["onMouseenter"],K=["href","onClick"];function X(e,r,s,d,u,m){return e.navList&&e.navList[0]?(n(),l("div",{key:0,class:N(["nav-bar",[e.navType==="2"&&"left-justify-nav"]])},[(n(!0),l(k,null,w(e.navList[0].sub_category,(o,a)=>(n(),l("div",{key:o.categories_id,class:N(["nav-item",{"active-item":e.hoverIndex===a}]),onMouseenter:i=>e.selectItem(o,a,i),onMouseleave:r[0]||(r[0]=(...i)=>e.selectLeave&&e.selectLeave(...i))},[v("a",{class:"nav-title fw-bold",href:o.href,onClick:C(i=>e.toLink(o.href),["prevent"])},T(o.category_name),9,K)],42,J))),128))],2)):y("",!0)}const Z=M(G,[["render",X],["__scopeId","data-v-19609fb8"]]),x=H({name:"NavBarTwo",components:{SearchBox:E},props:{navType:{type:String,default:"1"},hideSearch:{type:Boolean,default:!1}},setup(e){const r=W(),s=D(),d=h(-1),u=h(0),m=h(0);return{navSubData:_(()=>s.navSubData),hoverIndex:d,curHeight:u,curPadding:m,selectItem:(c,L,f)=>{if(s.setNavSubLeave(0),c.sub_category&&c.sub_category.length){d.value=L;const S=f.target.children[1],F=S&&S.children[0];u.value=F.clientHeight,m.value=f.target.getBoundingClientRect().left}},selectLeave:()=>{u.value=0},toLink:c=>{c&&P(r,c)},leave:c=>{s.setNavSubLeave(1)},enter:()=>{s.setNavSubLeave(0)}}}});const ee={class:"nav-bar-two"},ae={class:"nav-item-two"},te=["onMouseenter"],oe=["href","onClick"],ne=["href","onClick"];function se(e,r,s,d,u,m){const o=b("SearchBox");return n(),l("div",ee,[v("div",ae,[e.navSubData.sub_category&&e.navSubData.sub_category.length?(n(),l("ul",{key:0,onMouseleave:r[1]||(r[1]=(...a)=>e.leave&&e.leave(...a)),onMouseenter:r[2]||(r[2]=(...a)=>e.enter&&e.enter(...a))},[(n(!0),l(k,null,w(e.navSubData.sub_category,(a,i)=>(n(),l("li",{key:i,class:N({active:e.hoverIndex==i}),onMouseenter:t=>e.selectItem(a,i,t),onMouseleave:r[0]||(r[0]=(...t)=>e.selectLeave&&e.selectLeave(...t))},[v("a",{href:a.href,onClick:C(t=>e.toLink(a.href),["prevent"])},T(a.category_name),9,oe),a.sub_category&&a.sub_category.length?(n(),l("div",{key:0,class:"nav-item-sub",style:I({height:e.curHeight+"px"})},[v("dl",{style:I({paddingLeft:e.curPadding+"px"})},[(n(!0),l(k,null,w(a.sub_category,(t,p)=>(n(),l("dd",{key:p},[v("a",{href:t.href,onClick:C(g=>e.toLink(t.href),["prevent"])},T(t.category_name),9,ne)]))),128))],4)],4)):y("",!0)],42,te))),128))],32)):y("",!0)]),e.hideSearch?y("",!0):(n(),$(o,{key:0}))])}const re=M(x,[["render",se],["__scopeId","data-v-7254af06"]]),ie=H({name:"PCCommonHeaderOne",components:{NavBarFirst:Z,NavBarTwo:re,HeaderTop:Q,HeaderNav:U},props:{hideNav:{type:Boolean,default:!1},hideCart:{type:Boolean,default:!1},hideWish:{type:Boolean,default:!1},hideSearch:{type:Boolean,default:!1},isSupportThird:{type:Boolean,default:!0},isMarketing:{type:Boolean,default:!1}},setup(e){const r=D(),s=h(!1),d=h(null),u=h(null);z(document,"scroll",()=>{if(!e.hideNav){const c=window.scrollY,L=d.value&&d.value.clientHeight;s.value=!!c,u.value.style.height=s.value?`${L}px`:null}});const o=O(),a=_(()=>o.path.indexOf("/product-registration-information")!==-1||o.path.indexOf("/faq-74.html")!==-1),i=R.logoDefault,t=_(()=>r.navData),p=_(()=>t.value.style_component&&t.value.style_component.style_id),g=_(()=>t.value.top_fixed_style&&t.value.top_fixed_style.style_id);return{fixed:s,local_logo:i,navType:p,navFixedType:g,headerMain:d,headerWrap:u,isHideHeadTop:a}}});const le=["hide-search"],de={class:"common-container common-nav-container"},ce={class:"header-nav-bar"},ue={class:"header-nav-two"},ve={class:"common-container common-nav-container"};function pe(e,r,s,d,u,m){const o=b("HeaderTop"),a=b("HeaderNav"),i=b("router-link"),t=b("NavBarFirst"),p=b("NavBarTwo"),g=q("lazy");return n(),l("div",{id:"jsHeight",ref:"headerWrap",class:N(["header-wrap",{"height-init-fixed":e.hideNav}])},[v("header",{ref:"headerMain",class:N(["header-main",{isFixed:e.fixed||e.hideNav},{myos_pages_head_fix:e.isMarketing}])},[e.navFixedType==32?(n(),l(k,{key:0},[e.isHideHeadTop?y("",!0):(n(),$(o,{key:0,"hide-cart":e.hideCart,"hide-wish":e.hideWish,"is-support-third":e.isSupportThird},null,8,["hide-cart","hide-wish","is-support-third"])),e.hideNav?y("",!0):(n(),$(a,{key:1,"hide-search":e.hideSearch},null,8,["hide-search"]))],64)):(n(),l(k,{key:1},[e.hideNav?y("",!0):(n(),l("div",{key:0,"hide-search":e.hideSearch,class:"header-nav"},[v("div",de,[v("div",ce,[B(i,{class:"logo",to:"/"},{default:Y(()=>[A(v("img",null,null,512),[[g,e.local_logo]])]),_:1}),B(t,{"nav-type":e.navType}
1,null,8,["nav-type"])]),e.isHideHeadTop?y("",!0):(n(),$(o,{key:0,"hide-cart":e.hideCart,"hide-wish":e.hideWish,"is-support-third":e.isSupportThird},null,8,["hide-cart","hide-wish","is-support-third"]))])],8,le)),v("div",ue,[v("div",ve,[B(p)])])],64))],2)],2)}const he=M(ie,[["render",pe],["__scopeId","data-v-ad1dc91c"]]),Ne={main:he};export{Ne 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.