import{aa as E,ab as a}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as r,s as m}from"./machine.-tangy-colts-beg-869.js";import{h,c as s}from"./twilioco-tangy-colts-beg-300.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(n,e){return this.cache.has(n)?this.cache.get(n):(this.cache.set(n,e),e)}};const u=E(({helpers:n})=>({states:{components:[s(n),{componentName:n.componentName.switch,fieldType:"config",helperText:o("Enable to Filter out messages with phone numbers"),id:"filter-with-numbers-switch",label:o("Filter with Phone Numbers"),onChange:"SET_FILTER_WITH_NUMBERS",render:"IF_CONNECTION_SELECTED",size:"small",value:!1},{componentName:n.componentName.mixInput,helperText:o("Enter the sender's phone number (e.g., +1234567890)."),id:"sender-phone-number",label:o("Sender Phone Number"),onChange:"SET_SENDER_PHONE_NUMBER",path:"From",render:"IF_FILTER_WITH_NUMBERS_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:o("Enter the recipient phone number (e.g., +1234567890)."),id:"recipient-phone-number",label:o("Recipient Phone Number"),onChange:"SET_RECIPIENT_PHONE_NUMBER",path:"To",render:"IF_FILTER_WITH_NUMBERS_SELECTED",required:!0,value:[]},{componentName:n.componentName.mixInput,helperText:o("Set the page size to limit the number of messages fetched."),id:"page-size",label:o("Page Size"),onChange:"SET_PAGE_SIZE",path:"pageSize",render:"IF_FILTER_NUMBERS_SELECTED",required:!0,value:[]}]},actions:{IF_FILTER_WITH_NUMBERS_SELECTED:({$:e})=>{var t,i;return a((t=e.getComponent("connection-id"))==null?void 0:t.value)&&((i=e.getComponent("filter-with-numbers-switch"))==null?void 0:i.value)===!0},IF_FILTER_NUMBERS_SELECTED:({$:e})=>{var t,i;return a((t=e.getComponent("connection-id"))==null?void 0:t.value)&&((i=e.getComponent("filter-with-numbers-switch"))==null?void 0:i.value)===!1},CONNECTION_ADD_CHANGE:h,IF_CONNECTION_SELECTED:({$:e})=>{var t;return a((t=e.getComponent("connection-id"))==null?void 0:t.value)},SET_CONNECTION:r("connectionId"),SET_FILTER_WITH_NUMBERS:r("filterWithNumbers"),SET_PAGE_SIZE:r("pageSize"),SET_RECIPIENT_PHONE_NUMBER:r("recipientPhoneNumber"),SET_SENDER_PHONE_NUMBER:r("senderPhoneNumber"),ON_MACHINE_LOAD:({$:e})=>{m(e,[{db:"connectionId",id:"connection-id"},{db:"senderPhoneNumber",id:"sender-phone-number"},{db:"recipientPhoneNumber",id:"recipient-phone-number"},{db:"pageSize",id:"page-size"},{db:"filterWithNumbers",id:"filter-with-numbers-switch"}])}}}));export{u as default};
