conditional.ListingFilter={description:"Filtert nach gesetzten Shopfiltern (Listing)",name:"Listingfilter",section:"Listing",sort:40,config:[{type:"select",options:[{label:"Kategorie",value:"category"},{label:"Hersteller",value:"vendor"},{label:"Merkmalwert",value:"property"},{label:"Bewertung",value:"rating"},{label:"Suchspezial",value:"special"},{label:"Verfügbarkeit",value:"availability"}],property:"type"},{name:"Kategoriefilter",type:"select",options:"Categories",property:"category",condition:"drop.type == 'category'"},{name:"Herstellerfilter",type:"select",options:"Brands",property:"vendor",condition:"drop.type == 'vendor'"},{name:"Merkmalfilter",type:"multiselect",options:"ArticlePropertyValues",property:"properties",condition:"drop.type == 'property'"},{name:"Bewertungsfilter",type:"select",options:[{label:"Ab 1 Sterne",value:"1"},{label:"Ab 2 Sterne",value:"2"},{label:"Ab 3 Sterne",value:"3"},{label:"Ab 4 Sterne",value:"4"},{label:"Ab 5 Sterne",value:"5"}],property:"rating",condition:"drop.type == 'rating'"},{name:"Suchspezialfilter",type:"select",options:[{label:"Bestseller",value:1},{label:"Sonderangebote",value:2},{label:"Neu im Sortiment",value:3},{label:"Top Angebote",value:4},{label:"In Kürze verfügbar",value:5},{label:"Top bewertet",value:6},{label:"Ausverkauft",value:7},{label:"Auf Lager",value:8},{label:"Vorbestellung Möglich",value:9}],property:"special",condition:"drop.type == 'special'"},{name:"Verfügbarkeitsfilter",type:"select",options:[{label:"Aktiv",value:1}],property:"availability",condition:"drop.type == 'availability'"}],validate:function(e){if(!e.type)return!1;switch(e.type){case"category":if(!e.category)return!1;break;case"vendor":if(!e.vendor)return!1;break;case"property":if(!e.properties||!e.properties.length)return!1;break;case"rating":if(!e.rating)return!1;break;case"special":if(!e.special)return!1;break;case"availability":if(!e.availability)return!1;break;default:return!1}return!0}};