PageSourceSearch

https://www.guide-du-gers.com/scripts/v-filters/v-filters-others.min.js?v=1789133174

js guide-du-gers.com collected 2026-09-24 11:28:55 UTC 5,736 bytes, 1 lines download raw bytes

1var vFiltersOthers={template:'<div class="v-filters-others" :class="{ \'dropped\' : dropped, \'empty\' : empty , \'disabled\' : disabled }"><a class="v-filters-others-toggle" :class="[ icon ]" @click="toggle"><slot></slot><span v-if="nbActivFilters > 0" class="v-filters-others-nb">{{ nbActivFilters }}</span></a><div class="v-filters-others-overlay" v-show="dropped && !disabled" @click="close"></div><div class="v-filters-dropdown v-filters-others-dropdown" v-show="dropped && !disabled"><div class="v-filters-dropdown-content v-filters-others-dropdown-content" v-if="dropped"><a class="v-filters-dropdown-close" @click="close">×</a><span class="v-filters-dropdown-title" :class="[ icon ]"><slot></slot></span><div class="v-filters-dropdown-content-scrollable"><div class="v-filters-others-loading message loading" v-if="loading">{{ labels.loading }}</div><div class="v-filters-others-empty message" v-if="!loading && !filters.length">{{ labels.nofilters }}</div><div class="v-filters-others-booleans"><span class="v-filters-others-booleans-item" v-for="filterItem in booleanFilters" :key="filterItem.name"><v-checkbox :id="\'otherFilter\' + filterItem.name" v-model="checkedValues" :value="filterItem.name"/><label class="v-filters-others-booleans-item-label" :for="\'otherFilter\' + filterItem.name" v-html="filterItem.label"></label></span></div><div class="v-filters-others-lists"><div class="v-filters-others-lists-item" v-for="filterItem in listFilters" :key="filterItem.name"><label class="v-filters-others-lists-item-label">{{ filterItem.label }}</label><a class="v-filters-lists-item-clear bouton flat" v-if="!!filtersValues[filterItem.name]" @click="clearListItem(filterItem.name)">{{ labels.clear }}</a><div class="v-filters-others-lists-item-options" :class="{ \'extandable\': filterItem.options.length > 6, \'extanded\': !!extandedlists.includes(filterItem.name) }"><span class="v-filters-others-lists-item-option" v-for="option, optionKey in filterItem.options" :key="optionKey"><v-radio :id="\'otherFilter\' + filterItem.name + \'-\' + optionKey" :name="\'otherFilter\' + filterItem.name" v-model="filtersValues[filterItem.name]" :value="option.i" @change="listeChange(filterItem.name, $event)"/>\t\t\t\t<label class="v-filters-others-lists-item-option-label" :for="\'otherFilter\' + filterItem.name + \'-\' + optionKey" v-html="option.l"></label></span></div><a class="v-filters-lists-item-extand bouton flat" v-if="filterItem.options.length > 6 && !extandedlists.includes(filterItem.name)" @click="extandList(filterItem.name)">{{ labels.seeMore }}</a></div></div></div></div><div class="v-filters-dropdown-footer" v-if="dropped"><div class="v-filters-dropdown-footer-content"><a class="v-filters-clear bouton flat" :class="{\'disabled\': empty}" @click="clear">{{ labels.clearAll }}</a><a class="v-filters-appy bouton" @click="apply">{{ labels.apply }}</a></div></div></div></div>',props:{icon:[String],disabled:[Boolean],filters:[Array],filtersValues:[Object]},data:function(){return{dropped:!1,i18n:{fr:{apply:"Appliquer",clear:"Effacer",clearAll:"Tout effacer",seeMore:"Voir plus...",loading:"Chargement en cours...",nofilters:"Aucun filtre supplémentaire pour cette sélection"},en:{apply:"Apply",clear:"Clear",clearAll:"Clear all",seeMore:"See more...",loading:"Loading in progress...",nofilters:"No additional filter for this selection"},es:{apply:"Aplicar",clear:"Borrar",clearAll:"Borrar todo",seeMore:"Ver más...",loading:"Cargando en progreso...",nofilters:"No hay filtro adicional para esta selección"},eu:{apply:"Aplikatu",clear:"Ezabatzeko",clearAll:"Ezabatu guztiak",seeMore:"Gehiago ikusi...",loading:"Kargatzen ari da...",nofilters:"Ez dago iragazki gehigarririk hautapen honetarako"},de:{apply:"Anwenden",clear:"Entfernen",clearAll:"Alles entfernen",seeMore:"Mehr sehen...",loading:"Wird geladen...",nofilters:"Kein zusätzlicher Filter für diese Auswahl"}},extandedlists:[]}},computed:{labels:function(){var e=LGG&&this.i18n[LGG]?LGG:"fr";return this.i18n[e]},checkedValues:{get:function(){var e,t=[];for(e in this.booleanFilters)this.filtersValues[this.booleanFilters[e].name]&&t.push(this.booleanFilters[e].name);return t},set:function(e){for(var t=this.listsValues,i=0;i<e.length;i++)t[e[i]]=1;this.$emit("change",t),this.$emit("input",t)}},listsValues:function(){for(var e={},t=0;t<this.listFilters.length;t++)this.filtersValues[this.listFilters[t].name]&&(e[this.listFilters[t].name]=this.filtersValues[this.listFilters[t].name]);return e},activFilters:function(){return Object.keys(this.filtersValues)},nbActivFilters:function(){return this.activFilters.length},empty:function(){return 0===this.nbActivFilters},booleanFilters:function(){return this.filters?this.filters.filter(function(e){return"bool"===e.type}):[]},listFilters:function(){return this.filters?this.filters.filter(function(e){return"select"===e.type}):[]},loading:function(){return null===this.filters}},methods:{toggle:function(){this.disabled||(this.dropped=!this.dropped)},close:function(){this.extandedlists=[],this.dropped=!1},apply:function(){this.$emit("apply",this.annoncesOtherFilters,"othersFilters"),this.close()},clear:function(){this.$emit("change",{}),this.$emit("input",{})},clearListItem:function(e){var t=Object.assign({},this.filtersValues);t[e]&&delete t[e],this.$emit("change",t),this.$emit("input",t)},extandList:function(e){this.extandedlists.includes(e)||this.extandedlists.push(e)},listeChange:function(e,t){for(var i=Object.assign({},this.listsValues),l=this.checkedValues,s=0;s<l.length;s++)i[l[s]]=1;
1i[e]=t,this.$emit("change",i),this.$emit("input",i)}},watch:{dropped:function(e){e?this.$emit("open"):this.$emit("close")}},mounted:function(){}};Vue.component("v-filters-others",vFiltersOthers);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.