import{getDynamicSourceLocales as e,createSettingId as t}from"../../../../helpers.js";import{CollectionToolbar as a}from"../../../settings/collection-toolbar/configs/translate.js";let i=({setting:i,builderProps:l,pageContext:n},s)=>{let{sortingTextDisplay:d}=i??{};return"react"==s?d:e({val:d,uid:l?.uid,settingId:t({id:a?.sortingTextDisplay?.id}),pageContext:n??{}})},l=({setting:i,builderProps:l,pageContext:n},s)=>{let{quantityTextDisplay:d}=i??{};return"react"==s?d:e({val:d,uid:l?.uid,settingId:t({id:a?.quantityTextDisplay?.id}),isLiquid:!0,pageContext:n??{}})},n=[{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"}],s="manual";export{n as SORT_OPTIONS,l as getQuantityTextDisplayVal,i as getSortingTextDisplayVal,s as sortBy};
