import { localized, msg } from "@lit/localize"; import { html } from "lit"; import { customElement, property } from "lit/decorators.js"; import { TailwindElement } from "@/classes/TailwindElement"; import seededCrawlSvg from "~assets/images/new-crawl-config_Seeded-Crawl.svg"; import urlListSvg from "~assets/images/new-crawl-config_URL-List.svg"; export type SelectJobTypeEvent = CustomEvent<"url-list" | "seed-crawl">; /** * @event select-job-type SelectJobTypeEvent */ @localized() @customElement("btrix-new-workflow-dialog") export class NewWorkflowDialog extends TailwindElement { @property({ type: Boolean }) open = false; render() { return html`

${msg(html`Choose Page List if:`)}

${msg( html`A Page List workflow is simpler to configure, since you don't need to worry about configuring the workflow to exclude parts of the website that you may not want to archive.`, )}

${msg(html`Choose Site Crawl if:`)}

${msg( html`Site Crawl workflows are great for advanced use cases where you don't need to know every single URL that you want to archive. You can configure reasonable crawl limits and page limits so that you don't crawl more than you need to.`, )}

${msg( html`Once you choose a crawl type, you can't go back and change it. Check out the crawl workflow setup guide if you still need help deciding on a crawl type, and try our community help forum.`, )}

`; } private stopProp(e: Event) { e.stopPropagation(); } }