import{aa as n}from"./_applist-tangy-colts-beg-36.js";import{_ as o}from"./main-tangy-colts-beg.js";import{h as t,s as i}from"./machine.-tangy-colts-beg-869.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(e,a){return this.cache.has(e)?this.cache.get(e):(this.cache.set(e,a),a)}};const c=n(({helpers:e})=>({states:{components:[{componentName:e.componentName.mixInput,helperText:o("Code or id of the coupon to update."),id:"coupon-code-or-id",label:o("Coupon Code or Id"),onChange:"HANDLE_CODE_OR_ID",path:"coupon_code_or_id",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:o("Allowed emails to use the coupon, separated by commas."),id:"customer-email",label:o("Allowed Emails"),onChange:"HANDLE_CUSTOMER_EMAIL",path:"customer_email",render:!0,required:!0,value:void 0},{componentName:e.componentName.switch,helperText:o("Append the emails to existing ones instead of replacing them."),id:"append-emails",label:o("Append Emails?"),onChange:"HANDLE_APPEND_EMAILS",path:"append_emails",render:!0,value:!1}]},actions:{HANDLE_APPEND_EMAILS:t("appendEmails"),HANDLE_CODE_OR_ID:t("couponCodeOrId"),HANDLE_CUSTOMER_EMAIL:t("customerEmail"),ON_MACHINE_LOAD:({$:a})=>{i(a,[{db:"couponCodeOrId",id:"coupon-code-or-id"},{db:"customerEmail",id:"customer-email"},{db:"appendEmails",id:"append-emails"}])}}}));export{c as default};
