import{getDynamicSourceLocales as e,createSettingId as t}from"../../../../helpers.js";import{CollectionToolbar as a}from"../../../settings/collection-toolbar/configs/translate.js";let getSortingTextDisplayVal=({setting:i,builderProps:l,pageContext:n},s)=>{let{sortingTextDisplay:r}=i??{};return"react"==s?r:e({val:r,uid:l?.uid,settingId:t({id:a?.sortingTextDisplay?.id}),pageContext:n??{}})},getQuantityTextDisplayVal=({setting:i,builderProps:l,pageContext:n},s)=>{let{quantityTextDisplay:r}=i??{};return"react"==s?r:e({val:r,uid:l?.uid,settingId:t({id:a?.quantityTextDisplay?.id}),isLiquid:!0,pageContext:n??{}})},SORT_OPTIONS=[{name:"Best selling",value:"best-selling"},{name:"Featured",value:"manual"},{name:"Alphabetically, A-Z",value:"title-ascending"},{name:"Alphabetically, Z-A",value:"title-descending"},{name:"Price, low to high",value:"price-ascending"},{name:"Price, high to low",value:"price-descending"},{name:"Date, new to old",value:"created-descending"},{name:"Date, old to new",value:"created-ascending"}],sortBy="manual";export{SORT_OPTIONS,getQuantityTextDisplayVal,getSortingTextDisplayVal,sortBy};
