telegram-tt/dist/442.d376d12dcf3d4f89fe80.js

2 lines
301 KiB
JavaScript
Raw Normal View History

2022-01-21 17:33:00 +01:00
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[442],{1442:(e,t,n)=>{n.r(t),n.d(t,{ArchivedChats:()=>ns,AttachMenu:()=>gr,AttachmentModal:()=>Js,BotCommandMenu:()=>Cr,BotCommandTooltip:()=>Er,CalendarModal:()=>Ke,ChatFolderModal:()=>ss,ContactList:()=>ja,ContextMenuContainer:()=>bs,CustomSendMenu:()=>br,DeleteMessageModal:()=>We,Dialogs:()=>Ue,DropArea:()=>Ir.Z,EmojiInteractionAnimation:()=>ht,EmojiTooltip:()=>Sr,ForwardPicker:()=>Be,GifSearch:()=>Gr,HeaderMenuContainer:()=>Ns,HistoryCalendar:()=>qe,InlineBotTooltip:()=>Rr,LeftSearch:()=>tn,Management:()=>Eo,MediaViewer:()=>be,MentionTooltip:()=>Os,MessageSelectToolbar:()=>rt,MobileSearch:()=>ks,NewChat:()=>es,NewChatStep1:()=>qa,NewChatStep2:()=>Wa,Notifications:()=>Ge,PaymentModal:()=>zo,PinMessageModal:()=>Qe,PollModal:()=>_s,PollResults:()=>Xr,ReactorListModal:()=>ct,ReceiptModal:()=>Vo,RightSearch:()=>$r,SafeLinkModal:()=>_e,SeenByModal:()=>ot,SendAsMenu:()=>Fr,Settings:()=>Ha,StickerSearch:()=>Or,StickerSetModal:()=>Is,StickerTooltip:()=>fr,SymbolMenu:()=>vr,TextFormatter:()=>yr.Z,UnpinAllMessagesModal:()=>et});var a=n(4050),s=n(5116),r=n(6137),o=n(1713),i=n(3716),l=n(2937),c=n(5326),d=n(8674),m=n(6590),u=n(9107),h=n(6202),Z=n(2566),P=n(7204),v=n(2858),g=n(1638),p=n(396),E=n(3989),C=n(1174),f=n(7361),b=n(3858),I=n(4399),y=n(935),N=n(3227);function S(e,t){const n=document.createElement("div");n.classList.add("ghost");const a=new Image;if(a.draggable=!1,a.oncontextmenu=N.Z,"string"==typeof e?a.src=e:e instanceof HTMLVideoElement?a.src=e.poster:a.src=e.src,n.appendChild(a),t===o.bZ.ProfileAvatar||t===o.bZ.SettingsAvatar){n.classList.add("ProfileInfo"),t===o.bZ.SettingsAvatar&&n.classList.add("self");const e=document.querySelector(t===o.bZ.ProfileAvatar?"#RightColumn .ProfileInfo .info":"#Settings .ProfileInfo .info");e&&n.appendChild(e.cloneNode(!0))}return n}function w(e,t){const n=document.querySelector(".Transition__slide--active > .MessageList");let a=e.offsetTop+t.closest(".content-inner, .WebPage").offsetTop;return e.id.includes("album-media-")&&(a+=e.parentElement.offsetTop+e.closest(".Message").offsetTop),a>n.scrollTop&&a+t.offsetHeight<n.scrollTop+n.offsetHeight}function k(e,t){Object.assign(e.style,t)}function M(e,t){let n,a;switch(e){case o.bZ.Album:case o.bZ.ScheduledAlbum:n=`.Transition__slide--active > .MessageList #album-media-${t.id}`,a=".full-media";break;case o.bZ.SharedMedia:n=`#shared-media${t.id}`,a="img";break;case o.bZ.SearchResult:n=`#search-media${t.id}`,a="img";break;case o.bZ.MiddleHeaderAvatar:n=".MiddleHeader .Transition__slide--active .ChatInfo .Avatar",a="img.avatar-media";break;case o.bZ.SettingsAvatar:n="#Settings .ProfileInfo .Transition__slide--active .ProfilePhoto",a="img.avatar-media";break;case o.bZ.ProfileAvatar:n="#RightColumn .ProfileInfo .Transition__slide--active .ProfilePhoto",a="img.avatar-media";break;case o.bZ.ScheduledInline:case o.bZ.Inline:default:n=`.Transition__slide--active > .MessageList #message${t.id}`,a=".message-content .full-media, .message-content .thumbnail"}const s=document.querySelector(n),r=s&&s.querySelectorAll(a);return{container:s,mediaEl:null==r?void 0:r[r.length-1]}}function T(e,t){switch(t){case o.bZ.Album:case o.bZ.ScheduledAlbum:case o.bZ.Inline:case o.bZ.ScheduledInline:e.classList.add("rounded-corners");break;case o.bZ.SharedMedia:case o.bZ.SettingsAvatar:case o.bZ.ProfileAvatar:case o.bZ.SearchResult:e.firstChild.style.objectFit="cover";break;case o.bZ.MiddleHeaderAvatar:e.classList.add("circle")}}var L=n(231),A=n(126),R=n(2255),F=n(3106),B=n(8964),$=n(9196);const D=(0,a.X$)((0,s.c$)(((e,{message:t})=>({isDownloading:!!t&&(0,g.te)(e,t),isProtected:(0,g.EV)(e,t)})))((({mediaData:e,isVideo:t,isZoomed:n,message:r,fileName:o,isAvatar:i,isDownloading:l,isProtected:c,onCloseMediaViewer:d,onForward:m,onZoomToggle:h})=>{const{downloadMessageMedia:P,cancelMessageMediaDownload:g}=(0,s.uC)(),{loadProgress:p}=(0,Z.Z)(r&&(0,v.Ti)(r,"download"),!l),E=(0,a.I4)((()=>{l?g({message:r}):P({message:r})}),[g,P,l,r]),C=(0,u.Z)(),b=(0,a.Ye)((()=>({onTrigger:e,isOpen:t})=>a.ZP.create
//# sourceMappingURL=442.d376d12dcf3d4f89fe80.js.map