PageSourceSearch

https://m.otogo.ca/v3/2aae945.js

js otogo.ca collected 2026-10-09 18:30:09 UTC 8,588 bytes, 1 lines download raw bytes

1(window.webpackJsonp=window.webpackJsonp||[]).push([[111],{1044:function(t,e,n){"use strict";var l=n(56),o={name:"OtgSrpStatusFilter",components:{OtgSrpMultiselect:n(581).a},data(){return{substitutions:{[this.$t("Certified")]:this.$t("Certified pre-owned"),[this.$t("Demo")]:this.$t("Demo vehicles"),[this.$t("New")]:this.$t("New vehicles"),[this.$t("Used")]:this.$t("Pre-owned vehicles")}}},methods:{onChange(t){const e=this.$t("Used"),n=this.$t("Certified");t.value===e&&t.checked&&!this.$refs.field.value.includes(n)&&this.$nextTick((()=>{this.$refs.field.value.push(n)}))},dataAnalyticsFunction(t){var e;return(null===(e=l.a.getFromName({name:t,$store:this.$store}))||void 0===e?void 0:e.name_fr)||t}}};e.a=o},1293:function(t,e,n){"use strict";var l=n(692),o=n.n(l);e.default=o.a},1294:function(t,e,n){"use strict";var l=n(693),o=n.n(l);e.default=o.a},1296:function(t,e,n){"use strict";var l=n(694),o=n.n(l);e.default=o.a},1983:function(t,e,n){"use strict";var l=n(94),o={name:"OtgSrpFuelFilter",components:{OtgSrpMultiselect:n(581).a},methods:{dataAnalyticsFunction(t){var e;return(null===(e=l.a.getFromName({name:t,$store:this.$store}))||void 0===e?void 0:e.name_fr)||t}}},r=n(0),component=Object(r.a)(o,(function(){var t=this;return(0,t._self._c)("OtgSrpMultiselect",{attrs:{field:"fuel",label:t.$t("Fuel"),"data-analytics":"otg-srp-fuel-filter","data-analytics-function":t.dataAnalyticsFunction}})}),[],!1,null,null,null);e.a=component.exports},1984:function(t,e,n){"use strict";var l=n(35),o={name:"OtgSrpMileageFilter",components:{OtgSrpRange:n(1041).a},props:{min:{type:Number,default:0},max:{type:Number,default:2e5}},methods:{formatter(t){const[e,n]=t,{locale:o}=this.$i18n,r=Object(l.c)(e,o);let c=`${Object(l.c)(n,o)} km`;return n===this.max&&(c+="+"),[r,c].join(" - ")}}},r=n(0),component=Object(r.a)(o,(function(){var t=this;return(0,t._self._c)("OtgSrpRange",{attrs:{field:"mileage",label:t.$t("Mileage"),min:t.min,max:t.max,interval:1e3,formatter:t.formatter,"data-analytics":"otg-srp-mileage-filter","data-analytics-name":"mileage-filter"}})}),[],!1,null,null,null);e.a=component.exports},1985:function(t,e,n){"use strict";var l=n(2),o={name:"OtgSrpModelFilter",components:{OtgSrpSelect:n(1252).a},computed:{...Object(l.c)({filters:"srp/filters"}),isDisabled(){return!this.filters.brand}}},r=n(0),component=Object(r.a)(o,(function(){var t=this;return(0,t._self._c)("OtgSrpSelect",{attrs:{field:"model",label:t.$t("Model"),"is-disabled":t.isDisabled,"data-analytics":"otg-srp-model-filter"}})}),[],!1,null,null,null);e.a=component.exports},1986:function(t,e,n){"use strict";var l=n(270),o={name:"OtgSrpOptionFilter",components:{OtgSrpMultiselect:n(581).a},methods:{dataAnalyticsFunction(t){var e;return(null===(e=l.a.getFromName({name:t,$store:this.$store}))||void 0===e?void 0:e.name_fr)||t}}},r=n(0),component=Object(r.a)(o,(function(){var t=this;return(0,t._self._c)("OtgSrpMultiselect",{attrs:{field:"option",label:t.$t("Options"),"is-searchable":"","data-analytics":"otg-srp-options-filter","data-analytics-function":t.dataAnalyticsFunction}})}),[],!1,null,null,null);e.a=component.exports},1987:function(t,e,n){"use strict";var l=n(2),o=n(583),r=n(43),c=n(10),d=n(35),f={name:"OtgSrpOtherFilter",components:{OtgMultiselect:n(596).a},mixins:[o.a],data(){var t,e,n;const{$route:l,$store:o}=this;return{field:"other",value:[null!==(t=r.a.getFiltersFromRoute({$route:l,$store:o}))&&void 0!==t&&t.hasCarfax?"hasCarfax":void 0,null!==(e=r.a.getFiltersFromRoute({$route:l,$store:o}))&&void 0!==e&&e.hasImages?"hasImages":void 0,null!==(n=r.a.getFiltersFromRoute({$route:l,$store:o}))&&void 0!==n&&n.hasRating?"hasRating":void 0].filter(Boolean),optionCollection:[]}},computed:{...Object(l.c)({facets:"srp/facets",filters:"srp/filters",savedSearchId:"srp/savedSearchId",sort:"srp/sort"})},watch:{value(t,e){if(Object(c.a)(t,e))return;r.a.debug&&console.log(`field ${this.field} has changed values`,{oldValue:e,newValue:t});const{filters:n,savedSearchId:l}=this;this.$nextTick((()=>{this.$_srp_route_updateRoute({...n,hasCarfax:t.includes("hasCarfax"),hasImages:t.includes("hasImages"),hasRating:t.includes("hasRating"),sort:this.sort,page:1,savedSearchId:l})}))},facets:{immediate:!0,handler(t,e){const n=[null==e?void 0:e.hasCarfax,null==e?void 0:e.hasImages,null==e?void 0:e.hasRating],l=[null==t?void 0:t.hasCarfax,null==t?void 0:t.hasImages,null==t?void 0:t.hasRating];Object(c.a)(n,l)||this.buildOptionCollection()}},filters:{immediate:!0,handler(t,e){const n=[null!=e&&e.hasCarfax?"hasCarfax":void 0,null!=e&&e.hasImages?"hasImages":void 0,null!=e&&e.hasRating?"hasRating":void 0],l=[null!=t&&t.hasCarfax?"hasCarfax":void 0,null!=t&&t.hasImages?"hasImages":void 0,null!=t&&t.hasRating?"hasRating":void 0];Object(c.a)(n,l)||(this.value=(l||[]).map(String))}}},methods:{buildOptionCollection(){const{locale:t}=this.$i18n;this.optionCollection=[{label:`${this.$t("CARFAX report to consult")} (${Object(d.c)(this.facets.hasCarfax.true,t)})`,value:"hasCarfax",dataAnalyticsValue:"hasCarfax"},{label:`${this.$t("With photos")} (${Object(d.c)(this.facets.hasImages.true,t)})`,value:"hasImages",dataAnalyticsValue:"hasImages"},{label:`${this.$t("With The Car Guide evaluation")} (${Object(d.c)(this.facets.hasRating.true,t)})`,value:"hasRating",dataAnalyticsValue:"hasRating"}]}}},h=n(0),m=n(1293),component=Object(h.a)(f,(function(){var t=this,e=t._self._c;return e("OtgMultiselect",t._g({attrs:{$_field_name:t.field,$_field_label:t.$t("Other options"),"option-collection":t.optionCollection,"is-validatable":!1},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},t.$listeners),[e("template",{slot:"empty"},[e("div",{domProps:{textContent:t._s(t.$t("No result"))}})])],2)}),[],!1,null,null,null);"function"==typeof m.default&&Object(m.default)(component);e.a=component.exports},1988:function(t,e,n){"use strict";var l=n(35),o={name:"OtgSrpPriceFilter",components:{OtgSrpRange:n(1041).a},props:{min:{type:Number,default:0},max:{type:Number,default:1e5}},methods:{formatter(t){const[e,n]=t,{locale:o}=this.$i18n;let r,c;if("fr"===o.substr(0,2))r=Object(l.c)(e,o),c=Object(l.b)(n,o);else r=Object(l.b)(e,o),c=Object(l.c)(n,o);return n===this.max&&(c+="+"),[r,c].join(" - ")}}},r=n(0),component=Object(r.a)(o,(function(){var t=this;return(0,t._self._c)("OtgSrpRange",{attrs:{field:"price",label:t.$t("Price"),min:t.min,max:t.max,interval:1e3,formatter:t.formatter,"data-analytics":"otg-srp-price-filter","data-analytics-name":"price-filter"}})}),[],!1,null,null,null);e.a=component.exports},1989:function(t,e,n){"use strict";var l=n(158),o={name:"OtgSrpSeatsFilter",components:{OtgSrpMultiselect:n(581).a},methods:{substitutionFunction(t){return"-1"===t?this.$t("Unknown"):`${t} ${this.$tc("seats",t)}`},sortFunction(a,b){const sub=t=>String(t).replace("-1","99");return Object(l.a)(sub(a),sub(b))}}},r=n(0),c=n(1294),component=Object(r.a)(o,(function(){var t=this;return(0,t._self._c)("OtgSrpMultiselect",{attrs:{field:"seats",label:t.$t("Seating capacity"),"data-analytics":"otg-srp-seats-filter","substitution-function":t.substitutionFunction,"sort-function":t.sortFunction}})}),[],!1,null,null,null);"function"==typeof c.default&&Object(c.default)(component);e.a=component.exports},2019:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return o}
1));var l=function(){var t=this;return(0,t._self._c)("OtgSrpMultiselect",{ref:"field",attrs:{field:"status",label:t.$t("Status"),substitutions:t.substitutions,"data-analytics":"otg-srp-status-filter","data-analytics-function":t.dataAnalyticsFunction},on:{change:t.onChange}})},o=[]},692:function(t,e){t.exports=function(t){t.options.__i18n=t.options.__i18n||[],t.options.__i18n.push('{"fr":{"Other options":"Autres options","CARFAX report to consult":"Rapport CARFAX à consulter","With photos":"Avec photos","With The Car Guide evaluation":"Avec évaluation du Guide de l’auto"}}'),delete t.options._Ctor}},693:function(t,e){t.exports=function(t){t.options.__i18n=t.options.__i18n||[],t.options.__i18n.push('{"fr":{"Seating capacity":"Places","seats":"place | places","Unknown":"Inconnu"},"en":{"seats":"seat | seats"}}'),delete t.options._Ctor}},694:function(t,e){t.exports=function(t){t.options.__i18n=t.options.__i18n||[],t.options.__i18n.push('{"fr":{"Status":"Usagé / Neuf","Certified":"Certifié","Demo vehicles":"Véhicules démonstrateurs","New":"Neuf","Used":"Usagé","Certified pre-owned":"Véhicules certifiés","New vehicles":"Véhicules neufs","Pre-owned vehicles":"Véhicules d’occasion"},"en":{"Status":"Used / New"}}'),delete t.options._Ctor}}}]);

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.