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