import{aa as o,ab as r}from"./_applist-tangy-colts-beg-36.js";import{_ as a}from"./main-tangy-colts-beg.js";import{s as c}from"./machine.-tangy-colts-beg-869.js";import{h as t,a as s,b as m,c as N,d,r as E}from"./whatsapp-tangy-colts-beg-275.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,n){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,n),n)}};const u=o(({helpers:e})=>({states:{components:[d(e),E(e),{componentName:e.componentName.mixInput,helperText:a("Static stickers must be .webp and under 100 KB. Animated stickers must also be .webp and under 500 KB."),id:"sticker-url",label:a("Sticker URL"),onChange:"SET_STICKER_URL",path:"sticker.link",render:"IF_CONNECTION_SELECTED",required:!0,value:[]}]},actions:{CONNECTION_ADD_CHANGE:N,HANDLE_BUSINESS_ID:m,IF_CONNECTION_SELECTED:({$:n})=>{var i;return r((i=n.getComponent("connection-id"))==null?void 0:i.value)},SET_CONNECTION:t("connectionId"),SET_PHONE_NUMBER_ID:s,SET_RECIPIENT_NUMBER:t("recipientNumber"),SET_STICKER_URL:t("stickerUrl"),ON_MACHINE_LOAD:async({$:n})=>{c(n,[{db:"connectionId",id:"connection-id"},{db:"recipientNumber",id:"recipient-phone-number"},{db:"stickerUrl",id:"sticker-url"}])}}}));export{u as default};
