{ "version": 3, "sources": ["../javascripts/shared/togglable-filters.ts"], "sourcesContent": ["import i18next from 'i18next';\nimport { getMarket } from '../i18n';\n\nexport const togglableFilters = () => {\n const { marketCode } = getMarket();\n const filters = [\n {\n id: 'mrf',\n displayName: i18next.t('filter.associationPackaging', { ns: 'search' }),\n },\n {\n id: 'isAuthorizedResellerForManufacturer',\n displayName: i18next.t('filter.authorizedDealer', { ns: 'search' }),\n },\n {\n id: 'hasManufacturerPackaging',\n displayName: i18next.t('filter.manufacturerPackaging', { ns: 'search' }),\n },\n {\n id: 'hasMedia',\n displayName: i18next.t('filter.onlyWithMedia', { ns: 'search' }),\n },\n {\n id: 'leasing',\n displayName: i18next.t('Private leasing', { ns: 'search' }),\n },\n {\n id: 'businessLeasing',\n displayName: i18next.t('Business leasing', { ns: 'search' }),\n },\n {\n id: 'isAuctionItem',\n displayName: i18next.t('Auction', { ns: 'search' }),\n },\n ];\n\n if (marketCode === 'SE') {\n filters.splice(0, 0, {\n id: 'deductibleVat',\n displayName: i18next.t('filter.deductibleVat', { ns: 'search' }),\n });\n\n filters.splice(5, 0, {\n id: 'ecom',\n displayName: i18next.t('filter.buyOnline', { ns: 'search' }),\n });\n }\n\n return filters;\n};\n\nexport const toggleableExcludingFilters = () => [\n {\n id: 'isCentralStorage',\n displayName: i18next.t('filter.centralStorage.displayName', { ns: 'search' }),\n tagDisplayName: i18next.t('filter.centralStorage.tagName', { ns: 'search' }),\n },\n];\n"], "mappings": "sDAGO,IAAMA,EAAmB,IAAM,CACpC,GAAM,CAAE,WAAAC,CAAW,EAAIC,EAAU,EAC3BC,EAAU,CACd,CACE,GAAI,MACJ,YAAaC,EAAQ,EAAE,8BAA+B,CAAE,GAAI,QAAS,CAAC,CACxE,EACA,CACE,GAAI,sCACJ,YAAaA,EAAQ,EAAE,0BAA2B,CAAE,GAAI,QAAS,CAAC,CACpE,EACA,CACE,GAAI,2BACJ,YAAaA,EAAQ,EAAE,+BAAgC,CAAE,GAAI,QAAS,CAAC,CACzE,EACA,CACE,GAAI,WACJ,YAAaA,EAAQ,EAAE,uBAAwB,CAAE,GAAI,QAAS,CAAC,CACjE,EACA,CACE,GAAI,UACJ,YAAaA,EAAQ,EAAE,kBAAmB,CAAE,GAAI,QAAS,CAAC,CAC5D,EACA,CACE,GAAI,kBACJ,YAAaA,EAAQ,EAAE,mBAAoB,CAAE,GAAI,QAAS,CAAC,CAC7D,EACA,CACE,GAAI,gBACJ,YAAaA,EAAQ,EAAE,UAAW,CAAE,GAAI,QAAS,CAAC,CACpD,CACF,EAEA,OAAIH,IAAe,OACjBE,EAAQ,OAAO,EAAG,EAAG,CACnB,GAAI,gBACJ,YAAaC,EAAQ,EAAE,uBAAwB,CAAE,GAAI,QAAS,CAAC,CACjE,CAAC,EAEDD,EAAQ,OAAO,EAAG,EAAG,CACnB,GAAI,OACJ,YAAaC,EAAQ,EAAE,mBAAoB,CAAE,GAAI,QAAS,CAAC,CAC7D,CAAC,GAGID,CACT,EAEaE,EAA6B,IAAM,CAC9C,CACE,GAAI,mBACJ,YAAaD,EAAQ,EAAE,oCAAqC,CAAE,GAAI,QAAS,CAAC,EAC5E,eAAgBA,EAAQ,EAAE,gCAAiC,CAAE,GAAI,QAAS,CAAC,CAC7E,CACF", "names": ["togglableFilters", "marketCode", "getMarket", "filters", "instance", "toggleableExcludingFilters"] }