import{aa as i}from"./_applist-tangy-colts-beg-36.js";import{_ as t}from"./main-tangy-colts-beg.js";import{h as a,s as r}from"./machine.-tangy-colts-beg-869.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 m=i(({helpers:e})=>({states:{components:[{componentName:e.componentName.mixInput,id:"id",label:t("Product Id"),onChange:"HANDLE_ID",path:"id",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("Name for the attribute (shown on the front-end)."),id:"name",label:t("Attribute Name"),onChange:"HANDLE_NAME",path:"name",render:!0,required:!0,value:void 0},{componentName:e.componentName.mixInput,helperText:t("These are the actual options for the attribute. Should support multiple values (comma-separated input makes sense)."),id:"values",label:t("Attribute Values"),onChange:"HANDLE_VALUES",path:"values",render:!0,required:!0,value:void 0},{componentName:e.componentName.switch,helperText:t("Whether the attribute should be visible on the product page."),id:"visible",label:t("Visible on the product page?"),onChange:"HANDLE_VISIBLE",path:"visible",render:!0,value:!0},{componentName:e.componentName.switch,helperText:t("Should this attribute be used for variations (for variable products)?"),id:"used-for-variations",label:t("Used for Variations?"),onChange:"HANDLE_USED_FOR_VARIATIONS",path:"used_for_variations",render:!0,value:!1}]},actions:{HANDLE_ID:a("id"),HANDLE_NAME:a("name"),HANDLE_USED_FOR_VARIATIONS:a("usedForVariations"),HANDLE_VALUES:a("values"),HANDLE_VISIBLE:a("visible"),ON_MACHINE_LOAD:({$:o})=>{r(o,[{db:"id",id:"id"},{db:"name",id:"name"},{db:"values",id:"values"},{db:"visible",id:"visible"},{db:"usedForVariations",id:"used-for-variations"}])}}}));export{m as default};
