import{aa as r}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as a,s as m}from"./machine.-tangy-colts-beg-869.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,o){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,o),o)}};const l=r(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("The ID of the membership level to assign the member to."),id:"level-id",label:e("Membership Level ID"),onChange:"HANDLE_LEVEL_ID",path:"levels",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The username of the member to create."),id:"username",label:e("Username"),onChange:"HANDLE_USERNAME",path:"user_login",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The email address of the member to create."),id:"email",label:e("Email Address"),onChange:"HANDLE_EMAIL",path:"user_email",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The first name of the member to create."),id:"first-name",label:e("First Name"),onChange:"HANDLE_FIRST_NAME",path:"first_name",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The last name of the member to create."),id:"last-name",label:e("Last Name"),onChange:"HANDLE_LAST_NAME",path:"last_name",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The password of the member to create."),id:"password",label:e("Password"),onChange:"HANDLE_PASSWORD",path:"user_pass",render:"SHOULD_SHOW_PASSWORD_FIELD",required:!0,value:void 0},{componentName:t.componentName.switch,fieldType:"config",helperText:e("Generate a random password for the member."),id:"generate-password",label:e("Generate Password"),onChange:"HANDLE_GENERATE_PASSWORD",path:"generate_password",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The company of the member to create."),id:"company",label:e("Company"),onChange:"HANDLE_COMPANY",path:"company",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The address line 1 of the member to create."),id:"address1",label:e("Street Address Line 1"),onChange:"HANDLE_ADDRESS1",path:"address1",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The address line 2 of the member to create."),id:"address2",label:e("Street Address Line 2"),onChange:"HANDLE_ADDRESS2",path:"address2",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The city of the member to create."),id:"city",label:e("City/Town"),onChange:"HANDLE_CITY",path:"city",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The state of the member to create."),id:"state",label:e("State"),onChange:"HANDLE_STATE",path:"state",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The zip code of the member to create."),id:"zip",label:e("Zip Code"),onChange:"HANDLE_ZIP",path:"zip",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("The country of the member to create."),id:"country",label:e("Country"),onChange:"HANDLE_COUNTRY",path:"country",render:!0,value:void 0}]},actions:{SHOULD_SHOW_PASSWORD_FIELD:({$:o})=>{var n;return!((n=o.getComponent("generate-password"))!=null&&n.value)},HANDLE_ADDRESS1:a("address1"),HANDLE_ADDRESS2:a("address2"),HANDLE_CITY:a("city"),HANDLE_COMPANY:a("company"),HANDLE_COUNTRY:a("country"),HANDLE_EMAIL:a("email"),HANDLE_FIRST_NAME:a("firstName"),HANDLE_GENERATE_PASSWORD:a("generatePassword"),HANDLE_LAST_NAME:a("lastName"),HANDLE_LEVEL_ID:a("levelId"),HANDLE_PASSWORD:a("password"),HANDLE_STATE:a("state"),HANDLE_USERNAME:a("username"),HANDLE_ZIP:a("zip"),ON_MACHINE_LOAD:({$:o})=>{m(o,[{db:"email",id:"email"},{db:"firstName",id:"first-name"},{db:"generatePassword",id:"generate-password"},{db:"lastName",id:"last-name"},{db:"levelId",id:"level-id"},{db:"password",id:"password"},{db:"username",id:"username"},{db:"zip",id:"zip"},{db:"company",id:"company"},{db:"address1",id:"address1"},{db:"address2",id:"address2"},{db:"city",id:"city"},{db:"state",id:"state"},{db:"country",id:"country"}])}}}));export{l as default};
