1import{aK as M,q as A,a6 as j,bc as x,bD as k,j as e,a as O,d as a,o as s,$ as n,f as d,aD as C,c as P,aE as l,g as o,v as q,a_ as R,e as W,Y,F as K,Z,bl as G,bn as H,b7 as J,b8 as Q,bj as U}from"./Bz8wT4n7.js";import{u as X}from"./DdJNdExl.js";import{e as tt}from"./t5oTLc3x.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},i=new t.Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="c685c73a-9596-4763-b697-9dbf88a6f8c7",t._sentryDebugIdIdentifier="sentry-dbid-c685c73a-9596-4763-b697-9dbf88a6f8c7")}catch{}})();const et={key:0,class:"tvp-slot__subtitles"},st={key:1,class:"tvp-slot__premiere"},nt={class:"tvp-slot__title"},ot=["textContent"],at=["textContent"],lt={class:"tvp-slot__info"},it=["textContent"],ct=["textContent"],v=200,rt={__name:"short-card",props:{slot:{type:Object,required:!0},isLast:{type:Boolean,default(){return!1}}},emits:["change-to-full-size","change-to-small-size"],setup(t,{emit:i}){U(g=>({v2c583d64:o(T),v3ada06d0:o($),v79be8148:o(F)}));const c=i,r=A(!1),I=j(),f=x("container"),m=x("wrapper"),{width:_}=k(m),{width:S}=k(f),T=e(()=>v+"ms"),z=X(),D=e(()=>J(t.slot.start,z)),b=e(()=>t.slot.brandId?`/brand/${t.slot.brandId}`:null),h=e(()=>Q(t.slot.start,t.slot.end)),B=e(()=>`${h.value} мин`),V=e(()=>`${D.value} · ${B.value}`),$=e(()=>tt(h.value)+"vw"),F=e(()=>`${_.value+32}px`);let p=()=>{};function u(){S.value<_.value+32&&(r.value=!0,setTimeout(()=>{c("change-to-full-size")},v))}const N=g=>{u(),p=H(slotRef,()=>{y(),p()},{controls:!0})};function y(){r.value=!1,setTimeout(()=>{c("change-to-full-size")},v)}async function w(){await I.toModal(t.slot),await Z(`/brand/${t.slot.brandId}`)}return O(()=>{t.isLast&&u()}),(g,ut)=>{const E=G,L=Y;return s(),a(K,null,[n("div",{class:C(["tvp-slot__meta",{"tvp-slot--has-episode":t.slot.publicId}])},[t.slot.hasSubtitles?(s(),a("span",et,"СÑбÑиÑÑÑ")):d("",!0),t.slot.isPremiere?(s(),a("span",st,"ÐÑемÑеÑа")):d("",!0)],2),n("div",{class:C(["tvp-slot",{"tvp-slot--current":t.slot.isInAir,"tvp-slot--hover":o(r),"tvp-slot--last":t.isLast}]),ref_key:"container",ref:f,onMouseover:u,onTouchstartPassive:N,onMouseleave:y},[n("div",{class:"tvp-slot__wrapper",ref_key:"wrapper",ref:m},[n("div",nt,[t.slot.publicId?(s(),a("span",{key:0,class:"tvp-slot__play",onClick:w,textContent:l(t.slot.title)},null,8,ot)):o(b)?(s(),P(E,{key:1,to:o(b)},{default:q(()=>[R(l(t.slot.title),1)]),_:1},8,["to"])):(s(),a("span",{key:2,textContent:l(t.slot.title)},null,8,at)),t.slot.publicId?(s(),a("button",{key:3,class:"leading-[0] inline shrink-0",onClick:w},[W(L,{class:"tvp-slot__icon",name:"common:icon-chevron-inverted"})])):d("",!0)]),n("div",lt,[n("time",{class:"tvp-slot__time",textContent:l(o(V))},null,8,it),n("span",{class:"tvp-slot__label",textContent:l(t.slot.label)},null,8,ct)])],512)],34)],64)}}},mt=M(rt,[["__scopeId","data-v-34954461"]]);export{mt 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.