More filters
Price
Mileage (km)
sum + (this.facets.counts[k] || 0), 0)
: this.facets.base;
this.busy = false;
},
/* Arabic counts the noun three ways. Same rule as listingNounAr()
and as the homepage's live count — one rule, three places, not
three rules. */
noun(n) {
if (! this.ar) return n === 1 ? this.one : this.many;
const tail = n % 100;
if (tail >= 3 && tail <= 10) return 'إعلانات';
if (tail >= 11 && tail <= 99) return 'إعلانًا';
return 'إعلان';
},
button() {
const n = Number(this.count) || 0;
return n.toLocaleString('en-US') + ' ' + this.noun(n);
},
}"
x-effect="sync($wire.fuels); document.documentElement.style.overflow = open ? 'hidden' : ''"
x-on:keydown.escape.window="if (open) cancel()">
7,774 listings