vome-core 0.1.31 → 0.1.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-richtext-extensions.d.ts +4 -2
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/components/vm-richtext.vue +122 -64
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/mitt.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +18 -73
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x17a40c=_0x2cd9;(function(_0x57ca15,_0x3e3b7b){const _0x37d34b=_0x2cd9,_0x4f4e05=_0x57ca15();while(!![]){try{const _0x4d06cc=parseInt(_0x37d34b(0x154))/0x1*(-parseInt(_0x37d34b(0x15c))/0x2)+-parseInt(_0x37d34b(0x167))/0x3+-parseInt(_0x37d34b(0x14e))/0x4+parseInt(_0x37d34b(0x149))/0x5+-parseInt(_0x37d34b(0x153))/0x6+-parseInt(_0x37d34b(0x14f))/0x7*(-parseInt(_0x37d34b(0x14b))/0x8)+parseInt(_0x37d34b(0x151))/0x9*(parseInt(_0x37d34b(0x15d))/0xa);if(_0x4d06cc===_0x3e3b7b)break;else _0x4f4e05['push'](_0x4f4e05['shift']());}catch(_0x30ac94){_0x4f4e05['push'](_0x4f4e05['shift']());}}}(_0x39ad,0xd2170));const ORG=_0x17a40c(0x148);export function serviceUrlFromDocs(_0x2de4b1){const _0x137019=_0x17a40c,_0x42a134=new URL(_0x2de4b1),_0x88c8ed=_0x42a134[_0x137019(0x162)][_0x137019(0x152)](/^www\./,'')[_0x137019(0x152)](/^service\./,'');return _0x42a134[_0x137019(0x161)]+_0x137019(0x14d)+_0x88c8ed;}export function seatApiBaseFromDocs(_0x4b25ad){const _0x343bdc=_0x17a40c;return serviceUrlFromDocs(_0x4b25ad)+_0x343bdc(0x14c);}export function licenseIssueUrlFromDocs(_0x238b35){const _0x15194f=_0x17a40c;return serviceUrlFromDocs(_0x238b35)+_0x15194f(0x15f);}function _0x2cd9(_0x360fa3,_0x55567f){_0x360fa3=_0x360fa3-0x148;const _0x39adfa=_0x39ad();let _0x2cd9f9=_0x39adfa[_0x360fa3];if(_0x2cd9['fdmLQF']===undefined){var _0x128897=function(_0x58a374){const _0x712cc0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2de4b1='',_0x42a134='';for(let _0x88c8ed=0x0,_0x4b25ad,_0x238b35,_0x43251b=0x0;_0x238b35=_0x58a374['charAt'](_0x43251b++);~_0x238b35&&(_0x4b25ad=_0x88c8ed%0x4?_0x4b25ad*0x40+_0x238b35:_0x238b35,_0x88c8ed++%0x4)?_0x2de4b1+=String['fromCharCode'](0xff&_0x4b25ad>>(-0x2*_0x88c8ed&0x6)):0x0){_0x238b35=_0x712cc0['indexOf'](_0x238b35);}for(let _0x2ce2d5=0x0,_0x2104b2=_0x2de4b1['length'];_0x2ce2d5<_0x2104b2;_0x2ce2d5++){_0x42a134+='%'+('00'+_0x2de4b1['charCodeAt'](_0x2ce2d5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x42a134);};_0x2cd9['SvLFex']=_0x128897,_0x2cd9['dYwsPp']={},_0x2cd9['fdmLQF']=!![];}const _0x3e5ea4=_0x39adfa[0x0],_0x4b5702=_0x360fa3+_0x3e5ea4,_0x3c9e07=_0x2cd9['dYwsPp'][_0x4b5702];return!_0x3c9e07?(_0x2cd9f9=_0x2cd9['SvLFex'](_0x2cd9f9),_0x2cd9['dYwsPp'][_0x4b5702]=_0x2cd9f9):_0x2cd9f9=_0x3c9e07,_0x2cd9f9;}function giteeArchive(_0x43251b){const _0x4e0487=_0x17a40c;return'https://gitee.com/'+ORG+'/'+_0x43251b+_0x4e0487(0x156);}function githubArchive(_0x2ce2d5){const _0x18eee2=_0x17a40c;return _0x18eee2(0x15e)+ORG+'/'+_0x2ce2d5+_0x18eee2(0x158);}function _0x39ad(){const _0x2b99d3=['ChjVDg9JB2W','Ag9ZDg5HBwu','5yMn56UVicSG5zco56UV','DM9Tzs1WBhvNAw4TzNjVBNq','DM9Tzs1WBhvNAw4TzNvSBa','z2L0zwu','ndK4mtyXmwzpsgjAua','zNjVBNrLBMq','yMfJA2vUza','DM9TzwTQ','nJyWotCZmeXgtgDTAq','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','mteYmty3ndruA1v6B1a','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','lY9Zzxj2AwnLlG','odG1mtuYA2vsrfvw','n0nTqvbvvq','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','oxbpA2f6Da','CMvWBgfJzq','odeXnJi3mM5wBxbUDq','mvrxrLP4BG','57QV5yMn56UV','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','DM9Tzs1WBhvNAw4TC2vYDMLJzq','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','Ahr0Chm6lY92B21LA2OUy29T','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','57QV5zco56UV','mtGYote4nLrrr1vcyW','mJi4ntyXotbmrMHZwhi','Ahr0Chm6lY9NAxrODwiUy29TlW','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','Ahr0Chm6lY9NAxrLzs5JB20V'];_0x39ad=function(){return _0x2b99d3;};return _0x39ad();}function giteeRepo(_0x2104b2){const _0x20d7a9=_0x17a40c;return _0x20d7a9(0x160)+ORG+'/'+_0x2104b2;}function githubRepo(_0x88aa37){const _0x5a737c=_0x17a40c;return _0x5a737c(0x15e)+ORG+'/'+_0x88aa37;}const docsUrl=_0x17a40c(0x159);export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+'/plugins/upload','mirrors':{'prefer':_0x17a40c(0x166),'giteeOrg':'https://gitee.com/'+ORG,'githubOrg':_0x17a40c(0x15e)+ORG},'scaffolds':{'full':{'key':'full','title':_0x17a40c(0x163),'desc':_0x17a40c(0x150),'repo':_0x17a40c(0x165),'repoUrl':giteeRepo(_0x17a40c(0x165)),'githubRepoUrl':githubRepo(_0x17a40c(0x165)),'downloadUrl':giteeArchive(_0x17a40c(0x165)),'githubDownloadUrl':githubArchive(_0x17a40c(0x165))},'backend':{'key':_0x17a40c(0x169),'title':_0x17a40c(0x15b),'desc':_0x17a40c(0x14a),'repo':'vome-plugin-service','repoUrl':giteeRepo(_0x17a40c(0x157)),'githubRepoUrl':githubRepo(_0x17a40c(0x157)),'downloadUrl':giteeArchive(_0x17a40c(0x157)),'githubDownloadUrl':githubArchive(_0x17a40c(0x157))},'frontend':{'key':_0x17a40c(0x168),'title':_0x17a40c(0x155),'desc':_0x17a40c(0x15a),'repo':'vome-plugin-front','repoUrl':giteeRepo('vome-plugin-front'),'githubRepoUrl':githubRepo(_0x17a40c(0x164)),'downloadUrl':giteeArchive(_0x17a40c(0x164)),'githubDownloadUrl':githubArchive('vome-plugin-front')}}};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
1
2
|
/** OSS 直传后的 `<video>` 块 */
|
|
2
|
-
export declare const VmRichtextVideo: any
|
|
3
|
+
export declare const VmRichtextVideo: Node<any, any>;
|
|
3
4
|
declare module '@tiptap/core' {
|
|
4
5
|
interface Commands<ReturnType> {
|
|
5
6
|
video: {
|
|
@@ -9,4 +10,5 @@ declare module '@tiptap/core' {
|
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
/** 常用表情(面板展示;可继续扩) */
|
|
14
|
+
export declare const VM_RICHTEXT_EMOJIS: readonly ["😀", "😃", "😄", "😁", "😆", "😅", "🤣", "😂", "🙂", "🙃", "😉", "😊", "😇", "🥰", "😍", "🤩", "😘", "😗", "😚", "😙", "😋", "😛", "😜", "🤪", "😝", "🤑", "🤗", "🤭", "🤫", "🤔", "🤐", "🤨", "😐", "😑", "😶", "😏", "😒", "🙄", "😬", "🤥", "😌", "😔", "😪", "🤤", "😴", "😷", "🤒", "🤕", "🤢", "🤮", "🥵", "🥶", "🥴", "😵", "🤯", "🤠", "🥳", "😎", "🤓", "🧐", "😕", "😟", "🙁", "☹️", "😮", "😯", "😲", "😳", "🥺", "😦", "😧", "😨", "😰", "😥", "😢", "😭", "😱", "😖", "😣", "😞", "😓", "😩", "😫", "🥱", "😤", "😡", "😠", "🤬", "😈", "👿", "👋", "🤚", "🖐", "✋", "🖖", "👌", "🤌", "🤏", "✌️", "🤞", "🤟", "🤘", "🤙", "👈", "👉", "👆", "🖕", "👇", "☝️", "👍", "👎", "✊", "👊", "🤛", "🤜", "👏", "🙌", "👐", "🤲", "🤝", "🙏", "💪", "🦾", "✍️", "💅", "🤳", "❤️", "🧡", "💛", "💚", "💙", "💜", "🖤", "🤍", "🤎", "💔", "❣️", "💕", "💞", "💓", "💗", "💖", "💘", "💝", "💟", "☮️", "✝️", "☪️", "🕉", "☸️", "✡️", "🔯", "🕎", "☯️", "☦️", "🛐", "⭐", "🌟", "✨", "⚡", "🔥", "💥", "☀️", "🌙", "⭐️", "🌈", "✅", "❌", "⭕", "❗", "❓", "‼️", "⁉️", "💯", "🔔", "🔕", "📌", "📍", "📎", "🔗", "🔒", "🔓", "🔑", "🗝", "💡", "🔦", "📝", "✏️", "✒️", "🖊", "🖋", "🖌", "🖍", "💼", "📁", "📂", "📅", "📆", "🗓", "📇", "📈", "📉", "📊", "📋", "📤", "📥", "📦", "📫", "📬", "📭", "📮", "📯", "📜", "📃", "📄", "📑", "☕", "🍵", "🧃", "🥤", "🧋", "🍺", "🍻", "🥂", "🍷", "🍸", "🍕", "🍔", "🍟", "🌭", "🍿", "🍩", "🍪", "🎂", "🍰", "🧁", "🍎", "🍊", "🍋", "🍌", "🍉", "🍇", "🍓", "🫐", "🍒", "🍑", "⚽", "🏀", "🏈", "⚾", "🎾", "🏐", "🏉", "🎱", "🏓", "🏸", "🎮", "🕹", "🎲", "🧩", "🎯", "🎳", "🎰", "🎸", "🎹", "🥁", "🎤", "🎧", "🎬", "🎥", "📷", "📸", "📹", "📺", "📻", "🎙", "🚀", "✈️", "🛩", "🛫", "🛬", "🛰", "💺", "🛸", "🚁", "🛶", "🚗", "🚕", "🚙", "🚌", "🚎", "🏎", "🚓", "🚑", "🚒", "🚐", "🏠", "🏡", "🏢", "🏣", "🏤", "🏥", "🏦", "🏨", "🏩", "🏪", "🐶", "🐱", "🐭", "🐹", "🐰", "🦊", "🐻", "🐼", "🐻❄️", "🐨", "🐯", "🦁", "🐮", "🐷", "🐸", "🐵", "🙈", "🙉", "🙊", "🐒", "🐔", "🐧", "🐦", "🐤", "🐣", "🐥", "🦆", "🦅", "🦉", "🦇", "🎉", "🎊", "🎈", "🎁", "🎀", "🎗", "🎫", "🎟", "🏆", "🏅"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3963(_0x1955b3,_0x468917){_0x1955b3=_0x1955b3-0x124;const _0x1a6722=_0x1a67();let _0x3963f7=_0x1a6722[_0x1955b3];if(_0x3963['mBbQAV']===undefined){var _0x56760f=function(_0x968797){const _0x5d2b14='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4d6501='',_0x34f520='';for(let _0x4d1447=0x0,_0x157e9e,_0x28ccce,_0x2dcc77=0x0;_0x28ccce=_0x968797['charAt'](_0x2dcc77++);~_0x28ccce&&(_0x157e9e=_0x4d1447%0x4?_0x157e9e*0x40+_0x28ccce:_0x28ccce,_0x4d1447++%0x4)?_0x4d6501+=String['fromCharCode'](0xff&_0x157e9e>>(-0x2*_0x4d1447&0x6)):0x0){_0x28ccce=_0x5d2b14['indexOf'](_0x28ccce);}for(let _0x2599f9=0x0,_0x383f95=_0x4d6501['length'];_0x2599f9<_0x383f95;_0x2599f9++){_0x34f520+='%'+('00'+_0x4d6501['charCodeAt'](_0x2599f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34f520);};_0x3963['DtVqgt']=_0x56760f,_0x3963['tetdjR']={},_0x3963['mBbQAV']=!![];}const _0x3a99d9=_0x1a6722[0x0],_0x36bdbf=_0x1955b3+_0x3a99d9,_0x5758b3=_0x3963['tetdjR'][_0x36bdbf];return!_0x5758b3?(_0x3963f7=_0x3963['DtVqgt'](_0x3963f7),_0x3963['tetdjR'][_0x36bdbf]=_0x3963f7):_0x3963f7=_0x5758b3,_0x3963f7;}const _0x35941a=_0x3963;(function(_0x11111b,_0x3ccdd3){const _0x133cf7=_0x3963,_0x36b55f=_0x11111b();while(!![]){try{const _0x5da10c=-parseInt(_0x133cf7(0x131))/0x1+-parseInt(_0x133cf7(0x129))/0x2+parseInt(_0x133cf7(0x12e))/0x3*(-parseInt(_0x133cf7(0x132))/0x4)+parseInt(_0x133cf7(0x133))/0x5+parseInt(_0x133cf7(0x126))/0x6*(-parseInt(_0x133cf7(0x130))/0x7)+-parseInt(_0x133cf7(0x12b))/0x8*(parseInt(_0x133cf7(0x12a))/0x9)+-parseInt(_0x133cf7(0x134))/0xa*(-parseInt(_0x133cf7(0x135))/0xb);if(_0x5da10c===_0x3ccdd3)break;else _0x36b55f['push'](_0x36b55f['shift']());}catch(_0x45e9c1){_0x36b55f['push'](_0x36b55f['shift']());}}}(_0x1a67,0x49ebb));import{Node,mergeAttributes}from'@tiptap/core';export const VmRichtextVideo=Node[_0x35941a(0x125)]({'name':'video','group':_0x35941a(0x127),'atom':!![],'selectable':!![],'draggable':!![],'addAttributes'(){return{'src':{'default':null},'controls':{'default':!![]}};},'parseHTML'(){const _0x4f3f18=_0x35941a;return[{'tag':_0x4f3f18(0x12d)}];},'renderHTML'({HTMLAttributes:_0x4d6501}){const _0x521656=_0x35941a;return[_0x521656(0x12c),mergeAttributes(_0x4d6501,{'controls':!![],'style':_0x521656(0x12f)})];},'addCommands'(){const _0x325824=_0x35941a;return{'setVideo':_0x34f520=>({commands:_0x4d1447})=>_0x4d1447[_0x325824(0x128)]({'type':this[_0x325824(0x124)],'attrs':_0x34f520})};}});export const VM_RICHTEXT_EMOJIS=['\uD83D\uDE00','\uD83D\uDE03','\uD83D\uDE04','\uD83D\uDE01','\uD83D\uDE06','\uD83D\uDE05','\uD83E\uDD23','\uD83D\uDE02','\uD83D\uDE42','\uD83D\uDE43','\uD83D\uDE09','\uD83D\uDE0A','\uD83D\uDE07','\uD83E\uDD70','\uD83D\uDE0D','\uD83E\uDD29','\uD83D\uDE18','\uD83D\uDE17','\uD83D\uDE1A','\uD83D\uDE19','\uD83D\uDE0B','\uD83D\uDE1B','\uD83D\uDE1C','\uD83E\uDD2A','\uD83D\uDE1D','\uD83E\uDD11','\uD83E\uDD17','\uD83E\uDD2D','\uD83E\uDD2B','\uD83E\uDD14','\uD83E\uDD10','\uD83E\uDD28','\uD83D\uDE10','\uD83D\uDE11','\uD83D\uDE36','\uD83D\uDE0F','\uD83D\uDE12','\uD83D\uDE44','\uD83D\uDE2C','\uD83E\uDD25','\uD83D\uDE0C','\uD83D\uDE14','\uD83D\uDE2A','\uD83E\uDD24','\uD83D\uDE34','\uD83D\uDE37','\uD83E\uDD12','\uD83E\uDD15','\uD83E\uDD22','\uD83E\uDD2E','\uD83E\uDD75','\uD83E\uDD76','\uD83E\uDD74','\uD83D\uDE35','\uD83E\uDD2F','\uD83E\uDD20','\uD83E\uDD73','\uD83D\uDE0E','\uD83E\uDD13','\uD83E\uDDD0','\uD83D\uDE15','\uD83D\uDE1F','\uD83D\uDE41','☹️','\uD83D\uDE2E','\uD83D\uDE2F','\uD83D\uDE32','\uD83D\uDE33','\uD83E\uDD7A','\uD83D\uDE26','\uD83D\uDE27','\uD83D\uDE28','\uD83D\uDE30','\uD83D\uDE25','\uD83D\uDE22','\uD83D\uDE2D','\uD83D\uDE31','\uD83D\uDE16','\uD83D\uDE23','\uD83D\uDE1E','\uD83D\uDE13','\uD83D\uDE29','\uD83D\uDE2B','\uD83E\uDD71','\uD83D\uDE24','\uD83D\uDE21','\uD83D\uDE20','\uD83E\uDD2C','\uD83D\uDE08','\uD83D\uDC7F','\uD83D\uDC4B','\uD83E\uDD1A','\uD83D\uDD90','✋','\uD83D\uDD96','\uD83D\uDC4C','\uD83E\uDD0C','\uD83E\uDD0F','✌️','\uD83E\uDD1E','\uD83E\uDD1F','\uD83E\uDD18','\uD83E\uDD19','\uD83D\uDC48','\uD83D\uDC49','\uD83D\uDC46','\uD83D\uDD95','\uD83D\uDC47','☝️','\uD83D\uDC4D','\uD83D\uDC4E','✊','\uD83D\uDC4A','\uD83E\uDD1B','\uD83E\uDD1C','\uD83D\uDC4F','\uD83D\uDE4C','\uD83D\uDC50','\uD83E\uDD32','\uD83E\uDD1D','\uD83D\uDE4F','\uD83D\uDCAA','\uD83E\uDDBE','✍️','\uD83D\uDC85','\uD83E\uDD33','❤️','\uD83E\uDDE1','\uD83D\uDC9B','\uD83D\uDC9A','\uD83D\uDC99','\uD83D\uDC9C','\uD83D\uDDA4','\uD83E\uDD0D','\uD83E\uDD0E','\uD83D\uDC94','❣️','\uD83D\uDC95','\uD83D\uDC9E','\uD83D\uDC93','\uD83D\uDC97','\uD83D\uDC96','\uD83D\uDC98','\uD83D\uDC9D','\uD83D\uDC9F','☮️','✝️','☪️','\uD83D\uDD49','☸️','✡️','\uD83D\uDD2F','\uD83D\uDD4E','☯️','☦️','\uD83D\uDED0','⭐','\uD83C\uDF1F','✨','⚡','\uD83D\uDD25','\uD83D\uDCA5','☀️','\uD83C\uDF19','⭐️','\uD83C\uDF08','✅','❌','⭕','❗','❓','‼️','⁉️','\uD83D\uDCAF','\uD83D\uDD14','\uD83D\uDD15','\uD83D\uDCCC','\uD83D\uDCCD','\uD83D\uDCCE','\uD83D\uDD17','\uD83D\uDD12','\uD83D\uDD13','\uD83D\uDD11','\uD83D\uDDDD','\uD83D\uDCA1','\uD83D\uDD26','\uD83D\uDCDD','✏️','✒️','\uD83D\uDD8A','\uD83D\uDD8B','\uD83D\uDD8C','\uD83D\uDD8D','\uD83D\uDCBC','\uD83D\uDCC1','\uD83D\uDCC2','\uD83D\uDCC5','\uD83D\uDCC6','\uD83D\uDDD3','\uD83D\uDCC7','\uD83D\uDCC8','\uD83D\uDCC9','\uD83D\uDCCA','\uD83D\uDCCB','\uD83D\uDCE4','\uD83D\uDCE5','\uD83D\uDCE6','\uD83D\uDCEB','\uD83D\uDCEC','\uD83D\uDCED','\uD83D\uDCEE','\uD83D\uDCEF','\uD83D\uDCDC','\uD83D\uDCC3','\uD83D\uDCC4','\uD83D\uDCD1','☕','\uD83C\uDF75','\uD83E\uDDC3','\uD83E\uDD64','\uD83E\uDDCB','\uD83C\uDF7A','\uD83C\uDF7B','\uD83E\uDD42','\uD83C\uDF77','\uD83C\uDF78','\uD83C\uDF55','\uD83C\uDF54','\uD83C\uDF5F','\uD83C\uDF2D','\uD83C\uDF7F','\uD83C\uDF69','\uD83C\uDF6A','\uD83C\uDF82','\uD83C\uDF70','\uD83E\uDDC1','\uD83C\uDF4E','\uD83C\uDF4A','\uD83C\uDF4B','\uD83C\uDF4C','\uD83C\uDF49','\uD83C\uDF47','\uD83C\uDF53','\uD83E\uDED0','\uD83C\uDF52','\uD83C\uDF51','⚽','\uD83C\uDFC0','\uD83C\uDFC8','⚾','\uD83C\uDFBE','\uD83C\uDFD0','\uD83C\uDFC9','\uD83C\uDFB1','\uD83C\uDFD3','\uD83C\uDFF8','\uD83C\uDFAE','\uD83D\uDD79','\uD83C\uDFB2','\uD83E\uDDE9','\uD83C\uDFAF','\uD83C\uDFB3','\uD83C\uDFB0','\uD83C\uDFB8','\uD83C\uDFB9','\uD83E\uDD41','\uD83C\uDFA4','\uD83C\uDFA7','\uD83C\uDFAC','\uD83C\uDFA5','\uD83D\uDCF7','\uD83D\uDCF8','\uD83D\uDCF9','\uD83D\uDCFA','\uD83D\uDCFB','\uD83C\uDF99','\uD83D\uDE80','✈️','\uD83D\uDEE9','\uD83D\uDEEB','\uD83D\uDEEC','\uD83D\uDEF0','\uD83D\uDCBA','\uD83D\uDEF8','\uD83D\uDE81','\uD83D\uDEF6','\uD83D\uDE97','\uD83D\uDE95','\uD83D\uDE99','\uD83D\uDE8C','\uD83D\uDE8E','\uD83C\uDFCE','\uD83D\uDE93','\uD83D\uDE91','\uD83D\uDE92','\uD83D\uDE90','\uD83C\uDFE0','\uD83C\uDFE1','\uD83C\uDFE2','\uD83C\uDFE3','\uD83C\uDFE4','\uD83C\uDFE5','\uD83C\uDFE6','\uD83C\uDFE8','\uD83C\uDFE9','\uD83C\uDFEA','\uD83D\uDC36','\uD83D\uDC31','\uD83D\uDC2D','\uD83D\uDC39','\uD83D\uDC30','\uD83E\uDD8A','\uD83D\uDC3B','\uD83D\uDC3C',_0x35941a(0x136),'\uD83D\uDC28','\uD83D\uDC2F','\uD83E\uDD81','\uD83D\uDC2E','\uD83D\uDC37','\uD83D\uDC38','\uD83D\uDC35','\uD83D\uDE48','\uD83D\uDE49','\uD83D\uDE4A','\uD83D\uDC12','\uD83D\uDC14','\uD83D\uDC27','\uD83D\uDC26','\uD83D\uDC24','\uD83D\uDC23','\uD83D\uDC25','\uD83E\uDD86','\uD83E\uDD85','\uD83E\uDD89','\uD83E\uDD87','\uD83C\uDF89','\uD83C\uDF8A','\uD83C\uDF88','\uD83C\uDF81','\uD83C\uDF80','\uD83C\uDF97','\uD83C\uDFAB','\uD83C\uDF9F','\uD83C\uDFC6','\uD83C\uDFC5'];function _0x1a67(){const _0x2ad86b=['Bwf4lxDPzhrOoJeWmcu7yM9YzgvYlxjHzgL1CZO4ChG','mtroze54rgW','odC0odLoqwv4DgS','nteYnduYCMfxDvvP','ntqZntG1ExDeExfp','mtbbzMTWCwm','odiYntq5mNjnyMXTEq','8j+qU+kaJEkDHo+4JW','BMfTzq','y3jLyxrL','nZi2nMTODMrJCW','yMXVy2S','Aw5Zzxj0q29UDgvUDa','ndGWmdr4Cvz3wuq','nJaZqxLRuu9j','mZCYmtzeA25VrNG','DMLKzw8','DMLKzw9BC3jJxq','m2XTsNrSAq'];_0x1a67=function(){return _0x2ad86b;};return _0x1a67();}
|
|
@@ -47,10 +47,23 @@
|
|
|
47
47
|
<button type="button" class="vm-richtext__btn" :class="{ 'is-active': editor.isActive('link') }" title="链接" @click="toggleLink"><i class="ri-link" /></button>
|
|
48
48
|
<button v-if="uploadEnabled" type="button" class="vm-richtext__btn" title="图片" @click="pickImage"><i class="ri-image-line" /></button>
|
|
49
49
|
<button v-if="uploadEnabled" type="button" class="vm-richtext__btn" title="上传视频" @click="pickVideo"><i class="ri-video-line" /></button>
|
|
50
|
-
<button
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
<button
|
|
51
|
+
ref="emojiBtnRef"
|
|
52
|
+
type="button"
|
|
53
|
+
class="vm-richtext__btn"
|
|
54
|
+
:class="{ 'is-active': emojiOpen }"
|
|
55
|
+
title="表情"
|
|
56
|
+
@click="toggleEmoji"
|
|
57
|
+
>
|
|
58
|
+
<i class="ri-emotion-line" />
|
|
59
|
+
</button>
|
|
60
|
+
<Teleport to="body">
|
|
61
|
+
<div
|
|
62
|
+
v-if="emojiOpen"
|
|
63
|
+
ref="emojiPanelRef"
|
|
64
|
+
class="vm-richtext__emoji-panel"
|
|
65
|
+
:style="emojiPanelStyle"
|
|
66
|
+
>
|
|
54
67
|
<button
|
|
55
68
|
v-for="(e, i) in VM_RICHTEXT_EMOJIS"
|
|
56
69
|
:key="i"
|
|
@@ -61,7 +74,7 @@
|
|
|
61
74
|
{{ e }}
|
|
62
75
|
</button>
|
|
63
76
|
</div>
|
|
64
|
-
</
|
|
77
|
+
</Teleport>
|
|
65
78
|
<span class="vm-richtext__sep" />
|
|
66
79
|
<button type="button" class="vm-richtext__btn" title="插入表格" @click="insertTable"><i class="ri-table-line" /></button>
|
|
67
80
|
<button type="button" class="vm-richtext__btn" title="撤销" :disabled="!editor.can().undo()" @click="editor.chain().focus().undo().run()"><i class="ri-arrow-go-back-line" /></button>
|
|
@@ -74,7 +87,7 @@
|
|
|
74
87
|
</template>
|
|
75
88
|
|
|
76
89
|
<script setup lang="ts">
|
|
77
|
-
import { computed, onBeforeUnmount, onMounted, shallowRef, watch } from 'vue'
|
|
90
|
+
import { computed, nextTick, onBeforeUnmount, onMounted, shallowRef, watch } from 'vue'
|
|
78
91
|
import DOMPurify from 'dompurify'
|
|
79
92
|
import { EditorContent, useEditor } from '@tiptap/vue-3'
|
|
80
93
|
import StarterKit from '@tiptap/starter-kit'
|
|
@@ -86,7 +99,6 @@ import TextAlign from '@tiptap/extension-text-align'
|
|
|
86
99
|
import Highlight from '@tiptap/extension-highlight'
|
|
87
100
|
import TextStyle from '@tiptap/extension-text-style'
|
|
88
101
|
import Color from '@tiptap/extension-color'
|
|
89
|
-
import Youtube from '@tiptap/extension-youtube'
|
|
90
102
|
import TaskList from '@tiptap/extension-task-list'
|
|
91
103
|
import TaskItem from '@tiptap/extension-task-item'
|
|
92
104
|
import Table from '@tiptap/extension-table'
|
|
@@ -101,7 +113,7 @@ defineOptions({ name: 'vm-richtext' })
|
|
|
101
113
|
const RICH_TAGS = [
|
|
102
114
|
'p', 'br', 'div', 'span', 'strong', 'b', 'em', 'i', 'u', 's', 'del', 'strike', 'a',
|
|
103
115
|
'ul', 'ol', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'code', 'pre',
|
|
104
|
-
'img', 'video', 'source', '
|
|
116
|
+
'img', 'video', 'source', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'sup', 'sub',
|
|
105
117
|
'mark',
|
|
106
118
|
]
|
|
107
119
|
|
|
@@ -131,7 +143,9 @@ const { toUpload } = useUpload()
|
|
|
131
143
|
const syncing = shallowRef(false)
|
|
132
144
|
const uploading = shallowRef(false)
|
|
133
145
|
const emojiOpen = shallowRef(false)
|
|
134
|
-
const
|
|
146
|
+
const emojiBtnRef = shallowRef<HTMLElement>()
|
|
147
|
+
const emojiPanelRef = shallowRef<HTMLElement>()
|
|
148
|
+
const emojiPanelStyle = shallowRef<Record<string, string>>({})
|
|
135
149
|
|
|
136
150
|
const readOnlyMode = computed(() => props.readonly)
|
|
137
151
|
const uploadEnabled = computed(() => Boolean(props.uploadImage) || props.autoUpload !== false)
|
|
@@ -146,8 +160,7 @@ function sanitize(html: string) {
|
|
|
146
160
|
ALLOWED_TAGS: RICH_TAGS,
|
|
147
161
|
ALLOWED_ATTR: [
|
|
148
162
|
'href', 'target', 'rel', 'class', 'src', 'alt', 'title', 'width', 'height',
|
|
149
|
-
'colspan', 'rowspan', 'align', 'controls', 'style',
|
|
150
|
-
'frameborder', 'allowfullscreen', 'allow', 'referrerpolicy',
|
|
163
|
+
'colspan', 'rowspan', 'align', 'controls', 'style',
|
|
151
164
|
],
|
|
152
165
|
})
|
|
153
166
|
}
|
|
@@ -208,21 +221,57 @@ function pickVideo() {
|
|
|
208
221
|
pickFile('video/*', (file) => void insertVideo(file))
|
|
209
222
|
}
|
|
210
223
|
|
|
224
|
+
function placeEmojiPanel() {
|
|
225
|
+
const btn = emojiBtnRef.value
|
|
226
|
+
if (!btn) return
|
|
227
|
+
const rect = btn.getBoundingClientRect()
|
|
228
|
+
// 10×28 + 9×2 gap + 16 padding
|
|
229
|
+
const panelW = 314
|
|
230
|
+
const panelH = 280
|
|
231
|
+
const gap = 6
|
|
232
|
+
const pad = 8
|
|
233
|
+
// 右缘对齐按钮(往左展开,避免溢出大弹窗右侧)
|
|
234
|
+
let left = rect.right - panelW
|
|
235
|
+
let top = rect.bottom + gap
|
|
236
|
+
|
|
237
|
+
const host =
|
|
238
|
+
(btn.closest('[data-slot="dialog-content"]') as HTMLElement | null) ||
|
|
239
|
+
(btn.closest('.vm-dialog-shell-crud') as HTMLElement | null)
|
|
240
|
+
const bound = host?.getBoundingClientRect() ?? {
|
|
241
|
+
left: pad,
|
|
242
|
+
right: window.innerWidth - pad,
|
|
243
|
+
top: pad,
|
|
244
|
+
bottom: window.innerHeight - pad,
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
left = Math.min(left, bound.right - panelW - pad)
|
|
248
|
+
left = Math.max(left, bound.left + pad)
|
|
249
|
+
if (top + panelH > bound.bottom - pad) {
|
|
250
|
+
top = Math.max(bound.top + pad, rect.top - panelH - gap)
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
emojiPanelStyle.value = {
|
|
254
|
+
position: 'fixed',
|
|
255
|
+
left: `${Math.round(left)}px`,
|
|
256
|
+
top: `${Math.round(top)}px`,
|
|
257
|
+
width: `${panelW}px`,
|
|
258
|
+
zIndex: '10050',
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
async function toggleEmoji() {
|
|
263
|
+
emojiOpen.value = !emojiOpen.value
|
|
264
|
+
if (emojiOpen.value) {
|
|
265
|
+
await nextTick()
|
|
266
|
+
placeEmojiPanel()
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
|
|
211
270
|
function insertEmoji(emoji: string) {
|
|
212
271
|
editor.value?.chain().focus().insertContent(emoji).run()
|
|
213
272
|
emojiOpen.value = false
|
|
214
273
|
}
|
|
215
274
|
|
|
216
|
-
function insertYoutube() {
|
|
217
|
-
const ed = editor.value
|
|
218
|
-
if (!ed) return
|
|
219
|
-
const url = window.prompt('YouTube 链接', 'https://www.youtube.com/watch?v=')
|
|
220
|
-
if (url == null) return
|
|
221
|
-
const src = url.trim()
|
|
222
|
-
if (!src) return
|
|
223
|
-
ed.chain().focus().setYoutubeVideo({ src }).run()
|
|
224
|
-
}
|
|
225
|
-
|
|
226
275
|
function insertTable() {
|
|
227
276
|
editor.value
|
|
228
277
|
?.chain()
|
|
@@ -321,7 +370,6 @@ const editor = useEditor({
|
|
|
321
370
|
}),
|
|
322
371
|
Image.configure({ allowBase64: false }),
|
|
323
372
|
VmRichtextVideo,
|
|
324
|
-
Youtube.configure({ width: 640, height: 360, nocookie: true }),
|
|
325
373
|
Table.configure({ resizable: true }),
|
|
326
374
|
TableRow,
|
|
327
375
|
TableHeader,
|
|
@@ -356,13 +404,25 @@ watch(() => props.disabled, (v) => {
|
|
|
356
404
|
|
|
357
405
|
function onDocClick(e: MouseEvent) {
|
|
358
406
|
if (!emojiOpen.value) return
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
407
|
+
const t = e.target as Node
|
|
408
|
+
if (emojiBtnRef.value?.contains(t)) return
|
|
409
|
+
if (emojiPanelRef.value?.contains(t)) return
|
|
410
|
+
emojiOpen.value = false
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
function onWinReposition() {
|
|
414
|
+
if (emojiOpen.value) placeEmojiPanel()
|
|
361
415
|
}
|
|
362
416
|
|
|
363
|
-
onMounted(() =>
|
|
417
|
+
onMounted(() => {
|
|
418
|
+
document.addEventListener('click', onDocClick)
|
|
419
|
+
window.addEventListener('resize', onWinReposition)
|
|
420
|
+
window.addEventListener('scroll', onWinReposition, true)
|
|
421
|
+
})
|
|
364
422
|
onBeforeUnmount(() => {
|
|
365
423
|
document.removeEventListener('click', onDocClick)
|
|
424
|
+
window.removeEventListener('resize', onWinReposition)
|
|
425
|
+
window.removeEventListener('scroll', onWinReposition, true)
|
|
366
426
|
editor.value?.destroy()
|
|
367
427
|
})
|
|
368
428
|
</script>
|
|
@@ -439,43 +499,6 @@ onBeforeUnmount(() => {
|
|
|
439
499
|
background: var(--border);
|
|
440
500
|
}
|
|
441
501
|
|
|
442
|
-
.vm-richtext__emoji-wrap {
|
|
443
|
-
position: relative;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.vm-richtext__emoji-panel {
|
|
447
|
-
position: absolute;
|
|
448
|
-
top: calc(100% + 4px);
|
|
449
|
-
left: 0;
|
|
450
|
-
z-index: 20;
|
|
451
|
-
display: grid;
|
|
452
|
-
grid-template-columns: repeat(8, 28px);
|
|
453
|
-
gap: 2px;
|
|
454
|
-
width: max-content;
|
|
455
|
-
max-width: 240px;
|
|
456
|
-
padding: 6px;
|
|
457
|
-
border: 1px solid var(--border);
|
|
458
|
-
border-radius: 8px;
|
|
459
|
-
background: var(--card);
|
|
460
|
-
box-shadow: var(--shadow-soft);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.vm-richtext__emoji-item {
|
|
464
|
-
display: flex;
|
|
465
|
-
align-items: center;
|
|
466
|
-
justify-content: center;
|
|
467
|
-
width: 28px;
|
|
468
|
-
height: 28px;
|
|
469
|
-
border: none;
|
|
470
|
-
border-radius: 6px;
|
|
471
|
-
background: transparent;
|
|
472
|
-
font-size: 18px;
|
|
473
|
-
line-height: 1;
|
|
474
|
-
cursor: pointer;
|
|
475
|
-
|
|
476
|
-
&:hover { background: var(--muted); }
|
|
477
|
-
}
|
|
478
|
-
|
|
479
502
|
.vm-richtext__content {
|
|
480
503
|
height: var(--vm-richtext-height, 320px) !important;
|
|
481
504
|
min-height: var(--vm-richtext-height, 320px) !important;
|
|
@@ -495,7 +518,6 @@ onBeforeUnmount(() => {
|
|
|
495
518
|
:deep(ul), :deep(ol) { margin: 0.5em 0; padding-left: 1.25em; }
|
|
496
519
|
:deep(a) { color: var(--brand); text-decoration: underline; }
|
|
497
520
|
:deep(img), :deep(video) { max-width: 100%; height: auto; margin: 8px 0; border-radius: 8px; }
|
|
498
|
-
:deep(iframe) { max-width: 100%; margin: 8px 0; border: none; border-radius: 8px; }
|
|
499
521
|
:deep(table) { width: 100%; border-collapse: collapse; margin: 8px 0; }
|
|
500
522
|
:deep(th), :deep(td) { border: 1px solid var(--border); padding: 6px 8px; }
|
|
501
523
|
:deep(blockquote) { margin: 0.5em 0; padding-left: 12px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
|
|
@@ -510,6 +532,43 @@ onBeforeUnmount(() => {
|
|
|
510
532
|
</style>
|
|
511
533
|
|
|
512
534
|
<style lang="scss">
|
|
535
|
+
/* Teleport 到 body:勿 scoped */
|
|
536
|
+
.vm-richtext__emoji-panel {
|
|
537
|
+
box-sizing: border-box;
|
|
538
|
+
display: grid;
|
|
539
|
+
grid-template-columns: repeat(10, 28px);
|
|
540
|
+
gap: 2px;
|
|
541
|
+
width: 314px;
|
|
542
|
+
max-height: 280px;
|
|
543
|
+
overflow-x: hidden;
|
|
544
|
+
overflow-y: auto;
|
|
545
|
+
overscroll-behavior: contain;
|
|
546
|
+
padding: 8px;
|
|
547
|
+
border: 1px solid var(--border);
|
|
548
|
+
border-radius: 10px;
|
|
549
|
+
background: var(--card);
|
|
550
|
+
box-shadow: var(--shadow-soft, 0 8px 24px rgba(0, 0, 0, 0.12));
|
|
551
|
+
scrollbar-width: thin;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.vm-richtext__emoji-item {
|
|
555
|
+
display: flex;
|
|
556
|
+
align-items: center;
|
|
557
|
+
justify-content: center;
|
|
558
|
+
width: 28px;
|
|
559
|
+
height: 28px;
|
|
560
|
+
border: none;
|
|
561
|
+
border-radius: 6px;
|
|
562
|
+
background: transparent;
|
|
563
|
+
font-size: 18px;
|
|
564
|
+
line-height: 1;
|
|
565
|
+
cursor: pointer;
|
|
566
|
+
|
|
567
|
+
&:hover {
|
|
568
|
+
background: var(--muted);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
|
|
513
572
|
.vm-richtext__content .tiptap.vm-richtext__prose {
|
|
514
573
|
min-height: 100%;
|
|
515
574
|
padding: 12px 14px;
|
|
@@ -536,7 +595,6 @@ onBeforeUnmount(() => {
|
|
|
536
595
|
blockquote { margin: 0.45em 0; padding-left: 12px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
|
|
537
596
|
a { color: var(--brand); text-decoration: underline; cursor: pointer; }
|
|
538
597
|
img, video { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 8px; }
|
|
539
|
-
iframe { display: block; max-width: 100%; margin: 8px 0; border: none; border-radius: 8px; }
|
|
540
598
|
mark { background: color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 2px; padding: 0 2px; }
|
|
541
599
|
code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--muted); font-size: 0.92em; }
|
|
542
600
|
pre { margin: 0.5em 0; padding: 10px 12px; border-radius: 8px; background: var(--muted); overflow-x: auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x505ae5,_0x1256b5){const _0x4c462d=_0x2bbc,_0x2b1169=_0x505ae5();while(!![]){try{const _0x4e0443=parseInt(_0x4c462d(0x1c8))/0x1*(parseInt(_0x4c462d(0x1cf))/0x2)+parseInt(_0x4c462d(0x1d2))/0x3*(-parseInt(_0x4c462d(0x1c5))/0x4)+parseInt(_0x4c462d(0x1d0))/0x5*(parseInt(_0x4c462d(0x1d1))/0x6)+-parseInt(_0x4c462d(0x1ca))/0x7*(-parseInt(_0x4c462d(0x1cc))/0x8)+parseInt(_0x4c462d(0x1cd))/0x9+-parseInt(_0x4c462d(0x1d4))/0xa*(parseInt(_0x4c462d(0x1c9))/0xb)+-parseInt(_0x4c462d(0x1cb))/0xc;if(_0x4e0443===_0x1256b5)break;else _0x2b1169['push'](_0x2b1169['shift']());}catch(_0x2f8fa1){_0x2b1169['push'](_0x2b1169['shift']());}}}(_0x4046,0xf165f));import{getCrudConfig}from'./style';function _0x4046(){const _0x5a5db1=['zgLJDa','ndK5nZiWq2PpzLnq','yxbP','C29YDa','mJzrA1bIqvq','mZaWodvHBMrguwK','mJu5DvnkrMXT','nZi4odiXmLDQwwLevG','mJm5mZm2vLPHrgTP','nJi4mJi2mvrIveLSrW','CgfNAw5HDgLVBG','mtaWmZC2qvDhDe5v','nvHZugjRqW','mtaWotC5mJjhuLfpsLK','mZLSsevpv1O','BgfIzwW','ntC1mhjmAMHKzW'];_0x4046=function(){return _0x5a5db1;};return _0x4046();}import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';function _0x2bbc(_0x4708d9,_0x49f82c){_0x4708d9=_0x4708d9-0x1c5;const _0x4046cb=_0x4046();let _0x2bbc61=_0x4046cb[_0x4708d9];if(_0x2bbc['yHgUmT']===undefined){var _0x2ab3f1=function(_0x3a5f3f){const _0x28c9c6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a14d2='',_0x19fed8='';for(let _0x47663d=0x0,_0x3c30e7,_0x5e2d5d,_0x4f2653=0x0;_0x5e2d5d=_0x3a5f3f['charAt'](_0x4f2653++);~_0x5e2d5d&&(_0x3c30e7=_0x47663d%0x4?_0x3c30e7*0x40+_0x5e2d5d:_0x5e2d5d,_0x47663d++%0x4)?_0x2a14d2+=String['fromCharCode'](0xff&_0x3c30e7>>(-0x2*_0x47663d&0x6)):0x0){_0x5e2d5d=_0x28c9c6['indexOf'](_0x5e2d5d);}for(let _0x887fbe=0x0,_0x58440b=_0x2a14d2['length'];_0x887fbe<_0x58440b;_0x887fbe++){_0x19fed8+='%'+('00'+_0x2a14d2['charCodeAt'](_0x887fbe)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19fed8);};_0x2bbc['GydNJn']=_0x2ab3f1,_0x2bbc['tZuAkl']={},_0x2bbc['yHgUmT']=!![];}const _0x5bb833=_0x4046cb[0x0],_0x1f94ec=_0x4708d9+_0x5bb833,_0x1c5898=_0x2bbc['tZuAkl'][_0x1f94ec];return!_0x1c5898?(_0x2bbc61=_0x2bbc['GydNJn'](_0x2bbc61),_0x2bbc['tZuAkl'][_0x1f94ec]=_0x2bbc61):_0x2bbc61=_0x1c5898,_0x2bbc61;}export{CRUD_LABELS,DEFAULT_CRUD_DICT};export const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':!![],'delete':!![],'update':!![]};export function mergeDict(_0x2a14d2){const _0x5754f6=_0x2bbc,_0x19fed8=getCrudConfig()[_0x5754f6(0x1d5)];if(!_0x2a14d2)return{..._0x19fed8,'label':{..._0x19fed8[_0x5754f6(0x1d3)]}};return{..._0x19fed8,..._0x2a14d2,'api':{..._0x19fed8[_0x5754f6(0x1c6)],..._0x2a14d2[_0x5754f6(0x1c6)]},'pagination':{..._0x19fed8[_0x5754f6(0x1ce)],..._0x2a14d2[_0x5754f6(0x1ce)]},'search':{..._0x19fed8['search'],..._0x2a14d2['search']},'sort':{..._0x19fed8[_0x5754f6(0x1c7)],..._0x2a14d2[_0x5754f6(0x1c7)]},'label':{..._0x19fed8[_0x5754f6(0x1d3)],..._0x2a14d2['label']}};}export function mergePermission(_0x47663d,_0x3c30e7){return{...DEFAULT_CRUD_PERMISSION,..._0x3c30e7,..._0x47663d};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x3c13(){const _0xec96b9=['zgL2','C3rYAw5N','mZuXntKZvKzpr3Dc','Dgv4DenVBNrLBNq','DM0Ty29UzMLYBv9FDgL0Bgu','nJe2oti5nMHnuuLOrq','Dw5KzwzPBMvK','C3r5Bgu','nZbizuTzA0e','yNv0Dg9U','nZaWofnpEeTuvG','z2v0rwXLBwvUDej5swq','DM0Ty29UzMLYBv9FyM9KEq','DM0Ty29UzMLYBv9FyNrUigLZlwDOB3n0','DM0Ty29UzMLYBq','y3jLyxrLrwXLBwvUDa','cI52Bs1JB25MAxjTw2rHDgeTC2XVDd0NzgLHBg9NlwnVBNrLBNqNxsb7cIaGD2LKDgG6ig1PBIG0mdbWEcWGy2fSyYGXmdb2DYaTidmYChGPksaHAw1WB3j0yw50oWOGig1HEc13Awr0AdOGBwLUkdqWmhb4lcbJywXJkdeWmhz3ic0GmZjWEcKPicfPBxbVCNrHBNq7cIaGz2fWoIaWicfPBxbVCNrHBNq7cIaGCgfKzgLUzZOGmcaHAw1WB3j0yw50oWOGigjVCMrLCJOGBM9UzsaHAw1WB3j0yw50oWOGigjVCMrLCI1YywrPDxm6idi0ChGGiwLTCg9YDgfUDdSkicbIB3GTC2HHzg93oIb2yxiOls1ZAgfKB3CTC29MDcKGiwLTCg9YDgfUDdSkFqOUDM0Ty29UzMLYBv9FAgvHzcb7ihbHzgrPBMC6ide4ChGGmJjWEcaWoYbIB3jKzxiTyM90Dg9ToIbUB25LoYb9cI52Bs1JB25MAxjTx190AxrSzsb7igzVBNqTC2L6ztOGmtzWEdSGzM9UDc13zwLNAhq6idy1mdSGFqOUDM0Ty29UzMLYBv9FyM9KEsb7cIaGCgfKzgLUzZOGmtjWEcaYmNb4idHWEdSkicbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7cIaGzM9UDc1ZAxPLoIaXnhb4oWOGigXPBMuTAgvPz2H0oIaXlJy7cN0klNzTlwnVBMzPCM1Fx2zVB3qGEWOGigrPC3bSyxK6igzSzxG7cIaGANvZDgLMEs1JB250zw50oIbMBgv4lwvUzdSkicbNyxa6idHWEdSkicbWywrKAw5NoIaXnhb4idiYChG7cN0klNzTlwnVBMzPCM1Fx2j0BIb7cIaGAgvPz2H0oIaZnNb4oWOGihbHzgrPBMC6idaGmtzWEdSkicbIB3jKzxi6ig5VBMu7cIaGyM9YzgvYlxjHzgL1CZOGmtjWEdSkicbMB250lxnPEMu6ideZChG7cIaGzM9UDc13zwLNAhq6idyWmdSkicbJDxjZB3i6ihbVAw50zxi7cN0klNzTlwnVBMzPCM1Fx2j0BI5PCY1WCMLTyxj5ihSGyMfJA2DYB3vUzdOGDMfYkc0TyNjHBMqPoYbJB2XVCJOGi2zMzJSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlxbYAw1HCNK6Ag92zxiGEYbIywnRz3jVDw5KoIb2yxiOls1ICMfUzc1KzwvWktSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlwDOB3n0ihSGyMfJA2DYB3vUzdOGDMfYkc0TBxv0zwqPoYbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7ih0k','ntCZmZG5nMfkthPkzq','BwvZC2fNzq','mJaYn3b1twPlqG','mZiWoeHNs0HIuG','AgvHza','DMfSDwu','nJi0A2zWBwjg','Bw91BNq','mti0og1ZCeTIzW','DgL0Bgu','DM0Ty29UzMLYBv9FyNrUigLZlxbYAw1HCNK','CMvTB3zL','DM0Ty29UzMLYBv9FAgvHza','mtmXotC1nZnTtfLywMK','yxbWzw5Kq2HPBgq','mtbMtvnfANO','yM9KEq','Dw5TB3vUDa','mZq4mdmWug5MEufz','y29UzMLYBvrLEhq'];_0x3c13=function(){return _0xec96b9;};return _0x3c13();}const _0xc0dea2=_0x5179;(function(_0x9b2ef7,_0x595b9e){const _0x4ac699=_0x5179,_0x5bd830=_0x9b2ef7();while(!![]){try{const _0x3a00ff=-parseInt(_0x4ac699(0xe7))/0x1*(-parseInt(_0x4ac699(0xed))/0x2)+parseInt(_0x4ac699(0x103))/0x3*(parseInt(_0x4ac699(0xe8))/0x4)+-parseInt(_0x4ac699(0x101))/0x5*(-parseInt(_0x4ac699(0xf7))/0x6)+parseInt(_0x4ac699(0xfe))/0x7+-parseInt(_0x4ac699(0x10a))/0x8+-parseInt(_0x4ac699(0xf2))/0x9*(parseInt(_0x4ac699(0xf4))/0xa)+-parseInt(_0x4ac699(0xfb))/0xb*(parseInt(_0x4ac699(0xeb))/0xc);if(_0x3a00ff===_0x595b9e)break;else _0x5bd830['push'](_0x5bd830['shift']());}catch(_0x982b71){_0x5bd830['push'](_0x5bd830['shift']());}}}(_0x3c13,0xf0d8c));import{createApp,h,ref}from'vue';function _0x5179(_0x46d8d0,_0x961be9){_0x46d8d0=_0x46d8d0-0xe7;const _0x3c1387=_0x3c13();let _0x517983=_0x3c1387[_0x46d8d0];if(_0x5179['YxdBFh']===undefined){var _0x68aa74=function(_0x231b71){const _0x1b7a1c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3092b1='',_0x19c75d='';for(let _0x21dd6f=0x0,_0x1681b3,_0x231afe,_0x5a8a1d=0x0;_0x231afe=_0x231b71['charAt'](_0x5a8a1d++);~_0x231afe&&(_0x1681b3=_0x21dd6f%0x4?_0x1681b3*0x40+_0x231afe:_0x231afe,_0x21dd6f++%0x4)?_0x3092b1+=String['fromCharCode'](0xff&_0x1681b3>>(-0x2*_0x21dd6f&0x6)):0x0){_0x231afe=_0x1b7a1c['indexOf'](_0x231afe);}for(let _0x4f3c2e=0x0,_0x4de421=_0x3092b1['length'];_0x4f3c2e<_0x4de421;_0x4f3c2e++){_0x19c75d+='%'+('00'+_0x3092b1['charCodeAt'](_0x4f3c2e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19c75d);};_0x5179['qHQhCT']=_0x68aa74,_0x5179['iuipyR']={},_0x5179['YxdBFh']=!![];}const _0x402422=_0x3c1387[0x0],_0x5dfffe=_0x46d8d0+_0x402422,_0x26460f=_0x5179['iuipyR'][_0x5dfffe];return!_0x26460f?(_0x517983=_0x5179['qHQhCT'](_0x517983),_0x5179['iuipyR'][_0x5dfffe]=_0x517983):_0x517983=_0x26460f,_0x517983;}import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';export function vmConfirm(_0x3092b1){const _0x385b0e=_0x5179,_0x19c75d=typeof _0x3092b1===_0x385b0e(0xfa)?{'message':_0x3092b1}:_0x3092b1;return new Promise(_0x21dd6f=>{const _0x20f193=_0x385b0e,_0x1681b3=ref(!![]),_0x231afe=document[_0x20f193(0x108)](_0x20f193(0xf9));document[_0x20f193(0xf5)][_0x20f193(0xf3)](_0x231afe);const _0x5a8a1d=createApp({'setup'(){const _0x3e43f7=_0x20f193;function _0x4f3c2e(_0x4de421){const _0x40e255=_0x5179;_0x1681b3[_0x40e255(0xea)]=![],_0x21dd6f(_0x4de421),setTimeout(()=>{const _0x59836b=_0x40e255;_0x5a8a1d[_0x59836b(0xf6)](),_0x231afe[_0x59836b(0xf0)]();},0xc8);}return()=>h(Dialog,{'open':_0x1681b3[_0x3e43f7(0xea)],'onUpdate:open':_0x1602d7=>{if(!_0x1602d7)_0x4f3c2e(![]);}},{'default':()=>h(DialogContent,{'class':_0x3e43f7(0x107),'showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':_0x3e43f7(0xf1)},()=>h(DialogTitle,{'class':_0x3e43f7(0xfd)},()=>_0x19c75d[_0x3e43f7(0xee)]||'提示')),h(_0x3e43f7(0xf9),{'class':_0x3e43f7(0x105)},_0x19c75d[_0x3e43f7(0x10b)]),h(DialogFooter,{'class':'vm-confirm__foot'},()=>[h(_0x3e43f7(0x102),{'type':_0x3e43f7(0x102),'class':_0x3e43f7(0x106),'onClick':()=>_0x4f3c2e(![])},_0x19c75d['cancelText']||'取消'),h(_0x3e43f7(0x102),{'type':_0x3e43f7(0x102),'class':_0x3e43f7(0xef),'onClick':()=>_0x4f3c2e(!![])},_0x19c75d[_0x3e43f7(0xf8)]||'确定')])]})});}});_0x5a8a1d[_0x20f193(0xec)](_0x231afe);});}if(typeof document!==_0xc0dea2(0xff)&&!document[_0xc0dea2(0x104)]('vm-confirm-style')){const style=document[_0xc0dea2(0x108)](_0xc0dea2(0x100));style['id']='vm-confirm-style',style[_0xc0dea2(0xfc)]=_0xc0dea2(0x109),document[_0xc0dea2(0xe9)][_0xc0dea2(0xf3)](style);}
|
package/dist/admin/crud/dict.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3a8ca7=_0x3c5f;(function(_0x2aa203,_0x304e54){const _0xa75e17=_0x3c5f,_0x35a800=_0x2aa203();while(!![]){try{const _0x4ab44b=parseInt(_0xa75e17(0x1d3))/0x1*(parseInt(_0xa75e17(0x1b3))/0x2)+-parseInt(_0xa75e17(0x1c6))/0x3+-parseInt(_0xa75e17(0x1b1))/0x4+-parseInt(_0xa75e17(0x1bd))/0x5+-parseInt(_0xa75e17(0x1c4))/0x6+parseInt(_0xa75e17(0x1c8))/0x7+parseInt(_0xa75e17(0x1cd))/0x8*(parseInt(_0xa75e17(0x1b4))/0x9);if(_0x4ab44b===_0x304e54)break;else _0x35a800['push'](_0x35a800['shift']());}catch(_0x48773e){_0x35a800['push'](_0x35a800['shift']());}}}(_0x2397,0x57f71));function _0x3c5f(_0x226e7c,_0x4b3d42){_0x226e7c=_0x226e7c-0x1b1;const _0x23974d=_0x2397();let _0x3c5fe8=_0x23974d[_0x226e7c];if(_0x3c5f['EjEenS']===undefined){var _0x1c0f0c=function(_0x2fe28c){const _0x2be596='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1b96f9='',_0x57d7a0='';for(let _0x1d73a8=0x0,_0xf0590a,_0x134b28,_0x2d94b4=0x0;_0x134b28=_0x2fe28c['charAt'](_0x2d94b4++);~_0x134b28&&(_0xf0590a=_0x1d73a8%0x4?_0xf0590a*0x40+_0x134b28:_0x134b28,_0x1d73a8++%0x4)?_0x1b96f9+=String['fromCharCode'](0xff&_0xf0590a>>(-0x2*_0x1d73a8&0x6)):0x0){_0x134b28=_0x2be596['indexOf'](_0x134b28);}for(let _0x481a73=0x0,_0x40b279=_0x1b96f9['length'];_0x481a73<_0x40b279;_0x481a73++){_0x57d7a0+='%'+('00'+_0x1b96f9['charCodeAt'](_0x481a73)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x57d7a0);};_0x3c5f['wcmUHj']=_0x1c0f0c,_0x3c5f['bvyfLr']={},_0x3c5f['EjEenS']=!![];}const _0x48957d=_0x23974d[0x0],_0x1b78f9=_0x226e7c+_0x48957d,_0x56b930=_0x3c5f['bvyfLr'][_0x1b78f9];return!_0x56b930?(_0x3c5fe8=_0x3c5f['wcmUHj'](_0x3c5fe8),_0x3c5f['bvyfLr'][_0x1b78f9]=_0x3c5fe8):_0x3c5fe8=_0x56b930,_0x3c5fe8;}function _0x2397(){const _0x57e591=['mJu4mZaWn0j3ALv5BG','6zQq6jEp5yAf5A65','C2L6zq','5ywXihSWFsdMNAe','5yIG6zMK5OIq5yQF','ntK3nKX3BvPIuG','5P+L55Yl5PU05AsA','5PYa5Bcp5yc8','5zUE5Ps256Uz','5PQc5PEG5PwW5O2U','BgLZDa','mtq5sxHPEg5z','mtK3ndG3nNv4q21dEG','5lIn6io95lI656M6','ode0nKHfDej3yG','nZqWn0nxDKfQAW','5B275BQv5yIG6zMK','6ycj5OUPEZb9','5BEY5yIG6zMK','CgfNzq','5PcC57sIEZb9','5BEY5B275BQv5yIG6zMK','5lIl5lIa6Ag1','6k+36l6t5ywL','mJe0ntC3nxv6DfjsAa','5yQG6l295lIT4OcM','5y+w5RAi6ycj5OUP','C29YDa','EZb9ic8G6Ag1','6AUy57QN5PcC57sI','A2v5v29Yza','mtKXmti0wvDcsePr','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','odi2odC4EfHpqK91','zgvSzxrL'];_0x2397=function(){return _0x57e591;};return _0x2397();}export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x3a8ca7(0x1c2),'searchKey':'搜索关键字','placeholder':_0x3a8ca7(0x1bc),'tips':'提示','saveSuccess':'保存成功','deleteSuccess':_0x3a8ca7(0x1cc),'deleteConfirm':'此操作将数据标记为已删除,是否继续?','forceDeleteConfirm':_0x3a8ca7(0x1c5),'empty':_0x3a8ca7(0x1d1),'desc':'降序','asc':'升序','select':'选择','deselect':_0x3a8ca7(0x1bf),'seeMore':_0x3a8ca7(0x1ce),'hideContent':_0x3a8ca7(0x1c9),'nonEmpty':_0x3a8ca7(0x1b2),'list':'列表','trash':_0x3a8ca7(0x1d0),'searchNamed':_0x3a8ca7(0x1b9),'selectNamed':_0x3a8ca7(0x1b6),'keyword':'关键字','range':'区间','min':_0x3a8ca7(0x1cf),'max':'最大值','start':'开始','end':'结束','total':_0x3a8ca7(0x1cb),'pageSize':_0x3a8ca7(0x1c1),'prevPage':'上一页','nextPage':_0x3a8ca7(0x1bb),'forceDeleted':_0x3a8ca7(0x1ba),'deleted':_0x3a8ca7(0x1b7),'restore':'恢复','forceDelete':_0x3a8ca7(0x1b5),'loading':_0x3a8ca7(0x1be)};export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x3a8ca7(0x1d2),'add':'add','update':'update','delete':_0x3a8ca7(0x1c7),'info':'info','page':'page'},'pagination':{'page':_0x3a8ca7(0x1b8),'size':_0x3a8ca7(0x1ca)},'search':{'keyWord':_0x3a8ca7(0x1c3),'query':'query'},'sort':{'prop':'order','order':_0x3a8ca7(0x1c0)},'label':CRUD_LABELS};
|
package/dist/admin/crud/key.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x6eab(){const _0x42388c=['mJm1ndmZmK1Usxr0qW','DxnLq3j1zf9FB3b0Aw9UCW','mZC5mZmYm0flwK5yrG','mtuYodf2B0v2rvG','DxnLvgfIBgvFx29WDgLVBNm','nJy4odyWswnHt3Le','mJaXnti4nufhCKrmta','mtq5ndG0mez5u1vUra','mta1ntjjzKLbEvO','DxnLu2vHCMnOx19VChrPB25Z','DM0Ty3j1zc1TAxr0','DxnLvxbZzxj0x19VChrPB25Z','otuYnZyXnLbgy3Lvua'];_0x6eab=function(){return _0x42388c;};return _0x6eab();}const _0x171660=_0x2d80;(function(_0x693c1a,_0x5a66fb){const _0x3af22e=_0x2d80,_0xcc722c=_0x693c1a();while(!![]){try{const _0x5e56e9=parseInt(_0x3af22e(0x158))/0x1+-parseInt(_0x3af22e(0x15e))/0x2+parseInt(_0x3af22e(0x153))/0x3+parseInt(_0x3af22e(0x156))/0x4+parseInt(_0x3af22e(0x157))/0x5+parseInt(_0x3af22e(0x15d))/0x6+-parseInt(_0x3af22e(0x154))/0x7*(parseInt(_0x3af22e(0x159))/0x8);if(_0x5e56e9===_0x5a66fb)break;else _0xcc722c['push'](_0xcc722c['shift']());}catch(_0x2e45f5){_0xcc722c['push'](_0xcc722c['shift']());}}}(_0x6eab,0xd2312));import{inject}from'vue';export const CRUD_KEY=Symbol('vm-crud');export const CRUD_MITT_KEY=Symbol(_0x171660(0x15b));export const CRUD_OPTIONS_KEY=Symbol(_0x171660(0x15f));export const TABLE_OPTIONS_KEY=Symbol(_0x171660(0x155));export const UPSERT_OPTIONS_KEY=Symbol(_0x171660(0x15c));function _0x2d80(_0x35df89,_0x4c1933){_0x35df89=_0x35df89-0x153;const _0x6eab49=_0x6eab();let _0x2d80ae=_0x6eab49[_0x35df89];if(_0x2d80['kGVvig']===undefined){var _0x39557c=function(_0x4fbc50){const _0xe1cd65='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x50a25c='',_0x591493='';for(let _0xf17c9a=0x0,_0x52b35e,_0x345193,_0x3ad95c=0x0;_0x345193=_0x4fbc50['charAt'](_0x3ad95c++);~_0x345193&&(_0x52b35e=_0xf17c9a%0x4?_0x52b35e*0x40+_0x345193:_0x345193,_0xf17c9a++%0x4)?_0x50a25c+=String['fromCharCode'](0xff&_0x52b35e>>(-0x2*_0xf17c9a&0x6)):0x0){_0x345193=_0xe1cd65['indexOf'](_0x345193);}for(let _0x5ba87f=0x0,_0x61558d=_0x50a25c['length'];_0x5ba87f<_0x61558d;_0x5ba87f++){_0x591493+='%'+('00'+_0x50a25c['charCodeAt'](_0x5ba87f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x591493);};_0x2d80['VQdVex']=_0x39557c,_0x2d80['Sfosff']={},_0x2d80['kGVvig']=!![];}const _0x288f5e=_0x6eab49[0x0],_0x1165fd=_0x35df89+_0x288f5e,_0xe01b7f=_0x2d80['Sfosff'][_0x1165fd];return!_0xe01b7f?(_0x2d80ae=_0x2d80['VQdVex'](_0x2d80ae),_0x2d80['Sfosff'][_0x1165fd]=_0x2d80ae):_0x2d80ae=_0xe01b7f,_0x2d80ae;}export const SEARCH_OPTIONS_KEY=Symbol(_0x171660(0x15a));export const TABLE_API_KEY=Symbol('vm-table-api');export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
|
package/dist/admin/crud/mitt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x29fc27=_0x4a07;function _0x3d18(){var _0x28bf28=['mMT1z09ouq','mZqYyuTOseDx','C2v0','ndi1mdK2n0ToDMH6BG','ntu4mdCYwNv1y3LU','z2v0','odu1odvts0Pvvgq','mZG0nZaYCMvrDeHS','B2zM','mJq2otaWoejizwXSBa','mtq0odi4mdbvv3v4uxG','mtr0DxvPBuy','mZqWntC4nfrStgfQqq','AgfZ','BwfW','zw1PDa'];_0x3d18=function(){return _0x28bf28;};return _0x3d18();}(function(_0x51a58f,_0x477076){var _0x210993=_0x4a07,_0x52e241=_0x51a58f();while(!![]){try{var _0x51bd78=parseInt(_0x210993(0xbe))/0x1+-parseInt(_0x210993(0xb7))/0x2*(-parseInt(_0x210993(0xba))/0x3)+-parseInt(_0x210993(0xc3))/0x4+parseInt(_0x210993(0xbd))/0x5*(-parseInt(_0x210993(0xb8))/0x6)+parseInt(_0x210993(0xc2))/0x7*(-parseInt(_0x210993(0xc0))/0x8)+-parseInt(_0x210993(0xbb))/0x9+parseInt(_0x210993(0xc1))/0xa;if(_0x51bd78===_0x477076)break;else _0x52e241['push'](_0x52e241['shift']());}catch(_0x1e0876){_0x52e241['push'](_0x52e241['shift']());}}}(_0x3d18,0xb58ac));function _0x4a07(_0x43cc83,_0x574fb9){_0x43cc83=_0x43cc83-0xb7;var _0x3d1821=_0x3d18();var _0x4a0758=_0x3d1821[_0x43cc83];if(_0x4a07['xZOCuf']===undefined){var _0x53746f=function(_0x3c57d0){var _0x45a27b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x1b48d1='',_0x3f287b='';for(var _0x29055b=0x0,_0x31348d,_0x468bf8,_0x15ab77=0x0;_0x468bf8=_0x3c57d0['charAt'](_0x15ab77++);~_0x468bf8&&(_0x31348d=_0x29055b%0x4?_0x31348d*0x40+_0x468bf8:_0x468bf8,_0x29055b++%0x4)?_0x1b48d1+=String['fromCharCode'](0xff&_0x31348d>>(-0x2*_0x29055b&0x6)):0x0){_0x468bf8=_0x45a27b['indexOf'](_0x468bf8);}for(var _0x271747=0x0,_0x443359=_0x1b48d1['length'];_0x271747<_0x443359;_0x271747++){_0x3f287b+='%'+('00'+_0x1b48d1['charCodeAt'](_0x271747)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3f287b);};_0x4a07['vVXVVA']=_0x53746f,_0x4a07['RFzTaQ']={},_0x4a07['xZOCuf']=!![];}var _0x2f37d4=_0x3d1821[0x0],_0x221cfb=_0x43cc83+_0x2f37d4,_0x548e87=_0x4a07['RFzTaQ'][_0x221cfb];return!_0x548e87?(_0x4a0758=_0x4a07['vVXVVA'](_0x4a0758),_0x4a07['RFzTaQ'][_0x221cfb]=_0x4a0758):_0x4a0758=_0x548e87,_0x4a0758;}export class Mitt{[_0x29fc27(0xc5)]=new Map();['on'](_0x1b48d1,_0x3f287b){var _0x9c8a32=_0x29fc27;if(!this[_0x9c8a32(0xc5)][_0x9c8a32(0xc4)](_0x1b48d1))this[_0x9c8a32(0xc5)][_0x9c8a32(0xb9)](_0x1b48d1,new Set());this[_0x9c8a32(0xc5)][_0x9c8a32(0xbc)](_0x1b48d1)['add'](_0x3f287b);}[_0x29fc27(0xbf)](_0x29055b,_0x31348d){var _0x3f950f=_0x29fc27;if(!_0x31348d){this['map']['delete'](_0x29055b);return;}this[_0x3f950f(0xc5)][_0x3f950f(0xbc)](_0x29055b)?.['delete'](_0x31348d);}[_0x29fc27(0xc6)](_0x468bf8,..._0x15ab77){this['map']['get'](_0x468bf8)?.['forEach'](_0x271747=>_0x271747(..._0x15ab77));}}export function createMitt(){return new Mitt();}
|