import{aa as o}from"./_applist-tangy-colts-beg-36.js";import{_ as e}from"./main-tangy-colts-beg.js";import{h as a,s as n}from"./machine.-tangy-colts-beg-869.js";import"./lodash-tangy-colts-beg-516.js";globalThis.jotaiAtomCache=globalThis.jotaiAtomCache||{cache:new Map,get(t,r){return this.cache.has(t)?this.cache.get(t):(this.cache.set(t,r),r)}};const u=o(({helpers:t})=>({states:{components:[{componentName:t.componentName.mixInput,helperText:e("ID of the attribute you want to update."),id:"id",label:e("Attribute ID"),onChange:"HANDLE_ID",path:"id",render:!0,required:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Name for the attribute (shown on the front-end)."),id:"name",label:e("Attribute Name"),onChange:"HANDLE_NAME",path:"name",render:!0,value:void 0},{componentName:t.componentName.mixInput,helperText:e("Unique slug/reference for the attribute; must be no more than 28 characters."),id:"slug",label:e("Attribute Slug"),onChange:"HANDLE_SLUG",path:"slug",render:!0,value:void 0},{componentName:t.componentName.switch,helperText:e("Enable this if you want this attribute to have product archives in your store."),id:"has-archives",label:e(" Enable Archives?"),onChange:"HANDLE_ARCHIVES",path:"has_archives",render:!0,value:!1},{componentName:t.componentName.select,helperText:e("Determines the sort order of the terms on the frontend shop product pages. If using custom ordering, you can drag and drop the terms in this attribute."),id:"order-by",label:e("Sort Order"),onChange:"SELECT_ORDER_BY",options:[{label:e("Menu Order"),value:"menu_order"},{label:e("Name"),value:"name"},{label:e("Name (Numaric)"),value:"name_num"},{label:e("Term Id"),value:"id"}],path:"order_by",placeholder:e("Select Sort Order"),render:!0,value:void 0}]},actions:{HANDLE_ARCHIVES:a("hasArchives"),HANDLE_ID:a("id"),HANDLE_NAME:a("name"),HANDLE_SLUG:a("slug"),SELECT_ORDER_BY:a("orderBy"),ON_MACHINE_LOAD:({$:r})=>{n(r,[{db:"name",id:"name"},{db:"id",id:"id"},{db:"slug",id:"slug"},{db:"hasArchives",id:"has-archives"},{db:"orderBy",id:"order-by"}])}}}));export{u as default};
