PageSourceSearch

https://cdn2.tenchat.ru/tenchat-main-ssr-nuxt/8BTpUpV5.js

js tenchat.ru collected 2026-09-24 08:46:28 UTC 3,852 bytes, 1 lines download raw bytes

1import{_ as E,a as M}from"./CDf7wWhE.js";import{B as A}from"./DwLnA9PW.js";import{j as m,z as l,R as B,bQ as H,s as P,bR as O,Y as U,e as z,q as I,Q as $,i as N,o as w,w as Y,f as R,a as x,n as S,b as k,c as j,G as D,g as s,v as W}from"./Bhvy1f66.js";import{a as F}from"./DOgu0RcK.js";import{d as Q}from"./CfyJNsnl.js";import{U as q}from"./D0A_auOB.js";import"./CsxKHwBl.js";import"./CDr1IRf9.js";import"./CV6EvNpp.js";import"./DyUSqYut.js";import"./DlAUqK2U.js";import"./qc6BGF8g.js";import"./BoYnVdb1.js";import"./DEvdqoEt.js";import"./Rso4hKyB.js";import"./DtqYZcjI.js";import"./t1vBocPX.js";import"./Czk0X5cX.js";import"./ClxLacSj.js";import"./DnllObNB.js";import"./U0Vq84Pe.js";import"./DAnC-Ci1.js";import"./Cxq6wgNm.js";const G=20,X=(e,{isEnabled:i=m(!0),swipeThreshold:r=50,dropDistanceRatio:u=.3,opacityThreshold:C=1,onSwipeAway:g=()=>{}}={})=>{const a=m(),v=l(()=>i.value&&a.value!==!0),c=l(()=>e.value?.offsetHeight),{abs:n}=Math,o=(t,_)=>{e.value?.style.setProperty("transform",`translateY(${t})`),e.value?.style.setProperty("opacity",`${_}`)},y=()=>e.value?.style.setProperty("touch-action","none");B(e,"pointerup",()=>setTimeout(y));const f=()=>{o("0px",1),y()},L=O(()=>{if(!(!v.value||!c.value)){if(a.value===void 0)if(n(p.value)>=r-1){a.value=!0,f();return}else n(d.value)>=r-1&&(a.value=!1);o(`${-d.value}px`,C-n(d.value)*2/c.value)}},G),{distanceY:d,distanceX:p}=H(e,{threshold:r,onSwipeStart(){U(y),a.value=void 0},onSwipe:L,onSwipeEnd(){v.value&&(c.value&&n(d.value*2)/c.value>=u?(o("100%",0),g()):f())}});P(f)},J="https://cdn2.tenchat.ru/static-img/plyr/controls.svg",K=2e3,Z=z({__name:"ModalVideoPlayer",props:{src:{},destroyVideoWithTimeout:{default:100},modalWrapperClass:{type:[Boolean,String,Object,Array]},hideLayoutControlsHeader:{type:Boolean}},setup(e){const i=m(!1),r=l(()=>i.value),{isDesktop:u}=Q(),C=m(),g=l(()=>C.value?.videoPlayer);I(r,()=>g.value?.togglePlay(r.value));const a=l(()=>({controls:["play","current-time","duration","progress","settings","mute",...u.value?["fullscreen"]:[]]}));let v=()=>null;function c(p){v=p}const n=m();X(n,{isEnabled:l(()=>!u.value),onSwipeAway:()=>v()});const o=m(!0),{start:y,stop:f}=$(()=>{o.value=!1},K),L=(p=!o.value)=>{o.value=p,f()},d=l(()=>!u.value&&!o.value);return P(()=>{y(),document.pictureInPictureElement&&document.exitPictureInPicture()}),(p,t)=>{const _=E,T=A,V=M;return w(),N(V,{"content-class":"size-full justify-center items-center","content-base-class":"pointer-events-none",position:s(u)?"center":"fill-available","hide-close-button":"","data-cy":"player-video-modal"},{"content-wrapper":Y(({close:h})=>[R(x("div",{ref_key:"containerRef",ref:n,class:S([e.modalWrapperClass,"pointer-events-auto relative aspect-video min-h-0"])},[k(_,{class:"absolute top-0 -right-10 opacity-40 hover:opacity-60 max-tablet:hidden",onClick:h},null,8,["onClick"]),e.hideLayoutControlsHeader?D("",!0):(w(),j("div",{key:0,class:S(["top-0 flex w-full items-center bg-black/50 px-4 py-2 transition-all duration-300 desktop:hidden max-tablet:absolute max-tablet:z-10 max-mobile:py-1",{"-translate-y-10 opacity-0":s(d)}])},[k(T,{size:"40","icon-size":"20",color:"white",icon:s(F),"data-cy":"close-left-arrow",class:"hidden max-tablet:block",onClick:b=>h()},null,8,["icon","onClick"]),t[3]||(t[3]=x("div",{class:"flex-1"},null,-1))],2)),k(s(q),{ref_key:"playerRef",ref:C,src:e.src,options:s(a),"icon-url":s(J),settings:["speed"],preload:"metadata","hide-controls":"all",loop:"","lazy-load":"","click-to-play":"","destroy-with-timeout":e.destroyVideoWithTimeout,onClick:t[0]||(t[0]=b=>L()),onLoadeddata:t[1]||(t[1]=b=>i.value=!0),onLoadedmetadata:t[2]||(t[2]=b=>i.value=!0),onVnodeMounted:b=>c(h)},null,8,["src","options","icon-url","destroy-with-timeout","onVnodeMounted"])],2),[[W,s(i)]])]),_:1},8,["position"])}}}),ke=Object.assign(Z,{__name:"ModalVideoPlayer"});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.