import { Extension, textInputRule } from '@tiptap/core' export const SmileyReplacer = Extension.create({ name: 'smileyReplacer', addInputRules() { return [ textInputRule({ find: /-___- $/, replace: '๐Ÿ˜‘ ' }), textInputRule({ find: /:'-\) $/, replace: '๐Ÿ˜‚ ' }), textInputRule({ find: /':-\) $/, replace: '๐Ÿ˜… ' }), textInputRule({ find: /':-D $/, replace: '๐Ÿ˜… ' }), textInputRule({ find: />:-\) $/, replace: '๐Ÿ˜† ' }), textInputRule({ find: /-__- $/, replace: '๐Ÿ˜‘ ' }), textInputRule({ find: /':-\( $/, replace: '๐Ÿ˜“ ' }), textInputRule({ find: /:'-\( $/, replace: '๐Ÿ˜ข ' }), textInputRule({ find: />:-\( $/, replace: '๐Ÿ˜  ' }), textInputRule({ find: /O:-\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /0:-3 $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /0:-\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /0;\^\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /O;-\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /0;-\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /O:-3 $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /:'\) $/, replace: '๐Ÿ˜‚ ' }), textInputRule({ find: /:-D $/, replace: '๐Ÿ˜ƒ ' }), textInputRule({ find: /':\) $/, replace: '๐Ÿ˜… ' }), textInputRule({ find: /'=\) $/, replace: '๐Ÿ˜… ' }), textInputRule({ find: /':D $/, replace: '๐Ÿ˜… ' }), textInputRule({ find: /'=D $/, replace: '๐Ÿ˜… ' }), textInputRule({ find: />:\) $/, replace: '๐Ÿ˜† ' }), textInputRule({ find: />;\) $/, replace: '๐Ÿ˜† ' }), textInputRule({ find: />=\) $/, replace: '๐Ÿ˜† ' }), textInputRule({ find: /;-\) $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /\*-\) $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /;-\] $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /;\^\) $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /B-\) $/, replace: '๐Ÿ˜Ž ' }), textInputRule({ find: /8-\) $/, replace: '๐Ÿ˜Ž ' }), textInputRule({ find: /B-D $/, replace: '๐Ÿ˜Ž ' }), textInputRule({ find: /8-D $/, replace: '๐Ÿ˜Ž ' }), textInputRule({ find: /:-\* $/, replace: '๐Ÿ˜˜ ' }), textInputRule({ find: /:\^\* $/, replace: '๐Ÿ˜˜ ' }), textInputRule({ find: /:-\) $/, replace: '๐Ÿ™‚ ' }), textInputRule({ find: /-_- $/, replace: '๐Ÿ˜‘ ' }), textInputRule({ find: /:-X $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /:-# $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /:-x $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: />.< $/, replace: '๐Ÿ˜ฃ ' }), textInputRule({ find: /:-O $/, replace: '๐Ÿ˜ฎ ' }), textInputRule({ find: /:-o $/, replace: '๐Ÿ˜ฎ ' }), textInputRule({ find: /O_O $/, replace: '๐Ÿ˜ฎ ' }), textInputRule({ find: />:O $/, replace: '๐Ÿ˜ฎ ' }), textInputRule({ find: /:-P $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:-p $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:-รž $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:-รพ $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:-b $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: />:P $/, replace: '๐Ÿ˜œ ' }), textInputRule({ find: /X-P $/, replace: '๐Ÿ˜œ ' }), textInputRule({ find: /x-p $/, replace: '๐Ÿ˜œ ' }), textInputRule({ find: /':\( $/, replace: '๐Ÿ˜“ ' }), textInputRule({ find: /'=\( $/, replace: '๐Ÿ˜“ ' }), textInputRule({ find: />:\\ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: />:\/ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /:-\/ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /:-. $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: />:\[ $/, replace: '๐Ÿ˜ž ' }), textInputRule({ find: /:-\( $/, replace: '๐Ÿ˜ž ' }), textInputRule({ find: /:-\[ $/, replace: '๐Ÿ˜ž ' }), textInputRule({ find: /:'\( $/, replace: '๐Ÿ˜ข ' }), textInputRule({ find: /;-\( $/, replace: '๐Ÿ˜ข ' }), textInputRule({ find: /#-\) $/, replace: '๐Ÿ˜ต ' }), textInputRule({ find: /%-\) $/, replace: '๐Ÿ˜ต ' }), textInputRule({ find: /X-\) $/, replace: '๐Ÿ˜ต ' }), textInputRule({ find: />:\( $/, replace: '๐Ÿ˜  ' }), textInputRule({ find: /0:3 $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /0:\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /O:\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /O=\) $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /O:3 $/, replace: '๐Ÿ˜‡ ' }), textInputRule({ find: /<\/3 $/, replace: '๐Ÿ’” ' }), textInputRule({ find: /:D $/, replace: '๐Ÿ˜ƒ ' }), textInputRule({ find: /=D $/, replace: '๐Ÿ˜ƒ ' }), textInputRule({ find: /;\) $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /\*\) $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /;\] $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /;D $/, replace: '๐Ÿ˜‰ ' }), textInputRule({ find: /B\) $/, replace: '๐Ÿ˜Ž ' }), textInputRule({ find: /8\) $/, replace: '๐Ÿ˜Ž ' }), textInputRule({ find: /:\* $/, replace: '๐Ÿ˜˜ ' }), textInputRule({ find: /=\* $/, replace: '๐Ÿ˜˜ ' }), textInputRule({ find: /:\) $/, replace: '๐Ÿ™‚ ' }), textInputRule({ find: /=\] $/, replace: '๐Ÿ™‚ ' }), textInputRule({ find: /=\) $/, replace: '๐Ÿ™‚ ' }), textInputRule({ find: /:\] $/, replace: '๐Ÿ™‚ ' }), textInputRule({ find: /:X $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /:# $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /=X $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /=x $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /:x $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /=# $/, replace: '๐Ÿ˜ถ ' }), textInputRule({ find: /:O $/, replace: '๐Ÿ˜ฎ ' }), textInputRule({ find: /:o $/, replace: '๐Ÿ˜ฎ ' }), textInputRule({ find: /:P $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /=P $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:p $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /=p $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:รž $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:รพ $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:b $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /d: $/, replace: '๐Ÿ˜› ' }), textInputRule({ find: /:\/ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /:\\ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /=\/ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /=\\ $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /:L $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /=L $/, replace: '๐Ÿ˜• ' }), textInputRule({ find: /:\( $/, replace: '๐Ÿ˜ž ' }), textInputRule({ find: /:\[ $/, replace: '๐Ÿ˜ž ' }), textInputRule({ find: /=\( $/, replace: '๐Ÿ˜ž ' }), textInputRule({ find: /;\( $/, replace: '๐Ÿ˜ข ' }), textInputRule({ find: /D: $/, replace: '๐Ÿ˜จ ' }), textInputRule({ find: /:\$ $/, replace: '๐Ÿ˜ณ ' }), textInputRule({ find: /=\$ $/, replace: '๐Ÿ˜ณ ' }), textInputRule({ find: /#\) $/, replace: '๐Ÿ˜ต ' }), textInputRule({ find: /%\) $/, replace: '๐Ÿ˜ต ' }), textInputRule({ find: /X\) $/, replace: '๐Ÿ˜ต ' }), textInputRule({ find: /:@ $/, replace: '๐Ÿ˜  ' }), textInputRule({ find: /<3 $/, replace: 'โค๏ธ ' }), textInputRule({ find: /\/shrug $/, replace: 'ยฏ\\_(ใƒ„)_/ยฏ' }), ] }, })