import{aa as n,ab as l}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{h as t,s as c}from"./machine.-tangy-colts-beg-869.js";import{h as i,c as h}from"./apifycom-tangy-colts-beg-996.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,o){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,o),o)}};const E=n(({helpers:e})=>({states:{components:[h(e),{componentName:e.componentName.mixInput,helperText:a("Enter the URL to scrape"),id:"url",label:a("URL"),onChange:"HANDLE_URL",path:"url",render:"IF_CONNECTION_SELECTED",required:!0,value:void 0},{componentName:e.componentName.select,helperText:a("Select the crawler type to use for scraping."),id:"crawler-type",label:a("Crawler Type"),onChange:"HANDLE_CRAWLER_TYPE",options:[{label:a("Cheerio"),value:"cheerio"},{label:a("JSDOM"),value:"jsdom"},{label:a("Playwright Chrome"),value:"playwright:chrome"}],path:"crawlerType",render:"IF_CONNECTION_SELECTED",value:"cheerio"}]},actions:{CONNECTION_ADD_CHANGE:i,HANDLE_CRAWLER_TYPE:t("crawlerType"),HANDLE_URL:t("url"),IF_CONNECTION_SELECTED:({$:o})=>{var r;return l((r=o.getComponent("connection-id"))==null?void 0:r.value)},SET_CONNECTION:t("connectionId"),ON_MACHINE_LOAD:({$:o})=>{c(o,[{db:"connectionId",id:"connection-id"},{db:"crawlerType",id:"crawler-type"},{db:"url",id:"url"}])}}}));export{E as default};
