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.
@@ -1 +1 @@
1
- const _0x5bf340=_0x12ec;(function(_0x2d4b2b,_0x39073e){const _0x1e0ce3=_0x12ec,_0x551b6a=_0x2d4b2b();while(!![]){try{const _0x12729f=-parseInt(_0x1e0ce3(0x170))/0x1*(-parseInt(_0x1e0ce3(0x15b))/0x2)+-parseInt(_0x1e0ce3(0x16c))/0x3+-parseInt(_0x1e0ce3(0x173))/0x4*(-parseInt(_0x1e0ce3(0x16a))/0x5)+-parseInt(_0x1e0ce3(0x177))/0x6*(-parseInt(_0x1e0ce3(0x15d))/0x7)+-parseInt(_0x1e0ce3(0x15a))/0x8+parseInt(_0x1e0ce3(0x176))/0x9+-parseInt(_0x1e0ce3(0x171))/0xa*(parseInt(_0x1e0ce3(0x15f))/0xb);if(_0x12729f===_0x39073e)break;else _0x551b6a['push'](_0x551b6a['shift']());}catch(_0x3998d9){_0x551b6a['push'](_0x551b6a['shift']());}}}(_0x34db,0x7d3f7));const ORG=_0x5bf340(0x167);export function serviceUrlFromDocs(_0x21f894){const _0x469e1f=_0x5bf340,_0x58eab0=new URL(_0x21f894),_0x4b2017=_0x58eab0[_0x469e1f(0x174)][_0x469e1f(0x178)](/^www\./,'')[_0x469e1f(0x178)](/^service\./,'');return _0x58eab0['protocol']+_0x469e1f(0x159)+_0x4b2017;}export function seatApiBaseFromDocs(_0x4b9b64){return serviceUrlFromDocs(_0x4b9b64)+'/app/pluginStore/seat';}export function licenseIssueUrlFromDocs(_0x1c7f6e){const _0x559fa9=_0x5bf340;return serviceUrlFromDocs(_0x1c7f6e)+_0x559fa9(0x15e);}function giteeArchive(_0x5918ce){const _0x5362e8=_0x5bf340;return _0x5362e8(0x164)+ORG+'/'+_0x5918ce+_0x5362e8(0x175);}function githubArchive(_0x470a3f){const _0x274182=_0x5bf340;return _0x274182(0x16f)+ORG+'/'+_0x470a3f+_0x274182(0x165);}function giteeRepo(_0xe6598c){return'https://gitee.com/'+ORG+'/'+_0xe6598c;}function githubRepo(_0x50a4a0){const _0x3f2552=_0x5bf340;return _0x3f2552(0x16f)+ORG+'/'+_0x50a4a0;}function _0x12ec(_0x3c2dfb,_0x4b9a1a){_0x3c2dfb=_0x3c2dfb-0x159;const _0x34db8b=_0x34db();let _0x12ec4a=_0x34db8b[_0x3c2dfb];if(_0x12ec['RSNTrk']===undefined){var _0x51aa9d=function(_0x10100a){const _0x4431f9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x21f894='',_0x58eab0='';for(let _0x4b2017=0x0,_0x4b9b64,_0x1c7f6e,_0x5918ce=0x0;_0x1c7f6e=_0x10100a['charAt'](_0x5918ce++);~_0x1c7f6e&&(_0x4b9b64=_0x4b2017%0x4?_0x4b9b64*0x40+_0x1c7f6e:_0x1c7f6e,_0x4b2017++%0x4)?_0x21f894+=String['fromCharCode'](0xff&_0x4b9b64>>(-0x2*_0x4b2017&0x6)):0x0){_0x1c7f6e=_0x4431f9['indexOf'](_0x1c7f6e);}for(let _0x470a3f=0x0,_0xe6598c=_0x21f894['length'];_0x470a3f<_0xe6598c;_0x470a3f++){_0x58eab0+='%'+('00'+_0x21f894['charCodeAt'](_0x470a3f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x58eab0);};_0x12ec['EZvOSs']=_0x51aa9d,_0x12ec['VjDmOY']={},_0x12ec['RSNTrk']=!![];}const _0x1ded3b=_0x34db8b[0x0],_0x14b83b=_0x3c2dfb+_0x1ded3b,_0x16d0aa=_0x12ec['VjDmOY'][_0x14b83b];return!_0x16d0aa?(_0x12ec4a=_0x12ec['EZvOSs'](_0x12ec4a),_0x12ec['VjDmOY'][_0x14b83b]=_0x12ec4a):_0x12ec4a=_0x16d0aa,_0x12ec4a;}function _0x34db(){const _0x533797=['zNvSBa','DM9Tzs1WBhvNAw4TzNjVBNq','Ahr0Chm6lY9NAxrLzs5JB20V','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','57QV5yMn56UV','DM9TzwTQ','DM9Tzs1WBhvNAw4TzNvSBa','5zco5y+W5B6U5BQu55sO6isA5OMl5P6277YilNzVBwxVVjRLKkSGD2vIl++8IE+8Jos7Psb3DwPPzsdMJilOVB3NI6ZNQ4VLIy3NQ6/POBxPNAlJGii','mteYmtvxv3H4qLe','Ahr0Chm6lY92B21LA2OUy29T','mJi5mdC0Cxvksxro','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','DM9Tzs1WBhvNAw4TC2vYDMLJzq','Ahr0Chm6lY9NAxrODwiUy29TlW','mtzlBe1SAwC','mJy3nZbfwfjvsfa','57QV5zco56UV','odG0weTPAezi','Ag9ZDg5HBwu','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','nJC2mZC5n1zcBeXcuG','mJm0sLreD1vH','CMvWBgfJzq','lY9Zzxj2AwnLlG','nta5mdmYogL6rfPhyG','mti1mdrWrKPjvei','yMfJA2vUza','otu4otnrvu1twwy','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','mJy5nujit2nfwq','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','5yMn56UVicSG5zco56UV'];_0x34db=function(){return _0x533797;};return _0x34db();}const docsUrl=_0x5bf340(0x16b);export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+'/plugins/upload','mirrors':{'prefer':'gitee','giteeOrg':_0x5bf340(0x164)+ORG,'githubOrg':'https://github.com/'+ORG},'scaffolds':{'full':{'key':_0x5bf340(0x162),'title':_0x5bf340(0x161),'desc':_0x5bf340(0x16d),'repo':_0x5bf340(0x168),'repoUrl':giteeRepo(_0x5bf340(0x168)),'githubRepoUrl':githubRepo(_0x5bf340(0x168)),'downloadUrl':giteeArchive(_0x5bf340(0x168)),'githubDownloadUrl':githubArchive('vome-plugin-full')},'backend':{'key':_0x5bf340(0x15c),'title':_0x5bf340(0x172),'desc':_0x5bf340(0x160),'repo':_0x5bf340(0x16e),'repoUrl':giteeRepo(_0x5bf340(0x16e)),'githubRepoUrl':githubRepo(_0x5bf340(0x16e)),'downloadUrl':giteeArchive('vome-plugin-service'),'githubDownloadUrl':githubArchive(_0x5bf340(0x16e))},'frontend':{'key':'frontend','title':_0x5bf340(0x166),'desc':_0x5bf340(0x169),'repo':_0x5bf340(0x163),'repoUrl':giteeRepo(_0x5bf340(0x163)),'githubRepoUrl':githubRepo(_0x5bf340(0x163)),'downloadUrl':giteeArchive('vome-plugin-front'),'githubDownloadUrl':githubArchive(_0x5bf340(0x163))}}};
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
- export declare const VM_RICHTEXT_EMOJIS: readonly ["😀", "😁", "😂", "🤣", "😊", "😍", "😘", "😎", "🤔", "😅", "😭", "😡", "👍", "👎", "👏", "🙏", "💪", "❤️", "🔥", "✨", "🎉", "✅", "❌", "⭐", "💡", "📌", "📝", "📎", "🔗", "🖼️", "🎬", "📷", "🎵", "☕", "🍻", "🚀", "💯", "⚠️", "❓", "❗"];
13
+ /** 常用表情(面板展示;可继续扩) */
14
+ export declare const VM_RICHTEXT_EMOJIS: readonly ["😀", "😃", "😄", "😁", "😆", "😅", "🤣", "😂", "🙂", "🙃", "😉", "😊", "😇", "🥰", "😍", "🤩", "😘", "😗", "😚", "😙", "😋", "😛", "😜", "🤪", "😝", "🤑", "🤗", "🤭", "🤫", "🤔", "🤐", "🤨", "😐", "😑", "😶", "😏", "😒", "🙄", "😬", "🤥", "😌", "😔", "😪", "🤤", "😴", "😷", "🤒", "🤕", "🤢", "🤮", "🥵", "🥶", "🥴", "😵", "🤯", "🤠", "🥳", "😎", "🤓", "🧐", "😕", "😟", "🙁", "☹️", "😮", "😯", "😲", "😳", "🥺", "😦", "😧", "😨", "😰", "😥", "😢", "😭", "😱", "😖", "😣", "😞", "😓", "😩", "😫", "🥱", "😤", "😡", "😠", "🤬", "😈", "👿", "👋", "🤚", "🖐", "✋", "🖖", "👌", "🤌", "🤏", "✌️", "🤞", "🤟", "🤘", "🤙", "👈", "👉", "👆", "🖕", "👇", "☝️", "👍", "👎", "✊", "👊", "🤛", "🤜", "👏", "🙌", "👐", "🤲", "🤝", "🙏", "💪", "🦾", "✍️", "💅", "🤳", "❤️", "🧡", "💛", "💚", "💙", "💜", "🖤", "🤍", "🤎", "💔", "❣️", "💕", "💞", "💓", "💗", "💖", "💘", "💝", "💟", "☮️", "✝️", "☪️", "🕉", "☸️", "✡️", "🔯", "🕎", "☯️", "☦️", "🛐", "⭐", "🌟", "✨", "⚡", "🔥", "💥", "☀️", "🌙", "⭐️", "🌈", "✅", "❌", "⭕", "❗", "❓", "‼️", "⁉️", "💯", "🔔", "🔕", "📌", "📍", "📎", "🔗", "🔒", "🔓", "🔑", "🗝", "💡", "🔦", "📝", "✏️", "✒️", "🖊", "🖋", "🖌", "🖍", "💼", "📁", "📂", "📅", "📆", "🗓", "📇", "📈", "📉", "📊", "📋", "📤", "📥", "📦", "📫", "📬", "📭", "📮", "📯", "📜", "📃", "📄", "📑", "☕", "🍵", "🧃", "🥤", "🧋", "🍺", "🍻", "🥂", "🍷", "🍸", "🍕", "🍔", "🍟", "🌭", "🍿", "🍩", "🍪", "🎂", "🍰", "🧁", "🍎", "🍊", "🍋", "🍌", "🍉", "🍇", "🍓", "🫐", "🍒", "🍑", "⚽", "🏀", "🏈", "⚾", "🎾", "🏐", "🏉", "🎱", "🏓", "🏸", "🎮", "🕹", "🎲", "🧩", "🎯", "🎳", "🎰", "🎸", "🎹", "🥁", "🎤", "🎧", "🎬", "🎥", "📷", "📸", "📹", "📺", "📻", "🎙", "🚀", "✈️", "🛩", "🛫", "🛬", "🛰", "💺", "🛸", "🚁", "🛶", "🚗", "🚕", "🚙", "🚌", "🚎", "🏎", "🚓", "🚑", "🚒", "🚐", "🏠", "🏡", "🏢", "🏣", "🏤", "🏥", "🏦", "🏨", "🏩", "🏪", "🐶", "🐱", "🐭", "🐹", "🐰", "🦊", "🐻", "🐼", "🐻‍❄️", "🐨", "🐯", "🦁", "🐮", "🐷", "🐸", "🐵", "🙈", "🙉", "🙊", "🐒", "🐔", "🐧", "🐦", "🐤", "🐣", "🐥", "🦆", "🦅", "🦉", "🦇", "🎉", "🎊", "🎈", "🎁", "🎀", "🎗", "🎫", "🎟", "🏆", "🏅"];
@@ -1 +1 @@
1
- function _0x2506(){const _0x3a16da=['n2HYExfdsW','mJa1odmZnLzxthL4Ea','mtGYotGXnMXJCLjAsa','nJu0nZe5mgjKsfLiAq','mJaZnZuZmtberuHOC2K','Bwf4lxDPzhrOoJeWmcu7yM9YzgvYlxjHzgL1CZO4ChG','mtG2odiWtxDmAvLs','nte1mJC0nNP0qw9pAG','mta5ntnivgv4z0y','nta0ogfos3f5Ea','BMfTzq','y3jLyxrL','DMLKzw8','mtvPr293rLi','DMLKzw9BC3jJxq'];_0x2506=function(){return _0x3a16da;};return _0x2506();}const _0x5badbd=_0xa8a9;(function(_0x4d5c1c,_0x2f1de7){const _0x46cc3d=_0xa8a9,_0x504508=_0x4d5c1c();while(!![]){try{const _0x2abf00=-parseInt(_0x46cc3d(0xad))/0x1*(parseInt(_0x46cc3d(0xa6))/0x2)+-parseInt(_0x46cc3d(0xb0))/0x3+parseInt(_0x46cc3d(0xb1))/0x4+-parseInt(_0x46cc3d(0xa3))/0x5+parseInt(_0x46cc3d(0xa7))/0x6*(parseInt(_0x46cc3d(0xaf))/0x7)+-parseInt(_0x46cc3d(0xa9))/0x8*(-parseInt(_0x46cc3d(0xa8))/0x9)+parseInt(_0x46cc3d(0xa4))/0xa;if(_0x2abf00===_0x2f1de7)break;else _0x504508['push'](_0x504508['shift']());}catch(_0x4ba613){_0x504508['push'](_0x504508['shift']());}}}(_0x2506,0xb100b));import{Node,mergeAttributes}from'@tiptap/core';function _0xa8a9(_0x4ec5ca,_0x56a26c){_0x4ec5ca=_0x4ec5ca-0xa3;const _0x250663=_0x2506();let _0xa8a907=_0x250663[_0x4ec5ca];if(_0xa8a9['fpKQuz']===undefined){var _0x2a561c=function(_0xc15eb9){const _0x390237='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf2f6c6='',_0xc74070='';for(let _0x53c585=0x0,_0x423b09,_0x19db3a,_0x1920b8=0x0;_0x19db3a=_0xc15eb9['charAt'](_0x1920b8++);~_0x19db3a&&(_0x423b09=_0x53c585%0x4?_0x423b09*0x40+_0x19db3a:_0x19db3a,_0x53c585++%0x4)?_0xf2f6c6+=String['fromCharCode'](0xff&_0x423b09>>(-0x2*_0x53c585&0x6)):0x0){_0x19db3a=_0x390237['indexOf'](_0x19db3a);}for(let _0x3ebafc=0x0,_0x4a1b72=_0xf2f6c6['length'];_0x3ebafc<_0x4a1b72;_0x3ebafc++){_0xc74070+='%'+('00'+_0xf2f6c6['charCodeAt'](_0x3ebafc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xc74070);};_0xa8a9['qVZAkp']=_0x2a561c,_0xa8a9['OAwInL']={},_0xa8a9['fpKQuz']=!![];}const _0x956711=_0x250663[0x0],_0xa506c8=_0x4ec5ca+_0x956711,_0x195ec3=_0xa8a9['OAwInL'][_0xa506c8];return!_0x195ec3?(_0xa8a907=_0xa8a9['qVZAkp'](_0xa8a907),_0xa8a9['OAwInL'][_0xa506c8]=_0xa8a907):_0xa8a907=_0x195ec3,_0xa8a907;}export const VmRichtextVideo=Node[_0x5badbd(0xab)]({'name':_0x5badbd(0xac),'group':'block','atom':!![],'selectable':!![],'draggable':!![],'addAttributes'(){return{'src':{'default':null},'controls':{'default':!![]}};},'parseHTML'(){const _0x46517a=_0x5badbd;return[{'tag':_0x46517a(0xae)}];},'renderHTML'({HTMLAttributes:_0xf2f6c6}){const _0x139d67=_0x5badbd;return[_0x139d67(0xac),mergeAttributes(_0xf2f6c6,{'controls':!![],'style':_0x139d67(0xa5)})];},'addCommands'(){const _0x2e6dea=_0x5badbd;return{'setVideo':_0xc74070=>({commands:_0x53c585})=>_0x53c585['insertContent']({'type':this[_0x2e6dea(0xaa)],'attrs':_0xc74070})};}});export const VM_RICHTEXT_EMOJIS=['\uD83D\uDE00','\uD83D\uDE01','\uD83D\uDE02','\uD83E\uDD23','\uD83D\uDE0A','\uD83D\uDE0D','\uD83D\uDE18','\uD83D\uDE0E','\uD83E\uDD14','\uD83D\uDE05','\uD83D\uDE2D','\uD83D\uDE21','\uD83D\uDC4D','\uD83D\uDC4E','\uD83D\uDC4F','\uD83D\uDE4F','\uD83D\uDCAA','❤️','\uD83D\uDD25','✨','\uD83C\uDF89','✅','❌','','\uD83D\uDCA1','\uD83D\uDCCC','\uD83D\uDCDD','\uD83D\uDCCE','\uD83D\uDD17','\uD83D\uDDBC️','\uD83C\uDFAC','\uD83D\uDCF7','\uD83C\uDFB5','','\uD83C\uDF7B','\uD83D\uDE80','\uD83D\uDCAF','⚠️','',''];
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 type="button" class="vm-richtext__btn" title="YouTube 嵌入" @click="insertYoutube"><i class="ri-youtube-line" /></button>
51
- <div ref="emojiWrapRef" class="vm-richtext__emoji-wrap">
52
- <button type="button" class="vm-richtext__btn" :class="{ 'is-active': emojiOpen }" title="表情" @click="emojiOpen = !emojiOpen"><i class="ri-emotion-line" /></button>
53
- <div v-if="emojiOpen" class="vm-richtext__emoji-panel">
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
- </div>
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', 'iframe', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'sup', 'sub',
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 emojiWrapRef = shallowRef<HTMLElement>()
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', 'data-youtube-video',
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 el = emojiWrapRef.value
360
- if (el && !el.contains(e.target as Node)) emojiOpen.value = false
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(() => document.addEventListener('click', onDocClick))
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
- function _0x594a(){const _0x2b9c4e=['ndCWn1rVAfDzEG','ote5CLjbEejH','mZCWmdaYnhDZyxv5za','BgfIzwW','C29YDa','C2vHCMnO','mta4nda2nxDJtLLira','CgfNAw5HDgLVBG','nJqXmte2oe9zCgX6qG','ntm3nZy4me5Yyu12Eq','yxbP','mJmXng9jzuHVuW','mtqWnZjUuejJuNe','mti2mZm2mfjqwLr3va','zgLJDa'];_0x594a=function(){return _0x2b9c4e;};return _0x594a();}(function(_0xc94a0c,_0xffa1be){const _0x3771bf=_0x5104,_0xdb3979=_0xc94a0c();while(!![]){try{const _0x49e4ef=parseInt(_0x3771bf(0x15e))/0x1*(-parseInt(_0x3771bf(0x168))/0x2)+parseInt(_0x3771bf(0x163))/0x3+parseInt(_0x3771bf(0x15f))/0x4+-parseInt(_0x3771bf(0x15b))/0x5+-parseInt(_0x3771bf(0x165))/0x6+parseInt(_0x3771bf(0x166))/0x7+parseInt(_0x3771bf(0x169))/0x8*(parseInt(_0x3771bf(0x15d))/0x9);if(_0x49e4ef===_0xffa1be)break;else _0xdb3979['push'](_0xdb3979['shift']());}catch(_0x146ae5){_0xdb3979['push'](_0xdb3979['shift']());}}}(_0x594a,0x900fb));import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';export{CRUD_LABELS,DEFAULT_CRUD_DICT};export const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':!![],'delete':!![],'update':!![]};export function mergeDict(_0x4562f3){const _0x215ec7=_0x5104,_0x2e6560=getCrudConfig()[_0x215ec7(0x15c)];if(!_0x4562f3)return{..._0x2e6560,'label':{..._0x2e6560['label']}};return{..._0x2e6560,..._0x4562f3,'api':{..._0x2e6560[_0x215ec7(0x167)],..._0x4562f3[_0x215ec7(0x167)]},'pagination':{..._0x2e6560[_0x215ec7(0x164)],..._0x4562f3[_0x215ec7(0x164)]},'search':{..._0x2e6560[_0x215ec7(0x162)],..._0x4562f3[_0x215ec7(0x162)]},'sort':{..._0x2e6560[_0x215ec7(0x161)],..._0x4562f3['sort']},'label':{..._0x2e6560[_0x215ec7(0x160)],..._0x4562f3[_0x215ec7(0x160)]}};}function _0x5104(_0x72741a,_0x3cdce5){_0x72741a=_0x72741a-0x15b;const _0x594aab=_0x594a();let _0x51049d=_0x594aab[_0x72741a];if(_0x5104['aXIWjo']===undefined){var _0x28ec19=function(_0x1e0a9e){const _0x15bd9a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4562f3='',_0x2e6560='';for(let _0x26e990=0x0,_0x5616b8,_0x33ef41,_0x4bb265=0x0;_0x33ef41=_0x1e0a9e['charAt'](_0x4bb265++);~_0x33ef41&&(_0x5616b8=_0x26e990%0x4?_0x5616b8*0x40+_0x33ef41:_0x33ef41,_0x26e990++%0x4)?_0x4562f3+=String['fromCharCode'](0xff&_0x5616b8>>(-0x2*_0x26e990&0x6)):0x0){_0x33ef41=_0x15bd9a['indexOf'](_0x33ef41);}for(let _0x3e4999=0x0,_0x550f36=_0x4562f3['length'];_0x3e4999<_0x550f36;_0x3e4999++){_0x2e6560+='%'+('00'+_0x4562f3['charCodeAt'](_0x3e4999)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e6560);};_0x5104['hqFobh']=_0x28ec19,_0x5104['vPUHMO']={},_0x5104['aXIWjo']=!![];}const _0x5b7983=_0x594aab[0x0],_0x2ee1a3=_0x72741a+_0x5b7983,_0x42f5c0=_0x5104['vPUHMO'][_0x2ee1a3];return!_0x42f5c0?(_0x51049d=_0x5104['hqFobh'](_0x51049d),_0x5104['vPUHMO'][_0x2ee1a3]=_0x51049d):_0x51049d=_0x42f5c0,_0x51049d;}export function mergePermission(_0x26e990,_0x5616b8){return{...DEFAULT_CRUD_PERMISSION,..._0x5616b8,..._0x26e990};}
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 _0x130afb=_0x1924;(function(_0xfd8493,_0x23d090){const _0x52cb04=_0x1924,_0x81270b=_0xfd8493();while(!![]){try{const _0x26f61e=parseInt(_0x52cb04(0x8c))/0x1+-parseInt(_0x52cb04(0x84))/0x2*(parseInt(_0x52cb04(0x86))/0x3)+parseInt(_0x52cb04(0x88))/0x4+-parseInt(_0x52cb04(0x90))/0x5+parseInt(_0x52cb04(0x8f))/0x6+parseInt(_0x52cb04(0x8a))/0x7+-parseInt(_0x52cb04(0x81))/0x8*(parseInt(_0x52cb04(0x89))/0x9);if(_0x26f61e===_0x23d090)break;else _0x81270b['push'](_0x81270b['shift']());}catch(_0x6fbf64){_0x81270b['push'](_0x81270b['shift']());}}}(_0x966b,0x2116c));import{createApp,h,ref}from'vue';function _0x966b(){const _0x1faa7c=['ntu1mteWq3n6uMTJ','DM0Ty29UzMLYBv9FyM9KEq','y3jLyxrLrwXLBwvUDa','Dw5KzwzPBMvK','CMvTB3zL','z2v0rwXLBwvUDej5swq','DMfSDwu','Dgv4DenVBNrLBNq','DM0Ty29UzMLYBv9FDgL0Bgu','DM0Ty29UzMLYBs1ZDhLSzq','zgL2','cI52Bs1JB25MAxjTw2rHDgeTC2XVDd0NzgLHBg9NlwnVBNrLBNqNxsb7cIaGD2LKDgG6ig1PBIG0mdbWEcWGy2fSyYGXmdb2DYaTidmYChGPksaHAw1WB3j0yw50oWOGig1HEc13Awr0AdOGBwLUkdqWmhb4lcbJywXJkdeWmhz3ic0GmZjWEcKPicfPBxbVCNrHBNq7cIaGz2fWoIaWicfPBxbVCNrHBNq7cIaGCgfKzgLUzZOGmcaHAw1WB3j0yw50oWOGigjVCMrLCJOGBM9UzsaHAw1WB3j0yw50oWOGigjVCMrLCI1YywrPDxm6idi0ChGGiwLTCg9YDgfUDdSkicbIB3GTC2HHzg93oIb2yxiOls1ZAgfKB3CTC29MDcKGiwLTCg9YDgfUDdSkFqOUDM0Ty29UzMLYBv9FAgvHzcb7ihbHzgrPBMC6ide4ChGGmJjWEcaWoYbIB3jKzxiTyM90Dg9ToIbUB25LoYb9cI52Bs1JB25MAxjTx190AxrSzsb7igzVBNqTC2L6ztOGmtzWEdSGzM9UDc13zwLNAhq6idy1mdSGFqOUDM0Ty29UzMLYBv9FyM9KEsb7cIaGCgfKzgLUzZOGmtjWEcaYmNb4idHWEdSkicbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7cIaGzM9UDc1ZAxPLoIaXnhb4oWOGigXPBMuTAgvPz2H0oIaXlJy7cN0klNzTlwnVBMzPCM1Fx2zVB3qGEWOGigrPC3bSyxK6igzSzxG7cIaGANvZDgLMEs1JB250zw50oIbMBgv4lwvUzdSkicbNyxa6idHWEdSkicbWywrKAw5NoIaXnhb4idiYChG7cN0klNzTlwnVBMzPCM1Fx2j0BIb7cIaGAgvPz2H0oIaZnNb4oWOGihbHzgrPBMC6idaGmtzWEdSkicbIB3jKzxi6ig5VBMu7cIaGyM9YzgvYlxjHzgL1CZOGmtjWEdSkicbMB250lxnPEMu6ideZChG7cIaGzM9UDc13zwLNAhq6idyWmdSkicbJDxjZB3i6ihbVAw50zxi7cN0klNzTlwnVBMzPCM1Fx2j0BI5PCY1WCMLTyxj5ihSGyMfJA2DYB3vUzdOGDMfYkc0TyNjHBMqPoYbJB2XVCJOGi2zMzJSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlxbYAw1HCNK6Ag92zxiGEYbIywnRz3jVDw5KoIb2yxiOls1ICMfUzc1KzwvWktSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlwDOB3n0ihSGyMfJA2DYB3vUzdOGDMfYkc0TBxv0zwqPoYbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7ih0k','yNv0Dg9U','y2fUy2vSvgv4Da','mtziB05REgq','C3r5Bgu','DM0Ty29UzMLYBv9FyNrUigLZlwDOB3n0','nZuZoer6yNzqwa','C3rYAw5N','ntf0whrnBuS','DM0Ty29UzMLYBq','mJC5mJr6tvHJz3G','ndKYodmXqvjnu2DT','odm5m3LsyMPUCW','yxbWzw5Kq2HPBgq','mJa0otm5wLPPBeDh','DM0Ty29UzMLYBv9FzM9VDa','AgvHza','mti0mJe1nLfqrvbova'];_0x966b=function(){return _0x1faa7c;};return _0x966b();}import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';function _0x1924(_0x309f1e,_0x51222a){_0x309f1e=_0x309f1e-0x76;const _0x966bc=_0x966b();let _0x19240c=_0x966bc[_0x309f1e];if(_0x1924['pshGMK']===undefined){var _0x3262c2=function(_0x392468){const _0x289118='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44c49d='',_0x539816='';for(let _0x204990=0x0,_0x3d5072,_0x50c684,_0x5d808e=0x0;_0x50c684=_0x392468['charAt'](_0x5d808e++);~_0x50c684&&(_0x3d5072=_0x204990%0x4?_0x3d5072*0x40+_0x50c684:_0x50c684,_0x204990++%0x4)?_0x44c49d+=String['fromCharCode'](0xff&_0x3d5072>>(-0x2*_0x204990&0x6)):0x0){_0x50c684=_0x289118['indexOf'](_0x50c684);}for(let _0x41ae8e=0x0,_0x5425c4=_0x44c49d['length'];_0x41ae8e<_0x5425c4;_0x41ae8e++){_0x539816+='%'+('00'+_0x44c49d['charCodeAt'](_0x41ae8e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x539816);};_0x1924['HlfWuM']=_0x3262c2,_0x1924['YXsDcb']={},_0x1924['pshGMK']=!![];}const _0x20be27=_0x966bc[0x0],_0x12f1d7=_0x309f1e+_0x20be27,_0x18270b=_0x1924['YXsDcb'][_0x12f1d7];return!_0x18270b?(_0x19240c=_0x1924['HlfWuM'](_0x19240c),_0x1924['YXsDcb'][_0x12f1d7]=_0x19240c):_0x19240c=_0x18270b,_0x19240c;}export function vmConfirm(_0x44c49d){const _0x3c683d=_0x1924,_0x539816=typeof _0x44c49d===_0x3c683d(0x85)?{'message':_0x44c49d}:_0x44c49d;return new Promise(_0x204990=>{const _0xe3a3cf=_0x3c683d,_0x3d5072=ref(!![]),_0x50c684=document['createElement'](_0xe3a3cf(0x7d));document['body'][_0xe3a3cf(0x8b)](_0x50c684);const _0x5d808e=createApp({'setup'(){const _0x4b51cb=_0xe3a3cf;function _0x41ae8e(_0x5425c4){const _0x1cdcb5=_0x1924;_0x3d5072[_0x1cdcb5(0x79)]=![],_0x204990(_0x5425c4),setTimeout(()=>{const _0x3b5dde=_0x1cdcb5;_0x5d808e['unmount'](),_0x50c684[_0x3b5dde(0x77)]();},0xc8);}return()=>h(Dialog,{'open':_0x3d5072[_0x4b51cb(0x79)],'onUpdate:open':_0x5eb685=>{if(!_0x5eb685)_0x41ae8e(![]);}},{'default':()=>h(DialogContent,{'class':_0x4b51cb(0x87),'showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':'vm-confirm__head'},()=>h(DialogTitle,{'class':_0x4b51cb(0x7b)},()=>_0x539816['title']||'提示')),h(_0x4b51cb(0x7d),{'class':_0x4b51cb(0x91)},_0x539816['message']),h(DialogFooter,{'class':_0x4b51cb(0x8d)},()=>[h(_0x4b51cb(0x7f),{'type':_0x4b51cb(0x7f),'class':_0x4b51cb(0x83),'onClick':()=>_0x41ae8e(![])},_0x539816[_0x4b51cb(0x80)]||'取消'),h(_0x4b51cb(0x7f),{'type':_0x4b51cb(0x7f),'class':'vm-confirm__btn\x20is-primary','onClick':()=>_0x41ae8e(!![])},_0x539816['confirmText']||'确定')])]})});}});_0x5d808e['mount'](_0x50c684);});}if(typeof document!==_0x130afb(0x76)&&!document[_0x130afb(0x78)](_0x130afb(0x7c))){const style=document[_0x130afb(0x92)](_0x130afb(0x82));style['id']=_0x130afb(0x7c),style[_0x130afb(0x7a)]=_0x130afb(0x7e),document[_0x130afb(0x8e)][_0x130afb(0x8b)](style);}
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);}
@@ -1 +1 @@
1
- const _0x36bad2=_0x1345;(function(_0x3f1f8f,_0x21d224){const _0x392774=_0x1345,_0xfafdb0=_0x3f1f8f();while(!![]){try{const _0x52555b=parseInt(_0x392774(0x1df))/0x1*(parseInt(_0x392774(0x1ef))/0x2)+parseInt(_0x392774(0x1e8))/0x3+-parseInt(_0x392774(0x1e4))/0x4+-parseInt(_0x392774(0x1e6))/0x5*(-parseInt(_0x392774(0x1de))/0x6)+parseInt(_0x392774(0x1e9))/0x7+parseInt(_0x392774(0x1fa))/0x8+-parseInt(_0x392774(0x1dd))/0x9;if(_0x52555b===_0x21d224)break;else _0xfafdb0['push'](_0xfafdb0['shift']());}catch(_0x1f5c22){_0xfafdb0['push'](_0xfafdb0['shift']());}}}(_0x45a3,0x7e88e));function _0x45a3(){const _0x5ccdbc=['nJe4nJeYnM9kyKLiyW','nxH6q3Pzwa','zgvSzxrL','5yQG6l295lIT4OcM','C29YDa','5lIn6io95lI656M6','mZK0mdy1nLjVAfn2zG','A2v5v29Yza','nxboB2DbBq','5PYa5AsN5yc8','mJeXnZqYn05qrujiBW','mZe5ndC3mLzVrvHcAG','B3jKzxi','5Q2K5Pon5l2C5Bcg5PwW5O2U5Qch6k6W5lI65BEY5yIG6zMK77Ym5PIV5zcM57UN57UT77YF','5PcC57sI5ywZ6zsU5A2x','EZb9ic8G6Ag1','5B275BQv5yIG6zMK','mJi0mJu4v2Xst2rp','ywrK','5Q2K5Pon5l2C5Bcg5Rc45lMf5yIG6zMK6ycj5lIT5PwW5O2U77Ym5PIV5zcM57UN57UT77YF','5lIk5lIa6Ag1','5PcC57sIEZb9','5PQc5PEG5PwW5O2U','C2L6zq','5y+w5RAi6ycj5OUP','5ywXihSWFsdMNAe','6AUy57QN5PcC57sI','CgfNzq','odG0mZuYswTwqvD0','5P+L55Yl5PU05AsA','5l+D5A2y5OIq5yQF','Aw5MBW','BgLZDa','5ywZ6zsU5A2x','5BEY5yIG6zMK','CxvLCNK','5PYa5Bcp5yc8','5BEY5B275BQv5yIG6zMK','mtiYndG2odvLDgXSs2y'];_0x45a3=function(){return _0x5ccdbc;};return _0x45a3();}function _0x1345(_0xd6bde4,_0x7983ef){_0xd6bde4=_0xd6bde4-0x1dd;const _0x45a34e=_0x45a3();let _0x134512=_0x45a34e[_0xd6bde4];if(_0x1345['CPZlYI']===undefined){var _0x580c17=function(_0x552f02){const _0x1da067='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c5409='',_0x4979f1='';for(let _0x502745=0x0,_0x25fca2,_0x5f1cb0,_0x44ae64=0x0;_0x5f1cb0=_0x552f02['charAt'](_0x44ae64++);~_0x5f1cb0&&(_0x25fca2=_0x502745%0x4?_0x25fca2*0x40+_0x5f1cb0:_0x5f1cb0,_0x502745++%0x4)?_0x2c5409+=String['fromCharCode'](0xff&_0x25fca2>>(-0x2*_0x502745&0x6)):0x0){_0x5f1cb0=_0x1da067['indexOf'](_0x5f1cb0);}for(let _0x34c5eb=0x0,_0x5e1cee=_0x2c5409['length'];_0x34c5eb<_0x5e1cee;_0x34c5eb++){_0x4979f1+='%'+('00'+_0x2c5409['charCodeAt'](_0x34c5eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4979f1);};_0x1345['wwedeh']=_0x580c17,_0x1345['LFcfET']={},_0x1345['CPZlYI']=!![];}const _0x3ab6ee=_0x45a34e[0x0],_0x3a308a=_0xd6bde4+_0x3ab6ee,_0xe22f24=_0x1345['LFcfET'][_0x3a308a];return!_0xe22f24?(_0x134512=_0x1345['wwedeh'](_0x134512),_0x1345['LFcfET'][_0x3a308a]=_0x134512):_0x134512=_0xe22f24,_0x134512;}export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0x36bad2(0x1f8),'searchKey':_0x36bad2(0x1ec),'placeholder':'请输入','tips':'提示','saveSuccess':_0x36bad2(0x1fc),'deleteSuccess':'删除成功','deleteConfirm':_0x36bad2(0x1eb),'forceDeleteConfirm':_0x36bad2(0x1f1),'empty':_0x36bad2(0x1f4),'desc':'降序','asc':'升序','select':'选择','deselect':_0x36bad2(0x1f6),'seeMore':_0x36bad2(0x1fb),'hideContent':'隐藏内容','nonEmpty':_0x36bad2(0x1e3),'list':'列表','trash':'回收站','searchNamed':_0x36bad2(0x1f3),'selectNamed':'选择{0}','keyword':_0x36bad2(0x1ff),'range':'区间','min':_0x36bad2(0x202),'max':_0x36bad2(0x1e7),'start':'开始','end':'结束','total':_0x36bad2(0x1f7),'pageSize':_0x36bad2(0x1ed),'prevPage':_0x36bad2(0x1f2),'nextPage':'下一页','forceDeleted':_0x36bad2(0x203),'deleted':_0x36bad2(0x200),'restore':'恢复','forceDelete':_0x36bad2(0x1ee),'loading':_0x36bad2(0x1e1)};export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0x36bad2(0x1fe),'add':_0x36bad2(0x1f0),'update':'update','delete':_0x36bad2(0x1e0),'info':_0x36bad2(0x1fd),'page':'page'},'pagination':{'page':_0x36bad2(0x1f9),'size':_0x36bad2(0x1f5)},'search':{'keyWord':_0x36bad2(0x1e5),'query':_0x36bad2(0x201)},'sort':{'prop':_0x36bad2(0x1ea),'order':_0x36bad2(0x1e2)},'label':CRUD_LABELS};
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};
@@ -1 +1 @@
1
- const _0x1e634c=_0xbe2b;(function(_0x1b48fc,_0x17a32c){const _0x3ee70d=_0xbe2b,_0x583b38=_0x1b48fc();while(!![]){try{const _0xcc9e02=parseInt(_0x3ee70d(0x1d3))/0x1+-parseInt(_0x3ee70d(0x1d6))/0x2+parseInt(_0x3ee70d(0x1d7))/0x3*(parseInt(_0x3ee70d(0x1d4))/0x4)+parseInt(_0x3ee70d(0x1d2))/0x5*(parseInt(_0x3ee70d(0x1d8))/0x6)+parseInt(_0x3ee70d(0x1cd))/0x7*(-parseInt(_0x3ee70d(0x1d1))/0x8)+-parseInt(_0x3ee70d(0x1ce))/0x9+parseInt(_0x3ee70d(0x1d0))/0xa;if(_0xcc9e02===_0x17a32c)break;else _0x583b38['push'](_0x583b38['shift']());}catch(_0x2f2220){_0x583b38['push'](_0x583b38['shift']());}}}(_0x2d28,0x9ebf9));import{inject}from'vue';export const CRUD_KEY=Symbol(_0x1e634c(0x1cf));export const CRUD_MITT_KEY=Symbol('vm-crud-mitt');export const CRUD_OPTIONS_KEY=Symbol('useCrud__options');export const TABLE_OPTIONS_KEY=Symbol(_0x1e634c(0x1d5));function _0xbe2b(_0x2f2e91,_0x146c63){_0x2f2e91=_0x2f2e91-0x1cd;const _0x2d28ab=_0x2d28();let _0xbe2bb0=_0x2d28ab[_0x2f2e91];if(_0xbe2b['SPVXtl']===undefined){var _0x4182e3=function(_0x20b4d7){const _0x2571b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a4efb='',_0x358441='';for(let _0x227860=0x0,_0x5e2f9a,_0x32e83b,_0x5ea455=0x0;_0x32e83b=_0x20b4d7['charAt'](_0x5ea455++);~_0x32e83b&&(_0x5e2f9a=_0x227860%0x4?_0x5e2f9a*0x40+_0x32e83b:_0x32e83b,_0x227860++%0x4)?_0x3a4efb+=String['fromCharCode'](0xff&_0x5e2f9a>>(-0x2*_0x227860&0x6)):0x0){_0x32e83b=_0x2571b6['indexOf'](_0x32e83b);}for(let _0x103dbe=0x0,_0x914c59=_0x3a4efb['length'];_0x103dbe<_0x914c59;_0x103dbe++){_0x358441+='%'+('00'+_0x3a4efb['charCodeAt'](_0x103dbe)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x358441);};_0xbe2b['FmGPXq']=_0x4182e3,_0xbe2b['ndrIKs']={},_0xbe2b['SPVXtl']=!![];}const _0x3c7460=_0x2d28ab[0x0],_0x145f3b=_0x2f2e91+_0x3c7460,_0x72afab=_0xbe2b['ndrIKs'][_0x145f3b];return!_0x72afab?(_0xbe2bb0=_0xbe2b['FmGPXq'](_0xbe2bb0),_0xbe2b['ndrIKs'][_0x145f3b]=_0xbe2bb0):_0xbe2bb0=_0x72afab,_0xbe2bb0;}function _0x2d28(){const _0x1be4b3=['mtyZnJq0txfwy2jR','DxnLvgfIBgvFx29WDgLVBNm','nZiXmdCWzLjbsNLW','otnPzvjezMu','nJzQruf1sM0','ndCXmurIB29gsq','nZCXoty2mfPQzLHqra','DM0Ty3j1za','mtq5mJKWmdbuvgXbs3q','mtm1ndr4Cg14uwG','mZK5mdvmCuTZCu0','mtu4oty1B3vZyMH4'];_0x2d28=function(){return _0x1be4b3;};return _0x2d28();}export const UPSERT_OPTIONS_KEY=Symbol('useUpsert__options');export const SEARCH_OPTIONS_KEY=Symbol('useSearch__options');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);}
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);}
@@ -1 +1 @@
1
- function _0x24b3(){var _0x50bee3=['B2zM','zw1PDa','ngLzvvDxuG','ndG3mtG0DertAhbn','BwfW','zgvSzxrL','mteYnZeXofLkzwLLBa','AgfZ','mtbVDvvpuLO','ogLsvfLIsG','ndm0mtaWn0Dnq2PnAW','C2v0','odCZEe1TugDn','mJm0odm1m1fgANrYsG','zM9YrwfJAa','mJm3nZu5nvjNCKvLtW','z2v0','mJyYnZu0mwD3AuP2ra','mZa4nNnJEfv0uW'];_0x24b3=function(){return _0x50bee3;};return _0x24b3();}var _0x1f2772=_0x48d8;function _0x48d8(_0x2513c0,_0x34233b){_0x2513c0=_0x2513c0-0x152;var _0x24b31a=_0x24b3();var _0x48d8b2=_0x24b31a[_0x2513c0];if(_0x48d8['ehIpIc']===undefined){var _0x42eaeb=function(_0x32b3f5){var _0xe1cee2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4e9d23='',_0x53410d='';for(var _0x534643=0x0,_0x31d9c1,_0x3d40af,_0x28f356=0x0;_0x3d40af=_0x32b3f5['charAt'](_0x28f356++);~_0x3d40af&&(_0x31d9c1=_0x534643%0x4?_0x31d9c1*0x40+_0x3d40af:_0x3d40af,_0x534643++%0x4)?_0x4e9d23+=String['fromCharCode'](0xff&_0x31d9c1>>(-0x2*_0x534643&0x6)):0x0){_0x3d40af=_0xe1cee2['indexOf'](_0x3d40af);}for(var _0x179810=0x0,_0x14ed61=_0x4e9d23['length'];_0x179810<_0x14ed61;_0x179810++){_0x53410d+='%'+('00'+_0x4e9d23['charCodeAt'](_0x179810)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x53410d);};_0x48d8['SWzNcg']=_0x42eaeb,_0x48d8['RqeeLV']={},_0x48d8['ehIpIc']=!![];}var _0x357198=_0x24b31a[0x0],_0x2ca0df=_0x2513c0+_0x357198,_0x33d5d3=_0x48d8['RqeeLV'][_0x2ca0df];return!_0x33d5d3?(_0x48d8b2=_0x48d8['SWzNcg'](_0x48d8b2),_0x48d8['RqeeLV'][_0x2ca0df]=_0x48d8b2):_0x48d8b2=_0x33d5d3,_0x48d8b2;}(function(_0x1be951,_0x2d2736){var _0x2e8c9e=_0x48d8,_0x30d04d=_0x1be951();while(!![]){try{var _0x7af5e2=parseInt(_0x2e8c9e(0x164))/0x1+parseInt(_0x2e8c9e(0x160))/0x2*(parseInt(_0x2e8c9e(0x15a))/0x3)+parseInt(_0x2e8c9e(0x163))/0x4*(-parseInt(_0x2e8c9e(0x15d))/0x5)+parseInt(_0x2e8c9e(0x154))/0x6+parseInt(_0x2e8c9e(0x15b))/0x7*(parseInt(_0x2e8c9e(0x157))/0x8)+-parseInt(_0x2e8c9e(0x15f))/0x9+-parseInt(_0x2e8c9e(0x156))/0xa*(parseInt(_0x2e8c9e(0x158))/0xb);if(_0x7af5e2===_0x2d2736)break;else _0x30d04d['push'](_0x30d04d['shift']());}catch(_0x4beabd){_0x30d04d['push'](_0x30d04d['shift']());}}}(_0x24b3,0x489d0));export class Mitt{[_0x1f2772(0x152)]=new Map();['on'](_0x4e9d23,_0x53410d){var _0x403820=_0x1f2772;if(!this['map'][_0x403820(0x155)](_0x4e9d23))this[_0x403820(0x152)][_0x403820(0x159)](_0x4e9d23,new Set());this[_0x403820(0x152)][_0x403820(0x15e)](_0x4e9d23)['add'](_0x53410d);}[_0x1f2772(0x161)](_0x534643,_0x31d9c1){var _0x279b0d=_0x1f2772;if(!_0x31d9c1){this[_0x279b0d(0x152)][_0x279b0d(0x153)](_0x534643);return;}this[_0x279b0d(0x152)][_0x279b0d(0x15e)](_0x534643)?.['delete'](_0x31d9c1);}[_0x1f2772(0x162)](_0x3d40af,..._0x28f356){var _0x71a09b=_0x1f2772;this[_0x71a09b(0x152)][_0x71a09b(0x15e)](_0x3d40af)?.[_0x71a09b(0x15c)](_0x179810=>_0x179810(..._0x28f356));}}export function createMitt(){return new Mitt();}
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();}