PageSourceSearch

https://senoval.cdn.sports.ru/roberto-contentos/short-posts-ssi/static/BrandingCollapsing-d6708acb-DO5R_G_D.js

js sports.ru collected 2026-10-02 02:19:06 UTC 5,241 bytes, 3 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="1888afe8-2b83-5361-a76d-e54953b329ce")}catch(e){}}();
2import{S as V,a as W,Q as j}from"./modal.es-koqxDcNR.js";import{d as J,C as g,r as k,c as B,D as q,A as z,b as Q,e as O,o as c,f as u,i as h,g as X,k as $,x as F,u as G,v as K,n as Y}from"./index-XWCV5II-.js";import{w as Z}from"./Close.vue.es-826656aa-BdObo1Lp.js";import{i as ee}from"./useBrandingDestroy-da41e6ff-B6PW0dpx.js";var p=(r=>(r.MOUNT="mount",r.COLLAPSE="collapse",r.EXPAND="expand",r.CLOSE="close",r))(p||{});const ae={ref:"mainBannerRef",class:"branding-collapsing__main-banner"},ne=["href"],oe=["src"],le=["src"],re=["href"],te=["src"],se=["src"],ie=["href"],ce="90px",ue=J({__name:"BrandingCollapsing",props:{otherData:{type:Object,required:!0},analyticsData:{type:Object,required:!0}},setup(r){const{swapHide:A}=ee(),a=r,i=g("mainBannerRef"),E=g("mainBannerLinkRef"),S=g("collapsedBannerLinkRef"),t=g("iframeRef"),d=g("iframeCollapsedRef");let _=null,D=null;const v=k(!1);let l;const y=B(()=>!!(a.otherData.brandingCollapsedImage||a.otherData.brandingCollapsedHTML)),s=k(!1),I=k(!1),b=k(!1),x=B(()=>({"--background-color":a.otherData.backgroundColor||a.otherData.bgColor,"--close-button-color":a.otherData.closeIconColor})),C=function(n){_?.postMessage(JSON.stringify(n),"*"),D?.postMessage(JSON.stringify(n),"*")},L=q({callback:n=>{const e=n[0],o=!e.isIntersecting&&e.boundingClientRect.top<0;!s.value&&e.isIntersecting||(s.value=o,I.value=!!e.isIntersecting,C({event:s.value?p.COLLAPSE:p.EXPAND}))},observer:{threshold:.45}});function T(n){document.documentElement.style.setProperty("--branding-fixed-height",n)}function w(){s.value=!1,T("0px"),L.disconnect(),f("close")}function H(){if(!s.value){w();return}b.value=!0,setTimeout(()=>{b.value=!1,w()},300)}function N(n){const e={format:"tournament"};return n&&(e.place_action=n),a.otherData.bookmakerId&&(e.bookmaker_id=a.otherData.bookmakerId),a.otherData.bookmakerIdType&&(e.bookmaker_id_type=a.otherData.bookmakerIdType),a.otherData.bookmakerName&&(e.bookmaker_name=a.otherData.bookmakerName),e}function P(){if(!i.value||!a.analyticsData.id)return;const n=new W(a.otherData.clickThrough);l=j({analyticsDataId:a.analyticsData.id,analyticsDataExtraProvider:n});const e=N();l?.sendViewAnalytics(i.value,e)}function f(n){if(!l)return;const e=n==="main"?E.value:S.value,o=N(n);l.sendClickAnalytics(e,o)}function U(){f("missclick")}const R=function(){!i.value||!y.value||L.observe(i.value)},M=function(n){var e,o;if(!(n.source===((e=t.value)==null?void 0:e.contentWindow)||n.source===((o=d.value)==null?void 0:o.contentWindow)))return;let m=null;try{m=JSON.parse(n.data)}catch{m=null}return m?.eventName==="click"&&f(s.value?"collapsed":"main"),m};return z(()=>{y.value&&T(ce)}),Q(()=>{const n=A(H);if(n&&i.value){const e=new IntersectionObserver(o=>{o[0].isIntersecting&&(n(),e.disconnect())},{threshold:.9});e.observe(i.value),O(()=>e.disconnect())}P(),t.value&&(t.value.onload=()=>{var e;_=(e=t.value)==null?void 0:e.contentWindow,C({event:p.MOUNT,data:a.otherData}),v.value||(l?.sendRealImpressionAnalytics(t.value),v.value=!0)}),d.value&&(d.value.onload=()=>{var e;D=(e=t.value)==null?void 0:e.contentWindow,C({event:p.MOUNT,data:a.otherData}),v.value||(l?.sendRealImpressionAnalytics(d.value),v.value=!0)}),window.addEventListener("message",M)}),O(()=>{L.disconnect(),window.removeEventListener("message",M)}),(n,e)=>(c(),u("div",{class:"branding-collapsing",style:Y(x.value)},[h("div",ae,[h("a",{ref:"mainBannerLinkRef",href:a.otherData.clickThrough,class:"branding-collapsing__main-banner-link",target:"_blank",rel:"nofollow noreferrer noopener",onClick:e[0]||(e[0]=o=>f("main"))},[a.otherData.brandingHTML?(c(),u("iframe",{key:0,ref_key:"iframeRef",ref:t,class:"branding-collapsing__main-banner-iframe",src:a.otherData.brandingHTML,onLoad:R},null,40,oe)):(c(),u("img",{key:1,src:a.otherData.brandingImage,onLoad:R},null,40,le))],8,ne)],512),y.value?(c(),u("div",{key:0,class:X(["branding-collapsing__collapsed-banner",{"branding-collapsing__collapsed-banner--active":s.value&&!b.value,"branding-collapsing__collapsed-banner--hidden":I.value,"branding-collapsing__collapsed-banner--sliding-out":b.value}])},[h("a",{ref:"collapsedBannerLinkRef",href:a.otherData.clickThrough,class:"branding-collapsing__collapsed-banner-link",target:"_blank",rel:"nofollow noreferrer noopener",onClick:e[1]||(e[1]=o=>f("collapsed"))},[a.otherData.brandingCollapsedHTML?(c(),u("iframe",{key:0,ref_key:"iframeC
2ollapsedRef",ref:d,src:a.otherData.brandingCollapsedHTML,class:"branding-collapsing__collapsed-banner-iframe"},null,8,te)):(c(),u("img",{key:1,class:"branding-collapsing__collapsed-banner-image",src:a.otherData.brandingCollapsedImage},null,8,se))],8,re),h("a",{href:r.otherData.clickThrough,target:"_blank",rel:"nofollow noopener noreferrer",class:"branding-collapsing__missclick",onClick:U},null,8,ie),$(G(Z),{class:"branding-collapsing__close-button",onClick:F(w,["stop"])})],2)):K("",!0)],4))}}),ve=V(ue,[["__scopeId","data-v-1a7b28ec"]]);export{ve as default};
3//# debugId=1888afe8-2b83-5361-a76d-e54953b329ce

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.