PageSourceSearch

https://static.riamo.ru/_next/static/chunks/2299.123a92f0b4c9c1d7.js

js riamo.ru collected 2026-10-02 03:31:46 UTC 3,978 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2299],{62299:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EmbedHTML:()=>m});var a=r(74876),c=r(83760);r(77122);var l={classes:{base:"alpwg90"}};function n(e){return e.includes("iframe")?e.replace(/<iframe\b([^>]*)>/gi,(e,t)=>{let r=t.replace(/\s*allowfullscreen\b/gi,"").replace(/\s*allow=(["'])[^"']*\1/gi,"");return"<iframe".concat(r,' allowfullscreen allow="autoplay; fullscreen">')}):e}let o=e=>{let{source:t,className:r}=e;return t.includes("iframe")?(0,a.jsx)("div",{className:r,dangerouslySetInnerHTML:{__html:n(t)}}):((0,c.useEffect)(()=>{(()=>{let e=document.querySelectorAll(".article-youtube-sharing:empty");0!==e.length&&e.forEach(e=>{e instanceof HTMLElement&&((e,t)=>{let r=document.createElement("iframe"),a=document.createElement("a");if(t){a.href=t;let c=t.match(/[?&]v=([^&]+)/),l="/watch"===a.pathname?"/".concat(null==c?void 0:c[1]):a.pathname;r.setAttribute("width","560"),r.setAttribute("height","315"),r.setAttribute("src","https://www.youtube.com/embed".concat(l)),r.setAttribute("title","YouTube video player"),r.setAttribute("frameborder","0"),r.setAttribute("allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"),r.setAttribute("allowfullscreen","0"),e.appendChild(r)}})(e,e.dataset.youtubeSource)})})()},[]),(0,a.jsx)("div",{"data-youtube-source":t,className:"article-youtube-sharing ".concat(r)}))},s=e=>{let{html:t}=e;(0,c.useEffect)(()=>{u().then(()=>{document.querySelectorAll(".article-ok-sharing").forEach(e=>{if(e instanceof HTMLElement&&e.dataset.okSource){let[t,r]=e.dataset.okSource.split(",");if(t&&r){let a="https://ok.ru/".concat(t,"/topic/").concat(r),c="ok_content_widget_".concat(Math.random().toString(36).substr(2,9));e.innerHTML='<div id="'.concat(c,'"></div>'),window.OK&&window.OK.CONNECT?window.OK.CONNECT.insertContentWidget(c,a):console.error("OK.CONNECT is not available")}}})}).catch(e=>{console.error("Failed to load OK SDK:",e)})},[t]);let r=i(t);return(0,a.jsxs)(a.Fragment,{children:[r&&(0,a.jsx)("div",{"data-ok-source":r,className:"article-ok-sharing"}),!r&&(0,a.jsx)("p",{children:"Error in url parsing - check your url"})]})},u=()=>new Promise((e,t)=>{if(window.OK&&window.OK.CONNECT)return void e();let r=document.createElement("script");r.src="https://connect.ok.ru/connect.js",r.async=!0,r.onload=()=>e(),r.onerror=()=>t(Error("Failed to load OK SDK")),document.head.appendChild(r)}),i=e=>{for(let t of[{regex:/https:\/\/ok\.ru\/([^\/]+)\/topic\/(\d+)/,format:e=>"".concat(e[1],",").concat(e[2])},{regex:/https:\/\/ok\.ru\/group\/(\d+)\/topic\/(\d+)/,format:e=>"group/".concat(e[1],",").concat(e[2])},{regex:/https:\/\/ok\.ru\/([^\/]+)\/statuses\/(\d+)/,format:e=>"".concat(e[1],",").concat(e[2])}]){let r=e.match(t.regex);if(r)return t.format(r)}return null},d=e=>{let{html:t}=e,r=(0,c.useRef)(null),l=n(t);return(0,c.useEffect)(()=>{let e=document.createRange().createContextualFragment(l);r.current&&(r.current.innerHTML="",r.current.appendChild(e))},[l,r]),(0,a.jsx)("div",{ref:r})},m=(0,c.memo)(e=>{let{html:t}=e;return/vk\.(ru|com)/i.test(t)?null:t.includes("t.me")?((0,c.useEffect)(()=>{(()=>{let e=document.querySelectorAll(".article-tg-sharing:empty");0!==e.length&&e.forEach(e=>{e instanceof HTMLElement&&((e,t)=>{let r=document.createElement("a");t&&(r.href=t);let a=document.createElement("script");a.async=!0,a.src="https://telegram.org/js/telegram-widget.js?13",a.dataset.width="100%",t&&a.setAttribute("data-telegram-post",r.pathname),e.appendChild(a)})(e,e.dataset.telegramSource)})})()},[]),(0,a.jsx)("div",{id:"tgEmbed",className:"article-tg-sharing","data-telegram-source":t})):t.includes("telegram")?(0,a.jsx)(d,{html:t}):t.includes("VK.Widgets.Post")||t.includes("vk.com/feed")||t.includes("vk.ru/feed")?null:t.includes("ok.ru")?(0,a.jsx)(s,{html:t}):t.includes("youtube")||t.includes("youtu.be")?(0,a.jsx)(o,{className:l.classes.base,source:t}):(0,a.jsx)(d,{html:t})})},77122:()=>{}}]);

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.