1import K from"./BEmwwva9.js";import{q as E,p as L,a as M,T as U,aB as Z,al as X,aW as j,X as J,t as Q,aP as Y,E as tt,j as h,w as nt,h as F,d as et,o as B,a0 as _,e as d,g as n,v as P,aJ as ot,br as rt,bf as S,Z as at,c as T,$ as st,bp as it,n as lt}from"./n3ZE3m4N.js";import ct from"./TZdoJELN.js";import dt from"./BjD-72e5.js";import ut from"./BecX3134.js";import pt from"./GozPfG2A.js";import _t from"./CRQZUisq.js";import mt from"./D2nDQiae.js";import ft from"./CuR-pllR.js";import{C as vt}from"./DZkTorGg.js";import{u as bt}from"./IKm6nj7y.js";import{g as yt}from"./PnetgMNL.js";import{u as wt}from"./2oEpbV9q.js";import"./CcLfVxfm.js";import"./DuJDEReX.js";import"./B2OqR8Qc.js";import"./ClcOQQhg.js";import"./BK6jdCiy.js";import"./j7Tpz8Nw.js";import"./Dcigm0UB.js";import"./shX0Y_Md.js";import"./BB7ViqSc.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="16ca5747-bcb2-4fb3-ac03-fd0f9f211f17",e._sentryDebugIdIdentifier="sentry-dbid-16ca5747-bcb2-4fb3-ac03-fd0f9f211f17")}catch{}})();const kt={min:26,max:58},ht={min:20,max:30},gt=()=>window.innerWidth<=J?{ref:X,font:ht,capped:!1}:{ref:j,font:kt,capped:!0},O=(e,o,u)=>{const p=u?Math.min(window.innerWidth,Z):window.innerWidth;return e*p/o},xt=()=>{const e=E(null),o=E(null),u=()=>e.value.scrollHeight<=e.value.clientHeight&&e.value.scrollWidth<=e.value.clientWidth,p=(i,s)=>{if(o.value.style.fontSize=`${s}px`,u())return s;let c=i,m=s,y=i;for(let k=0;k<20&&m-c>.1;k++){const f=(c+m)/2;o.value.style.fontSize=`${f}px`,u()?(y=f,c=f):m=f}return y},v=(i,s,c)=>{i.style[s]!==c&&(i.style[s]=c)},x=()=>{v(e.value,"height","");const i=window.innerWidth,{ref:s,font:c,capped:m}=gt(),y=O(c.min,s,m),k=O(c.max,s,m),f=p(y,k);v(o.value,"fontSize",`${f/i*100}vw`),o.value.getBoundingClientRect().height<e.value.clientHeight&&v(e.value,"height","auto")};let t=null,l=!1,a=null;const $=()=>{a&&cancelAnimationFrame(a),a=requestAnimationFrame(()=>{a=requestAnimationFrame(()=>{a=null,l=!1})})},b=()=>{if(!(!e.value||!o.value)){l=!0;try{x()}finally{$()}}},I=()=>{l||b()};return L(e,(i,s)=>{s&&t&&t.unobserve(s),i&&(t??=new ResizeObserver(I),t.observe(i))}),M(()=>{window.addEventListener("resize",b)}),U(()=>{a&&(cancelAnimationFrame(a),a=null),t?.disconnect(),window.removeEventListener("resize",b)}),{container:e,title:o,resize:b}};async function Ct(e,o=30){return Q({operation:"BrandPersonsQuery",variables:{id:Number(e),personLimit:o},entityName:"brand",noCache:!0,returnRaw:!0,modelFunction:u=>u?.personsPaginate?.data?.map(p=>yt(p.person,p.personTypes||[]))||[]})}const Bt={class:"important-brand"},Pt={class:"important-brand__info"},Et={class:"important-brand__top"},$t={class:"important-brand__bottom"},It={class:"important-brand__preview"},Tt={__name:"index",props:["floor"],async setup(e){let o,u;it(g=>({v0e373001:n(t)?.color,v317acf39:n(b)?.start,d384736a:n(b)?.stop,v973932b4:n(vt).darker}));const p=E(!1),v=E(!1),x=tt({isVideoOK:!0}),t=h(()=>e.floor.contents[0]),l=h(()=>t.value?.id?`/brand/${t.value.id}`:""),{handleTrackClick:a}=wt(t.value?.metrika);function $(g){g.target.closest("a, button")||l.value&&(a(),st(l.value))}const b=h(()=>({start:t.value?.shades?.darker?`${t.value.shades.darker}CC`:"",stop:t.value?.color?`${t.value.color}CC`:""})),I=h(()=>({path:l.value,query:{description:1}})),{data:i}=([o,u]=nt(()=>F(`important-brand-play-button-${t.value?.id}`,()=>bt(t.value?.id),{server:!0,lazy:!0,watch:[()=>t.value?.id]})),o=await o,u(),o),s=h(()=>t.value?{...t.value,lastEpisode:i.value??null}:null),{data:c}=F(`important-brand-persons-${t.value?.id}`,()=>Ct(t.value?.id),{server:!1,lazy:!0,watch:[()=>t.value?.id]}),m=h(()=>t.value?{...t.value,persons:c.value??[]}:null);function y(){console.log("[Brand Poster Media] Smth went wrong!"),x.isVideoOK=!1}const{container:k,title:f,resize:z}=xt();return L(()=>t.value?.title,()=>lt(z)),M(()=>{z()}),(g,r)=>{const W=K,C=rt,D=ct,N=dt,R=ut,q=at,H=pt,A=_t,V=mt,G=ft;return B(),et("section",Bt,[r[7]||(r[7]=_("div",{class:"important-brand__decor"},null,-1)),_("section",{class:"important-brand__main",onClick:$},[d(W,{brand:n(t)},null,8,["brand"]),_("div",Pt,[_("div",Et,[d(C,{to:n(l),class:"contents",onClick:r[0]||(r[0]=w=>n(a)())},{default:P(()=>[_("div",{class:"important-brand__header",ref_key:"titleContainer",ref:k},[_("span",{class:"important-brand__title",ref_key:"titleText",ref:f},ot(n(t)?.title),513)],512)]),_:1},8,["to"]),d(C,{to:n(l),class:"contents",onClick:r[1]||(r[1]=w=>n(a)())},{default:P(()=>[d(D,{brand:n(t)},null,8,["brand"])]),_:1},8,["to"]),d(N,{class:"mobile:!hidden",brand:n(m),"brand-link":n(l)},null,8,["brand","brand-link"])]),_("div",$t,[d(R,{class:"min-h-0 !text-white w-space-wide-400px full:w-space-full-400px mobile:w-full",clamped:n(p),"onUpdate:clamped":r[2]||(r[2]=w=>S(p)?p.value=w:null),"line-count":n(v),"onUpdate:lineCount":r[3]||(r[3]=w=>S(v)?v.value=w:null),content:n(t)?.description,"has-to-ssr":!g.mainPage,itemprop:"description",variant:g.variant},null,8,["clamped","line-count","content","has-to-ssr","variant"]),d(C,{to:n(I),class:"important-brand__button",onClick:r[4]||(r[4]=w=>n(a)())},{default:P(()=>[r[6]||(r[6]=_("span",{class:"text"},"Ðолное опиÑание",-1)),d(q,{name:"common:bio-info",class:"icon"})]),_:1},8,["to"])])]),_("div",It,[d(C,{to:n(l),class:"important-brand__picture",onClick:r[5]||
1(r[5]=w=>n(a)())},{default:P(()=>[n(t)?.poster?.video&&n(x).isVideoOK?(B(),T(H,{key:0,src:n(t)?.poster?.video,alt:n(t)?.title,autoplay:"",muted:"",loop:"",playsinline:"",onPlayError:y,onLoadError:y},null,8,["src","alt"])):n(t)?.poster?.main?(B(),T(A,{key:1,source:n(t)?.poster?.main,alt:n(t)?.title},null,8,["source","alt"])):(B(),T(A,{key:2,source:n(t)?.poster?.picture,alt:n(t)?.title},null,8,["source","alt"]))]),_:1},8,["to"]),d(V,{class:"important-brand__control",brand:n(s)},null,8,["brand"])])]),d(G,{floor:e.floor},null,8,["floor"])])}}},Yt=Y(Tt,[["__scopeId","data-v-f5b84c5f"]]);export{Yt 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.