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