PageSourceSearch

https://cdn.smotrim.ru/static/assets/_nuxt/BVSvq9Wf.js

js smotrim.ru collected 2026-09-24 06:24:44 UTC 4,044 bytes, 1 lines download raw bytes

1import{aK as ne,ay as oe,q as n,bI as ie,bs as l,j as i,bJ as c,b as ue,d,o as f,$ as L,f as h,g as r,aD as M,aE as U,aC as b,bK as K,bj as le}from"./Bz8wT4n7.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},g=new t.Error().stack;g&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[g]="acafbd3e-a986-4f4a-b2f0-01cfe805d6d1",t._sentryDebugIdIdentifier="sentry-dbid-acafbd3e-a986-4f4a-b2f0-01cfe805d6d1")}catch{}})();const ce={key:0,class:"progress__buffer"},de={key:1,class:"progress__bar-wrapper"},fe={__name:"progress",props:{settings:{type:Object,required:!0},color:{type:String,default(){return"#4FBCDA"}},active:Boolean,isMobile:Boolean,isFullscreen:Boolean,isMini:Boolean},emits:["set-time","seeking","seeked"],setup(t,{emit:g}){le(e=>({v68f4ca07:r(p).bar.position,v3d36cc6e:t.color,v5cdcd646:r(Z)+"%",v63196f48:r(ee)+"%",v1c8fae91:r(p).label.translate,v5f34ce42:r(p).label.right,b8c53638:r(p).label.left}));const v=g,N=oe(),a=n(),I=n(),F=n(),_=n(),E=n(),S=n(0);ie();const{width:O,update:R}=l(I),{left:z,update:J}=l(E),{width:x,update:$}=l(F),{left:y,right:T,width:V,update:G}=l(a),{right:H,width:W,update:Q}=l(_),Y=i(()=>H.value>=z.value),A=i(()=>K(t.settings.currentTime)),X=i(()=>K(t.settings.duration)),Z=i(()=>t.settings.currentTime/t.settings.duration*100),ee=i(()=>t.settings.buffered/t.settings.duration*100),p=i(()=>{const e={translate:0,left:"initial",right:"initial"},s={position:"absolute"};return W.value/2>=x.value?(e.translate="0",e.left=0):W.value/2>=O.value-x.value?(e.translate="0",e.right=0,e.left="initial",s.position="static"):(e.translate="50%",e.right=0,e.left="initial"),{label:e,bar:s}});let k,w,o=null;const j=()=>{o&&(cancelAnimationFrame(o),o=null),typeof k=="function"&&typeof w=="function"&&(w(),k())},u=n(!1),m=n(!1),P=e=>e.touches&&e.touches.length>0?e.touches[0].clientX:e.changedTouches&&e.changedTouches.length>0?e.changedTouches[0].clientX:e.clientX,D=e=>{if(!y.value||!T.value||!V.value)return;let s;return e>y.value&&e<T.value?s=t.settings.duration*(e-y.value)/V.value:e>=T.value?s=t.settings.duration:s=0,v("set-time",s),s},te=e=>{e.preventDefault(),u.value&&(m.value=!0,S.value=P(e),o&&cancelAnimationFrame(o),o=requestAnimationFrame(()=>{D(S.value)}))},B=e=>{if(e.preventDefault(),u.value){u.value=!1;const s=P(e);D(s)}if(m.value=!1,v("seeked"),N.setVideoProgressWatcherStatus(!0),a.value&&a.value.releasePointerCapture)try{a.value.releasePointerCapture(e.pointerId)}catch{}j()},q=e=>{if(e.preventDefault(),a.value&&a.value.setPointerCapture)try{a.value.setPointerCapture(e.pointerId)}catch{}u.value=!0,C(),v("seeking");const s=P(e);D(s),w=c(document,["mousemove","touchmove"],te,{passive:!1}),k=c(document,["mouseup","touchend"],B)},se=c(document,"touchstart",e=>{a.value&&a.value.contains(e.target)&&e.preventDefault()},{passive:!1}),re=c(document,"touchmove",e=>{u.value&&e.preventDefault()},{passive:!1}),C=()=>{R(),J(),$(),G(),Q()},ae=c("fullscreenchange",C);return ue(()=>{ae(),j(),se(),re()}),(e,s)=>(f(),d("div",{class:M(["progress-wrapper",{"progress-wrapper_mobile":t.isMobile,"progress-wrapper_fullscreen":t.isFullscreen,"progress-wrapper_mini":t.isMini,"pointer-events-none":!t.settings.duration||!t.active}]),ref_key:"progress",ref:a,onClick:s[0]||(s[0]=b(()=>{},["stop"])),onMousedown:b(q,["stop"]),onTouchstart:b(q,["stop"]),onTouchend:B,onTouchcancel:B,onDblclick:s[1]||(s[1]=b(()=>{},["stop"]))},[L("div",{class:"progress__track",ref_key:"track",ref:I},[r(X)?(f(),d("div",{key:0,ref_key:"duration",ref:E,class:M(["progress__duration",{"opacity-0":r(Y)}])},U(r(X)),3)):h("",!0)],512),t.settings.duration?(f(),d("div",ce)):h("",!0),t.settings.duration?(f(),d("div",de,[L("div",{class:M(["progress__bar",{"duration-[1ms]":!r(m),"!duration-0":r(m)}]),ref_key:"progressBar",ref:F,onTransitionend:C},[r(A)?(f(),d("div",{key:0,ref_key:"currentTime",ref:_,class:"progress__time"},U(r(A)),513)):h("",!0)],34)])):h("",!0)],34))}},me=ne(fe,[["__scopeId","data-v-5bc74dc1"]]);export{me 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.