Files
ST-Amily2-Chat-Optimisation/ui/page-window.js
2025-07-21 07:21:53 +08:00

2 lines
6.2 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function _0x3af0(_0x8bc182,_0x2352fd){const _0x147062=_0x1470();return _0x3af0=function(_0x3af0b3,_0x45cf73){_0x3af0b3=_0x3af0b3-0xc0;let _0x32c858=_0x147062[_0x3af0b3];return _0x32c858;},_0x3af0(_0x8bc182,_0x2352fd);}function _0x1470(){const _0x57d586=['</button>\x0a\x20\x20\x20\x20','showModal','close','makeHtml','find','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</h3>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-content\x22\x20style=\x22height:\x2060vh;\x20overflow-y:\x20auto;\x20background:\x20rgba(0,0,0,0.2);\x20padding:\x2015px;\x20border-radius:\x205px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','3084720chddXf','Converter','.popup-button-ok','error','onload','appendChild','appendTo','1127562sJQcNX','script','body','[Amily-翰林院]\x20紧急报告加载教程内容\x20[','click','20864FeQyme','showdown','翰林院回报','7134060GOtEbk','3466554webbpH','createElement','remove','get','<button\x20class=\x22popup-button-cancel\x20menu_button\x20secondary\x20interactable\x22>','</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-controls\x22><div\x20class=\x22popup-button-ok\x20menu_button\x20menu_button_primary\x20interactable\x22>朕已阅</div></div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</dialog>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</h3>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-content\x22\x20style=\x22height:\x2060vh;\x20overflow-y:\x20auto;\x20background:\x20rgba(0,0,0,0.2);\x20padding:\x2015px;\x20border-radius:\x205px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22mes_text\x22>','\x0a\x20\x20\x20\x20\x20\x20\x20\x20<button\x20class=\x22popup-button-ok\x20menu_button\x20menu_button_primary\x20interactable\x22>','1057948rjnSaV','message','onerror','2896735RkwuYf','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<dialog\x20class=\x22popup\x20wide_dialogue_popup\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-body\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h3\x20style=\x22margin-top:0;\x20color:\x20#eee;\x20border-bottom:\x201px\x20solid\x20rgba(255,255,255,0.2);\x20padding-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<i\x20class=\x22fas\x20fa-book-open\x22\x20style=\x22color:\x20#58a6ff;\x22></i>\x20','head','.popup-button-cancel','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-controls\x22\x20style=\x22display:\x20flex;\x20justify-content:\x20flex-end;\x20gap:\x2010px;\x22>','4dosyXu'];_0x1470=function(){return _0x57d586;};return _0x1470();}(function(_0x55f7aa,_0x4ee292){const _0x31fe49=_0x3af0,_0x1481cd=_0x55f7aa();while(!![]){try{const _0x2d1bec=parseInt(_0x31fe49(0xe5))/0x1+parseInt(_0x31fe49(0xd9))/0x2+parseInt(_0x31fe49(0xd4))/0x3+-parseInt(_0x31fe49(0xc6))/0x4*(-parseInt(_0x31fe49(0xc1))/0x5)+-parseInt(_0x31fe49(0xdc))/0x6+parseInt(_0x31fe49(0xdd))/0x7+-parseInt(_0x31fe49(0xcd))/0x8;if(_0x2d1bec===_0x4ee292)break;else _0x1481cd['push'](_0x1481cd['shift']());}catch(_0x5ac335){_0x1481cd['push'](_0x1481cd['shift']());}}}(_0x1470,0xe684b));import{messageFormatting}from'/script.js';function loadShowdown(){return new Promise((_0x2f310b,_0xcabed4)=>{const _0x515597=_0x3af0;if(window[_0x515597(0xda)]){_0x2f310b();return;}const _0x509e21=document[_0x515597(0xde)](_0x515597(0xd5));_0x509e21['src']='https://cdnjs.cloudflare.com/ajax/libs/showdown/2.1.0/showdown.min.js',_0x509e21[_0x515597(0xd1)]=_0x2f310b,_0x509e21[_0x515597(0xc0)]=_0xcabed4,document[_0x515597(0xc3)][_0x515597(0xd2)](_0x509e21);});}export async function showContentModal(_0x322fe7,_0x5bfe47){const _0x3e3d79=_0x3af0;try{await loadShowdown();const _0x18273a=await $[_0x3e3d79(0xe0)](_0x5bfe47),_0x250528=new showdown[(_0x3e3d79(0xce))]({'tables':!![],'strikethrough':!![],'ghCodeBlocks':!![]}),_0x58614b=_0x250528[_0x3e3d79(0xca)](_0x18273a),_0x25f37e=_0x3e3d79(0xc2)+_0x322fe7+_0x3e3d79(0xe3)+_0x58614b+_0x3e3d79(0xe2),_0x3e56a4=$(_0x25f37e)[_0x3e3d79(0xd3)](_0x3e3d79(0xd6)),_0x3e705d=()=>{const _0x51052a=_0x3e3d79;_0x3e56a4[0x0][_0x51052a(0xc9)](),_0x3e56a4[_0x51052a(0xdf)]();};_0x3e56a4[_0x3e3d79(0xcb)](_0x3e3d79(0xcf))['on']('click',_0x3e705d),_0x3e56a4[0x0][_0x3e3d79(0xc8)]();}catch(_0x4892cc){console[_0x3e3d79(0xd0)](_0x3e3d79(0xd7)+_0x322fe7+']\x20时发生意外:',_0x4892cc),toastr[_0x3e3d79(0xd0)]('无法加载教程:\x20'+_0x4892cc[_0x3e3d79(0xe6)],_0x3e3d79(0xdb));}}export function showHtmlModal(_0x954684,_0xa3de2c,_0x7a5790={}){const _0x123de4=_0x3af0,{okText:okText='确认',cancelText:cancelText='取消',onOk:_0xb332db,onCancel:_0x2128ea,showCancel:showCancel=!![]}=_0x7a5790,_0xf932b8='\x0a\x20\x20\x20\x20\x20\x20\x20\x20'+(showCancel?_0x123de4(0xe1)+cancelText+'</button>':'')+_0x123de4(0xe4)+okText+_0x123de4(0xc7),_0x50dce1='\x0a\x20\x20\x20\x20\x20\x20\x20\x20<dialog\x20class=\x22popup\x20wide_dialogue_popup\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<div\x20class=\x22popup-body\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<h3\x20style=\x22margin-top:0;\x20color:\x20#eee;\x20border-bottom:\x201px\x20solid\x20rgba(255,255,255,0.2);\x20padding-bottom:\x2010px;\x22>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<i\x20class=\x22fas\x20fa-edit\x22\x20style=\x22color:\x20#58a6ff;\x22></i>\x20'+_0x954684+_0x123de4(0xcc)+_0xa3de2c+_0x123de4(0xc5)+_0xf932b8+'</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</div>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</dialog>',_0x1b7a34=$(_0x50dce1)[_0x123de4(0xd3)](_0x123de4(0xd6)),_0x48423c=()=>{const _0x3f71e5=_0x123de4;_0x1b7a34[0x0][_0x3f71e5(0xc9)](),_0x1b7a34[_0x3f71e5(0xdf)]();};return _0x1b7a34['find'](_0x123de4(0xcf))['on'](_0x123de4(0xd8),()=>{if(_0xb332db){const _0x1e11e5=_0xb332db(_0x1b7a34);_0x1e11e5!==![]&&_0x48423c();}else _0x48423c();}),showCancel&&_0x1b7a34[_0x123de4(0xcb)](_0x123de4(0xc4))['on']('click',()=>{_0x2128ea&&_0x2128ea(),_0x48423c();}),_0x1b7a34[0x0][_0x123de4(0xc8)](),_0x1b7a34;}