{"version":3,"file":"taiga-ui-editor-extensions-indent-outdent.mjs","sources":["../../../projects/editor/extensions/indent-outdent/index.ts","../../../projects/editor/extensions/indent-outdent/taiga-ui-editor-extensions-indent-outdent.ts"],"sourcesContent":["import {type Editor, Extension, type KeyboardShortcutCommand} from '@tiptap/core';\n\nexport function tuiIsListActive(editor: Editor): boolean {\n    return (\n        editor.isActive('bulletList') ||\n        editor.isActive('orderedList') ||\n        editor.isActive('taskList')\n    );\n}\n\nexport const TuiTabExtension = Extension.create({\n    name: 'indent',\n\n    addKeyboardShortcuts(): Record<string, KeyboardShortcutCommand> {\n        return {\n            Tab: () =>\n                tuiIsListActive(this.editor)\n                    ? false\n                    : this.editor.commands.insertContent('\\t'),\n        };\n    },\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAEM,SAAU,eAAe,CAAC,MAAc,EAAA;AAC1C,IAAA,QACI,MAAM,CAAC,QAAQ,CAAC,YAAY,CAAC;AAC7B,QAAA,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC;AAC9B,QAAA,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,EAC7B;AACN,CAAC;AAEY,MAAA,eAAe,GAAG,SAAS,CAAC,MAAM,CAAC;AAC5C,IAAA,IAAI,EAAE,QAAQ;IAEd,oBAAoB,GAAA;QAChB,OAAO;YACH,GAAG,EAAE,MACD,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC;AACxB,kBAAE,KAAK;kBACL,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC;SACrD,CAAC;KACL;AACJ,CAAA;;ACrBD;;AAEG;;;;"}