PageSourceSearch

https://www.asbis.kz/_nuxt/CLD7JMww.js

js asbis.kz collected 2026-10-04 16:41:48 UTC 2,574 bytes, 1 lines download raw bytes

1import{G as B,V as g,o as d,d as v,c as o,r as w,k as a,j as z,D as V,i as A,f as $}from"./BBcfL8lF.js";import{u as x}from"./DIkwVCYu.js";const I=["src"],L=B({__name:"AbRichVideo",props:{id:{},autoplay:{type:Boolean},loop:{type:Boolean},muted:{type:Boolean},play:{type:Boolean}},setup(y){const e=y,r=w(null),f=e.autoplay||(e.play??!1),u=a(()=>{const t=new URLSearchParams;return t.set("autoplay",f?"1":"0"),t.set("mute",e.muted?"1":"0"),t.set("enablejsapi","1"),e.loop&&(t.set("loop","1"),t.set("playlist",e.id)),`https://www.youtube.com/embed/${e.id}?${t.toString()}`}),n=t=>{const l=r.value;if(l)try{l.contentWindow?.postMessage(JSON.stringify({event:"command",func:t,args:[]}),"*")}catch{}};let i=!1;const c=()=>{i=!0,e.play&&n("playVideo")};return g(()=>e.play,t=>{i&&n(t?"playVideo":"pauseVideo")}),(t,l)=>(d(),v("iframe",{width:"100%",height:"100%",src:o(u),title:"YouTube video player",frameborder:"0",allow:"accelerometer; clipboard-write; encrypted-media; gyroscope; picture-in-picture; autoplay",ref_key:"iframeRef",ref:r,allowfullscreen:"",onLoad:c},null,40,I))}}),N=["muted","loop","controls","autoplay"],j=["src"],U=B({__name:"AbVideo",props:{video:{},play:{type:[Boolean,null]},videoClass:{},containerSize:{type:[Boolean,null]},autoplay:{type:[Boolean,null]},muted:{type:[Boolean,null]},loop:{type:[Boolean,null]},controls:{type:[Boolean,null]}},setup(y){const e=y,r=a(()=>e.containerSize??!1),f=a(()=>e.videoClass??void 0),u=a(()=>e.autoplay??!1),n=a(()=>e.play??!1),i=a(()=>e.muted??!0),c=a(()=>e.loop??!0),t=a(()=>e.controls??!1),l=w(),{generateUrl:S}=x(),k=(s="")=>{if(s){if(/^[A-Za-z0-9_-]{11}$/.test(s))return s;const b=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=|\?v=)([^#&?]*).*/,m=s.match(b);if(m&&m[2])return m[2]}return null},p=a(()=>typeof e.video=="string"?e.video:e.video?.src?e.video.src:null),_=a(()=>typeof e.video!="string"&&!e.video?.id&&p.value?S(p.value,{}):null),h=a(()=>typeof e.video!="string"&&e.video?.id?e.video.id:p.value?k(p.value):null),C=()=>{l.value&&(l.value.setAttribute("muted",""),l.value.play())},R=()=>l.value?.pause();return g(()=>e.play,s=>{s?C():R()},{immediate:!0,flush:"post"}),(s,b)=>(d(),v("div",{class:V(["ab-video",{"ab-video_fit":o(r)}])},[o(h)?(d(),z(L,{key:0,id:o(h),autoplay:o(u),loop:o(c),muted:o(i),play:o(n)},null,8,["id","autoplay","loop","muted","play"])):o(_)?(d(),v("video",{key:1,ref_key:"videoRef",ref:l,playsinline:"",muted:o(i),loop:o(c),controls:o(t),autoplay:o(u)||o(n),class:V([o(f),{"ab-video__video_fit":o(r)}])},[A("source",{src:o(_)},null,8,j)],10,N)):$("",!0)],2))}});export{U as _};

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.