@tectra-ng/editor 0.4.4 → 0.4.5

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.
@@ -4843,7 +4843,7 @@ var TxEditor = class TxEditor extends TxFormControlBase {
4843
4843
  usesInheritance: true,
4844
4844
  ngImport: i0,
4845
4845
  template: "<div\n #frame\n class=\"tx-editor__frame\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class.tx-editor__frame--focused]=\"hasFocus()\"\n [class.tx-editor__frame--disabled]=\"isDisabled()\"\n [class.tx-editor__frame--invalid]=\"isInvalid()\"\n [class.tx-editor__frame--full]=\"fullView()\"\n [style]=\"hostStyle()\"\n>\n @if (groups().length || ai() || showFullViewButton() || toolbarEnd()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the tools inside take the focus; the toolbar only moves it with the arrows -->\n <div\n #toolbarElement\n class=\"tx-editor__toolbar\"\n role=\"toolbar\"\n [attr.aria-label]=\"translations().editorToolbar\"\n [attr.aria-controls]=\"id + '-content'\"\n [class]=\"passThrough().toolbar?.class\"\n [style]=\"passThrough().toolbar?.style\"\n (keydown)=\"onToolbarKeydown($event)\"\n >\n @for (group of groups(); track $index; let first = $first) {\n @if (!first) {\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n }\n @for (item of group; track item.tool) {\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n data-tool\n [class.tx-editor__tool--label]=\"item.tool === 'blockStyle'\"\n [class.tx-editor__tool--active]=\"state()?.active?.[item.tool]\"\n [attr.data-tool-name]=\"item.tool\"\n [attr.tabindex]=\"item.index === focusIndex() ? 0 : -1\"\n [attr.aria-label]=\"item.tool === 'blockStyle' ? translations().editorTextStyle + ': ' + blockLabel() : toolName(item.tool)\"\n [attr.aria-pressed]=\"isToggleTool(item.tool) ? !!state()?.active?.[item.tool] : null\"\n [attr.aria-haspopup]=\"isMenuTool(item.tool) ? 'menu' : isPopoverTool(item.tool) ? 'dialog' : null\"\n [disabled]=\"toolDisabled(item.tool)\"\n [txTooltip]=\"toolLabel(item.tool)\"\n [class]=\"passThrough().tool?.class\"\n [style]=\"passThrough().tool?.style\"\n (mousedown)=\"keepFocus($event)\"\n (click)=\"onToolClick($event, item.tool, item.index)\"\n >\n @switch (item.tool) {\n @case ('blockStyle') {\n <span class=\"tx-editor__tool-text\">{{ blockLabel() }}</span>\n <tx-icon class=\"tx-editor__chevron\" name=\"chevron-down\" />\n }\n @case ('align') {\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <tx-icon class=\"tx-editor__chevron\" name=\"chevron-down\" />\n }\n @case ('fontSize') {\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <tx-icon class=\"tx-editor__chevron\" name=\"chevron-down\" />\n }\n @case ('textColor') {\n <span class=\"tx-editor__color-icon\">\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <span class=\"tx-editor__color-bar\" [style.background]=\"state()?.color || null\"></span>\n </span>\n }\n @case ('highlight') {\n <span class=\"tx-editor__color-icon\">\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <span class=\"tx-editor__color-bar\" [style.background]=\"state()?.background || null\"></span>\n </span>\n }\n @default {\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n }\n }\n </button>\n }\n }\n <span class=\"tx-editor__toolbar-end\">\n <ng-content select=\"[txEditorToolbarEnd]\" />\n @if (ai()) {\n <button\n type=\"button\"\n class=\"tx-editor__ai\"\n data-tool\n [attr.tabindex]=\"groups().length ? -1 : 0\"\n [txTooltip]=\"aiLabel() ?? translations().editorAi\"\n [attr.aria-label]=\"aiLabel() ?? translations().editorAi\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"keepFocus($event)\"\n (click)=\"requestAi()\"\n >\n <tx-icon class=\"tx-editor__ai-icon\" name=\"sparkles\" />\n <span>AI</span>\n </button>\n }\n @if (showFullViewButton()) {\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n data-tool\n [attr.tabindex]=\"-1\"\n [attr.aria-pressed]=\"fullView()\"\n [attr.aria-label]=\"fullView() ? translations().editorNormalView : translations().editorFullView\"\n [txTooltip]=\"fullView() ? translations().editorNormalView : translations().editorFullView\"\n (mousedown)=\"keepFocus($event)\"\n (click)=\"toggleFullView()\"\n >\n <tx-icon [name]=\"fullView() ? 'window-minimize' : 'window-maximize'\" />\n </button>\n }\n </span>\n </div>\n }\n\n <div\n #mount\n class=\"tx-editor__content\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n [style.height]=\"contentStyle().height\"\n [style.min-height]=\"contentStyle().minHeight\"\n [style.max-height]=\"contentStyle().maxHeight\"\n ></div>\n\n @if (showCount() || maxLength()) {\n <div class=\"tx-editor__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-editor__count\" [class.tx-editor__count--limit]=\"!!maxLength() && (state()?.count ?? 0) >= maxLength()!\" aria-live=\"polite\">\n {{ countLabel() }}\n </span>\n </div>\n }\n\n <div\n #bubbleAnchor\n cdkOverlayOrigin\n #bubbleOrigin=\"cdkOverlayOrigin\"\n class=\"tx-editor__anchor\"\n aria-hidden=\"true\"\n [style.left.px]=\"bubbleBox().left\"\n [style.top.px]=\"bubbleBox().top\"\n [style.width.px]=\"bubbleBox().width\"\n [style.height.px]=\"bubbleBox().height\"\n ></div>\n <div\n #suggestAnchor\n cdkOverlayOrigin\n #suggestOrigin=\"cdkOverlayOrigin\"\n class=\"tx-editor__anchor\"\n aria-hidden=\"true\"\n [style.left.px]=\"suggestBox().left\"\n [style.top.px]=\"suggestBox().top\"\n [style.width.px]=\"suggestBox().width\"\n [style.height.px]=\"suggestBox().height\"\n ></div>\n</div>\n\n<tx-dialog\n size=\"fullscreen\"\n [visible]=\"fullView()\"\n [ariaLabel]=\"translations().editorFullView\"\n [closeOnEscape]=\"!suggestion() && !popoverOpen()\"\n [dt]=\"{ content: { padding: '0', lastPaddingBottom: '0' } }\"\n (visibleChange)=\"!$event && fullView.set(false)\"\n (opened)=\"onFullViewOpened()\"\n (closed)=\"unmountFullView()\"\n>\n <div #fullHost class=\"tx-editor__full-host\"></div>\n</tx-dialog>\n\n<input #imageInput class=\"tx-editor__file\" type=\"file\" accept=\"image/*\" multiple tabindex=\"-1\" aria-hidden=\"true\" (change)=\"onImagePicked($event)\" />\n\n<tx-menu #blockMenuRef popup [model]=\"blockMenu()\" [ariaLabel]=\"translations().editorTextStyle\" />\n<tx-menu #alignMenuRef popup [model]=\"alignMenu()\" [ariaLabel]=\"translations().editorAlign\" />\n<tx-menu #aiMenuRef popup [model]=\"aiMenu()\" [ariaLabel]=\"aiLabel() ?? translations().editorAi\" />\n<tx-menu #sizeMenuRef popup [model]=\"sizeMenu()\" [ariaLabel]=\"translations().editorFontSize\" />\n\n<tx-popover #popover [arrow]=\"false\" placement=\"bottom-start\" [ariaLabel]=\"popoverLabel()\" (closed)=\"onPopoverClosed()\">\n @switch (popoverKind()) {\n @case ('link') {\n <form class=\"tx-editor__form\" (submit)=\"$event.preventDefault(); applyLink()\">\n <input\n txInput\n class=\"tx-editor__field\"\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n placeholder=\"https://\"\n [attr.aria-label]=\"translations().editorLinkUrl\"\n [value]=\"linkDraft()\"\n (input)=\"linkDraft.set($any($event.target).value)\"\n />\n <span class=\"tx-editor__form-actions\">\n @if (state()?.link) {\n <button txButton type=\"button\" size=\"small\" text severity=\"danger\" icon=\"tx-editor-unlink\" (click)=\"removeLink()\">\n {{ translations().editorLinkRemove }}\n </button>\n }\n <button txButton type=\"submit\" size=\"small\">{{ translations().editorLinkApply }}</button>\n </span>\n </form>\n }\n @case ('video') {\n <form class=\"tx-editor__form\" (submit)=\"$event.preventDefault(); applyVideo()\">\n <input\n txInput\n class=\"tx-editor__field\"\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n placeholder=\"https://\"\n [attr.aria-label]=\"translations().editorVideoUrl\"\n [attr.aria-describedby]=\"id + '-video-hint'\"\n [value]=\"videoDraft()\"\n (input)=\"videoDraft.set($any($event.target).value)\"\n />\n <span class=\"tx-editor__hint\" [id]=\"id + '-video-hint'\">{{ translations().editorVideoHint }}</span>\n <span class=\"tx-editor__form-actions\">\n <button txButton type=\"submit\" size=\"small\">{{ translations().editorInsert }}</button>\n </span>\n </form>\n }\n @case ('textColor') {\n <ng-container [ngTemplateOutlet]=\"swatches\" [ngTemplateOutletContext]=\"{ $implicit: 'textColor', colors: textColors(), current: state()?.color }\" />\n }\n @case ('highlight') {\n <ng-container [ngTemplateOutlet]=\"swatches\" [ngTemplateOutletContext]=\"{ $implicit: 'highlight', colors: highlightColors(), current: state()?.background }\" />\n }\n }\n</tx-popover>\n\n<ng-template #swatches let-kind let-colors=\"colors\" let-current=\"current\">\n <div class=\"tx-editor__swatches\" role=\"group\" [attr.aria-label]=\"popoverLabel()\">\n <button\n type=\"button\"\n class=\"tx-editor__swatch tx-editor__swatch--none\"\n [attr.aria-label]=\"translations().editorDefaultColor\"\n [attr.aria-pressed]=\"!current\"\n [txTooltip]=\"translations().editorDefaultColor\"\n (click)=\"applyColor(kind, null)\"\n >\n <tx-icon name=\"ban\" />\n </button>\n @for (color of colors; track color.value) {\n <button\n type=\"button\"\n class=\"tx-editor__swatch\"\n [attr.data-kind]=\"kind\"\n [style.--_swatch]=\"color.value\"\n [attr.aria-label]=\"colorLabel(color)\"\n [attr.aria-pressed]=\"current === color.value\"\n [txTooltip]=\"colorLabel(color)\"\n (click)=\"applyColor(kind, color.value)\"\n >\n @if (kind === 'textColor') {\n <span class=\"tx-editor__swatch-letter\" aria-hidden=\"true\">A</span>\n }\n </button>\n }\n </div>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n #bubbleOverlay=\"cdkConnectedOverlay\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"bubbleOrigin\"\n [cdkConnectedOverlayOpen]=\"showBubble()\"\n [cdkConnectedOverlayPositions]=\"bubblePositions()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayPush]=\"true\"\n>\n <div\n class=\"tx-editor__bubble\"\n role=\"toolbar\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.aria-label]=\"translations().editorToolbar\"\n [style]=\"hostStyle()\"\n [class]=\"passThrough().bubble?.class\"\n (mousedown)=\"keepFocus($event)\"\n >\n @if (state()?.ai?.done) {\n <span class=\"tx-editor__bubble-label\"><tx-icon class=\"tx-editor__ai-icon\" name=\"sparkles\" />AI</span>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button txButton type=\"button\" size=\"small\" text severity=\"secondary\" icon=\"check\" tabindex=\"-1\" (click)=\"keepAi()\">{{ translations().editorAiKeep }}</button>\n <button txButton type=\"button\" size=\"small\" text severity=\"secondary\" icon=\"undo\" tabindex=\"-1\" (click)=\"discardAi()\">{{ translations().editorAiDiscard }}</button>\n } @else if (state()?.empty && !state()?.link && state()?.table) {\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorRowAbove\" [txTooltip]=\"translations().editorRowAbove\" (click)=\"tableAction('rowAbove')\">\n <tx-icon name=\"tx-editor-row-above\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorRowBelow\" [txTooltip]=\"translations().editorRowBelow\" (click)=\"tableAction('rowBelow')\">\n <tx-icon name=\"tx-editor-row-below\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorColumnLeft\" [txTooltip]=\"translations().editorColumnLeft\" (click)=\"tableAction('columnLeft')\">\n <tx-icon name=\"tx-editor-column-left\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorColumnRight\" [txTooltip]=\"translations().editorColumnRight\" (click)=\"tableAction('columnRight')\">\n <tx-icon name=\"tx-editor-column-right\" />\n </button>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n tabindex=\"-1\"\n [class.tx-editor__tool--active]=\"state()?.headerRow\"\n [attr.aria-pressed]=\"!!state()?.headerRow\"\n [attr.aria-label]=\"translations().editorHeaderRow\"\n [txTooltip]=\"translations().editorHeaderRow\"\n (click)=\"tableAction('header')\"\n >\n <tx-icon name=\"tx-editor-header-row\" />\n </button>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorDeleteRow\" [txTooltip]=\"translations().editorDeleteRow\" (click)=\"tableAction('deleteRow')\">\n <tx-icon name=\"tx-editor-delete-row\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorDeleteColumn\" [txTooltip]=\"translations().editorDeleteColumn\" (click)=\"tableAction('deleteColumn')\">\n <tx-icon name=\"tx-editor-delete-column\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool tx-editor__tool--danger\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorDeleteTable\" [txTooltip]=\"translations().editorDeleteTable\" (click)=\"tableAction('delete')\">\n <tx-icon name=\"trash\" />\n </button>\n } @else if (state()?.empty && state()?.link; as link) {\n <a class=\"tx-editor__bubble-link\" [href]=\"link.href\" target=\"_blank\" rel=\"noopener noreferrer\" tabindex=\"-1\">{{ link.href }}</a>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorLinkEdit\" [txTooltip]=\"translations().editorLinkEdit\" (click)=\"openLink(bubbleAnchor)\">\n <tx-icon name=\"pencil\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorLinkRemove\" [txTooltip]=\"translations().editorLinkRemove\" (click)=\"removeLink()\">\n <tx-icon name=\"tx-editor-unlink\" />\n </button>\n } @else {\n @for (tool of bubbleTools; track tool) {\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n tabindex=\"-1\"\n [class.tx-editor__tool--active]=\"state()?.active?.[tool]\"\n [attr.aria-pressed]=\"!!state()?.active?.[tool]\"\n [attr.aria-label]=\"toolName(tool)\"\n [txTooltip]=\"toolLabel(tool)\"\n (click)=\"onToolClick($event, tool, -1)\"\n >\n <tx-icon [name]=\"toolIcon(tool)\" />\n </button>\n }\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n @if (aiActions().length) {\n <button\n type=\"button\"\n class=\"tx-editor__tool tx-editor__tool--ai\"\n tabindex=\"-1\"\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"aiLabel() ?? translations().editorAi\"\n [txTooltip]=\"aiLabel() ?? translations().editorAi\"\n (click)=\"openAiMenu($event)\"\n >\n <tx-icon class=\"tx-editor__ai-icon\" name=\"sparkles\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n tabindex=\"-1\"\n [class.tx-editor__tool--active]=\"state()?.active?.link\"\n [attr.aria-label]=\"toolName('link')\"\n [txTooltip]=\"toolLabel('link')\"\n (click)=\"openLink(bubbleAnchor)\"\n >\n <tx-icon name=\"link\" />\n </button>\n }\n </div>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n #suggestOverlay=\"cdkConnectedOverlay\"\n [cdkConnectedOverlayScrollStrategy]=\"suggestScrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"suggestOrigin\"\n [cdkConnectedOverlayOpen]=\"showSuggestions()\"\n [cdkConnectedOverlayPositions]=\"suggestPositions\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayPush]=\"true\"\n>\n <div\n class=\"tx-editor__suggestions\"\n role=\"listbox\"\n [id]=\"id + '-suggestions'\"\n [attr.data-kind]=\"suggestion()?.kind\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.aria-label]=\"suggestionLabel()\"\n [style]=\"hostStyle()\"\n [class]=\"passThrough().suggestions?.class\"\n (mousedown)=\"keepFocus($event)\"\n >\n @for (item of suggestionItems(); track item.id; let index = $index) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the editor handles the keys for the list -->\n <div\n class=\"tx-editor__suggestion\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [attr.aria-selected]=\"index === suggestionIndex()\"\n (mouseenter)=\"suggestionIndex.set(index)\"\n (click)=\"pickSuggestion(item)\"\n >\n @if (item.glyph) {\n <span class=\"tx-editor__glyph\" aria-hidden=\"true\">{{ item.glyph }}</span>\n } @else if (item.icon) {\n <span class=\"tx-editor__command-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon\" /></span>\n } @else if (item.avatar) {\n <img class=\"tx-editor__avatar\" alt=\"\" [src]=\"item.avatar\" />\n } @else {\n <span class=\"tx-editor__avatar\" aria-hidden=\"true\">{{ initials(item.label) }}</span>\n }\n <span class=\"tx-editor__suggestion-text\">\n <span class=\"tx-editor__suggestion-label\">{{ item.label }}</span>\n @if (item.description) {\n <span class=\"tx-editor__suggestion-description\">{{ item.description }}</span>\n }\n </span>\n @if (item.shortcut) {\n <kbd class=\"tx-editor__shortcut\">{{ item.shortcut }}</kbd>\n }\n </div>\n } @empty {\n <div class=\"tx-editor__suggestion-empty\">{{ translations().editorNoMatches }}</div>\n }\n </div>\n</ng-template>\n",
4846
- styles: ["@charset \"UTF-8\";:host{position:relative;display:block;min-width:0}.tx-editor__frame{position:relative;display:flex;flex-direction:column;min-width:0}.tx-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center}.tx-editor__toolbar-end{display:inline-flex;align-items:center;margin-inline-start:auto}.tx-editor__tool,.tx-editor__ai{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.tx-editor__tool:disabled,.tx-editor__ai:disabled{cursor:default}.tx-editor__color-icon{position:relative;display:inline-flex;flex-direction:column;align-items:center}.tx-editor__content{position:relative;display:flex;flex-direction:column;overflow:auto}.tx-editor__full-host{display:flex;flex-direction:column;height:100%;min-height:0}.tx-editor__full-host>.tx-editor__frame{flex:1 1 auto;min-height:0}.tx-editor__anchor{position:absolute;pointer-events:none;visibility:hidden}.tx-editor__file{display:none}.tx-editor__form,.tx-editor__swatches{display:flex}.tx-editor__form{flex-direction:column}.tx-editor__form-actions{display:flex;justify-content:flex-end}.tx-editor__bubble{display:flex;align-items:center}.tx-editor__bubble-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__suggestions{overflow-y:auto}.tx-editor__suggestion{display:flex;align-items:center;cursor:pointer}.tx-editor__suggestion-text{display:flex;flex-direction:column;min-width:0}.tx-editor__suggestion-label,.tx-editor__suggestion-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame ::ng-deep .tx-editor__prose{flex:1 0 auto;outline:none;white-space:pre-wrap;word-wrap:break-word;font-variant-ligatures:none;font-feature-settings:\"liga\" 0}.tx-editor__frame ::ng-deep .tx-editor__prose [contenteditable=false]{white-space:normal}.tx-editor__frame ::ng-deep .tx-editor__prose pre{white-space:pre-wrap}.tx-editor__frame ::ng-deep .tx-editor__image{position:relative;width:fit-content;max-width:100%;margin-block:var(--tx-editor-content-block-gap)}.tx-editor__frame ::ng-deep .tx-editor__image img{margin:0}.tx-editor__frame ::ng-deep .tx-editor__image-handle{position:absolute;top:50%;display:none;cursor:ew-resize;touch-action:none;transform:translate(-50%,-50%)}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=right]{left:100%}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=left]{left:0}.tx-editor__frame ::ng-deep .tx-editor__image--selected .tx-editor__image-handle{display:block}.tx-editor__frame ::ng-deep .tx-editor__prose [data-type=callout]:before{display:none}.tx-editor__frame ::ng-deep .tx-editor__callout-body>:last-child{margin-bottom:0}.tx-editor__frame ::ng-deep .tx-editor__callout-marker{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);margin:0;padding:0;border:0;border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);font-family:inherit;font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:before{content:\"i\"}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:hover:not(:disabled){transform:scale(1.12)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:disabled{cursor:default}.tx-editor__frame ::ng-deep [data-tone=success]>.tx-editor__callout-marker:before{content:\"\\2713\"}.tx-editor__frame ::ng-deep [data-tone=warn]>.tx-editor__callout-marker:before,.tx-editor__frame ::ng-deep [data-tone=danger]>.tx-editor__callout-marker:before{content:\"!\"}.tx-editor__frame ::ng-deep .tx-editor__ai-pending{background:linear-gradient(90deg,var(--tx-editor-ai-color) 0%,color-mix(in srgb,var(--tx-editor-ai-color) 35%,transparent) 50%,var(--tx-editor-ai-color) 100%) 0 0/200% 100%;color:transparent;-webkit-background-clip:text;background-clip:text;animation:tx-editor-shimmer 1.4s linear infinite}.tx-editor__frame ::ng-deep .tx-editor__ai-result{border-radius:var(--tx-radius-xs);background:var(--tx-editor-ai-background);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor__frame ::ng-deep .tx-editor--column-resize{cursor:col-resize}.tx-editor__frame ::ng-deep .tx-editor__prose td,.tx-editor__frame ::ng-deep .tx-editor__prose th{position:relative;min-width:48px}.tx-editor__frame ::ng-deep .tx-editor__drop-cursor{position:absolute;z-index:3;pointer-events:none}.tx-editor__frame ::ng-deep .tx-editor__video{position:relative;max-width:640px}.tx-editor__frame ::ng-deep .tx-editor__video-shield{position:absolute;inset:0;cursor:pointer}.tx-editor__frame[data-styled]{--_duration: var(--tx-editor-transition-duration);--_easing: var(--tx-editor-easing);color:var(--tx-editor-content-color);font-family:var(--tx-font-family)}.tx-editor__frame[data-styled]{border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-editor-border-radius);background:var(--tx-editor-background);box-shadow:var(--tx-form-field-shadow);transition:border-color var(--_duration) var(--_easing),box-shadow var(--_duration) var(--_easing)}.tx-editor__frame[data-styled]:not(.tx-editor__frame--disabled):not(.tx-editor__frame--focused):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--focused{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-editor__frame[data-styled].tx-editor__frame--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--disabled{background:var(--tx-form-field-disabled-background);opacity:.7}.tx-editor__frame[data-styled] .tx-editor__toolbar{gap:var(--tx-editor-toolbar-gap);padding:var(--tx-editor-toolbar-padding);border-bottom:1px solid var(--tx-editor-toolbar-border-color);border-radius:calc(var(--tx-editor-border-radius) - 1px) calc(var(--tx-editor-border-radius) - 1px) 0 0;background:var(--tx-editor-toolbar-background)}.tx-editor__frame[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__frame[data-styled] .tx-editor__toolbar-end{gap:var(--tx-editor-toolbar-gap)}.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__bubble[data-styled] .tx-editor__tool{gap:2px;min-width:var(--tx-editor-tool-size);height:var(--tx-editor-tool-size);border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:-1px;color:var(--tx-editor-tool-color);font-size:var(--tx-editor-tool-icon-size);transition:background-color var(--_duration, .2s) var(--_easing, ease),color var(--_duration, .2s) var(--_easing, ease),outline-color var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame[data-styled] .tx-editor__tool:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool:hover:not(:disabled){background:var(--tx-editor-tool-hover-background);color:var(--tx-editor-tool-hover-color)}.tx-editor__frame[data-styled] .tx-editor__tool:focus-visible,.tx-editor__bubble[data-styled] .tx-editor__tool:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__tool:disabled,.tx-editor__bubble[data-styled] .tx-editor__tool:disabled{opacity:var(--tx-editor-tool-disabled-opacity)}.tx-editor__bubble[data-styled] .tx-editor__tool--danger:hover{background:color-mix(in srgb,var(--tx-danger-base) 12%,transparent);color:var(--tx-danger-base)}.tx-editor__frame[data-styled] .tx-editor__tool--active,.tx-editor__bubble[data-styled] .tx-editor__tool--active{background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--active:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool--active:hover:not(:disabled){background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--label{justify-content:space-between;min-width:112px;padding:var(--tx-editor-tool-label-padding);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-editor-tool-label-font-weight)}.tx-editor__frame[data-styled] .tx-editor__tool-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame[data-styled] .tx-editor__chevron{font-size:.7em;opacity:.7}.tx-editor__frame[data-styled] .tx-editor__tool:not(.tx-editor__tool--label):has(.tx-editor__chevron){padding:0 5px 0 7px}.tx-editor__frame[data-styled] .tx-editor__color-bar{width:1em;height:3px;margin-top:1px;border-radius:var(--tx-radius-full);background:currentColor;opacity:.85}.tx-editor__frame[data-styled] .tx-editor__ai{gap:6px;height:var(--tx-editor-tool-size);padding:0 10.5px;border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:1px;background:var(--tx-editor-ai-background);color:var(--tx-editor-ai-color);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-font-weight-semibold);transition:background-color var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] .tx-editor__ai:hover:not(:disabled){background:var(--tx-editor-ai-hover-background)}.tx-editor__frame[data-styled] .tx-editor__ai:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__frame[data-styled] .tx-editor__content{min-height:var(--tx-editor-content-min-height);cursor:text}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose{padding:var(--tx-editor-content-padding)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__placeholder:first-child:before{float:left;height:0;color:var(--tx-editor-content-placeholder-color);content:attr(data-placeholder);pointer-events:none}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img,.tx-editor__frame[data-styled] ::ng-deep .tx-editor__video--selected{outline:var(--tx-editor-content-image-selected-outline);outline-offset:2px;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img{cursor:grab}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle{width:var(--tx-editor-image-handle-width);height:var(--tx-editor-image-handle-height);border:1.5px solid var(--tx-editor-image-handle-border-color);border-radius:var(--tx-radius-full);background:var(--tx-editor-image-handle-background);box-shadow:var(--tx-editor-image-handle-shadow);transition:transform var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle:hover{transform:translate(-50%,-50%) scaleY(1.12)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--resizing img{opacity:.85}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__drop-cursor{border-radius:var(--tx-radius-full);background:var(--tx-editor-image-drop-cursor-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose hr.ProseMirror-selectednode{border-top-color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose ::selection{background:var(--tx-editor-tool-active-background)}.tx-editor__frame[data-styled] .tx-editor__footer{display:flex;justify-content:flex-end;padding:var(--tx-editor-footer-padding);color:var(--tx-editor-footer-color);font-size:var(--tx-editor-footer-font-size);font-variant-numeric:tabular-nums}.tx-editor__frame[data-styled] .tx-editor__count--limit{color:var(--tx-editor-footer-limit-color)}.tx-editor__frame[data-styled].tx-editor__frame--full{height:100%;border:0;border-radius:0;box-shadow:none}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__toolbar{border-radius:0}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__content{flex:1 1 auto;min-height:0}.tx-editor__bubble[data-styled]{gap:var(--tx-editor-bubble-gap);padding:var(--tx-editor-bubble-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__bubble[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__bubble[data-styled] .tx-editor__bubble-label{display:inline-flex;align-items:center;gap:6px;padding:0 7px;color:var(--tx-editor-ai-color);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold)}.tx-editor__bubble[data-styled] .tx-editor__tool--ai{color:var(--tx-editor-ai-color)}.tx-editor__bubble[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__bubble[data-styled] .tx-editor__bubble-link{max-width:var(--tx-editor-bubble-link-max-width);padding:0 7px;color:var(--tx-editor-content-link-color);font-size:var(--tx-font-size-sm);text-decoration:none}.tx-editor__bubble[data-styled] .tx-editor__bubble-link:hover{text-decoration:underline}.tx-editor__form{gap:var(--tx-editor-popover-gap);width:var(--tx-editor-popover-width);max-width:100%}.tx-editor__form-actions{gap:4px}.tx-editor__field{width:100%}.tx-editor__hint{margin-top:calc(var(--tx-editor-popover-gap) * -.5);color:var(--tx-text-muted);font-size:var(--tx-font-size-xs)}.tx-editor__swatches{display:grid;grid-template-columns:repeat(5,var(--tx-editor-swatch-size));gap:var(--tx-editor-swatch-gap)}.tx-editor__swatch{display:inline-flex;align-items:center;justify-content:center;width:var(--tx-editor-swatch-size);height:var(--tx-editor-swatch-size);margin:0;padding:0;border:0;border-radius:var(--tx-editor-swatch-border-radius);outline:2px solid transparent;outline-offset:1px;background:var(--_swatch, transparent);box-shadow:inset 0 0 0 1px var(--tx-editor-swatch-ring);color:var(--tx-text-muted);font-family:var(--tx-font-family);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold);cursor:pointer;transition:transform var(--tx-editor-transition-duration) var(--tx-editor-easing),outline-color var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__swatch:hover{transform:scale(1.08)}.tx-editor__swatch:focus-visible,.tx-editor__swatch[aria-pressed=true]{outline-color:var(--tx-editor-swatch-selected-ring)}.tx-editor__swatch[data-kind=textColor]{background:transparent;color:var(--_swatch)}.tx-editor__suggestions[data-styled]{width:var(--tx-editor-suggestion-width);max-height:var(--tx-editor-suggestion-max-height);padding:var(--tx-editor-suggestion-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);font-size:var(--tx-font-size-md);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion{gap:var(--tx-editor-suggestion-item-gap);padding:var(--tx-editor-suggestion-item-padding);border-radius:var(--tx-editor-suggestion-item-radius)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion[aria-selected=true]{background:var(--tx-editor-suggestion-item-focus-background)}.tx-editor__suggestions[data-styled] .tx-editor__avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);height:var(--tx-editor-suggestion-avatar-size);border-radius:var(--tx-radius-full);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-size:var(--tx-font-size-xs);font-weight:var(--tx-font-weight-semibold);object-fit:cover}.tx-editor__suggestions[data-styled] .tx-editor__glyph{display:inline-flex;flex-shrink:0;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);font-size:1.15em;line-height:1}.tx-editor__suggestions[data-styled] .tx-editor__command-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:calc(var(--tx-editor-suggestion-avatar-size) + 6px);height:calc(var(--tx-editor-suggestion-avatar-size) + 6px);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-radius-md);background:var(--tx-editor-toolbar-background);color:var(--tx-text-muted);font-size:var(--tx-editor-tool-icon-size)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-text{flex:1 1 auto}.tx-editor__suggestions[data-styled] .tx-editor__shortcut{flex-shrink:0;color:var(--tx-editor-suggestion-secondary-color);font-family:var(--tx-font-family);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-description,.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{color:var(--tx-editor-suggestion-secondary-color);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{padding:var(--tx-editor-suggestion-item-padding)}@keyframes tx-editor-ai-breathe{0%,to{opacity:1;transform:rotate(0) scale(1)}50%{opacity:.75;transform:rotate(18deg) scale(1.12)}}@keyframes tx-editor-shimmer{to{background-position:-200% 0}}@keyframes tx-editor-pop{0%{opacity:0;transform:translateY(2px) scale(.97)}}@media(prefers-reduced-motion:reduce){.tx-editor__frame[data-styled] .tx-editor__frame,.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__frame[data-styled] .tx-editor__ai,.tx-editor__swatch{transition:none}.tx-editor__frame[data-styled] .tx-editor__ai-icon,.tx-editor__bubble[data-styled] .tx-editor__ai-icon,.tx-editor__frame ::ng-deep .tx-editor__ai-pending,.tx-editor__bubble[data-styled],.tx-editor__suggestions[data-styled]{animation:none}.tx-editor__swatch:hover{transform:none}}\n"],
4846
+ styles: ["@charset \"UTF-8\";:host{position:relative;display:block;min-width:0}.tx-editor__frame{position:relative;display:flex;flex-direction:column;min-width:0}.tx-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center}.tx-editor__toolbar-end{display:inline-flex;align-items:center;margin-inline-start:auto}.tx-editor__tool,.tx-editor__ai{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.tx-editor__tool:disabled,.tx-editor__ai:disabled{cursor:default}.tx-editor__color-icon{position:relative;display:inline-flex;flex-direction:column;align-items:center}.tx-editor__content{position:relative;display:flex;flex-direction:column;overflow:auto}.tx-editor__full-host{display:flex;flex-direction:column;height:100%;min-height:0}.tx-editor__full-host>.tx-editor__frame{flex:1 1 auto;min-height:0}.tx-editor__anchor{position:absolute;pointer-events:none;visibility:hidden}.tx-editor__file{display:none}.tx-editor__form,.tx-editor__swatches{display:flex}.tx-editor__form{flex-direction:column}.tx-editor__form-actions{display:flex;justify-content:flex-end}.tx-editor__bubble{display:flex;align-items:center}.tx-editor__bubble-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__suggestions{overflow-y:auto}.tx-editor__suggestion{display:flex;align-items:center;cursor:pointer}.tx-editor__suggestion-text{display:flex;flex-direction:column;min-width:0}.tx-editor__suggestion-label,.tx-editor__suggestion-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame ::ng-deep .tx-editor__prose{flex:1 0 auto;outline:none;white-space:pre-wrap;word-wrap:break-word;font-variant-ligatures:none;font-feature-settings:\"liga\" 0}.tx-editor__frame ::ng-deep .tx-editor__prose [contenteditable=false]{white-space:normal}.tx-editor__frame ::ng-deep .tx-editor__prose pre{white-space:pre-wrap}.tx-editor__frame ::ng-deep .tx-editor__image{position:relative;width:fit-content;max-width:100%;margin-block:var(--tx-editor-content-block-gap)}.tx-editor__frame ::ng-deep .tx-editor__image img{margin:0}.tx-editor__frame ::ng-deep .tx-editor__image-handle{position:absolute;top:50%;display:none;cursor:ew-resize;touch-action:none;transform:translate(-50%,-50%)}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=right]{left:100%}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=left]{left:0}.tx-editor__frame ::ng-deep .tx-editor__image--selected .tx-editor__image-handle{display:block}.tx-editor__frame ::ng-deep .tx-editor__prose [data-type=callout]:before{display:none}.tx-editor__frame ::ng-deep .tx-editor__callout-body>:last-child{margin-bottom:0}.tx-editor__frame ::ng-deep .tx-editor__callout-marker{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);margin:0;padding:0;border:0;border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);font-family:inherit;font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:before{content:\"i\"}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:hover:not(:disabled){transform:scale(1.12)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:disabled{cursor:default}.tx-editor__frame ::ng-deep [data-tone=success]>.tx-editor__callout-marker:before{content:\"\\2713\"}.tx-editor__frame ::ng-deep [data-tone=warn]>.tx-editor__callout-marker:before,.tx-editor__frame ::ng-deep [data-tone=danger]>.tx-editor__callout-marker:before{content:\"!\"}.tx-editor__frame ::ng-deep .tx-editor__ai-pending{background:linear-gradient(90deg,var(--tx-editor-ai-color) 0%,color-mix(in srgb,var(--tx-editor-ai-color) 35%,transparent) 50%,var(--tx-editor-ai-color) 100%) 0 0/200% 100%;color:transparent;-webkit-background-clip:text;background-clip:text;animation:tx-editor-shimmer 1.4s linear infinite}.tx-editor__frame ::ng-deep .tx-editor__ai-result{border-radius:var(--tx-radius-xs);background:var(--tx-editor-ai-background);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor__frame ::ng-deep .tx-editor--column-resize{cursor:col-resize}.tx-editor__frame ::ng-deep .tx-editor__prose td,.tx-editor__frame ::ng-deep .tx-editor__prose th{position:relative;min-width:var(--tx-editor-table-cell-min-width)}.tx-editor__frame ::ng-deep .tx-editor__drop-cursor{position:absolute;z-index:3;pointer-events:none}.tx-editor__frame ::ng-deep .tx-editor__video{position:relative;max-width:var(--tx-editor-content-video-max-width)}.tx-editor__frame ::ng-deep .tx-editor__video-shield{position:absolute;inset:0;cursor:pointer}.tx-editor__frame[data-styled]{--_duration: var(--tx-editor-transition-duration);--_easing: var(--tx-editor-easing);color:var(--tx-editor-content-color);font-family:var(--tx-font-family)}.tx-editor__frame[data-styled]{border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-editor-border-radius);background:var(--tx-editor-background);box-shadow:var(--tx-form-field-shadow);transition:border-color var(--_duration) var(--_easing),box-shadow var(--_duration) var(--_easing)}.tx-editor__frame[data-styled]:not(.tx-editor__frame--disabled):not(.tx-editor__frame--focused):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--focused{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-editor__frame[data-styled].tx-editor__frame--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--disabled{background:var(--tx-form-field-disabled-background);opacity:.7}.tx-editor__frame[data-styled] .tx-editor__toolbar{gap:var(--tx-editor-toolbar-gap);padding:var(--tx-editor-toolbar-padding);border-bottom:1px solid var(--tx-editor-toolbar-border-color);border-radius:calc(var(--tx-editor-border-radius) - 1px) calc(var(--tx-editor-border-radius) - 1px) 0 0;background:var(--tx-editor-toolbar-background)}.tx-editor__frame[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__frame[data-styled] .tx-editor__toolbar-end{gap:var(--tx-editor-toolbar-gap)}.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__bubble[data-styled] .tx-editor__tool{gap:var(--tx-editor-tool-gap);min-width:var(--tx-editor-tool-size);height:var(--tx-editor-tool-size);border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:-1px;color:var(--tx-editor-tool-color);font-size:var(--tx-editor-tool-icon-size);transition:background-color var(--_duration, .2s) var(--_easing, ease),color var(--_duration, .2s) var(--_easing, ease),outline-color var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame[data-styled] .tx-editor__tool:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool:hover:not(:disabled){background:var(--tx-editor-tool-hover-background);color:var(--tx-editor-tool-hover-color)}.tx-editor__frame[data-styled] .tx-editor__tool:focus-visible,.tx-editor__bubble[data-styled] .tx-editor__tool:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__tool:disabled,.tx-editor__bubble[data-styled] .tx-editor__tool:disabled{opacity:var(--tx-editor-tool-disabled-opacity)}.tx-editor__bubble[data-styled] .tx-editor__tool--danger:hover{background:color-mix(in srgb,var(--tx-danger-base) 12%,transparent);color:var(--tx-danger-base)}.tx-editor__frame[data-styled] .tx-editor__tool--active,.tx-editor__bubble[data-styled] .tx-editor__tool--active{background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--active:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool--active:hover:not(:disabled){background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--label{justify-content:space-between;min-width:var(--tx-editor-tool-label-min-width);padding:var(--tx-editor-tool-label-padding);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-editor-tool-label-font-weight)}.tx-editor__frame[data-styled] .tx-editor__tool-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame[data-styled] .tx-editor__chevron{font-size:.7em;opacity:.7}.tx-editor__frame[data-styled] .tx-editor__tool:not(.tx-editor__tool--label):has(.tx-editor__chevron){padding:var(--tx-editor-tool-menu-padding)}.tx-editor__frame[data-styled] .tx-editor__color-bar{width:1em;height:var(--tx-editor-tool-color-bar-height);margin-top:1px;border-radius:var(--tx-radius-full);background:currentColor;opacity:.85}.tx-editor__frame[data-styled] .tx-editor__ai{gap:var(--tx-editor-ai-gap);height:var(--tx-editor-tool-size);padding:var(--tx-editor-ai-padding);border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:1px;background:var(--tx-editor-ai-background);color:var(--tx-editor-ai-color);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-font-weight-semibold);transition:background-color var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] .tx-editor__ai:hover:not(:disabled){background:var(--tx-editor-ai-hover-background)}.tx-editor__frame[data-styled] .tx-editor__ai:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__frame[data-styled] .tx-editor__content{min-height:var(--tx-editor-content-min-height);cursor:text}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose{padding:var(--tx-editor-content-padding)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__placeholder:first-child:before{float:left;height:0;color:var(--tx-editor-content-placeholder-color);content:attr(data-placeholder);pointer-events:none}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img,.tx-editor__frame[data-styled] ::ng-deep .tx-editor__video--selected{outline:var(--tx-editor-content-image-selected-outline);outline-offset:2px;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img{cursor:grab}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle{width:var(--tx-editor-image-handle-width);height:var(--tx-editor-image-handle-height);border:1.5px solid var(--tx-editor-image-handle-border-color);border-radius:var(--tx-radius-full);background:var(--tx-editor-image-handle-background);box-shadow:var(--tx-editor-image-handle-shadow);transition:transform var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle:hover{transform:translate(-50%,-50%) scaleY(1.12)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--resizing img{opacity:.85}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__drop-cursor{border-radius:var(--tx-radius-full);background:var(--tx-editor-image-drop-cursor-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose hr.ProseMirror-selectednode{border-top-color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose ::selection{background:var(--tx-editor-tool-active-background)}.tx-editor__frame[data-styled] .tx-editor__footer{display:flex;justify-content:flex-end;padding:var(--tx-editor-footer-padding);color:var(--tx-editor-footer-color);font-size:var(--tx-editor-footer-font-size);font-variant-numeric:tabular-nums}.tx-editor__frame[data-styled] .tx-editor__count--limit{color:var(--tx-editor-footer-limit-color)}.tx-editor__frame[data-styled].tx-editor__frame--full{height:100%;border:0;border-radius:0;box-shadow:none}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__toolbar{border-radius:0}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__content{flex:1 1 auto;min-height:0}.tx-editor__bubble[data-styled]{gap:var(--tx-editor-bubble-gap);padding:var(--tx-editor-bubble-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__bubble[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__bubble[data-styled] .tx-editor__bubble-label{display:inline-flex;align-items:center;gap:var(--tx-editor-bubble-label-gap);padding:var(--tx-editor-bubble-item-padding);color:var(--tx-editor-ai-color);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold)}.tx-editor__bubble[data-styled] .tx-editor__tool--ai{color:var(--tx-editor-ai-color)}.tx-editor__bubble[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__bubble[data-styled] .tx-editor__bubble-link{max-width:var(--tx-editor-bubble-link-max-width);padding:var(--tx-editor-bubble-item-padding);color:var(--tx-editor-content-link-color);font-size:var(--tx-font-size-sm);text-decoration:none}.tx-editor__bubble[data-styled] .tx-editor__bubble-link:hover{text-decoration:underline}.tx-editor__form{gap:var(--tx-editor-popover-gap);width:var(--tx-editor-popover-width);max-width:100%}.tx-editor__form-actions{gap:var(--tx-space-1)}.tx-editor__field{width:100%}.tx-editor__hint{margin-top:calc(var(--tx-editor-popover-gap) * -.5);color:var(--tx-text-muted);font-size:var(--tx-font-size-xs)}.tx-editor__swatches{display:grid;grid-template-columns:repeat(5,var(--tx-editor-swatch-size));gap:var(--tx-editor-swatch-gap)}.tx-editor__swatch{display:inline-flex;align-items:center;justify-content:center;width:var(--tx-editor-swatch-size);height:var(--tx-editor-swatch-size);margin:0;padding:0;border:0;border-radius:var(--tx-editor-swatch-border-radius);outline:2px solid transparent;outline-offset:1px;background:var(--_swatch, transparent);box-shadow:inset 0 0 0 1px var(--tx-editor-swatch-ring);color:var(--tx-text-muted);font-family:var(--tx-font-family);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold);cursor:pointer;transition:transform var(--tx-editor-transition-duration) var(--tx-editor-easing),outline-color var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__swatch:hover{transform:scale(1.08)}.tx-editor__swatch:focus-visible,.tx-editor__swatch[aria-pressed=true]{outline-color:var(--tx-editor-swatch-selected-ring)}.tx-editor__swatch[data-kind=textColor]{background:transparent;color:var(--_swatch)}.tx-editor__suggestions[data-styled]{width:var(--tx-editor-suggestion-width);max-height:var(--tx-editor-suggestion-max-height);padding:var(--tx-editor-suggestion-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);font-size:var(--tx-font-size-md);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion{gap:var(--tx-editor-suggestion-item-gap);padding:var(--tx-editor-suggestion-item-padding);border-radius:var(--tx-editor-suggestion-item-radius)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion[aria-selected=true]{background:var(--tx-editor-suggestion-item-focus-background)}.tx-editor__suggestions[data-styled] .tx-editor__avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);height:var(--tx-editor-suggestion-avatar-size);border-radius:var(--tx-radius-full);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-size:var(--tx-font-size-xs);font-weight:var(--tx-font-weight-semibold);object-fit:cover}.tx-editor__suggestions[data-styled] .tx-editor__glyph{display:inline-flex;flex-shrink:0;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);font-size:1.15em;line-height:1}.tx-editor__suggestions[data-styled] .tx-editor__command-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:calc(var(--tx-editor-suggestion-avatar-size) + var(--tx-editor-suggestion-command-icon-inset) * 2);height:calc(var(--tx-editor-suggestion-avatar-size) + var(--tx-editor-suggestion-command-icon-inset) * 2);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-radius-md);background:var(--tx-editor-toolbar-background);color:var(--tx-text-muted);font-size:var(--tx-editor-tool-icon-size)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-text{flex:1 1 auto}.tx-editor__suggestions[data-styled] .tx-editor__shortcut{flex-shrink:0;color:var(--tx-editor-suggestion-secondary-color);font-family:var(--tx-font-family);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-description,.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{color:var(--tx-editor-suggestion-secondary-color);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{padding:var(--tx-editor-suggestion-item-padding)}@keyframes tx-editor-ai-breathe{0%,to{opacity:1;transform:rotate(0) scale(1)}50%{opacity:.75;transform:rotate(18deg) scale(1.12)}}@keyframes tx-editor-shimmer{to{background-position:-200% 0}}@keyframes tx-editor-pop{0%{opacity:0;transform:translateY(2px) scale(.97)}}@media(prefers-reduced-motion:reduce){.tx-editor__frame[data-styled] .tx-editor__frame,.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__frame[data-styled] .tx-editor__ai,.tx-editor__swatch{transition:none}.tx-editor__frame[data-styled] .tx-editor__ai-icon,.tx-editor__bubble[data-styled] .tx-editor__ai-icon,.tx-editor__frame ::ng-deep .tx-editor__ai-pending,.tx-editor__bubble[data-styled],.tx-editor__suggestions[data-styled]{animation:none}.tx-editor__swatch:hover{transform:none}}\n"],
4847
4847
  dependencies: [
4848
4848
  {
4849
4849
  kind: "directive",
@@ -5128,7 +5128,7 @@ i0.ɵɵngDeclareClassMetadata({
5128
5128
  },
5129
5129
  viewProviders: [provideTxIconDefaults(EDITOR_ICON_DEFAULTS)],
5130
5130
  template: "<div\n #frame\n class=\"tx-editor__frame\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [class.tx-editor__frame--focused]=\"hasFocus()\"\n [class.tx-editor__frame--disabled]=\"isDisabled()\"\n [class.tx-editor__frame--invalid]=\"isInvalid()\"\n [class.tx-editor__frame--full]=\"fullView()\"\n [style]=\"hostStyle()\"\n>\n @if (groups().length || ai() || showFullViewButton() || toolbarEnd()) {\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- the tools inside take the focus; the toolbar only moves it with the arrows -->\n <div\n #toolbarElement\n class=\"tx-editor__toolbar\"\n role=\"toolbar\"\n [attr.aria-label]=\"translations().editorToolbar\"\n [attr.aria-controls]=\"id + '-content'\"\n [class]=\"passThrough().toolbar?.class\"\n [style]=\"passThrough().toolbar?.style\"\n (keydown)=\"onToolbarKeydown($event)\"\n >\n @for (group of groups(); track $index; let first = $first) {\n @if (!first) {\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n }\n @for (item of group; track item.tool) {\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n data-tool\n [class.tx-editor__tool--label]=\"item.tool === 'blockStyle'\"\n [class.tx-editor__tool--active]=\"state()?.active?.[item.tool]\"\n [attr.data-tool-name]=\"item.tool\"\n [attr.tabindex]=\"item.index === focusIndex() ? 0 : -1\"\n [attr.aria-label]=\"item.tool === 'blockStyle' ? translations().editorTextStyle + ': ' + blockLabel() : toolName(item.tool)\"\n [attr.aria-pressed]=\"isToggleTool(item.tool) ? !!state()?.active?.[item.tool] : null\"\n [attr.aria-haspopup]=\"isMenuTool(item.tool) ? 'menu' : isPopoverTool(item.tool) ? 'dialog' : null\"\n [disabled]=\"toolDisabled(item.tool)\"\n [txTooltip]=\"toolLabel(item.tool)\"\n [class]=\"passThrough().tool?.class\"\n [style]=\"passThrough().tool?.style\"\n (mousedown)=\"keepFocus($event)\"\n (click)=\"onToolClick($event, item.tool, item.index)\"\n >\n @switch (item.tool) {\n @case ('blockStyle') {\n <span class=\"tx-editor__tool-text\">{{ blockLabel() }}</span>\n <tx-icon class=\"tx-editor__chevron\" name=\"chevron-down\" />\n }\n @case ('align') {\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <tx-icon class=\"tx-editor__chevron\" name=\"chevron-down\" />\n }\n @case ('fontSize') {\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <tx-icon class=\"tx-editor__chevron\" name=\"chevron-down\" />\n }\n @case ('textColor') {\n <span class=\"tx-editor__color-icon\">\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <span class=\"tx-editor__color-bar\" [style.background]=\"state()?.color || null\"></span>\n </span>\n }\n @case ('highlight') {\n <span class=\"tx-editor__color-icon\">\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n <span class=\"tx-editor__color-bar\" [style.background]=\"state()?.background || null\"></span>\n </span>\n }\n @default {\n <tx-icon [name]=\"toolIcon(item.tool)\" />\n }\n }\n </button>\n }\n }\n <span class=\"tx-editor__toolbar-end\">\n <ng-content select=\"[txEditorToolbarEnd]\" />\n @if (ai()) {\n <button\n type=\"button\"\n class=\"tx-editor__ai\"\n data-tool\n [attr.tabindex]=\"groups().length ? -1 : 0\"\n [txTooltip]=\"aiLabel() ?? translations().editorAi\"\n [attr.aria-label]=\"aiLabel() ?? translations().editorAi\"\n [disabled]=\"isDisabled()\"\n (mousedown)=\"keepFocus($event)\"\n (click)=\"requestAi()\"\n >\n <tx-icon class=\"tx-editor__ai-icon\" name=\"sparkles\" />\n <span>AI</span>\n </button>\n }\n @if (showFullViewButton()) {\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n data-tool\n [attr.tabindex]=\"-1\"\n [attr.aria-pressed]=\"fullView()\"\n [attr.aria-label]=\"fullView() ? translations().editorNormalView : translations().editorFullView\"\n [txTooltip]=\"fullView() ? translations().editorNormalView : translations().editorFullView\"\n (mousedown)=\"keepFocus($event)\"\n (click)=\"toggleFullView()\"\n >\n <tx-icon [name]=\"fullView() ? 'window-minimize' : 'window-maximize'\" />\n </button>\n }\n </span>\n </div>\n }\n\n <div\n #mount\n class=\"tx-editor__content\"\n [class]=\"passThrough().content?.class\"\n [style]=\"passThrough().content?.style\"\n [style.height]=\"contentStyle().height\"\n [style.min-height]=\"contentStyle().minHeight\"\n [style.max-height]=\"contentStyle().maxHeight\"\n ></div>\n\n @if (showCount() || maxLength()) {\n <div class=\"tx-editor__footer\" [class]=\"passThrough().footer?.class\" [style]=\"passThrough().footer?.style\">\n <span class=\"tx-editor__count\" [class.tx-editor__count--limit]=\"!!maxLength() && (state()?.count ?? 0) >= maxLength()!\" aria-live=\"polite\">\n {{ countLabel() }}\n </span>\n </div>\n }\n\n <div\n #bubbleAnchor\n cdkOverlayOrigin\n #bubbleOrigin=\"cdkOverlayOrigin\"\n class=\"tx-editor__anchor\"\n aria-hidden=\"true\"\n [style.left.px]=\"bubbleBox().left\"\n [style.top.px]=\"bubbleBox().top\"\n [style.width.px]=\"bubbleBox().width\"\n [style.height.px]=\"bubbleBox().height\"\n ></div>\n <div\n #suggestAnchor\n cdkOverlayOrigin\n #suggestOrigin=\"cdkOverlayOrigin\"\n class=\"tx-editor__anchor\"\n aria-hidden=\"true\"\n [style.left.px]=\"suggestBox().left\"\n [style.top.px]=\"suggestBox().top\"\n [style.width.px]=\"suggestBox().width\"\n [style.height.px]=\"suggestBox().height\"\n ></div>\n</div>\n\n<tx-dialog\n size=\"fullscreen\"\n [visible]=\"fullView()\"\n [ariaLabel]=\"translations().editorFullView\"\n [closeOnEscape]=\"!suggestion() && !popoverOpen()\"\n [dt]=\"{ content: { padding: '0', lastPaddingBottom: '0' } }\"\n (visibleChange)=\"!$event && fullView.set(false)\"\n (opened)=\"onFullViewOpened()\"\n (closed)=\"unmountFullView()\"\n>\n <div #fullHost class=\"tx-editor__full-host\"></div>\n</tx-dialog>\n\n<input #imageInput class=\"tx-editor__file\" type=\"file\" accept=\"image/*\" multiple tabindex=\"-1\" aria-hidden=\"true\" (change)=\"onImagePicked($event)\" />\n\n<tx-menu #blockMenuRef popup [model]=\"blockMenu()\" [ariaLabel]=\"translations().editorTextStyle\" />\n<tx-menu #alignMenuRef popup [model]=\"alignMenu()\" [ariaLabel]=\"translations().editorAlign\" />\n<tx-menu #aiMenuRef popup [model]=\"aiMenu()\" [ariaLabel]=\"aiLabel() ?? translations().editorAi\" />\n<tx-menu #sizeMenuRef popup [model]=\"sizeMenu()\" [ariaLabel]=\"translations().editorFontSize\" />\n\n<tx-popover #popover [arrow]=\"false\" placement=\"bottom-start\" [ariaLabel]=\"popoverLabel()\" (closed)=\"onPopoverClosed()\">\n @switch (popoverKind()) {\n @case ('link') {\n <form class=\"tx-editor__form\" (submit)=\"$event.preventDefault(); applyLink()\">\n <input\n txInput\n class=\"tx-editor__field\"\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n placeholder=\"https://\"\n [attr.aria-label]=\"translations().editorLinkUrl\"\n [value]=\"linkDraft()\"\n (input)=\"linkDraft.set($any($event.target).value)\"\n />\n <span class=\"tx-editor__form-actions\">\n @if (state()?.link) {\n <button txButton type=\"button\" size=\"small\" text severity=\"danger\" icon=\"tx-editor-unlink\" (click)=\"removeLink()\">\n {{ translations().editorLinkRemove }}\n </button>\n }\n <button txButton type=\"submit\" size=\"small\">{{ translations().editorLinkApply }}</button>\n </span>\n </form>\n }\n @case ('video') {\n <form class=\"tx-editor__form\" (submit)=\"$event.preventDefault(); applyVideo()\">\n <input\n txInput\n class=\"tx-editor__field\"\n type=\"text\"\n inputmode=\"url\"\n autocomplete=\"off\"\n placeholder=\"https://\"\n [attr.aria-label]=\"translations().editorVideoUrl\"\n [attr.aria-describedby]=\"id + '-video-hint'\"\n [value]=\"videoDraft()\"\n (input)=\"videoDraft.set($any($event.target).value)\"\n />\n <span class=\"tx-editor__hint\" [id]=\"id + '-video-hint'\">{{ translations().editorVideoHint }}</span>\n <span class=\"tx-editor__form-actions\">\n <button txButton type=\"submit\" size=\"small\">{{ translations().editorInsert }}</button>\n </span>\n </form>\n }\n @case ('textColor') {\n <ng-container [ngTemplateOutlet]=\"swatches\" [ngTemplateOutletContext]=\"{ $implicit: 'textColor', colors: textColors(), current: state()?.color }\" />\n }\n @case ('highlight') {\n <ng-container [ngTemplateOutlet]=\"swatches\" [ngTemplateOutletContext]=\"{ $implicit: 'highlight', colors: highlightColors(), current: state()?.background }\" />\n }\n }\n</tx-popover>\n\n<ng-template #swatches let-kind let-colors=\"colors\" let-current=\"current\">\n <div class=\"tx-editor__swatches\" role=\"group\" [attr.aria-label]=\"popoverLabel()\">\n <button\n type=\"button\"\n class=\"tx-editor__swatch tx-editor__swatch--none\"\n [attr.aria-label]=\"translations().editorDefaultColor\"\n [attr.aria-pressed]=\"!current\"\n [txTooltip]=\"translations().editorDefaultColor\"\n (click)=\"applyColor(kind, null)\"\n >\n <tx-icon name=\"ban\" />\n </button>\n @for (color of colors; track color.value) {\n <button\n type=\"button\"\n class=\"tx-editor__swatch\"\n [attr.data-kind]=\"kind\"\n [style.--_swatch]=\"color.value\"\n [attr.aria-label]=\"colorLabel(color)\"\n [attr.aria-pressed]=\"current === color.value\"\n [txTooltip]=\"colorLabel(color)\"\n (click)=\"applyColor(kind, color.value)\"\n >\n @if (kind === 'textColor') {\n <span class=\"tx-editor__swatch-letter\" aria-hidden=\"true\">A</span>\n }\n </button>\n }\n </div>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n #bubbleOverlay=\"cdkConnectedOverlay\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"bubbleOrigin\"\n [cdkConnectedOverlayOpen]=\"showBubble()\"\n [cdkConnectedOverlayPositions]=\"bubblePositions()\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayPush]=\"true\"\n>\n <div\n class=\"tx-editor__bubble\"\n role=\"toolbar\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.aria-label]=\"translations().editorToolbar\"\n [style]=\"hostStyle()\"\n [class]=\"passThrough().bubble?.class\"\n (mousedown)=\"keepFocus($event)\"\n >\n @if (state()?.ai?.done) {\n <span class=\"tx-editor__bubble-label\"><tx-icon class=\"tx-editor__ai-icon\" name=\"sparkles\" />AI</span>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button txButton type=\"button\" size=\"small\" text severity=\"secondary\" icon=\"check\" tabindex=\"-1\" (click)=\"keepAi()\">{{ translations().editorAiKeep }}</button>\n <button txButton type=\"button\" size=\"small\" text severity=\"secondary\" icon=\"undo\" tabindex=\"-1\" (click)=\"discardAi()\">{{ translations().editorAiDiscard }}</button>\n } @else if (state()?.empty && !state()?.link && state()?.table) {\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorRowAbove\" [txTooltip]=\"translations().editorRowAbove\" (click)=\"tableAction('rowAbove')\">\n <tx-icon name=\"tx-editor-row-above\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorRowBelow\" [txTooltip]=\"translations().editorRowBelow\" (click)=\"tableAction('rowBelow')\">\n <tx-icon name=\"tx-editor-row-below\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorColumnLeft\" [txTooltip]=\"translations().editorColumnLeft\" (click)=\"tableAction('columnLeft')\">\n <tx-icon name=\"tx-editor-column-left\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorColumnRight\" [txTooltip]=\"translations().editorColumnRight\" (click)=\"tableAction('columnRight')\">\n <tx-icon name=\"tx-editor-column-right\" />\n </button>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n tabindex=\"-1\"\n [class.tx-editor__tool--active]=\"state()?.headerRow\"\n [attr.aria-pressed]=\"!!state()?.headerRow\"\n [attr.aria-label]=\"translations().editorHeaderRow\"\n [txTooltip]=\"translations().editorHeaderRow\"\n (click)=\"tableAction('header')\"\n >\n <tx-icon name=\"tx-editor-header-row\" />\n </button>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorDeleteRow\" [txTooltip]=\"translations().editorDeleteRow\" (click)=\"tableAction('deleteRow')\">\n <tx-icon name=\"tx-editor-delete-row\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorDeleteColumn\" [txTooltip]=\"translations().editorDeleteColumn\" (click)=\"tableAction('deleteColumn')\">\n <tx-icon name=\"tx-editor-delete-column\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool tx-editor__tool--danger\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorDeleteTable\" [txTooltip]=\"translations().editorDeleteTable\" (click)=\"tableAction('delete')\">\n <tx-icon name=\"trash\" />\n </button>\n } @else if (state()?.empty && state()?.link; as link) {\n <a class=\"tx-editor__bubble-link\" [href]=\"link.href\" target=\"_blank\" rel=\"noopener noreferrer\" tabindex=\"-1\">{{ link.href }}</a>\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorLinkEdit\" [txTooltip]=\"translations().editorLinkEdit\" (click)=\"openLink(bubbleAnchor)\">\n <tx-icon name=\"pencil\" />\n </button>\n <button type=\"button\" class=\"tx-editor__tool\" tabindex=\"-1\" [attr.aria-label]=\"translations().editorLinkRemove\" [txTooltip]=\"translations().editorLinkRemove\" (click)=\"removeLink()\">\n <tx-icon name=\"tx-editor-unlink\" />\n </button>\n } @else {\n @for (tool of bubbleTools; track tool) {\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n tabindex=\"-1\"\n [class.tx-editor__tool--active]=\"state()?.active?.[tool]\"\n [attr.aria-pressed]=\"!!state()?.active?.[tool]\"\n [attr.aria-label]=\"toolName(tool)\"\n [txTooltip]=\"toolLabel(tool)\"\n (click)=\"onToolClick($event, tool, -1)\"\n >\n <tx-icon [name]=\"toolIcon(tool)\" />\n </button>\n }\n <span class=\"tx-editor__separator\" aria-hidden=\"true\"></span>\n @if (aiActions().length) {\n <button\n type=\"button\"\n class=\"tx-editor__tool tx-editor__tool--ai\"\n tabindex=\"-1\"\n aria-haspopup=\"menu\"\n [attr.aria-label]=\"aiLabel() ?? translations().editorAi\"\n [txTooltip]=\"aiLabel() ?? translations().editorAi\"\n (click)=\"openAiMenu($event)\"\n >\n <tx-icon class=\"tx-editor__ai-icon\" name=\"sparkles\" />\n </button>\n }\n <button\n type=\"button\"\n class=\"tx-editor__tool\"\n tabindex=\"-1\"\n [class.tx-editor__tool--active]=\"state()?.active?.link\"\n [attr.aria-label]=\"toolName('link')\"\n [txTooltip]=\"toolLabel('link')\"\n (click)=\"openLink(bubbleAnchor)\"\n >\n <tx-icon name=\"link\" />\n </button>\n }\n </div>\n</ng-template>\n\n<ng-template\n cdkConnectedOverlay\n txOverlayAnchor\n #suggestOverlay=\"cdkConnectedOverlay\"\n [cdkConnectedOverlayScrollStrategy]=\"suggestScrollStrategy\"\n [cdkConnectedOverlayOrigin]=\"suggestOrigin\"\n [cdkConnectedOverlayOpen]=\"showSuggestions()\"\n [cdkConnectedOverlayPositions]=\"suggestPositions\"\n [cdkConnectedOverlayDisableClose]=\"true\"\n [cdkConnectedOverlayPush]=\"true\"\n>\n <div\n class=\"tx-editor__suggestions\"\n role=\"listbox\"\n [id]=\"id + '-suggestions'\"\n [attr.data-kind]=\"suggestion()?.kind\"\n [attr.data-styled]=\"!isUnstyled() || null\"\n [attr.aria-label]=\"suggestionLabel()\"\n [style]=\"hostStyle()\"\n [class]=\"passThrough().suggestions?.class\"\n (mousedown)=\"keepFocus($event)\"\n >\n @for (item of suggestionItems(); track item.id; let index = $index) {\n <!-- eslint-disable-next-line @angular-eslint/template/click-events-have-key-events, @angular-eslint/template/interactive-supports-focus -- the editor handles the keys for the list -->\n <div\n class=\"tx-editor__suggestion\"\n role=\"option\"\n [id]=\"optionId(index)\"\n [attr.aria-selected]=\"index === suggestionIndex()\"\n (mouseenter)=\"suggestionIndex.set(index)\"\n (click)=\"pickSuggestion(item)\"\n >\n @if (item.glyph) {\n <span class=\"tx-editor__glyph\" aria-hidden=\"true\">{{ item.glyph }}</span>\n } @else if (item.icon) {\n <span class=\"tx-editor__command-icon\" aria-hidden=\"true\"><tx-icon [name]=\"item.icon\" /></span>\n } @else if (item.avatar) {\n <img class=\"tx-editor__avatar\" alt=\"\" [src]=\"item.avatar\" />\n } @else {\n <span class=\"tx-editor__avatar\" aria-hidden=\"true\">{{ initials(item.label) }}</span>\n }\n <span class=\"tx-editor__suggestion-text\">\n <span class=\"tx-editor__suggestion-label\">{{ item.label }}</span>\n @if (item.description) {\n <span class=\"tx-editor__suggestion-description\">{{ item.description }}</span>\n }\n </span>\n @if (item.shortcut) {\n <kbd class=\"tx-editor__shortcut\">{{ item.shortcut }}</kbd>\n }\n </div>\n } @empty {\n <div class=\"tx-editor__suggestion-empty\">{{ translations().editorNoMatches }}</div>\n }\n </div>\n</ng-template>\n",
5131
- styles: ["@charset \"UTF-8\";:host{position:relative;display:block;min-width:0}.tx-editor__frame{position:relative;display:flex;flex-direction:column;min-width:0}.tx-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center}.tx-editor__toolbar-end{display:inline-flex;align-items:center;margin-inline-start:auto}.tx-editor__tool,.tx-editor__ai{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.tx-editor__tool:disabled,.tx-editor__ai:disabled{cursor:default}.tx-editor__color-icon{position:relative;display:inline-flex;flex-direction:column;align-items:center}.tx-editor__content{position:relative;display:flex;flex-direction:column;overflow:auto}.tx-editor__full-host{display:flex;flex-direction:column;height:100%;min-height:0}.tx-editor__full-host>.tx-editor__frame{flex:1 1 auto;min-height:0}.tx-editor__anchor{position:absolute;pointer-events:none;visibility:hidden}.tx-editor__file{display:none}.tx-editor__form,.tx-editor__swatches{display:flex}.tx-editor__form{flex-direction:column}.tx-editor__form-actions{display:flex;justify-content:flex-end}.tx-editor__bubble{display:flex;align-items:center}.tx-editor__bubble-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__suggestions{overflow-y:auto}.tx-editor__suggestion{display:flex;align-items:center;cursor:pointer}.tx-editor__suggestion-text{display:flex;flex-direction:column;min-width:0}.tx-editor__suggestion-label,.tx-editor__suggestion-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame ::ng-deep .tx-editor__prose{flex:1 0 auto;outline:none;white-space:pre-wrap;word-wrap:break-word;font-variant-ligatures:none;font-feature-settings:\"liga\" 0}.tx-editor__frame ::ng-deep .tx-editor__prose [contenteditable=false]{white-space:normal}.tx-editor__frame ::ng-deep .tx-editor__prose pre{white-space:pre-wrap}.tx-editor__frame ::ng-deep .tx-editor__image{position:relative;width:fit-content;max-width:100%;margin-block:var(--tx-editor-content-block-gap)}.tx-editor__frame ::ng-deep .tx-editor__image img{margin:0}.tx-editor__frame ::ng-deep .tx-editor__image-handle{position:absolute;top:50%;display:none;cursor:ew-resize;touch-action:none;transform:translate(-50%,-50%)}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=right]{left:100%}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=left]{left:0}.tx-editor__frame ::ng-deep .tx-editor__image--selected .tx-editor__image-handle{display:block}.tx-editor__frame ::ng-deep .tx-editor__prose [data-type=callout]:before{display:none}.tx-editor__frame ::ng-deep .tx-editor__callout-body>:last-child{margin-bottom:0}.tx-editor__frame ::ng-deep .tx-editor__callout-marker{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);margin:0;padding:0;border:0;border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);font-family:inherit;font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:before{content:\"i\"}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:hover:not(:disabled){transform:scale(1.12)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:disabled{cursor:default}.tx-editor__frame ::ng-deep [data-tone=success]>.tx-editor__callout-marker:before{content:\"\\2713\"}.tx-editor__frame ::ng-deep [data-tone=warn]>.tx-editor__callout-marker:before,.tx-editor__frame ::ng-deep [data-tone=danger]>.tx-editor__callout-marker:before{content:\"!\"}.tx-editor__frame ::ng-deep .tx-editor__ai-pending{background:linear-gradient(90deg,var(--tx-editor-ai-color) 0%,color-mix(in srgb,var(--tx-editor-ai-color) 35%,transparent) 50%,var(--tx-editor-ai-color) 100%) 0 0/200% 100%;color:transparent;-webkit-background-clip:text;background-clip:text;animation:tx-editor-shimmer 1.4s linear infinite}.tx-editor__frame ::ng-deep .tx-editor__ai-result{border-radius:var(--tx-radius-xs);background:var(--tx-editor-ai-background);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor__frame ::ng-deep .tx-editor--column-resize{cursor:col-resize}.tx-editor__frame ::ng-deep .tx-editor__prose td,.tx-editor__frame ::ng-deep .tx-editor__prose th{position:relative;min-width:48px}.tx-editor__frame ::ng-deep .tx-editor__drop-cursor{position:absolute;z-index:3;pointer-events:none}.tx-editor__frame ::ng-deep .tx-editor__video{position:relative;max-width:640px}.tx-editor__frame ::ng-deep .tx-editor__video-shield{position:absolute;inset:0;cursor:pointer}.tx-editor__frame[data-styled]{--_duration: var(--tx-editor-transition-duration);--_easing: var(--tx-editor-easing);color:var(--tx-editor-content-color);font-family:var(--tx-font-family)}.tx-editor__frame[data-styled]{border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-editor-border-radius);background:var(--tx-editor-background);box-shadow:var(--tx-form-field-shadow);transition:border-color var(--_duration) var(--_easing),box-shadow var(--_duration) var(--_easing)}.tx-editor__frame[data-styled]:not(.tx-editor__frame--disabled):not(.tx-editor__frame--focused):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--focused{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-editor__frame[data-styled].tx-editor__frame--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--disabled{background:var(--tx-form-field-disabled-background);opacity:.7}.tx-editor__frame[data-styled] .tx-editor__toolbar{gap:var(--tx-editor-toolbar-gap);padding:var(--tx-editor-toolbar-padding);border-bottom:1px solid var(--tx-editor-toolbar-border-color);border-radius:calc(var(--tx-editor-border-radius) - 1px) calc(var(--tx-editor-border-radius) - 1px) 0 0;background:var(--tx-editor-toolbar-background)}.tx-editor__frame[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__frame[data-styled] .tx-editor__toolbar-end{gap:var(--tx-editor-toolbar-gap)}.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__bubble[data-styled] .tx-editor__tool{gap:2px;min-width:var(--tx-editor-tool-size);height:var(--tx-editor-tool-size);border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:-1px;color:var(--tx-editor-tool-color);font-size:var(--tx-editor-tool-icon-size);transition:background-color var(--_duration, .2s) var(--_easing, ease),color var(--_duration, .2s) var(--_easing, ease),outline-color var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame[data-styled] .tx-editor__tool:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool:hover:not(:disabled){background:var(--tx-editor-tool-hover-background);color:var(--tx-editor-tool-hover-color)}.tx-editor__frame[data-styled] .tx-editor__tool:focus-visible,.tx-editor__bubble[data-styled] .tx-editor__tool:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__tool:disabled,.tx-editor__bubble[data-styled] .tx-editor__tool:disabled{opacity:var(--tx-editor-tool-disabled-opacity)}.tx-editor__bubble[data-styled] .tx-editor__tool--danger:hover{background:color-mix(in srgb,var(--tx-danger-base) 12%,transparent);color:var(--tx-danger-base)}.tx-editor__frame[data-styled] .tx-editor__tool--active,.tx-editor__bubble[data-styled] .tx-editor__tool--active{background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--active:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool--active:hover:not(:disabled){background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--label{justify-content:space-between;min-width:112px;padding:var(--tx-editor-tool-label-padding);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-editor-tool-label-font-weight)}.tx-editor__frame[data-styled] .tx-editor__tool-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame[data-styled] .tx-editor__chevron{font-size:.7em;opacity:.7}.tx-editor__frame[data-styled] .tx-editor__tool:not(.tx-editor__tool--label):has(.tx-editor__chevron){padding:0 5px 0 7px}.tx-editor__frame[data-styled] .tx-editor__color-bar{width:1em;height:3px;margin-top:1px;border-radius:var(--tx-radius-full);background:currentColor;opacity:.85}.tx-editor__frame[data-styled] .tx-editor__ai{gap:6px;height:var(--tx-editor-tool-size);padding:0 10.5px;border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:1px;background:var(--tx-editor-ai-background);color:var(--tx-editor-ai-color);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-font-weight-semibold);transition:background-color var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] .tx-editor__ai:hover:not(:disabled){background:var(--tx-editor-ai-hover-background)}.tx-editor__frame[data-styled] .tx-editor__ai:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__frame[data-styled] .tx-editor__content{min-height:var(--tx-editor-content-min-height);cursor:text}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose{padding:var(--tx-editor-content-padding)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__placeholder:first-child:before{float:left;height:0;color:var(--tx-editor-content-placeholder-color);content:attr(data-placeholder);pointer-events:none}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img,.tx-editor__frame[data-styled] ::ng-deep .tx-editor__video--selected{outline:var(--tx-editor-content-image-selected-outline);outline-offset:2px;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img{cursor:grab}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle{width:var(--tx-editor-image-handle-width);height:var(--tx-editor-image-handle-height);border:1.5px solid var(--tx-editor-image-handle-border-color);border-radius:var(--tx-radius-full);background:var(--tx-editor-image-handle-background);box-shadow:var(--tx-editor-image-handle-shadow);transition:transform var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle:hover{transform:translate(-50%,-50%) scaleY(1.12)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--resizing img{opacity:.85}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__drop-cursor{border-radius:var(--tx-radius-full);background:var(--tx-editor-image-drop-cursor-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose hr.ProseMirror-selectednode{border-top-color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose ::selection{background:var(--tx-editor-tool-active-background)}.tx-editor__frame[data-styled] .tx-editor__footer{display:flex;justify-content:flex-end;padding:var(--tx-editor-footer-padding);color:var(--tx-editor-footer-color);font-size:var(--tx-editor-footer-font-size);font-variant-numeric:tabular-nums}.tx-editor__frame[data-styled] .tx-editor__count--limit{color:var(--tx-editor-footer-limit-color)}.tx-editor__frame[data-styled].tx-editor__frame--full{height:100%;border:0;border-radius:0;box-shadow:none}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__toolbar{border-radius:0}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__content{flex:1 1 auto;min-height:0}.tx-editor__bubble[data-styled]{gap:var(--tx-editor-bubble-gap);padding:var(--tx-editor-bubble-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__bubble[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__bubble[data-styled] .tx-editor__bubble-label{display:inline-flex;align-items:center;gap:6px;padding:0 7px;color:var(--tx-editor-ai-color);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold)}.tx-editor__bubble[data-styled] .tx-editor__tool--ai{color:var(--tx-editor-ai-color)}.tx-editor__bubble[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__bubble[data-styled] .tx-editor__bubble-link{max-width:var(--tx-editor-bubble-link-max-width);padding:0 7px;color:var(--tx-editor-content-link-color);font-size:var(--tx-font-size-sm);text-decoration:none}.tx-editor__bubble[data-styled] .tx-editor__bubble-link:hover{text-decoration:underline}.tx-editor__form{gap:var(--tx-editor-popover-gap);width:var(--tx-editor-popover-width);max-width:100%}.tx-editor__form-actions{gap:4px}.tx-editor__field{width:100%}.tx-editor__hint{margin-top:calc(var(--tx-editor-popover-gap) * -.5);color:var(--tx-text-muted);font-size:var(--tx-font-size-xs)}.tx-editor__swatches{display:grid;grid-template-columns:repeat(5,var(--tx-editor-swatch-size));gap:var(--tx-editor-swatch-gap)}.tx-editor__swatch{display:inline-flex;align-items:center;justify-content:center;width:var(--tx-editor-swatch-size);height:var(--tx-editor-swatch-size);margin:0;padding:0;border:0;border-radius:var(--tx-editor-swatch-border-radius);outline:2px solid transparent;outline-offset:1px;background:var(--_swatch, transparent);box-shadow:inset 0 0 0 1px var(--tx-editor-swatch-ring);color:var(--tx-text-muted);font-family:var(--tx-font-family);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold);cursor:pointer;transition:transform var(--tx-editor-transition-duration) var(--tx-editor-easing),outline-color var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__swatch:hover{transform:scale(1.08)}.tx-editor__swatch:focus-visible,.tx-editor__swatch[aria-pressed=true]{outline-color:var(--tx-editor-swatch-selected-ring)}.tx-editor__swatch[data-kind=textColor]{background:transparent;color:var(--_swatch)}.tx-editor__suggestions[data-styled]{width:var(--tx-editor-suggestion-width);max-height:var(--tx-editor-suggestion-max-height);padding:var(--tx-editor-suggestion-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);font-size:var(--tx-font-size-md);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion{gap:var(--tx-editor-suggestion-item-gap);padding:var(--tx-editor-suggestion-item-padding);border-radius:var(--tx-editor-suggestion-item-radius)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion[aria-selected=true]{background:var(--tx-editor-suggestion-item-focus-background)}.tx-editor__suggestions[data-styled] .tx-editor__avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);height:var(--tx-editor-suggestion-avatar-size);border-radius:var(--tx-radius-full);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-size:var(--tx-font-size-xs);font-weight:var(--tx-font-weight-semibold);object-fit:cover}.tx-editor__suggestions[data-styled] .tx-editor__glyph{display:inline-flex;flex-shrink:0;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);font-size:1.15em;line-height:1}.tx-editor__suggestions[data-styled] .tx-editor__command-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:calc(var(--tx-editor-suggestion-avatar-size) + 6px);height:calc(var(--tx-editor-suggestion-avatar-size) + 6px);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-radius-md);background:var(--tx-editor-toolbar-background);color:var(--tx-text-muted);font-size:var(--tx-editor-tool-icon-size)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-text{flex:1 1 auto}.tx-editor__suggestions[data-styled] .tx-editor__shortcut{flex-shrink:0;color:var(--tx-editor-suggestion-secondary-color);font-family:var(--tx-font-family);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-description,.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{color:var(--tx-editor-suggestion-secondary-color);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{padding:var(--tx-editor-suggestion-item-padding)}@keyframes tx-editor-ai-breathe{0%,to{opacity:1;transform:rotate(0) scale(1)}50%{opacity:.75;transform:rotate(18deg) scale(1.12)}}@keyframes tx-editor-shimmer{to{background-position:-200% 0}}@keyframes tx-editor-pop{0%{opacity:0;transform:translateY(2px) scale(.97)}}@media(prefers-reduced-motion:reduce){.tx-editor__frame[data-styled] .tx-editor__frame,.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__frame[data-styled] .tx-editor__ai,.tx-editor__swatch{transition:none}.tx-editor__frame[data-styled] .tx-editor__ai-icon,.tx-editor__bubble[data-styled] .tx-editor__ai-icon,.tx-editor__frame ::ng-deep .tx-editor__ai-pending,.tx-editor__bubble[data-styled],.tx-editor__suggestions[data-styled]{animation:none}.tx-editor__swatch:hover{transform:none}}\n"]
5131
+ styles: ["@charset \"UTF-8\";:host{position:relative;display:block;min-width:0}.tx-editor__frame{position:relative;display:flex;flex-direction:column;min-width:0}.tx-editor__toolbar{display:flex;flex-wrap:wrap;align-items:center}.tx-editor__toolbar-end{display:inline-flex;align-items:center;margin-inline-start:auto}.tx-editor__tool,.tx-editor__ai{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer}.tx-editor__tool:disabled,.tx-editor__ai:disabled{cursor:default}.tx-editor__color-icon{position:relative;display:inline-flex;flex-direction:column;align-items:center}.tx-editor__content{position:relative;display:flex;flex-direction:column;overflow:auto}.tx-editor__full-host{display:flex;flex-direction:column;height:100%;min-height:0}.tx-editor__full-host>.tx-editor__frame{flex:1 1 auto;min-height:0}.tx-editor__anchor{position:absolute;pointer-events:none;visibility:hidden}.tx-editor__file{display:none}.tx-editor__form,.tx-editor__swatches{display:flex}.tx-editor__form{flex-direction:column}.tx-editor__form-actions{display:flex;justify-content:flex-end}.tx-editor__bubble{display:flex;align-items:center}.tx-editor__bubble-link{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__suggestions{overflow-y:auto}.tx-editor__suggestion{display:flex;align-items:center;cursor:pointer}.tx-editor__suggestion-text{display:flex;flex-direction:column;min-width:0}.tx-editor__suggestion-label,.tx-editor__suggestion-description{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame ::ng-deep .tx-editor__prose{flex:1 0 auto;outline:none;white-space:pre-wrap;word-wrap:break-word;font-variant-ligatures:none;font-feature-settings:\"liga\" 0}.tx-editor__frame ::ng-deep .tx-editor__prose [contenteditable=false]{white-space:normal}.tx-editor__frame ::ng-deep .tx-editor__prose pre{white-space:pre-wrap}.tx-editor__frame ::ng-deep .tx-editor__image{position:relative;width:fit-content;max-width:100%;margin-block:var(--tx-editor-content-block-gap)}.tx-editor__frame ::ng-deep .tx-editor__image img{margin:0}.tx-editor__frame ::ng-deep .tx-editor__image-handle{position:absolute;top:50%;display:none;cursor:ew-resize;touch-action:none;transform:translate(-50%,-50%)}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=right]{left:100%}.tx-editor__frame ::ng-deep .tx-editor__image-handle[data-side=left]{left:0}.tx-editor__frame ::ng-deep .tx-editor__image--selected .tx-editor__image-handle{display:block}.tx-editor__frame ::ng-deep .tx-editor__prose [data-type=callout]:before{display:none}.tx-editor__frame ::ng-deep .tx-editor__callout-body>:last-child{margin-bottom:0}.tx-editor__frame ::ng-deep .tx-editor__callout-marker{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);margin:0;padding:0;border:0;border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);font-family:inherit;font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;transition:transform var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:before{content:\"i\"}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:hover:not(:disabled){transform:scale(1.12)}.tx-editor__frame ::ng-deep .tx-editor__callout-marker:disabled{cursor:default}.tx-editor__frame ::ng-deep [data-tone=success]>.tx-editor__callout-marker:before{content:\"\\2713\"}.tx-editor__frame ::ng-deep [data-tone=warn]>.tx-editor__callout-marker:before,.tx-editor__frame ::ng-deep [data-tone=danger]>.tx-editor__callout-marker:before{content:\"!\"}.tx-editor__frame ::ng-deep .tx-editor__ai-pending{background:linear-gradient(90deg,var(--tx-editor-ai-color) 0%,color-mix(in srgb,var(--tx-editor-ai-color) 35%,transparent) 50%,var(--tx-editor-ai-color) 100%) 0 0/200% 100%;color:transparent;-webkit-background-clip:text;background-clip:text;animation:tx-editor-shimmer 1.4s linear infinite}.tx-editor__frame ::ng-deep .tx-editor__ai-result{border-radius:var(--tx-radius-xs);background:var(--tx-editor-ai-background);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor__frame ::ng-deep .tx-editor--column-resize{cursor:col-resize}.tx-editor__frame ::ng-deep .tx-editor__prose td,.tx-editor__frame ::ng-deep .tx-editor__prose th{position:relative;min-width:var(--tx-editor-table-cell-min-width)}.tx-editor__frame ::ng-deep .tx-editor__drop-cursor{position:absolute;z-index:3;pointer-events:none}.tx-editor__frame ::ng-deep .tx-editor__video{position:relative;max-width:var(--tx-editor-content-video-max-width)}.tx-editor__frame ::ng-deep .tx-editor__video-shield{position:absolute;inset:0;cursor:pointer}.tx-editor__frame[data-styled]{--_duration: var(--tx-editor-transition-duration);--_easing: var(--tx-editor-easing);color:var(--tx-editor-content-color);font-family:var(--tx-font-family)}.tx-editor__frame[data-styled]{border:1px solid var(--tx-form-field-border-color);border-radius:var(--tx-editor-border-radius);background:var(--tx-editor-background);box-shadow:var(--tx-form-field-shadow);transition:border-color var(--_duration) var(--_easing),box-shadow var(--_duration) var(--_easing)}.tx-editor__frame[data-styled]:not(.tx-editor__frame--disabled):not(.tx-editor__frame--focused):hover{border-color:var(--tx-form-field-hover-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--focused{border-color:var(--tx-form-field-focus-border-color);box-shadow:var(--tx-form-field-focus-ring-shadow)}.tx-editor__frame[data-styled].tx-editor__frame--invalid{border-color:var(--tx-form-field-invalid-border-color)}.tx-editor__frame[data-styled].tx-editor__frame--disabled{background:var(--tx-form-field-disabled-background);opacity:.7}.tx-editor__frame[data-styled] .tx-editor__toolbar{gap:var(--tx-editor-toolbar-gap);padding:var(--tx-editor-toolbar-padding);border-bottom:1px solid var(--tx-editor-toolbar-border-color);border-radius:calc(var(--tx-editor-border-radius) - 1px) calc(var(--tx-editor-border-radius) - 1px) 0 0;background:var(--tx-editor-toolbar-background)}.tx-editor__frame[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__frame[data-styled] .tx-editor__toolbar-end{gap:var(--tx-editor-toolbar-gap)}.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__bubble[data-styled] .tx-editor__tool{gap:var(--tx-editor-tool-gap);min-width:var(--tx-editor-tool-size);height:var(--tx-editor-tool-size);border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:-1px;color:var(--tx-editor-tool-color);font-size:var(--tx-editor-tool-icon-size);transition:background-color var(--_duration, .2s) var(--_easing, ease),color var(--_duration, .2s) var(--_easing, ease),outline-color var(--_duration, .2s) var(--_easing, ease)}.tx-editor__frame[data-styled] .tx-editor__tool:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool:hover:not(:disabled){background:var(--tx-editor-tool-hover-background);color:var(--tx-editor-tool-hover-color)}.tx-editor__frame[data-styled] .tx-editor__tool:focus-visible,.tx-editor__bubble[data-styled] .tx-editor__tool:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__tool:disabled,.tx-editor__bubble[data-styled] .tx-editor__tool:disabled{opacity:var(--tx-editor-tool-disabled-opacity)}.tx-editor__bubble[data-styled] .tx-editor__tool--danger:hover{background:color-mix(in srgb,var(--tx-danger-base) 12%,transparent);color:var(--tx-danger-base)}.tx-editor__frame[data-styled] .tx-editor__tool--active,.tx-editor__bubble[data-styled] .tx-editor__tool--active{background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--active:hover:not(:disabled),.tx-editor__bubble[data-styled] .tx-editor__tool--active:hover:not(:disabled){background:var(--tx-editor-tool-active-background);color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] .tx-editor__tool--label{justify-content:space-between;min-width:var(--tx-editor-tool-label-min-width);padding:var(--tx-editor-tool-label-padding);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-editor-tool-label-font-weight)}.tx-editor__frame[data-styled] .tx-editor__tool-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-editor__frame[data-styled] .tx-editor__chevron{font-size:.7em;opacity:.7}.tx-editor__frame[data-styled] .tx-editor__tool:not(.tx-editor__tool--label):has(.tx-editor__chevron){padding:var(--tx-editor-tool-menu-padding)}.tx-editor__frame[data-styled] .tx-editor__color-bar{width:1em;height:var(--tx-editor-tool-color-bar-height);margin-top:1px;border-radius:var(--tx-radius-full);background:currentColor;opacity:.85}.tx-editor__frame[data-styled] .tx-editor__ai{gap:var(--tx-editor-ai-gap);height:var(--tx-editor-tool-size);padding:var(--tx-editor-ai-padding);border-radius:var(--tx-editor-tool-border-radius);outline:var(--tx-editor-tool-focus-ring-width) solid transparent;outline-offset:1px;background:var(--tx-editor-ai-background);color:var(--tx-editor-ai-color);font-size:var(--tx-editor-tool-label-font-size);font-weight:var(--tx-font-weight-semibold);transition:background-color var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] .tx-editor__ai:hover:not(:disabled){background:var(--tx-editor-ai-hover-background)}.tx-editor__frame[data-styled] .tx-editor__ai:focus-visible{outline-color:var(--tx-editor-tool-focus-ring-color)}.tx-editor__frame[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__frame[data-styled] .tx-editor__content{min-height:var(--tx-editor-content-min-height);cursor:text}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose{padding:var(--tx-editor-content-padding)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__placeholder:first-child:before{float:left;height:0;color:var(--tx-editor-content-placeholder-color);content:attr(data-placeholder);pointer-events:none}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img,.tx-editor__frame[data-styled] ::ng-deep .tx-editor__video--selected{outline:var(--tx-editor-content-image-selected-outline);outline-offset:2px;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--selected img{cursor:grab}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle{width:var(--tx-editor-image-handle-width);height:var(--tx-editor-image-handle-height);border:1.5px solid var(--tx-editor-image-handle-border-color);border-radius:var(--tx-radius-full);background:var(--tx-editor-image-handle-background);box-shadow:var(--tx-editor-image-handle-shadow);transition:transform var(--_duration) var(--_easing)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image-handle:hover{transform:translate(-50%,-50%) scaleY(1.12)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__image--resizing img{opacity:.85}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__drop-cursor{border-radius:var(--tx-radius-full);background:var(--tx-editor-image-drop-cursor-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose hr.ProseMirror-selectednode{border-top-color:var(--tx-editor-tool-active-color)}.tx-editor__frame[data-styled] ::ng-deep .tx-editor__prose ::selection{background:var(--tx-editor-tool-active-background)}.tx-editor__frame[data-styled] .tx-editor__footer{display:flex;justify-content:flex-end;padding:var(--tx-editor-footer-padding);color:var(--tx-editor-footer-color);font-size:var(--tx-editor-footer-font-size);font-variant-numeric:tabular-nums}.tx-editor__frame[data-styled] .tx-editor__count--limit{color:var(--tx-editor-footer-limit-color)}.tx-editor__frame[data-styled].tx-editor__frame--full{height:100%;border:0;border-radius:0;box-shadow:none}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__toolbar{border-radius:0}.tx-editor__frame[data-styled].tx-editor__frame--full .tx-editor__content{flex:1 1 auto;min-height:0}.tx-editor__bubble[data-styled]{gap:var(--tx-editor-bubble-gap);padding:var(--tx-editor-bubble-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__bubble[data-styled] .tx-editor__separator{flex-shrink:0;width:1px;height:var(--tx-editor-toolbar-separator-height);margin:0 var(--tx-editor-toolbar-separator-spacing);background:var(--tx-editor-toolbar-separator-color)}.tx-editor__bubble[data-styled] .tx-editor__bubble-label{display:inline-flex;align-items:center;gap:var(--tx-editor-bubble-label-gap);padding:var(--tx-editor-bubble-item-padding);color:var(--tx-editor-ai-color);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold)}.tx-editor__bubble[data-styled] .tx-editor__tool--ai{color:var(--tx-editor-ai-color)}.tx-editor__bubble[data-styled] .tx-editor__ai-icon{animation:tx-editor-ai-breathe var(--tx-editor-ai-animation-duration) ease-in-out infinite}.tx-editor__bubble[data-styled] .tx-editor__bubble-link{max-width:var(--tx-editor-bubble-link-max-width);padding:var(--tx-editor-bubble-item-padding);color:var(--tx-editor-content-link-color);font-size:var(--tx-font-size-sm);text-decoration:none}.tx-editor__bubble[data-styled] .tx-editor__bubble-link:hover{text-decoration:underline}.tx-editor__form{gap:var(--tx-editor-popover-gap);width:var(--tx-editor-popover-width);max-width:100%}.tx-editor__form-actions{gap:var(--tx-space-1)}.tx-editor__field{width:100%}.tx-editor__hint{margin-top:calc(var(--tx-editor-popover-gap) * -.5);color:var(--tx-text-muted);font-size:var(--tx-font-size-xs)}.tx-editor__swatches{display:grid;grid-template-columns:repeat(5,var(--tx-editor-swatch-size));gap:var(--tx-editor-swatch-gap)}.tx-editor__swatch{display:inline-flex;align-items:center;justify-content:center;width:var(--tx-editor-swatch-size);height:var(--tx-editor-swatch-size);margin:0;padding:0;border:0;border-radius:var(--tx-editor-swatch-border-radius);outline:2px solid transparent;outline-offset:1px;background:var(--_swatch, transparent);box-shadow:inset 0 0 0 1px var(--tx-editor-swatch-ring);color:var(--tx-text-muted);font-family:var(--tx-font-family);font-size:var(--tx-font-size-sm);font-weight:var(--tx-font-weight-semibold);cursor:pointer;transition:transform var(--tx-editor-transition-duration) var(--tx-editor-easing),outline-color var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__swatch:hover{transform:scale(1.08)}.tx-editor__swatch:focus-visible,.tx-editor__swatch[aria-pressed=true]{outline-color:var(--tx-editor-swatch-selected-ring)}.tx-editor__swatch[data-kind=textColor]{background:transparent;color:var(--_swatch)}.tx-editor__suggestions[data-styled]{width:var(--tx-editor-suggestion-width);max-height:var(--tx-editor-suggestion-max-height);padding:var(--tx-editor-suggestion-padding);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-editor-bubble-border-radius);background:var(--tx-editor-bubble-background);box-shadow:var(--tx-editor-bubble-shadow);color:var(--tx-text-primary);font-family:var(--tx-font-family);font-size:var(--tx-font-size-md);animation:tx-editor-pop var(--tx-editor-transition-duration) var(--tx-editor-easing)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion{gap:var(--tx-editor-suggestion-item-gap);padding:var(--tx-editor-suggestion-item-padding);border-radius:var(--tx-editor-suggestion-item-radius)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion[aria-selected=true]{background:var(--tx-editor-suggestion-item-focus-background)}.tx-editor__suggestions[data-styled] .tx-editor__avatar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);height:var(--tx-editor-suggestion-avatar-size);border-radius:var(--tx-radius-full);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-size:var(--tx-font-size-xs);font-weight:var(--tx-font-weight-semibold);object-fit:cover}.tx-editor__suggestions[data-styled] .tx-editor__glyph{display:inline-flex;flex-shrink:0;justify-content:center;width:var(--tx-editor-suggestion-avatar-size);font-size:1.15em;line-height:1}.tx-editor__suggestions[data-styled] .tx-editor__command-icon{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;width:calc(var(--tx-editor-suggestion-avatar-size) + var(--tx-editor-suggestion-command-icon-inset) * 2);height:calc(var(--tx-editor-suggestion-avatar-size) + var(--tx-editor-suggestion-command-icon-inset) * 2);border:1px solid var(--tx-editor-bubble-border-color);border-radius:var(--tx-radius-md);background:var(--tx-editor-toolbar-background);color:var(--tx-text-muted);font-size:var(--tx-editor-tool-icon-size)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-text{flex:1 1 auto}.tx-editor__suggestions[data-styled] .tx-editor__shortcut{flex-shrink:0;color:var(--tx-editor-suggestion-secondary-color);font-family:var(--tx-font-family);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-description,.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{color:var(--tx-editor-suggestion-secondary-color);font-size:var(--tx-font-size-xs)}.tx-editor__suggestions[data-styled] .tx-editor__suggestion-empty{padding:var(--tx-editor-suggestion-item-padding)}@keyframes tx-editor-ai-breathe{0%,to{opacity:1;transform:rotate(0) scale(1)}50%{opacity:.75;transform:rotate(18deg) scale(1.12)}}@keyframes tx-editor-shimmer{to{background-position:-200% 0}}@keyframes tx-editor-pop{0%{opacity:0;transform:translateY(2px) scale(.97)}}@media(prefers-reduced-motion:reduce){.tx-editor__frame[data-styled] .tx-editor__frame,.tx-editor__frame[data-styled] .tx-editor__tool,.tx-editor__frame[data-styled] .tx-editor__ai,.tx-editor__swatch{transition:none}.tx-editor__frame[data-styled] .tx-editor__ai-icon,.tx-editor__bubble[data-styled] .tx-editor__ai-icon,.tx-editor__frame ::ng-deep .tx-editor__ai-pending,.tx-editor__bubble[data-styled],.tx-editor__suggestions[data-styled]{animation:none}.tx-editor__swatch:hover{transform:none}}\n"]
5132
5132
  }]
5133
5133
  }],
5134
5134
  ctorParameters: () => [],