import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; import { Input } from "@ember/component"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; import DTooltip from "discourse/components/d-tooltip"; import I18n from "discourse-i18n"; export default class RagOptions extends Component { @tracked showIndexingOptions = false; @action toggleIndexingOptions(event) { this.showIndexingOptions = !this.showIndexingOptions; event.preventDefault(); event.stopPropagation(); } get indexingOptionsText() { return this.showIndexingOptions ? I18n.t("discourse_ai.rag.options.hide_indexing_options") : I18n.t("discourse_ai.rag.options.show_indexing_options"); } }