telegram-tt/dist/5769.59e9a929ab3c379e1faf.js

2 lines
330 KiB
JavaScript
Raw Normal View History

2022-09-20 15:02:59 +02:00
"use strict";(self.webpackChunktelegram_t=self.webpackChunktelegram_t||[]).push([[5769],{45910:(e,t,n)=>{n.r(t),n.d(t,{LockScreen:()=>Hr,Main:()=>Dr});var s=n(33555),a=n(83716),i=n(14050),o=(n(89005),n(6137)),r=n(5161),c=n(11192),l=n(70735),d=n(83158);function u(e){const{chatId:t,threadId:n}=(0,c.Bt)(e)||{};return t&&n?(e=(0,r.qr)(e,t,n,!1),e=(0,r.Pb)(e,t,n,void 0)):e}(0,s.iw)("openLocalTextSearch",(e=>{const{chatId:t,threadId:n}=(0,c.Bt)(e)||{};if(t&&n)return(0,r.qr)(e,t,n,!0)})),(0,s.iw)("closeLocalTextSearch",u),(0,s.iw)("setLocalTextSearchQuery",((e,t,n)=>{const{chatId:s,threadId:a}=(0,c.Bt)(e)||{};if(!s||!a)return;const{query:i}=n,o=(0,d.uw)(s,a),{query:u}=e.localTextSearch.byChatThreadKey[o]||{};return i!==u&&(e=(0,r.Pb)(e,s,a,l.D)),(0,r.qr)(e,s,a,!0,i)})),(0,s.iw)("setLocalMediaSearchType",((e,t,n)=>{const{chatId:s}=(0,c.Bt)(e)||{};if(!s)return;const{mediaType:a}=n;return(0,r.z5)(e,s,a)})),(0,s.iw)("openChat",((e,t,n)=>{var s,a;const{id:i,threadId:l=o._f,type:d="thread",shouldReplaceHistory:m=!1}=n,h=(0,c.Bt)(e);return null!==(s=e.premiumModal)&&void 0!==s&&s.promo&&null!==(a=e.premiumModal)&&void 0!==a&&a.isOpen&&(e={...e,premiumModal:{...e.premiumModal,isOpen:!1}}),h&&h.chatId===i&&h.threadId===l&&h.type===d||(i&&(e=(0,r.pf)(e,i,l,"replyStack",[])),e=u(e=(0,r.i9)(e)),e={...e,isStatisticsShown:!1,messages:{...e.messages,contentToBeScheduled:void 0},...i!==e.forwardMessages.toChatId&&{forwardMessages:{}}}),(0,r.Wy)(e,i,l,d,m)})),(0,s.iw)("openPreviousChat",(e=>(0,r.Wy)(e,void 0))),(0,s.iw)("openChatWithInfo",((e,t,n)=>{(0,s.R3)({...e,isChatInfoShown:!0}),t.openChat(n)})),(0,s.iw)("openChatWithText",((e,t,n)=>{const{chatId:s,text:a}=n;return t.openChat({id:s}),{...e,openChatWithText:{chatId:s,text:a}}})),(0,s.iw)("resetChatCreation",(e=>({...e,chatCreation:void 0}))),(0,s.iw)("setNewChatMembersDialogState",((e,t,n)=>({...e,newChatMembersProgress:n}))),(0,s.iw)("openNextChat",((e,t,n)=>{const{targetIndexDelta:s,orderedIds:a}=n,{chatId:i}=(0,c.Bt)(e)||{};if(!i)return void t.openChat({id:a[0]});const o=a.indexOf(i);if(-1===o)return;const r=a[o+s];t.openChat({id:r,shouldReplaceHistory:!0})})),(0,s.iw)("openDeleteChatFolderModal",((e,t,n)=>{const{folderId:s}=n;return{...e,deleteFolderDialogModal:s}})),(0,s.iw)("closeDeleteChatFolderModal",(e=>({...e,deleteFolderDialogModal:void 0})));var m=n(91713),h=n(77361),g=n(60782),p=n(82267),f=n(83099),v=n(50711),I=n(64319);const w=a.ck+a.fK;let y;function Z(e,t,n){const{type:s,threadId:a}=(0,c.Bt)(e)||{},i=v.i0,o="scheduled"===s?(0,c.Fn)(e,t):(0,c.Zw)(e,t);if(!o||!a)return;const r=n.map((e=>o[e])).filter((t=>(0,c._k)(e,t,a).canCopy)).sort(((e,t)=>e.id-t.id)).reduce(((t,n)=>{const s=(0,c.Ur)(e,n);return t.push(`> ${s?(0,d.OU)(i,s):""}:`),t.push(`${(0,d.MK)(i,n,!1,0,void 0,!0)}\n`),t}),[]);(0,I.TE)(r.join("\n"))}(0,s.iw)("setScrollOffset",((e,t,n)=>{const{chatId:s,threadId:a,scrollOffset:i}=n;return(0,r.pf)(e,s,a,"scrollOffset",i)})),(0,s.iw)("setReplyingToId",((e,t,n)=>{const{messageId:s}=n,a=(0,c.Bt)(e);if(!a)return;const{chatId:i,threadId:o}=a;return(0,r.pf)(e,i,o,"replyingToId",s)})),(0,s.iw)("setEditingId",((e,t,n)=>{const{messageId:s}=n,a=(0,c.Bt)(e);if(!a)return;const{chatId:i,threadId:o,type:l}=a,d="scheduled"===l?"editingScheduledId":"editingId";return(0,r.pf)(e,i,o,d,s)})),(0,s.iw)("setEditingDraft",((e,t,n)=>{const{text:s,chatId:a,threadId:i,type:o}=n,c="scheduled"===o?"editingScheduledDraft":"editingDraft";return(0,r.pf)(e,a,i,c,s)})),(0,s.iw)("editLastMessage",(e=>{const{chatId:t,threadId:n}=(0,c.Bt)(e)||{};if(!t||!n)return;const s=(0,c.Zw)(e,t),a=(0,c.Cb)(e,t,n);if(!s||!a)return;const i=(0,g.dF)(a,(t=>Boolean(s[t]&&(0,c._k)(e,s[t],n).canEdit)));return i?(0,r.pf)(e,t,n,"editingId",i):void 0})),(0,s.iw)("replyToNextMessage",((e,t,n)=>{const{targetIndexDelta:s}=n,{chatId:a,threadId:i}=(0,c.Bt)(e)||{};if(!a||!i)return;const r=(0,c.Zw)(e,a),l=(0,c.Cb)(e,a,i);if(!r||!l)return;const d=(0,c.Yy)(e,a,i);let u;if((0,c.b9)(e,a,i)&&d){const e=Object.keys(r),t=e.indexOf(d.toString())+s;u=t<=e.length+1&&t>=0?Number(e[t]):void 0}else if(i===o._f){var m;const t=(0,c.Z1)(e,a);u=null==
//# sourceMappingURL=5769.59e9a929ab3c379e1faf.js.map