1import{_ as at}from"./BP7DqpUr.js";import{u as ct}from"./CVmckWHd.js";import{t as le,y as o,z as t,H as k,cX as ae,q as T,w as he,C as y,E as h,S as p,D as e,cO as Ie,a1 as ke,ac as _e,v as ge,M as me,x as Ce,A as c,R as v,Z as V,G as m,Q as F,B as Y,F as A,U as K,V as ce,c8 as it,hb as rt,fX as ze,fW as je,T as Se,hc as dt,n0 as ut,n1 as ht,fn as mt,fo as pt,dv as ye,J as ve,O as $e,cr as Fe,bS as _t,n2 as Ue,K as be,fp as gt,dM as ft,cx as kt,gB as Ze,ak as Le,dO as Be,dF as Te,fq as vt,a7 as bt,c2 as yt,a6 as qe,ap as De,fl as $t,fm as wt,gI as Ct,n3 as Lt,n4 as xt,cz as Nt,f as Dt,I as St,N as Tt,n as It,cG as Et,kj as Vt,kk as Pt,ki as Ot}from"./Cmi3FiVB.js";import{_ as Ht}from"./BbTlTGKa.js";import{F as Mt}from"./C3ZiSfO3.js";import{I as Ee}from"./XgBRuqlW.js";import{p as Ve}from"./Cl941Z-2.js";import{_ as We}from"./Wv6YzVRH.js";import{_ as Je}from"./CQ08r4kB.js";import{_ as Ge}from"./DSq7Wjme.js";import{I as Ut}from"./C-AV_P87.js";import{I as ue}from"./DUMoJLdl.js";import{I as Ye}from"./CyVop7Kb.js";import{_ as Bt}from"./BS2CyLiS.js";import{_ as Rt}from"./Cu9HP0kC.js";import{_ as Xe}from"./CXp4ptjP.js";import{I as At}from"./BJ1eQWIu.js";import{I as Re}from"./DhHWCqKe.js";import{I as Ae}from"./C4k5GP2T.js";import"./CxitzGIA.js";import"./GpWyQnUG.js";import"./BqvFnVwP.js";import"./Ddk7nIRG.js";import"./C4mzUjn7.js";import"./yCBkYpVP.js";import"./CZqsQLeb.js";import"./Dutp_Zae.js";import"./CS8KaAEg.js";import"./CkkLquWy.js";import"./CpN5gsGc.js";import"./DhRQcIiP.js";import"./CgZ78Axl.js";import"./DPn2Tbyo.js";import"./Byad_B4_.js";import"./BB_Ol6Sd.js";import"./BbF_4Lbt.js";import"./DFoSjFSV.js";import"./DAk3Y7-M.js";import"./BdcYWlfi.js";import"./Bp3YSIOJ.js";import"./DQAi3S_9.js";import"./BAgvXDf8.js";import"./DCTLXrZ8.js";import"./BSQoR_WX.js";import"./DzlfWX_3.js";import"./Co7paVFe.js";/* empty css */import"./l0sNRNKZ.js";/* empty css *//* empty css */import"./Dzo4hvnr.js";import"./DyH7KP2e.js";import"./Be_EJ5_V.js";import"./B4BdFsrJ.js";import"./DteqOg7o.js";const zt={class:"document-notice design-v3"},jt=le({__name:"TheNotice",setup(Q){return(b,D)=>(t(),o("div",zt,[k(Mt,{type:"document"})]))}}),Ke=ae(jt,[["__scopeId","data-v-7dbe4884"]]),Ft=""+new URL("banner-pc.C9D3Hgcn.jpg",import.meta.url).href,Zt=""+new URL("banner-pad.33_Y3V4c.jpg",import.meta.url).href,qt={key:0,class:"search-wrapper"},Wt=le({__name:"banner",setup(Q){const b=T(""),D={pcImg:Ft,padImg:Zt},{isZh:B}=he(),f=()=>{Ve(b.value),_e(`/search/result?keyword=${encodeURIComponent(b.value)}&tab=${B.value?4:2}`,{open:!0})};return(I,O)=>{const M=Ht;return t(),y(M,{"img-list":D,size:"m","show-section":"",title:I.$t("document.home.bannerTitle"),class:"document-home-banner"},{bottom:h(()=>[e(B)?(t(),o("div",qt,[k(e(Ie),{modelValue:e(b),"onUpdate:modelValue":O[0]||(O[0]=C=>ke(b)?b.value=C:null),"max-length":100,"input-on-outlimit":!1,class:"search",placeholder:I.$t("common.search"),size:"large",clearable:"",onPressEnter:f},{prefix:h(()=>[k(e(Ee))]),_:1},8,["modelValue","placeholder"]),k(Ke)])):p("",!0)]),_:1},8,["title"])}}}),Jt=ae(Wt,[["__scopeId","data-v-26c13662"]]),Gt={class:"doc-directory design-v3"},Yt={class:"loading-wrapper"},Xt={key:1,class:"list-wrapper"},Kt={key:0,class:"product-pc"},Qt={key:0,class:"introduction-pc"},eo=["href"],to={key:1},oo={key:0,class:"link-item-no-category"},no={class:"second-title"},so={key:0},lo={class:"link-item-mb-text"},ao={class:"tip-desc"},co={class:"tip-box"},io={class:"link-list"},ro={key:1,class:"product-mb"},uo={key:0,class:"introduction-mb"},ho=["href"],mo={key:1},po={key:1,class:"second-item tab-section-mb section-item"},_o={class:"link-item-mb-text"},go={key:2,class:"section-item"},fo={class:"link-item-mb-text"},ko={key:0,class:"section-title-mb"},vo={key:1,class:"section-title-mb link"},bo={class:"link-item-mb-text","uga-click-ele":"","data-click-property-action-type":"button_click"},yo={class:"link-item-mb-text","uga-click-ele":"","data-click-property-action-type":"button_click"},$o=le({__name:"ProductSection",setup(Q){const{t:b}=ge(),{lePadV:D,isPhone:B,isPadV:f}=me(),{lang:I,isZh:O}=he(),M={software:b("document.home.softwareProducts"),hardware:b("document.home.hardwareProducts")},C=T(!0),x=T([]);`${I.value}`;const i=s=>s.map(n=>{var S;let l;const w=(S=n.subData)==null?void 0:S.findIndex(u=>{var j;return(j=u.labelName)==null?void 0:j.startsWith("ç®ä»ï¼")});if(w!==void 0&&w>-1){const u=n.subData[w];l={labelName:u.labelName,docLink:u.docLink},n.subData.splice(w,1)}return{...n,subData:n.subData||[],Introduction:l}}),E=(s,n)=>{let l=s;(l.startsWith("ç®ä»ï¼")||l.startsWith("ç®ä»:"))&&(l=l.slice(3));const w=[],S=/<a>(.*?)<\/a>/g;let u=0,j;for(;(j=S.exec(l))!==null;)j.index>u&&w.push({type:"text",content:l.slice(u,j.index)}),w.push({type:"link",content:j[1],href:n||"#"}),u=S.lastIndex;return u<l.length&&w.push({type:"text",content:l.slice(u)}),w};(()=>{ut(I.value).then(s=>{s!=null&&s.data&&s.data.length>0?x.value=i(s.data):x.value=[],x.value.forEach(n=>
1{n.labelName===M.software&&n.subData.forEach(l=>l.labelName.includes("CANN"))})}).finally(()=>{C.value=!1})})();const L=s=>s.filter(n=>n.labelName.includes("CANN")),r=s=>s.filter(n=>!n.labelName.includes("CANN")),$=s=>{const n=s[s.length-1],l=document.querySelector(`.collapse_id_${n}`);setTimeout(()=>{var w;if(l){const{y:S}=l.getBoundingClientRect(),u=((w=document.querySelector(".ly-dev-header"))==null?void 0:w.offsetHeight)||0;if(S<u+56){const X=((l==null?void 0:l.offsetTop)||0)-u-56;window.scrollTo({top:X,left:0,behavior:"smooth"})}}},300)},g=s=>{if(![b("document.home.CANNCommercial"),b("document.home.CANNCommunity")].includes(s))return s;let n=s;if(!O.value){const l=s.split(" ");l[l.length-1]=` 2${l[l.length-1]}`,n=l.join(" ")}return n},a=(s,n=0)=>B.value&&s<n-1?!0:f.value&&n>2?n%2==0?s<n-2:s<n-1:!1;return(s,n)=>{const l=Je,w=Ge,S=Ce("href");return t(),o("div",Gt,[e(C)?(t(),y(w,{key:0},{default:h(()=>[c("div",Yt,[k(l,{visible:e(C),mask:!1,wrapper:null},null,8,["visible"])])]),_:1})):(t(),o("div",Xt,[e(D)?(t(),o("div",ro,[k(e(rt),{"default-value":[0],accordion:"",onChange:$},{default:h(()=>[(t(!0),o(v,null,V(e(x),(u,j)=>(t(),y(e(dt),{key:j,title:u.labelName,value:j,class:F(["collapse-item",`collapse_id_${j}`])},{default:h(()=>{var X,ee,te;return[(X=u.Introduction)!=null&&X.labelName?(t(),o("div",uo,[(t(!0),o(v,null,V(E(u.Introduction.labelName,u.Introduction.docLink),(_,z)=>(t(),o(v,{key:z},[_.type==="link"&&u.Introduction.docLink?Y((t(),o("a",{key:0,href:_.href,target:"_blank",rel:"noopener noreferrer",class:"introduction-link"},[A(m(_.content),1)],8,ho)),[[S]]):(t(),o("span",mo,m(_.content),1))],64))),128))])):p("",!0),u.labelName===M.software&&L(u.subData).length?(t(),o("div",po,[k(e(ze),null,{default:h(()=>[(t(!0),o(v,null,V(L(u.subData),(_,z)=>(t(),y(e(je),{key:z,class:"pane-40",label:_.labelName},{default:h(()=>{var q;return[c("div",{class:F(["link-list-mb tab-content",{"only-one":((q=u.subData)==null?void 0:q.length)===1}])},[(t(!0),o(v,null,V(_.subData,(J,ie)=>(t(),o("div",{key:ie,class:"link-item-mb-wrapper"},[Y((t(),y(e(K),{href:J.docLink,target:"_blank",color:"primary",class:"link-item-mb doc-directory-link","uga-click-ele":"","data-click-property-action-type":"button_click","hover-underline":!1},{default:h(()=>[c("span",_o,m(J.labelName),1),J.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(J.tag),1)]),_:2},1024)):p("",!0),k(e(ue),{class:"link-item-mb-icon"})]),_:2},1032,["href"])),[[S]])]))),128))],2)]}),_:2},1032,["label"]))),128))]),_:2},1024)])):p("",!0),(ee=u.subData[0])!=null&&ee.subData?(t(!0),o(v,{key:3},V(r(u.subData),(_,z)=>{var q;return t(),o("div",{key:z,class:"section-item"},[_.labelName&&!_.docLink?(t(),o("div",ko,[A(m(_.labelName)+" ",1),_.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(_.tag),1)]),_:2},1024)):p("",!0)])):p("",!0),_.labelName&&_.docLink?(t(),o("div",vo,[Y((t(),y(e(K),{href:_.docLink,target:"_blank",color:"primary",class:"link-item-mb doc-directory-link","hover-underline":!1},{default:h(()=>[c("span",bo,m(_.labelName),1),_.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(_.tag),1)]),_:2},1024)):p("",!0),k(e(ue),{class:"link-item-mb-icon"})]),_:2},1032,["href"])),[[S]])])):p("",!0),c("div",{class:F(["link-list-mb",{"only-one":((q=_.subData)==null?void 0:q.length)===1}])},[(t(!0),o(v,null,V(_.subData,(J,ie)=>{var pe;return t(),o("div",{key:ie,class:"link-item-mb-wrapper"},[Y((t(),y(e(K),{href:J.docLink,target:"_blank",color:"primary",class:"link-item-mb doc-directory-link","hover-underline":!1},{default:h(()=>[c("span",yo,m(J.labelName),1),J.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(J.tag),1)]),_:2},1024)):p("",!0),k(e(ue),{class:"link-item-mb-icon"})]),_:2},1032,["href"])),[[S]]),a(ie,(pe=_.subData)==null?void 0:pe.length)?(t(),y(e(Se),{key:0,class:"div-line"})):p("",!0)])}),128))],2)])}),128)):(t(),o("div",go,[c("div",{class:F(["link-list-mb",{"only-one":((te=u.subData)==null?void 0:te.length)===1}])},[(t(!0),o(v,null,V(u.subData,(_,z)=>{var q;return t(),o("div",{key:z,class:"link-item-mb-wrapper"},[Y((t(),y(e(K),{href:_.docLink,target:"_blank",color:"primary",class:"link-item-mb","uga-click-ele":"","data-click-property-action-type":"button_click","hover-underline":!1},{default:h(()=>[c("span",fo,m(_.labelName),1),_.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(_.tag),1)]),_:2},1024)):p("",!0),k(e(ue),{class:"link-item-mb-icon"})]),_:2},1032,["href"])),[[S]]),a(z,(q=u.subData)==null?void 0:q.length)?(t(),y(e(Se),{key:0,class:"div-line"})):p("",!0)])}),128))],2)]))]}),_:2},1032,["title","value","class"]))),128))]),_:1})])):(t(),o("div",Kt,[(t(!0),o(v,null,V(e(x),(u,j)=>{var X,ee,te;return t(),o("div",{key:j,class:"first-item"},[c("div",{class:F(["first-title",{"has-introduction":(X=u.Introduction)==null?void 0:X.labelName}])},m(u.labelName),3),(ee=u.Introduction)!=null&&ee.labelName?(t(),o("div",Qt,[(t(!0),o(v,null,V(E(u.Introduction.labelName,u.Introduction.docLink),(_,z)=>(t(),o(v,{key:z},[_.type==="link"&&u.Introduction.docLink?Y((t(),o("a",{key:0,href:_.href,target:"_blank",rel:"noopener noreferrer",class:"introduction-link"},[A(m(_.content),1)],8,eo)),[[S]]):(t(),o("span",to,m(_.content),1))],64))),128))])):p("",!0),c("div",{class:F(["first-list",[{"no-category-list":!((te=u.subData[0])!=null&&te.subData)},{software:u.labelName===e(b)("document.home.softwareProducts")},{hardware:u.labelName===e(b)("document.home.hardwareProducts")},{development:u.labelName===e(b)("document.home.development")}]])},[(t(!0),o(v,null,V(u.subData,(_,z)=>(t(),o("div",{key:z,class:F(["second-item",{"no-category":!_.subData}])},[_.subData?(t(),o(v,{key:1},[c("div",no,[_.docLink?Y((t(),y(e(K),{key:1,href:_.docLink,class:"doc-directory-link",target:"_blank",rel:"noopener noreferrer",color:"primary","uga-click-ele":"","data-click-property-action-type":"button_click","hover-underline":!1},{suffix:h(()=>[k(e(ue),{class:"link-item-mb-icon second-icon"})]),default:h(()=>[c("span",lo,m(_.labelName),1)]),_:2},1032,["href"])),[[S]]):(t(),o("span",so,m(g(_.labelName)),1)),_.tag?(t(),y(e(ce),{key:2,class:"tag-item",round:"pill"},{default:h(()=>[A(m(_.tag),1)]),_:2},1024)):p("",!0),[e(b)("document.home.CANNCommercial"),e(b)("document.home.CANNCommunity")].includes(_.labelName)?(t(),y(e(it),{key:3,class:"tip-popover",position:"top",trigger:"hover","anchor-class":"tip-anchor",wrapper:".first-item"},{target:h(()=>[c("span",co,[k(e(Ut),{class:"tip-icon"})])]),default:h(()=>[c("div",ao,m(_.labelName===e(b)("document.home.CANNCommercial")?e(b)("document.home.tip1"):e(b)("document.home.tip2")),1)]),_:2},1024)):p("",!0)]),c("div",io,[(t(!0),o(v,null,V(_.subData,(q,J)=>(t(),o("div",{key:J,class:"link-item-pc"},[Y((t(),y(e(K),{href:q.docLink,class:"doc-directory-link",target:"_blank",rel:"noopener noreferrer",color:"primary","uga-click-ele":"","data-click-property-action-type":"button_click","hover-underline":!1},{default:h(()=>[A(m(q.labelName),1)]),_:2},1032,["href"])),[[S]]),q.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(q.tag),1)]),_:2},1024)):p("",!0)]))),128))])],64)):(t(),o("div",oo,[Y((t(),y(e(K),{href:_.docLink,target:"_blank",color:"primary","hover-underline":!1},{default:h(()=>[A(m(_.labelName),1)]),_:2},1032,["href"])),[[S]]),_.tag?(t(),y(e(ce),{key:0,class:"tag-item",round:"pill"},{default:h(()=>[A(m(_.tag),1)]),_:2},1024)):p("",!0)]))],2))),128))],2)])}),128))]))]))])}}}),wo=ae($o,[["__scopeId","data-v-f902233f"]]),Co=["src"],Lo=["onClick"],xo=["src"],No={class:"operation-title-text"},Do=le({__name:"TheOperation",setup(Q){const{lePadV:b,gtPadV:D}=me(),{lang:B}=he(),f=T(!0),I=T([]);ht(B.value).then(C=>{C!=null&&C.data&&(I.value=C.data)});const O=()=>{f.value=!1},M=C=>{C&&_e(C,{open:!0})};return(C,x)=>e(f)&&e(I).length?(t(),o("div",{key:0,class:F(["operation-wrapper",{showIndicator:e(I).length>1&&e(b)}])},[k(e(mt),{"active-index":0,effect:"toggle","hide-arrow":!0,"auto-play":!0,arrow:"never","hide-indicator":e(I).length<=1||e(D),interval:5e3,class:"operation-sli
2des",loop:"","indicator-click":"","click-to-switch":""},{default:h(()=>[(t(!0),o(v,null,V(e(I),(i,E)=>(t(),y(e(pt),{key:E,class:"operation-slide-item",style:ye({backgroundImage:e(D)?"none":`url(${i.mobileBackgroundImageUrl})`})},{default:h(()=>[!e(D)&&i.mobileMainImageUrl?(t(),o("img",{key:0,src:i.mobileMainImageUrl,class:"operation-img-mb"},null,8,Co)):p("",!0),c("div",{class:"operation-text","uga-click-ele":"","data-click-property-action-type":"button_click",onClick:Z=>M(i.link)},[e(D)&&i.pcImageUrl?(t(),o("img",{key:0,src:i.pcImageUrl,class:"operation-img"},null,8,xo)):p("",!0),k(e(K),{class:"c-link-ascend operation-title","hover-underline":!1},{default:h(()=>[c("span",No,m(i.title),1),k(e(ue),{class:"arrow-icon"})]),_:2},1024)],8,Lo)]),_:2},1032,["style"]))),128))]),_:1},8,["hide-indicator"]),e(b)?(t(),o("div",{key:0,class:"close-wrapper",onClick:O},[k(e(Ye),{class:"close-icon"})])):p("",!0)],2)):p("",!0)}}),Pe=ae(Do,[["__scopeId","data-v-e47ab1c5"]]),So=""+new URL("hot_doc_bg.BWJLc1Ii.png",import.meta.url).href,To=""+new URL("hot_resource_bg.CQiPMxF3.png",import.meta.url).href,Io={key:0,class:"mb-list"},Eo={class:"hot-doc-mb-wrapper"},Vo={class:"hot-doc-mb-title"},Po={class:"hot-doc-mb-text"},Oo={key:1,class:"mb-list"},Ho={class:"common-entrance-mb"},Mo={class:"list-wraper-mb hot-resource"},Uo={class:"header-title"},Bo=["onClick"],Ro=["src"],Ao={class:"card-title-mb"},zo={class:"card-title-text-mb"},jo={class:"header-title"},Fo={class:"content-block"},Zo=["href"],qo={class:"hot-doc-link-text"},Wo={class:"header-title"},Jo={class:"content-block"},Go={class:"hot-resource-grid"},Yo=["onClick"],Xo=["src"],Ko={class:"card-title-pc"},Qo=9,en=6,tn=le({__name:"CommonEntrance",setup(Q){const{t:b}=ge(),{isZh:D,lang:B}=he(),{lePadV:f,isPhone:I,isPadV:O}=me(),M=[{titleZh:"å
¥é¨è§é¢",titleEn:"Beginner Video"}],C=new Date("2026-09-30"),x=n=>new Date>=C?!1:M.some(l=>D.value?n.title===l.titleZh:n.title===l.titleEn),i=T([{key:"hot-document",label:b("document.home.hotDocument"),bgImg:So,expand:!1,list:[]},{key:"hot-resource",label:b("document.home.hotResource"),bgImg:To,expand:!1,list:[]}]),E=ve(()=>{var n,l;return(l=(n=i.value[1])==null?void 0:n.list.length)!=null?l:0}),Z=ve(()=>O.value?6:I.value?3:6),L=(n,l)=>{if(!f.value){n.forEach(S=>S.className="");return}const w=l?Z.value:n.length;n.forEach((S,u)=>{S.className=u>=w?"hidden":""})};(()=>{Ue("doc",B.value).then(n=>{i.value[0].list=(n==null?void 0:n.data.filter(l=>l&&l.link).slice(0,Qo))||[],L(i.value[0].list,!1)}),Ue("resource",B.value).then(n=>{i.value[1].list=(n==null?void 0:n.data.filter(l=>l&&l.link).slice(0,en))||[],L(i.value[1].list,!0)})})();const $=n=>{_e(n,{open:!0})},g=(n,l=!0)=>{if(l&&(i.value[n].expand=!i.value[n].expand),i.value[n].expand)i.value[n].list.forEach(w=>w.className="");else{const S=n===1?Z.value:i.value[n].list.length;i.value[n].list.forEach((u,j)=>{u.className=j<S?"":"hidden"})}},s=Fe(()=>{f.value&&i.value.forEach((n,l)=>{g(l,!1)})},50);return $e(()=>{window.addEventListener("resize",s,!1)}),_t(()=>{window.removeEventListener("resize",s,!1)}),(n,l)=>{var u,j,X,ee,te,_,z,q,J,ie,pe,we;const w=Ce("href"),S=Ce("tooltip");return t(),o("div",null,[(u=e(i)[0])!=null&&u.list.length||(j=e(i)[1])!=null&&j.list.length?(t(),o(v,{key:0},[e(f)?(t(),o(v,{key:0},[e(i)[0].list.length?(t(),o("div",Io,[c("div",Eo,[c("div",Vo,m(e(i)[0].label),1),c("div",{class:F(["hot-doc-mb-list",e(i)[0].list.length%2===1?"odd-count":"even-count"])},[(t(!0),o(v,null,V(e(i)[0].list,(R,re)=>(t(),o(v,{key:re},[R.link?Y((t(),y(e(K),{key:0,href:R.link,target:"_blank",color:"primary",class:"hot-doc-mb-link","uga-click-ele":"","data-click-property-action-type":"button_click","hover-underline":!1},{default:h(()=>[c("span",Po,m(R.title),1),k(e(ue),{class:"hot-doc-mb-arrow"})]),_:2},1032,["href"])),[[w]]):p("",!0)],64))),128))],2)])])):p("",!0),(X=e(i)[1])!=null&&X.list.length?(t(),o("div",Oo,[c("div",Ho,[c("div",Mo,[c("div",Uo,m((ee=e(i)[1])==null?void 0:ee.label),1),c("div",{class:F(["list-content-mb",e(O)&&((te=e(i)[1])!=null&&te.list.length)?`list-content-mb-cols-${e(i)[1].list.length}`:""])},[(t(!0),o(v,null,V(e(i)[1].list,(R,re)=>(t(),o(v,{key:re}
2,[R.link?(t(),o("div",{key:0,class:F(["card-item-mb",R.className]),"uga-click-ele":"","data-click-property-action-type":"button_click",onClick:fe=>$(R.link)},[c("img",{src:R.imageUrl,class:"card-icon-mb",alt:""},null,8,Ro),c("div",Ao,[c("span",zo,m(R.title),1),x(R)?(t(),y(e(ce),{key:0,color:"danger",size:"small",round:"pill",class:"new-tag"},{default:h(()=>l[1]||(l[1]=[A("NEW")])),_:1})):p("",!0)])],10,Bo)):p("",!0)],64))),128))],2),((z=(_=e(i)[1])==null?void 0:_.list.length)!=null?z:0)>e(Z)?(t(),o("div",{key:0,class:"toggle-btn","uga-click-ele":"","data-click-property-action-type":"button_click",onClick:l[0]||(l[0]=R=>g(1))},[A(m((q=e(i)[1])!=null&&q.expand?e(b)("common.retract"):e(b)("common.expand")),1),k(e(ue),{class:F(["toggle-btn-icon",{expand:(J=e(i)[1])==null?void 0:J.expand}])},null,8,["class"])])):p("",!0)])])])):p("",!0)],64)):(t(),o("div",{key:1,class:F(["common-entrance-pc",{"grid-ratio-13-6":e(E)>0&&e(E)<=4,"grid-ratio-12-10":e(E)>4,"grid-ratio-full":e(E)===0}])},[e(i)[0].list.length?(t(),o("div",{key:0,class:"list-wraper-pc hot-document",style:ye({backgroundImage:`url(${e(i)[0].bgImg})`})},[c("div",jo,m(e(i)[0].label),1),c("div",Fo,[c("div",{class:F(["hot-doc-grid",{"cols-4":e(E)<=4,"cols-3":e(E)>4}])},[(t(!0),o(v,null,V(e(i)[0].list,(R,re)=>(t(),o(v,{key:re},[R.link?Y((t(),o("a",{key:0,href:R.link,class:"hot-doc-link",target:"_blank","uga-click-ele":"","data-click-property-action-type":"button_click"},[Y((t(),o("span",qo,[A(m(R.title),1)])),[[S,R.title]])],8,Zo)),[[w]]):p("",!0)],64))),128))],2)])],4)):p("",!0),(ie=e(i)[1])!=null&&ie.list.length?(t(),o("div",{key:1,class:"list-wraper-pc hot-resource",style:ye({backgroundImage:`url(${(pe=e(i)[1])==null?void 0:pe.bgImg})`})},[c("div",Wo,m((we=e(i)[1])==null?void 0:we.label),1),c("div",Jo,[c("div",Go,[(t(!0),o(v,null,V(e(i)[1].list,(R,re)=>(t(),o(v,{key:re},[R.link?(t(),o("div",{key:0,class:"card-item-pc","uga-click-ele":"","data-click-property-action-type":"button_click",onClick:fe=>$(R.link)},[c("img",{src:R.imageUrl,class:"card-icon-pc",alt:""},null,8,Xo),Y((t(),o("span",Ko,[A(m(R.title),1)])),[[S,R.title]]),x(R)?(t(),y(e(ce),{key:0,color:"danger",size:"small",round:"pill",class:"new-tag"},{default:h(()=>l[2]||(l[2]=[A("NEW")])),_:1})):p("",!0)],8,Yo)):p("",!0)],64))),128))])])],4)):p("",!0)],2))],64)):p("",!0),e(f)?(t(),y(Pe,{key:1})):p("",!0)])}}}),on=ae(tn,[["__scopeId","data-v-26c08c29"]]),nn={class:"mb-filter"},sn={class:"dlg-header"},ln={class:"dlg-body"},an={class:"child-item-title"},cn={class:"child-item-filters"},rn=["onClick"],dn={class:"child-item-title level2"},un={class:"child-item-filters"},hn=["onClick"],mn=["onClick"],pn={class:"dlg-action"},_n=le({__name:"FilterMb",props:{filterList:{},selectedList:{}},emits:["confirm","sort-change"],setup(Q,{emit:b}){const D=Q,B=b,{t:f}=ge(),I=T(""),O=[{label:f("common.sort"),value:""},{label:f("common.sortNewMb"),value:"publishTime"},{label:f("common.sortHotMb"),value:"views"}],M=a=>{B("sort-change",a)},C=T([]),x=T(!1),i=T([]);be(()=>D.selectedList,a=>{i.value=a},{immediate:!0}),be(()=>D.filterList,a=>{C.value=JSON.parse(JSON.stringify(a))},{immediate:!0,deep:!0});const E=(a,s)=>{if(a.checked.length){a.checked=[];return}s.checked.includes(a.id)?s.checked=s.checked.filter(n=>n!==a.id):s.checked.push(a.id)},Z=(a,s)=>{s.checked.includes(a.id)||(s.checked.push(a.id),a.checked=[])},L=(a,s,n)=>{s.checked.includes(a.id)?(s.checked=s.checked.filter(l=>l!==a.id),s.checked.length===0&&n.checked.push(s.id)):(s.checked.push(a.id),n.checked=n.checked.filter(l=>l!==s.id))},r=()=>{C.value.forEach(a=>{a.checked=[],a.children.length&&a.children.forEach(s=>{s.checked=[]})})},$=a=>{a&&(C.value=JSON.parse(JSON.stringify(D.filterList)))},g=()=>{x.value=!1,B("confirm",C.value)};return(a,s)=>(t(),o("div",nn,[k(e(gt),{modelValue:e(I),"onUpdate:modelValue":s[0]||(s[0]=n=>ke(I)?I.value=n:null),variant:"text","no-responsive":"",style:{width:"82px"},onChange:M},{default:h(()=>[(t(),o(v,null,V(O,n=>k(e(ft),{key:n.value,label:n.label,value:String(n.value),"uga-click-ele":"","data-click-property-action-type":"filter_click"},null,8,["label","value"])),64))]),_:1},8,["modelValue"]),k(e(K),{class:"filter-btn","hover-underline":!1,onClick:s[1]||(s[1]=n=>x.value=!0)},{suffix:h(()=>[k(e(At))]),default:h(()=>[c("span",null,m(a.$t("common.screenText")),1)]),_:1}),k(e(kt),{visible:e(x),"onUpdate:visible":s[2]||(s[2]=n=>ke(x)?x.value=n:null),"main-class":"document-filter-dlg","unmount-on-hide":!0,"to-body":!0,"hide-close":"",size:"medium",onChange:$},{header:h(()=>[c("div",sn,m(a.$t("common.screenText")),1)]),footer:h(()=>[c("div",pn,[k(e(K),{class:"action-btn",size:"large","hover-underline":!1,onClick:r},{default:h(()=>[A(m(a.$t("common.reset")),1)]),_:1}),k(e(Se),{direction:"v",class:"bootom-middle"}),k(e(K),{class:"action-btn",size:"large","hover-underline":!1,onClick:g},{default:h(()=>[A(m(a.$t("common.confirm")),1)]),_:1})])]),default:h(()=>[c("div",ln,[(t(!0),o(v,null,V(e(C),n=>(t(),o("div",{key:n.code,class:"filter-item"},[c("div",an,m(n.name),1),c("div",cn,[(t(!0),o(v,null,V(n.children,l=>(t(),o("span",{key:l.id,class:F(["option-item",{selected:n.checked.includes(l.id)||l.checked.length>0}]),"uga-click-ele":"","data-click-property-action-type":"filter_click",onClick:w=>E(l,n)},m(l.name),11,rn))),128))]),(t(!0),o(v,null,V(n.children,l=>(t(),o(v,{key:l.id},[(n.checked.includes(l.id)||l.checked.length>0)&&l.children.length>0?(t(),o(v,{key:0},[c("div",dn,m(l.name),1),c("div",un,[c("span",{class:F(["option-item",{selected:n.checked.includes(l.id)}]),onClick:w=>
2Z(l,n)},m(a.$t("common.all")),11,hn),(t(!0),o(v,null,V(l.children,w=>(t(),o("span",{key:w.id,class:F(["option-item",{selected:l.checked.includes(w.id)}]),"uga-click-ele":"","data-click-property-action-type":"filter_click",onClick:S=>L(w,l,n)},m(w.name),11,mn))),128))])],64)):p("",!0)],64))),128))]))),128))])]),_:1},8,["visible"])]))}}),gn=ae(_n,[["__scopeId","data-v-c8b432bc"]]),fn={class:"filter-wrap design-v3"},kn={class:"filter-header"},vn={class:"filter-header_text"},bn={class:"text2"},yn={class:"multi-filter"},$n=["onClick"],wn={class:"label-text"},Cn={class:"option-item-label level-1"},Ln={class:"label-text"},xn={class:"check-text"},Nn={class:"check-num"},Dn=["value"],Sn={class:"check-text"},Tn={class:"check-num"},In=["onClick"],En=le({__name:"FilterPc",props:{filterList:{},idsMap:{},selectedList:{}},emits:["change"],setup(Q,{emit:b}){const D=Q,B=b,f=T([]),{lePcS:I}=me();be(()=>D.selectedList,r=>{f.value=r},{immediate:!0});const O=r=>{r.children.length&&(r.expand=!r.expand)},M=(r,$)=>{var a;let g=[];if((a=r.children)==null||a.forEach(s=>{g.push(s.id)}),$.checked.includes(r.id))r.checked=g,f.value=[...new Set([...f.value,r.id,...g])];else{r.checked=[];const s=f.value.findIndex(n=>n===r.id);f.value.splice(s,1),f.value=f.value.filter(n=>!g.includes(n))}B("change",f.value)},C=(r,$)=>{if(r.checked.length===r.children.length)$.checked=[...$.checked,r.id];else{let g=$.checked.findIndex(a=>a===r.id);g!==-1&&$.checked.splice(g,1)}f.value=[...new Set(f.value)],B("change",f.value)},x=(r,$)=>{if(r.checked.includes($))f.value.push($);else{const g=f.value.findIndex(a=>a===$);g!==-1&&f.value.splice(g,1)}if(r.checked.length===r.children.length)f.value.push(r.id);else{const g=f.value.findIndex(a=>a===r.id);g!==-1&&f.value.splice(g,1)}},i=ve(()=>I.value?32:40),E=r=>{let $=0,g=0;const a=3;r.children.length&&r.children.forEach((l,w)=>{l.expand&&($+=l.children.length||0,w<=2&&(g+=l.children.length||0))});const s=`${(r.children.length+$)*i.value}px`,n=`${(a+g)*i.value}px`;return r.expand?r.toggle?s:r.children.length>a?n:s:"0px"},Z=r=>r.expand?`${r.children.length*i.value}px`:"0px",L=r=>r.expand?r.children.length>3:!1;return(r,$)=>(t(),o("div",fn,[c("div",kn,[c("div",vn,[c("span",bn,m(r.$t("common.screenText")),1)])]),k(e(Ze),{class:"oscroller-container","show-type":"hover",size:"small"},{default:h(()=>[c("div",yn,[(t(!0),o(v,null,V(D.filterList,g=>(t(),o("div",{key:g.code,class:"option-item level0"},[c("div",{class:"option-item-label level-0",onClick:a=>O(g)},[c("p",wn,m(g.name),1),g.children.length?(t(),y(Le(g.expand?e(Re):e(Ae)),{key:0,class:"expand-icon"})):p("",!0)],8,$n),c("div",{class:"option-item-child expand-wrapper",style:ye({height:E(g)})},[(t(!0),o(v,null,V(g.children,a=>(t(),o("div",{key:a.id,class:"option-item"},[c("div",Cn,[c("p",Ln,[k(e(Be),{modelValue:g.checked,"onUpdate:modelValue":s=>g.checked=s,value:a.id,indeterminate:a.checked.length>0&&a.checked.length<a.children.length,"uga-click-ele":"","data-click-property-action-type":"filter_click",class:"document-filter-item",onClick:$[0]||($[0]=Te(()=>{},["stop"])),onChange:s=>M(a,g)},{default:h(()=>[c("span",xn,m(a.name),1),c("span",Nn,m(`(${r.idsMap[a.id].total})`),1)]),_:2},1032,["modelValue","onUpdate:modelValue","value","indeterminate","onChange"])]),a.children.length?(t(),y(Le(a.expand?e(Re):e(Ae)),{key:0,class:"expand-icon",onClick:s=>O(a)},null,8,["onClick"])):p("",!0)]),a.children.length>0?(t(),o("div",{key:0,class:"option-item-child",style:ye({height:Z(a)})},[k(e(vt),{modelValue:a.checked,"onUpdate:modelValue":s=>a.checked=s,direction:"v",onChange:s=>C(a,g)},{default:h(()=>[(t(!0),o(v,null,V(a.children,(s,n)=>(t(),o("div",{key:n,class:"option-item-label level2",value:s.id},[k(e(Be),{value:s.id,"uga-click-ele":"","data-click-property-action-type":"filter_click",class:"document-filter-item",onChange:l=>x(a,s.id)},{default:h(()=>[c("span",Sn,m(s.name),1),c("span",Tn,m(`(${r.idsMap[s.id].total})`),1)]),_:2},1032,["value","onChange"])],8,Dn))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"])],4)):p("",!0)]))),128))],4),L(g)?(t(),o("div",{key:0,class:"toggle-btn is-clickable",onClick:Te(a=>g.toggle=!g.toggle,["stop"])},[A(m(g.toggle?r.$t("document.home.retract"):r.$t("document.home.expand"))+" ",1),k(e(ue),{class:F(["toggle-icon",{expand:g.toggle}])},null,8,["class"])],8,In)):p("",!0)]))),128))])]),_:1})]))}}),Vn=ae(En,[["__scopeId","data-v-c29ae1ae"]]),Pn={class:"document-section-pc"},On={class:"card-list"}
2,Hn={key:0,class:"sort-search-box"},Mn={key:1,class:"selected-filter-list"},Un=["innerHTML"],Bn={key:1,class:"list"},Rn=["onClick"],An=["onClick"],zn=["innerHTML"],jn=["innerHTML"],Fn={class:"list-item-info"},Zn={key:0,class:"origin"},qn={class:"origin-label"},Wn={class:"time"},Jn={key:0,class:"load-more"},Gn=le({__name:"DocumentSection",setup(Q){const{isPhone:b,isPadV:D,lePad:B,gtPadV:f,lePadV:I}=me(),{lang:O,isZh:M}=he(),{t:C}=ge(),x=T(""),i=T([]),E=T([]),Z=T([]),L=T([]),r=T([]),$=T({}),g=T("desc"),a=T(""),s=T(1),n=[10,20,50],l=T(n[0]),w=T(0),S=T(!0),u=bt({list:[]});function j(d){const N={lang:O.value,productId:i.value.join(","),serviceIds:E.value.join(","),contentTypes:Z.value.join(",")};Lt(N).then(H=>{var ne;let U=[];(ne=H==null?void 0:H.data)!=null&&ne.length&&(d||(H.data.forEach((G,oe)=>{let W=[];G.list&&G.list.forEach(P=>{let de=[];P.subData&&P.subData.forEach(se=>{se.enName!=="Others"&&de.push({id:se.id,pid:P.pid,name:M.value?se.name:se.enName,num:se.total})}),W.push({expand:!1,id:P.id,pid:P.pid,name:M.value?P.name:P.enName,num:P.total,checked:[],children:de})}),U.push({expand:oe<2,toggle:!1,name:M.value?G.name:G.enName,code:G.code,checked:[],children:W})}),r.value=U),H.data.forEach(G=>{G.list&&G.list.forEach(oe=>{oe.subData&&oe.subData.forEach(W=>{$.value[W.id]=W}),$.value[oe.id]=oe})}))})}function X(d){return d?d.startsWith("/")?`${window.location.origin}${Dt()}${d}`:d:""}const ee=T(!1),te=T(!0),_=T(0),z=(d=!0)=>{const N={pageNo:s.value,pageSize:l.value,productId:i.value.join(","),serviceIds:E.value.join(","),contentTypes:Z.value.join(","),searchContent:x.value,sort:g.value,sortBy:a.value,lang:O.value};te.value=!1,xt(N).then(H=>{if(!(H!=null&&H.data))return;const{list:U,totalCount:ne,pages:G}=H.data;w.value=ne,_.value=G;const oe=[];U.map(W=>{W.resourceBreadcrumbs=W.resourceBreadcrumbs.map(de=>({name:de.name,route:X(de.route)}));const P=W.resourceBreadcrumbs.length>4?W.resourceBreadcrumbs.splice(0,4):W.resourceBreadcrumbs;oe.push({id:W.id,title:W.title,des:W.generalOverview,link:X(W.firstDetailLink),updateTime:Nt("YYYY/MM/DD",new Date(W.publishTime)),origin:P})}),d?u.list=oe:u.list=u.list.concat(oe),ee.value=I.value&&s.value===_.value,te.value=!0}).finally(()=>{S.value=!1})};$e(()=>{j(),f.value||(l.value=20),z()});const q=[{label:C("common.sort"),value:0},{label:C("common.sortNew"),value:1},{label:C("common.sortHot"),value:2}],J=(d,N)=>{g.value=N,d===1?a.value="publishTime":d===2?a.value="views":(a.value="",g.value="desc"),s.value=1,z()},ie=d=>{g.value="desc",a.value=d,s.value=1,z()};function pe(){s.value=1,x.value&&Ve(x.value),z()}const we=Fe(pe,300);be(()=>x.value,()=>{we()});const R=ve(()=>C("document.home.totalNum",[`<span class="num-text">${w.value}</span>`]));function re(){let d=[];r.value.forEach(N=>{["software","hardware","otherProducts"].includes(N.code)?(d=[...d,...N.checked],N.children&&N.children.forEach(H=>{d=[...d,...H.checked]})):(N.code==="serviceScenarios"&&(E.value=N.checked),N.code==="contentType"&&(Z.value=N.checked))}),i.value=d}const fe=()=>{re(),s.value=1,j(!0),z()},Qe=d=>{L.value=d,fe()},Oe=T(!0),et=d=>{Oe.value=!1,r.value=JSON.parse(JSON.stringify(d)),fe()},tt=d=>{r.value.forEach(N=>{if(N.checked.includes(d.id)){const H=N.checked.findIndex(U=>U===d.id);H!==-1&&(N.checked.splice(H,1),L.value=L.value.filter(U=>U!==d.id),N.children.length&&N.children.forEach(U=>{U.id===d.id&&(L.value=L.value.filter(ne=>!U.checked.includes(ne)),U.checked=[])}))}else N.children.length&&N.children.forEach(H=>{H.checked=H.checked.filter(U=>U!==d.id),L.value=L.value.filter(U=>U!==d.id),H.checked.length<H.children.length&&(N.checked=N.checked.filter(U=>U!==H.id),L.value=L.value.filter(U=>U!==H.id))})}),fe()},He=()=>{L.value=[],r.value.forEach(d=>{d.checked=[],d.children.length&&d.children.forEach(N=>{N.checked=[]})}),fe()};let xe=null;const ot=d=>{s.value=d.page,l.value=d.pageSize,xe&&clearTimeout(xe),xe=setTimeout(async()=>{var ne,G;const N=((ne=document.querySelector(".card-list"))==null?void 0:ne.offsetTop)||0,H=((G=document.querySelector(".ly-dev-header"))==null?void 0:G.offsetHeight)||0,U=N-H-12;await z(),window.scrollTo({top:U,left:0,behavior:"smooth"})},300)},nt=ve(()=>w.value>n[0]&&f.value),Ne=async()=>
2{if(!I.value)return;let d=document.documentElement.scrollTop||document.body.scrollTop,N=document.documentElement.scrollHeight||document.body.scrollHeight,H=document.documentElement.clientHeight||document.body.clientHeight,U=D.value?232:218;I.value&&d>0&&N-d<=H+U&&u.list.length<w.value&&te.value&&(s.value+=1,await z(!1))};$e(()=>{window.addEventListener("scroll",Ne),yt(()=>{Ne()})}),qe(()=>{window.removeEventListener("scroll",Ne)}),be(()=>f.value,d=>{d?l.value=n[0]:l.value=20,He()});const st=d=>{f.value&&d&&_e(d,{open:!0})},lt=d=>{f.value||_e(d,{open:!0})};return(d,N)=>{const H=Bt,U=Je,ne=Ge,G=Rt,oe=Xe,W=Ce("href");return t(),o("div",Pn,[e(f)?(t(),y(Vn,{key:0,"filter-list":e(r),"ids-map":e($),"selected-list":e(L),onChange:Qe},null,8,["filter-list","ids-map","selected-list"])):p("",!0),c("div",On,[e(f)?(t(),o("div",Hn,[k(e(Ie),{modelValue:e(x),"onUpdate:modelValue":N[0]||(N[0]=P=>ke(x)?x.value=P:null),placeholder:d.$t("document.home.searchPlaceholder"),class:"search-input",size:"large",clearable:""},{prefix:h(()=>[k(e(Ee),{class:"icon-search"})]),_:1},8,["modelValue","placeholder"]),k(H,{"has-search":!1,"sort-category":q,class:"sort-box",onChangeSort:J})])):p("",!0),e(L).length&&e(f)?(t(),o("div",Mn,[c("span",{class:"top-total-num",innerHTML:("useSafeHtml"in d?d.useSafeHtml:e(De))(e(R))},null,8,Un),(t(!0),o(v,null,V(e(L),P=>(t(),o("div",{key:e($)[P].id,class:"selected-item g-gradient-border"},[A(m(e(M)?e($)[P].name:e($)[P].enName)+" ",1),(t(),y(Le(e(Ye)),{class:"icon-x",onClick:Te(de=>tt(e($)[P]),["stop"])},null,8,["onClick"]))]))),128)),k(e(K),{color:"primary",class:"reset-btn","hover-underline":"",onClick:He},{default:h(()=>[A(m(d.$t("common.reset")),1)]),_:1})])):p("",!0),e(f)?p("",!0):(t(),y(gn,{key:2,"filter-list":e(r),"selected-list":e(L),onConfirm:et,onSortChange:ie},null,8,["filter-list","selected-list"])),c("div",{class:F(["list-wrapper",{"empty-list":e(S)||!e(u).list.length}])},[e(S)?(t(),y(ne,{key:0},{default:h(()=>[k(U,{visible:e(S),mask:!1,wrapper:null},null,8,["visible"])]),_:1})):(t(),o("div",Bn,[e(u).list.length>0?(t(),o(v,{key:0},[(t(!0),o(v,null,V(e(u).list,(P,de)=>(t(),o(v,{key:P.id},[c("div",{class:"list-item",onClick:se=>lt(P.link)},[c("div",{class:"hover-action-wrapper",onClick:se=>st(P.link)},[c("div",{class:"list-item-title",innerHTML:("useSafeHtml"in d?d.useSafeHtml:e(De))(P.title)},null,8,zn),P.des?(t(),o("div",{key:0,class:"list-item-des",innerHTML:("useSafeHtml"in d?d.useSafeHtml:e(De))(P.des)},null,8,jn)):p("",!0)],8,An),c("div",Fn,[e(f)?(t(),o("div",Zn,[P.origin.length?(t(),o(v,{key:0},[c("span",qn,m(d.$t("document.home.origin")),1),k(e($t),null,{default:h(()=>[(t(!0),o(v,null,V(P.origin,(se,Me)=>Y((t(),y(e(wt),{key:Me,href:Me+1===P.origin.length?"":se.route,target:"_blank",class:F({"no-link":!se.route})},{default:h(()=>[A(m(se.name||""),1)]),_:2},1032,["href","class"])),[[W]])),128))]),_:2},1024)],64)):p("",!0)])):p("",!0),c("div",Wn,m(e(f)?`${d.$t("common.updateTime")}ï¼${P.updateTime}`:P.updateTime),1)])],8,Rn),(e(b)&&de===2||e(D)&&de===5)&&e(Oe)?(t(),y(Pe,{key:0,class:"list-operation"})):p("",!0)],64))),128)),!e(M)&&e(ee)?p("",!0):(t(),o(v,{key:0},[e(I)&&e(u).list.length>0&&e(u).list.length<=e(w)&&e(_)>1?(t(),o("p",Jn,m(e(ee)?d.$t("common.loaded"):d.$t("document.home.loading")),1)):p("",!0)],64))],64)):(t(),y(G,{key:1,class:"empty-doc"}))]))],2),e(nt)?(t(),y(e(Ct),{key:3,class:"page-box",total:e(w),page:e(s),"page-size":e(l),"page-sizes":n,simple:e(B),"show-total":!e(L).length,"show-jumper":"",onChange:ot},null,8,["total","page","page-size","simple","show-total"])):p("",!0)]),e(f)?p("",!0):(t(),y(oe,{key:1}))])}}}),Yn=ae(Gn,[["__scopeId","data-v-f9100d5f"]]),Xn=""+new URL("school.C8ta9EYK.svg",import.meta.url).href,Kn=""+new URL("download.C06Z4wmJ.svg",import.meta.url).href,Qn=""+new URL("firmware.CISNQbU2.svg",import.meta.url).href,es=""+new URL("modelzoo.pHpJ8-O8.svg",import.meta.url).href,ts={class:"other-resources"},os={class:"card-list"},ns=["onClick"],ss=["src"],ls={class:"card-title"},as=le({__name:"OtherResources",setup(Q){const{t:b}=ge(),{isZh:D}=he(),{isPhone:B}=me(),f=[{icon:Xn,title:b("document.home.ascendSchool"),link:"/developer/Ascend-School"},{icon:Kn,title:b("document.home.downloadCenter"),link:"/developer/download"},{icon:Qn,title:b("document.home.firmwareAndDriver"),link:"/hardware/firmware-drivers"},{icon:es,title:"ModelZoo",link:"/software/modelzoo"}],I=ve(()=>D.value?f:f.slice(0,3)),O=M=>{_e(M,{open:!0})};return(M,C)=>{const x=We,i=Xe;return t(),o("div",ts,[k(x,{title:e(b)("document.home.otherResource"),class:"other-resources-content",full:e(B)},{default:h(()=>[k(e(Ze),{"show-type":"never"},{default:h(()=>[c("div",os,[(t(!0),o(v,null,V(e(I),(E,Z)=>(t(),o("div",{key:Z,"uga-click-ele":"","data-click-property-action-type":"button_click",class:"card-item",onClick:L=>O(E.link)},[c("img",{src:E.icon,class:"card-icon"}
2,null,8,ss),c("div",ls,m(E.title),1)],8,ns))),128))])]),_:1})]),_:1},8,["title","full"]),k(i)])}}}),cs=ae(as,[["__scopeId","data-v-4b152bf1"]]),is="data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3crect%20id='ç©å½¢'%20width='24.000000'%20height='24.000000'%20fill='%23D8D8D8'%20fill-opacity='0'/%3e%3crect%20id='ç©å½¢'%20x='0.500000'%20y='0.500000'%20width='23.000000'%20height='23.000000'%20stroke='%23979797'%20stroke-opacity='0'%20stroke-width='1.000000'/%3e%3cpath%20id='å½¢ç¶ç»å'%20d='M12.833%202.21136C12.2561%201.91827%2011.5691%201.92999%2011.001%202.24652L3.75098%206.28583L3.68994%206.32129C3.10791%206.67358%202.75%207.30554%202.75%207.98926L2.75%2015.9765L2.75122%2016.0471C2.77588%2016.727%203.15356%2017.3472%203.75098%2017.68L11.001%2021.7192L11.0669%2021.7545C11.644%2022.0475%2012.3308%2022.0358%2012.8992%2021.7192L16.8601%2019.5123L16.8933%2019.492C17.085%2019.3627%2017.1489%2019.1059%2017.0344%2018.9002C16.9133%2018.6831%2016.6394%2018.6052%2016.4221%2018.7261L12.4609%2020.933L12.4075%2020.9609C12.385%2020.9718%2012.3623%2020.9818%2012.3394%2020.991L12.3394%2012.795L20.25%208.02734L20.25%2015.9765L20.2485%2016.0334C20.229%2016.3921%2020.0271%2016.7177%2019.7109%2016.8938L19.3225%2017.1103L19.2893%2017.1306C19.0977%2017.2599%2019.0337%2017.5167%2019.1484%2017.7224C19.2693%2017.9395%2019.5435%2018.0175%2019.7605%2017.8965L20.1492%2017.68L20.21%2017.6445C20.792%2017.2922%2021.1499%2016.6603%2021.1499%2015.9765L21.1499%207.98926L21.1487%207.91876C21.1243%207.23883%2020.7463%206.61859%2020.1492%206.28583L12.8992%202.24652L12.833%202.21136ZM19.8865%207.1947C19.8469%207.16064%2019.8047%207.12927%2019.76%207.10107L19.7109%207.07202L12.4609%203.03278C12.1609%202.8656%2011.7993%202.85632%2011.4924%203.00488L11.439%203.03278L4.18896%207.07202C4.10181%207.12061%204.02344%207.18048%203.95508%207.24933L11.8677%2012.0045C11.875%2012.0042%2011.8821%2012.004%2011.8894%2012.004C11.8948%2012.004%2011.9004%2012.0041%2011.9058%2012.0043L19.8865%207.1947ZM3.6499%208.11707L3.6499%2015.9765C3.6499%2016.3384%203.83618%2016.6732%204.13989%2016.8647L4.18896%2016.8938L11.439%2020.933L11.4395%2020.9333L11.4395%2012.7983L3.6499%208.11707Z'%20clip-rule='evenodd'%20fill='%23373B42'%20fill-opacity='0.800000'%20fill-rule='evenodd'/%3e%3c/svg%3e",rs=""+new URL("document.D9AkaoCj.svg",import.meta.url).href,ds="data:image/svg+xml,%3csvg%20width='24.000000'%20height='24.000000'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cdesc%3e%20Created%20with%20Pixso.%20%3c/desc%3e%3cdefs/%3e%3crect%20id='ç©å½¢'%20width='24.000000'%20height='24.000000'%20fill='%23D8D8D8'%20fill-opacity='0'/%3e%3crect%20id='ç©å½¢'%20x='0.500000'%20y='0.500000'%20width='23.000000'%20height='23.000000'%20stroke='%23979797'%20stroke-opacity='0'%20stroke-width='1.000000'/%3e%3cpath%20id='å½¢ç¶ç»å'%20d='M12.833%202.21136C12.2561%201.91827%2011.5691%201.92999%2011.001%202.24652L3.75098%206.28583L3.68994%206.32129C3.10791%206.67358%202.75%207.30554%202.75%207.98926L2.75%2015.9765L2.75122%2016.0471C2.77588%2016.727%203.15356%2017.3472%203.75098%2017.68L11.001%2021.7192L11.0669%2021.7545C11.644%2022.0475%2012.3308%2022.0358%2012.8992%2021.7192L16.8601%2019.5123L16.8933%2019.492C17.085%2019.3627%2017.1489%2019.1059%2017.0344%2018.9002C16.9133%2018.6831%2016.6394%2018.6052%2016.4221%2018.7261L12.4609%2020.933L12.4075%2020.9609C12.385%2020.9718%2012.3623%2020.9818%2012.3394%2020.991L12.3394%2012.795L20.25%208.02734L20.25%2015.9765L20.2485%2016.0334C20.229%2016.3921%2020.0271%2016.7177%2019.7109%2016.8938L19.3225%2017.1103L19.2893%2017.1306C19.0977%2017.2599%2019.0337%2017.5167%2019.1484%2017.7224C19.2693%2017.9395%2019.5435%2018.0175%2019.7605%2017.8965L20.1492%2017.68L20.21%2017.6445C20.792%2017.2922%2021.1499%2016.6603%2021.1499%2015.9765L21.1499%207.98926L21.1487%207.91876C21.1243%207.23883%2020.7463%206.61859%2020.1492%206.28583L12.8992%202.24652L12.833%202.21136ZM19.8865%207.1947C19.8469%207.16064%2019.8047%207.12927%2019.76%207.10107L19.7109%207.07202L12.4609%203.03278C12.1609%202.8656%2011.7993%202.85632%2011.4924%203.00488L11.439%203.03278L4.18896%207.07202C4.10181%207.12061%204.02344%207.18048%203.95508%207.24933L11.8677%2012.0045C11.875%2012.0042%2011.8821%2012.004%2011.8894%2012.004C11.8948%2012.004%2011.9004%2012.0041%2011.9058%2012.0043L19.8865%207.1947ZM3.6499%208.11707L3.6499%2015.9765C3.6499%2016.3384%203.83618%2016.6732%204.13989%2016.8647L4.18896%2016.8938L11.439%2020.933L11.4395%2020.9333L11.4395%2012.7983L3.6499%208.11707Z'%20clip-rule='evenodd'%20fill='%23373B42'%20fill-opacity='1.000000'%2
20fill-rule='evenodd'/%3e%3c/svg%3e",us=""+new URL("document-active.B6UU0DgN.svg",import.meta.url).href,hs=["src"],ms={key:0,class:"mb-search"},ps=le({__name:"ContentFloor",setup(Q){const{t:b}=ge(),{gtPadV:D,lePadV:B}=me(),f=St(),I=Tt(),O=T(f.query.tab||"product"),M=[{icon:is,activeIcon:ds,value:"product",label:b("document.home.product"),components:[on,wo]},{icon:rs,activeIcon:us,value:"document",label:b("document.home.document"),components:[Yn]}],C=T(),x=$=>{const g=I.currentRoute.value.path;It({path:g,query:{tab:$}})},i=T(""),{isZh:E}=he(),Z=()=>{Ve(i.value),_e(`/search/result?keyword=${encodeURIComponent(i.value)}&tab=${E.value?4:2}`,{open:!0})},L=T(!1),r=()=>{var a;if(B.value)return;const{top:$}=C.value.getBoundingClientRect(),g=((a=document.querySelector(".ly-dev-header"))==null?void 0:a.clientHeight)||80;$<=g?L.value=!0:L.value=!1};return be(()=>B.value,$=>{$?L.value=!1:r()}),$e(()=>{window.addEventListener("scroll",r)}),qe(()=>{window.removeEventListener("scroll",r)}),($,g)=>{const a=We;return t(),o(v,null,[c("div",{ref_key:"tabRef",ref:C,class:"home-document-content"},[k(a,{class:"pc-box"},{default:h(()=>[e(D)&&!e(L)?(t(),y(Pe,{key:0})):p("",!0)]),_:1}),k(e(ze),{modelValue:e(O),"onUpdate:modelValue":g[1]||(g[1]=s=>ke(O)?O.value=s:null),line:!1,size:"large",class:F(["document-page-tab design-v3",{top:e(L)}]),onChange:x},{default:h(()=>[(t(),o(v,null,V(M,s=>k(e(je),{key:s.value,value:s.value,class:"pane"},{nav:h(()=>[e(D)?(t(),o("img",{key:0,src:e(O)===s.value?s.activeIcon:s.icon,class:"tab-icon"},null,8,hs)):p("",!0),A(m(s.label),1)]),default:h(()=>[k(a,{class:"home-document-main"},{default:h(()=>[e(B)&&e(E)?(t(),o("div",ms,[k(e(Ie),{modelValue:e(i),"onUpdate:modelValue":g[0]||(g[0]=n=>ke(i)?i.value=n:null),"max-length":100,"input-on-outlimit":!1,class:"search",placeholder:$.$t("common.search"),size:"large",clearable:"",onPressEnter:Z},{prefix:h(()=>[k(e(Ee))]),_:1},8,["modelValue","placeholder"]),k(Ke)])):p("",!0),(t(!0),o(v,null,V(s.components,(n,l)=>(t(),y(Le(n),{key:l}))),128))]),_:2},1024)]),_:2},1032,["value"])),64))]),_:1},8,["modelValue","class"])],512),e(E)&&(e(O)==="product"||e(O)==="document"&&e(D))?(t(),y(cs,{key:0})):p("",!0)],64)}}}),_s=ae(ps,[["__scopeId","data-v-f6786530"]]),gs={class:"document-home"},fs=le({__name:"index",setup(Q){const b=ct(),{t:D}=ge(),{gtPadV:B,lePadV:f}=me(),{isZh:I}=he(),O=()=>{const M="global_doc_pv_count",C="global_doc_pv_last_date",x=new Date().toISOString().split("T")[0],i=localStorage.getItem(M),E=localStorage.getItem(C),Z=!E||E!==x;let L=0;if(Z?L=1:L=parseInt(i||"0",10)+1,localStorage.setItem(M,L.toString()),localStorage.setItem(C,x),L>=20){const r=new Date().toISOString();b.setTouchPoint("TP_Document",r)}};return $e(()=>{O()}),Et({title:D("document.home.pageTitle"),description:D("document.home.bannerDescription"),ogTitle:D("document.home.pageTitle"),ogDescription:D("document.home.bannerDescription")}),(M,C)=>{const x=at;return t(),o("div",gs,[k(e(Ot),{locale:e(I)?e(Pt):e(Vt)},{default:h(()=>[e(B)?(t(),y(Jt,{key:0})):p("",!0),k(_s)]),_:1},8,["locale"]),e(f)?(t(),y(x,{key:0})):p("",!0)])}}}),vl=ae(fs,[["__scopeId","data-v-da3979fa"]]);export{vl 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.