1import{_ as G}from"./w31VgVI9.js";import{_ as H,e as J,A as C,c as m,b as l,w as r,u as K,a as o,l as O,F as L,r as S,h as _,i as b,C as W,g as d,D as X,B as Y,o as u,d as g,j as B,t as V,y as Z,k as ee,z as P,E as N}from"./C2daKv8C.js";import{u as te,c as ae,d as oe}from"./DKCWVqWY.js";const se={class:"video container"},ne={class:"video-content"},re={class:"video-content-left"},ie={class:"video-content-right"},le={class:"video-list","element-loading-text":"Loading...","element-loading-background":"rgba(0, 0, 0, 0)"},de={class:"video-list-item"},ue={class:"video-list-item__img"},ce=["src"],pe=["onClick"],_e={class:"video-list-item__desc"},me={class:"video-container"},ve=["src"],ge={__name:"Video",setup(fe){const k=X(),n=Y();te();const f=d(!1),$=d(""),c=d(1),q=d(12),w=d(0),x=d(void 0),h=d(!1),p=P([]),y=P([]),z=b(()=>p?.map(t=>({id:t?.id?.toString(),name:t?.name}))??[]),v=b(()=>({name:n?.query?.product_name,id:n?.query?.product_id})),D=b(()=>(n?.query?.product_id??$.value).toString()),A=async()=>{if(!(p.length>0))try{const t=await ae(4);p.splice(0,p.length,...t.data)}catch(t){throw N({message:`${t?.response?.data?.data?.message}`,type:"error",plain:!0}),t?.response?.data?.data?.message}},E=async(t,e,s)=>{f.value=!0;try{const i=await oe(1,t,e,s);y.splice(0,y.length,...i.data.list),w.value=i.data.count}catch(i){throw N({message:`${i?.response?.data?.data?.message}`,type:"error",plain:!0}),i?.response?.data?.data?.message}finally{f.value=!1}};J(async()=>{}),C(()=>n,t=>{const{path:e,query:s}=t;e==="/support/video"?(A(),s.page||k.replace({path:e,query:{...s,page:c.value}})):p.splice(0,p.length,[])},{immediate:!0}),C(()=>n.query,async t=>{const{page:e,product_id:s}=t;n.path==="/support/video"&&e&&(c.value=parseInt(e||c.value,10),E(s,c.value,q.value))},{immediate:!0});const F=t=>{h.value=!0,x.value=t.url},I=t=>{const e={...n.query};e.page=t,k.push({path:n.path,query:e})};return(t,e)=>{const s=_("el-breadcrumb-item"),i=_("el-breadcrumb"),M=G,R=_("el-menu-item"),U=_("el-menu"),j=_("el-pagination"),Q=_("el-dialog"),T=W("loading");return u(),m("div",se,[l(i,{"separator-icon":K(ee)},{default:r(()=>[l(s,{to:{path:"/support"}},{default:r(()=>[...e[2]||(e[2]=[g("Support",-1)])]),_:1}),l(s,{to:{path:"/support/video",query:{page:1}}},{default:r(()=>[...e[3]||(e[3]=[g("Video",-1)])]),_:1}),v.value?.name?(u(),B(s,{key:0,to:{path:"/support/video",query:{product_name:v.value?.name,product_id:v.value?.id,page:1}}},{default:r(()=>[g(V(v.value.name??""),1)]),_:1},8,["to"])):Z("",!0)]),_:1},8,["separator-icon"]),e[5]||(e[5]=o("h3",{class:"video-title"},"Video",-1)),o("div",ne,[o("div",re,[l(U,{"unique-opened":"","default-active":D.value,class:"video-menu"},{default:r(()=>[(u(!0),m(L,null,S(z.value,a=>(u(),B(R,{index:a?.id?.toString()},{default:r(()=>[l(M,{to:`/support/video?product_name=${a?.name}&product_id=${a?.id}&page=1`},{default:r(()=>[g(V(a?.name??""),1)]),_:2},1032,["to"])]),_:2},1032,["index"]))),256))]),_:1},8,["default-active"])]),o("div",ie,[O((u(),m("div",le,[(u(!0),m(L,null,S(y,a=>(u(),m("div",de,[o("div",ue,[o("img",{src:a.image},null,8,ce),o("div",{class:"video-list-item__btn",onClick:he=>F(a)},[...e[4]||(e[4]=[o("div",{class:"video-list-item__btn-icon"},null,-1)])],8,pe)]),o("p",_e,V(a?.name??""),1)]))),256))])),[[T,f.value]]),l(j,{"hide-on-single-page":"",background:"","current-page":c.value,"onUpdate:currentPage":e[0]||(e[0]=a=>c.value=a),"page-size":q.value,"pager-count":3,total:w.value,layout:"prev, pager, next",onChange:I,class:"video-list-page"},null,8,["current-page","page-size","total"])])]),l(Q,{modelValue:h.value,"onUpdate:modelValue":e[1]||(e[1]=a=>h.value=a),modal:!1,class:"video-modal","align-center":""},{default:r(()=>[o("div",me,[o("iframe",{src:x.value,frameborder:"0",allow:"autoplay; encrypted-media",allowfullscreen:""},null,8,ve)])]),_:1},8,["modelValue"])])}}},ke=H(ge,[["__scopeId","data-v-11654bf7"]]);export{ke 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.