1import{u as Ee,_ as Le}from"./base-b5ef1881f6.js";import{E as ne,a as ie}from"./el-skeleton-item-137fd60636.js";import{n as K,p as u,G as X,F as z,s as qe,t as Pe,ap as Ie,u as P,T as Ae,aq as oe,W as re,U as ce,Y as ue,r as _,j as R,d as de,af as pe,ag as ve,ar as ye,ah as _e,an as fe,a0 as N,ac as De,z as He,as as Me,x as ge,q as v,C as a,E as h,aa as O,ao as he,A as c,Z as q,_ as D,D as J,L as j,O as ee,R as Be,I as Ve,a2 as me,a3 as ke,a4 as Te,ai as ze,aj as Ne,V as Ge}from"./main-95b3bbb753.js";import{i as be,g as Ue}from"./supportLegacy-c500a56d7f.js";import{n as Oe,V as Fe}from"./VideoPlayer-c1850fce11.js";import"./runtime-9f9399b934.js";const Re=K({name:"ElCollapseTransition"}),Je=K({...Re,setup(d){const p=Ee("collapse-transition"),f=e=>{e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom},o={beforeEnter(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0},enter(e){e.dataset.oldOverflow=e.style.overflow,e.scrollHeight!==0?e.style.maxHeight=`${e.scrollHeight}px`:e.style.maxHeight=0,e.style.paddingTop=e.dataset.oldPaddingTop,e.style.paddingBottom=e.dataset.oldPaddingBottom,e.style.overflow="hidden"},afterEnter(e){e.style.maxHeight="",e.style.overflow=e.dataset.oldOverflow},enterCancelled(e){f(e)},beforeLeave(e){e.dataset||(e.dataset={}),e.dataset.oldPaddingTop=e.style.paddingTop,e.dataset.oldPaddingBottom=e.style.paddingBottom,e.dataset.oldOverflow=e.style.overflow,e.style.maxHeight=`${e.scrollHeight}px`,e.style.overflow="hidden"},leave(e){e.scrollHeight!==0&&(e.style.maxHeight=0,e.style.paddingTop=0,e.style.paddingBottom=0)},afterLeave(e){f(e)},leaveCancelled(e){f(e)}};return(e,w)=>(u(),X(Ae,Pe({name:P(p).b()},Ie(o)),{default:z(()=>[qe(e.$slots,"default")]),_:3},16,["name"]))}});var W=Le(Je,[["__file","/home/runner/work/element-plus/element-plus/packages/components/collapse-transition/src/collapse-transition.vue"]]);W.install=d=>{d.component(W.name,W)};const Ke=W,We=Ke;const Ye=()=>[{title:oe.global.t("ContentType.guide"),type:"service_manual",list:[],articleList:[]},{title:oe.global.t("ContentType.troubleshooting"),type:"troubleshooting",list:[],articleList:[]}],Ze=(d,p)=>{var o;console.log("data",d),console.log("articleType",p);const f=Ye();return d.support_list.forEach(e=>{e.type==="service_manual"?f[0].articleList=le(e):e.type==="troubleshooting"&&(f[1].articleList=le(e))}),((o=f.find(e=>e.title===p||e.type===p))==null?void 0:o.articleList)||[]},le=d=>{var f;let p=[];return(f=d==null?void 0:d.subtype_list)==null||f.forEach(o=>{const e=d.info_list.filter(w=>w.name===o);p=[...p,{type:o,list:e}]}),p},we=d=>(me("data-v-2fcbbb2f"),d=d(),ke(),d),Qe={class:"seeMore"},Xe={class:"breadcrumb"},je={class:"breadcrumb"},et={class:"main"},tt={class:"content"},st={class:"left-aside"},at={class:"Guide-title"},ot={class:"aside"},lt=["id"],nt=["onClick"],it=we(()=>a("use",{href:"#Property1Variant4"},null,-1)),rt=[it],ct=["onClick"],ut={class:"html"},dt={class:"article"},pt={class:"html"},vt=["innerHTML"],yt={key:0,class:"image-preview-overlay"},_t=we(()=>a("img",{class:"close-img",src:"https://viaim-h5.oss-ap-southeast-1.aliyuncs.com/iflybuds-website-world/images/common/close-icon.png"},null,-1)),ft=[_t],gt=["src"],ht=K({__name:"Pc",setup(d){var ae;const p=re(),{t:f}=ce(),o=ue(),e=_(null),w=_(null),E=_(!0),g=_(!1);o.query.title;const b=(ae=o.query.type)==null?void 0:ae.replace(/\s/g,""),H=R(()=>be(o.query)),$=_([]),M=_({}),G=R(()=>{const t=o.query.articleType||o.query.activeType;if(t==="service_manual")return f("ContentType.guide");if(t==="troubleshooting")return f("ContentType.troubleshooting");if(p.location.abb==="jp"||p.location.abb==="ja")return t;if(p.location.abb==="en"){const l={ã¬ã¤ã:"Guide",ãã©ãã«å¯¾å¿:"Troubleshooting"};return l[t]?l[t]:t}return t});de(()=>{m(),document.body.addEventListener("click",i),e.value=setTimeout(()=>{E.value=!1},500),console.log("route",o.query)});const B=_(""),F=_(null),C=_(""),L=_(""),U=_(!1),n=_(""),m=()=>{const t={headset_model:H.value?o.query.headsetType:pe(o.params.product),area_code:ve(p.location.abb,o.path)};(H.value?ye:_e)(t).then(s=>{console.log("详æ
页è·ååç±»æ°æ®",s),$.value=Ze(s,G.value),S()}).catch(()=>{$.value=[],L.value="",C.value="",E.value=!1,g.value=!1})},S=()=>{w.value=setTimeout(()=>{const t=()=>{var y;const l=$.value[0],s=(y=l==null?void 0:l.list)==null?void 0:y[0];if(!l||!s){L.value="",C.value="",g.value=!1;return}M.value=s,r(l.type.replace(/\s/g,""),l.list.length+1),x(s.url,s.title,s.id)};if(console.log("queryType: ",b),b){const l=$.value.findIndex(s=>s.type.replace(/\s/g,"")===b);if(console.log("index: ",l),l>-1){let s=$.value[l].list.some(y=>y.id===o.query.id);console.log("isExistCurArticle: ",s),s?(r(b,$.value[l].list.length+1),k(o.query.id)):t()}else t()}else t()},1e3)},k=t=>{const l=$.value.findIndex(y=>y.type.replace(/\s/g,"")===b);if(l<0){L.value="",C.value="";return}$.value[l].list.forEach(y=>{y.id===t&&(M.value=y)}),x(M.value.url,M.value.title,M.value.id)},i=t=>{if(t.target.tagName==="A")t.preventDefault(),window.open(t.target.href,"_blank");else{let l=t.target.href&&t.target.href.split("/#/")[0];l&&l.includes("viaim.ai")?(window.location.href=t.target.href,window.location.reload()):t.target.target="_blank"}},r=(t,l)=>{B.value===t?B.value="":B.value=t},x=(t,l,s)=>{console.log("url",t,"id",s),s&&fe(s);const y=new Date().getTime();s!==F.value&&(F.value=s,C.value=l,s&&N.replace({path:o.path,query:{...o.query,type:B.value,id:s}}),t?(g.value=!0,De({method:"get",url:`${t}?t=${y}`}).then(function(I){I!=null&&I.data?(L.value=$e(I.data),He(()=>{Se()})):L.value=""}).catch(()=>{L.value=""}).finally(()=>{g.value=!1})):L.value="")},$e=t=>{if(typeof t!="string")return"";try{return Ce(t)}catch{return t}},Ce=t=>{let l=atob(t).split(",");const s=l.length,y=new Uint8Array(s);for(let V=0;V<s;V++)y[V]=parseInt(l[V],10);const I=new TextDecoder,T=Me.uncompress(y);return I.decode(T).replace(/target="_blank"/g,'target="_top" @click="toPath"')},Se=()=>{const t=document.querySelector(".wangEditor-pc");
1if(!t)return;t.querySelectorAll("img:not([data-preview-initialized])").forEach(s=>{s.setAttribute("data-preview-initialized","true"),s.style.cursor="pointer",s.addEventListener("click",y=>{y.preventDefault(),y.stopPropagation(),xe(s.src)})})},xe=t=>{n.value=t,U.value=!0,document.body.style.overflow="hidden",document.addEventListener("keydown",Y)},Y=t=>{t.key==="Escape"&&U.value&&se()},se=()=>{U.value=!1,n.value="",document.body.style.overflow="",document.removeEventListener("keydown",Y)};return ge(()=>{clearTimeout(e.value),clearTimeout(w.value),e.value=null,w.value=null,document.body.removeEventListener("click",i),document.removeEventListener("keydown",Y),document.body.style.overflow=""}),(t,l)=>{const s=ne,y=We,I=ie;return u(),v("main",Qe,[a("div",Xe,[a("ul",je,[a("li",{class:"pointer",onClick:l[0]||(l[0]=T=>P(N).push("/support/index"))},h(t.$t("Support.product.home")),1),O(" Â Â >Â Â "),a("li",{class:"pointer",onClick:l[1]||(l[1]=T=>P(N).back())},"viaim "+h(P(he)(P(o).params.product))+" "+h(t.$t("Support.product.support")),1),O(" Â Â >Â Â "),a("li",null,h(t.$t("Support.product.inst")),1)])]),a("div",et,[a("div",tt,[c(I,{animated:"",class:"aside",loading:E.value},{template:z(()=>
1[c(s,{variant:"caption",class:"skeleton-Guide-title"}),(u(),v(q,null,D(9,T=>c(s,{variant:"caption",class:"skeleton-ul",key:T})),64))]),default:z(()=>[a("div",st,[a("div",at,h(G.value),1),a("aside",ot,[(u(!0),v(q,null,D($.value,T=>{var Z,Q;return u(),v("ul",{class:"ul",key:T.type,id:(Z=T.type)==null?void 0:Z.replace(/\s/g,"")},[a("div",{class:"group",onClick:V=>{var A;return r((A=T.type)==null?void 0:A.replace(/\s/g,""),T.list.length+1)}},[O(h(T.type)+" ",1),(u(),v("svg",{class:J(["iconpark-icon",{"selected-icon":((Q=T.type)==null?void 0:Q.replace(/\s/g,""))===B.value}])},rt,2))],8,nt),c(y,null,{default:z(()=>{var V;return[j(a("div",null,[(u(!0),v(q,null,D(T.list,A=>(u(),v("li",{class:J(["li",{selected:F.value===A.id}]),key:A.id,onClick:Vt=>x(A.url,A.title,A.id)},[a("div",null,h(A.title),1)],10,ct))),128))],512),[[ee,B.value===((V=T.type)==null?void 0:V.replace(/\s/g,""))]])]}),_:2},1024)],8,lt)}),128))])])]),_:1},8,["loading"]),c(I,{animated:"",class:"skeleton-article",loading:g.value},{template:z(()=>[a("div",ut,[c(s,{variant:"h1",class:"skeleton-h2"}),c(s,{variant:"h3",class:"skeleton-h3"}),c(s,{variant:"rect"}),c(s,{variant:"rect"}),c(s,{variant:"rect",style:{width:"50%"}}),c(s,{variant:"rect",class:"skeleton-text"}),c(s,{variant:"rect",style:{width:"50%"}}),c(s,{variant:"h3",class:"skeleton-h3"}),c(s,{variant:"rect"}),c(s,{variant:"rect"}),c(s,{variant:"rect"}),c(s,{variant:"rect",style:{width:"50%"}})])]),default:z(()=>[a("article",dt,[a("div",pt,[a("h2",null,h(C.value),1),a("div",{class:"wangEditor-pc",innerHTML:L.value},null,8,vt)])])]),_:1},8,["loading"])])]),U.value?(u(),v("div",yt,[a("div",{class:"image-preview-container",onClick:l[2]||(l[2]=Be(()=>{},["stop"]))},[a("button",{class:"image-preview-close",onClick:se},ft),a("img",{src:n.value,alt:"é¢è§å¾ç",class:"preview-image"},null,8,gt)])])):Ve("",!0)])}}});const mt=Te(ht,[["__scopeId","data-v-2fcbbb2f"]]),te=d=>(me("data-v-eff46c01"),d=d(),ke(),d),kt={class:"nanoPlus"},Tt={class:"breadcrumb"},bt={class:"main"},wt={class:"GuideTroubleshooting"},$t=["onClick"],Ct={class:"Troubleshooting"},St=["onClick"],xt=te(()=>a("use",{href:"#Property1Variant4"},null,-1)),Et=[xt],Lt=["onClick"],qt={class:"column"},Pt=te(()=>a("div",{class:"icon"},[a("svg",{class:"iconpark-icon"},[a("use",{href:"#Property1Variant4"})])],-1)),It=["onClick"],At=["src"],Dt=te(()=>a("svg",{class:"iconpark-icon video-icon"},[a("use",{href:"#Property1tiaozhuanshibofanganniu"})],-1)),Ht={class:"video-title"},Mt=K({__name:"Mobile",setup(d){const{t:p}=ce(),f=re(),o=ue(),e=_(null),w=R(()=>be(o.query));de(()=>{B({headset_model:w.value?o.query.headsetType:pe(o.params.product),area_code:ve(f.location.abb,o.path)})});const E=_(!1),g=R(()=>[{title:p("ContentType.guide"),type:"service_manual",list:[]},{title:p("ContentType.troubleshooting"),type:"troubleshooting",list:[]},{title:p("ContentType.videos"),type:"video_tutorial",list:[]}]),b=_(""),H=_(""),$=n=>{H.value===n?H.value="":H.value=n},M=R(()=>sessionStorage.getItem("activeType")||""),G=_([]),B=n=>{console.log("è·åèåå表: ",n),E.value=!0,(w.value?ye:_e)(n).then(S=>{var i;S.support_list.forEach(r=>{g.value.forEach(x=>{r.type===x.type&&(x.list=F(r))})});let k=g.value.findIndex(r=>r.list.length>0);(i=o==null?void 0:o.query)!=null&&i.activeType?C(g.value[g.value.findIndex(r=>{var x;return r.type===((x=o==null?void 0:o.query)==null?void 0:x.activeType)})]):w.value?C(g.value[g.value.findIndex(r=>r.type===Ue(o.query.articleType))]):M.value?C(g.value[g.value.findIndex(r=>r.type===M.value)]):C(g.value[k]),E.value=!1}).catch(()=>{G.value=[],E.value=!1})},F=n=>{var S;n.type==="video_tutorial"&&n.info_list.forEach(k=>{k.subtitles=Oe(k),ze(k.url)&&Ne(k.url).then(i=>k.url=i)});let m=[];return(S=n==null?void 0:n.subtype_list)==null||S.forEach(k=>{let i=n.info_list.filter(r=>r.name===k);m=[...m,{type:k,list:i}]}),m},C=n=>{n&&(sessionStorage.setItem("activeType",n.type),b.value=n.type,G.value=n.list)},L=n=>{if(n.id&&fe(n.id),w.value){N.push({path:`/support/detail/${n.id}/${b.value}`,query:{url:n.url,title:n.title}});return}N.push({path:`/support/detail/${n.id}/${b.value}`,query:{product:o.params.product,activeType:b.value,categoryName:n.name||""}})},U=n=>{var m;(m=e.value)==null||m.playVideo(n)};return ge(()=>{sessionStorage.removeItem("activeType")}),(n,m)=>{const S=ne,k=ie;return u(),v(q,null,[a("main",kt,[a("ul",Tt,[a("li",{onClick:m[0]||(m[0]=i=>P(N).push("/support/index"))},h(n.$t("Support.product.home")),1),O("   >  "),a("li",{onClick:m[1]||(m[1]=i=>P(N).back())},"viaim "+h(P(he)(P(o).params.product))+" "+h(n.$t("Support.product.support")),1),O("   >  "),a("li",null,h(n.$t("Support.product.inst")),1)]),a("div",bt,[a("ul",wt,[(u(!0),v(q,null,D(g.value,i=>j((u(),v("li",{key:i.title,class:J({selected:i.type===b.value}),onClick:r=>C(i)},h(i.title),11,$t)),[[ee,i.list.length>0&&!E.value||E.value]])),128))]),c(k,{animated:"",class:"select",loading:E.value},{template:z(()=>
1[c(S,{class:"skeleton-tab-title",variant:"caption"}),a("div",Ct,[(u(),v(q,null,D(6,i=>a("div",{class:"skeleton-content",key:i},[c(S,{variant:"text"}),c(S,{variant:"text"})])),64))]),(u(),v(q,null,D(1,i=>c(S,{class:"skeleton-tab-title",variant:"caption",key:i})),64))]),default:z(()=>[(u(!0),v(q,null,D(G.value,i=>(u(),v("div",{class:"select",key:i.id},[a("div",{class:"tab-title",onClick:r=>$(i.type)},[O(h(i.type)+" ",1),(u(),v("svg",{class:J(["iconpark-icon",{selected:i.type===H.value}])},Et,2))],8,St),j(a("ul",{class:J(["Troubleshooting",{"Troubleshooting-no-video":b.value!=="video_tutorial"}])},[b.value!=="video_tutorial"?(u(!0),v(q,{key:0},D(i.list,r=>(u(),v("li",{class:"li",key:r.id,onClick:x=>L(r)},[a("div",qt,h(r.title),1),Pt],8,Lt))),128)):(u(!0),v(q,{key:1},D(i.list,r=>(u(),v("div",{class:"video-card",key:r.id},[a("div",{class:"skeleton-video",onClick:x=>U(r)},[a("img",{class:"video-content",src:r.pic},null,8,At),Dt],8,It),a("span",Ht,h(r.title),1)]))),128))],2),[[ee,i.type===H.value]])]))),128))]),_:1},8,["loading"])])]),c(Fe,{ref_key:"videoPlayerRef",ref:e},null,512)],64)}}});const Bt=Te(Mt,[["__scopeId","data-v-eff46c01"]]),Rt=K({__name:"index",setup(d){const p=Ge();return(f,o)=>P(p).screen==="pc"?(u(),X(mt,{key:0})):(u(),X(Bt,{key:1}))}});export{Rt as default}; 2//# sourceMappingURL=index-21d7c2caa5.js.map
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.