1// Generated by CoffeeScript 1.11.1 2(function() { 3 var f; 4 5 f = function($) { 6 var ApidaeRecherche, ApidaeRechercheCarte; 7 ApidaeRechercheCarte = (function() { 8 ApidaeRechercheCarte.Icons = { 9 'DEFAULT': 'marker-vide.png', 10 "ACTIVITE": 'marker-activites.png', 11 "COMMERCE_ET_SERVICE": 'marker-shopping.png', 12 "FETE_ET_MANIFESTATION": 'marker-agenda.png', 13 "HEBERGEMENT_COLLECTIF": 'marker-dormir.png', 14 "HEBERGEMENT_LOCATIF": 'marker-dormir.png', 15 "HOTELLERIE": 'marker-dormir.png', 16 "HOTELLERIE_PLEIN_AIR": 'marker-dormir.png', 17 "PATRIMOINE_CULTUREL": 'marker-culture.png', 18 "PATRIMOINE_NATUREL": 'marker-culture.png', 19 "RESTAURATION": 'marker-manger.png', 20 "DEGUSTATION": 'marker-manger.png', 21 "STRUCTURE": 'marker-activites.png', 22 "EQUIPEMENT": 'marker-activites.png' 23 }; 24 25 ApidaeRechercheCarte.IconsActive = { 26 'DEFAULT': 'marker-vide.png', 27 "ACTIVITE": 'marker-activites.png', 28 "COMMERCE_ET_SERVICE": 'marker-shopping.png', 29 "FETE_ET_MANIFESTATION": 'marker-agenda.png', 30 "HEBERGEMENT_COLLECTIF": 'marker-dormir.png', 31 "HEBERGEMENT_LOCATIF": 'marker-dormir.png', 32 "HOTELLERIE": 'marker-dormir.png', 33 "HOTELLERIE_PLEIN_AIR": 'marker-dormir.png', 34 "PATRIMOINE_CULTUREL": 'marker-culture.png', 35 "PATRIMOINE_NATUREL": 'marker-culture.png', 36 "RESTAURATION": 'marker-manger.png', 37 "DEGUSTATION": 'marker-manger.png', 38 "STRUCTURE": 'marker-activites.png', 39 "EQUIPEMENT": 'marker-activites.png' 40 }; 41 42 ApidaeRechercheCarte.IconsGroup = { 43 "base": 'gmap-m', 44 "extension": "png", 45 "maxZoom": 14 46 }; 47 48 ApidaeRechercheCarte.get = function(that) { 49 var instance; 50 if ($(that).is('.apidae-recherche-resultat-carte')) { 51 instance = $(that).data('apidae-map'); 52 } else { 53 instance = $(that).find('.apidae-recherche-resultat-carte').data('apidae-map'); 54 } 55 if (instance == null) { 56 instance = new ApidaeRechercheCarte(that); 57 } 58 return instance; 59 }; 60 61 function ApidaeRechercheCarte(that1, options) { 62 var $$, k, ref, ref1, v; 63 this.that = that1; 64 console.log('Initialize ApidaeCarte'); 65 $$ = $(this.that).find('.apidae-recherche-resultat-carte'); 66 this.options = { 67 'map': $$, 68 'list': $$.siblings('.apidae-recherche-resultat-liste'), 69 'listArticle': 'article.apidae-recherche-objet', 70 'data': $$.siblings('.apidae-recherche-resultat-carte-data'), 71 'view': function() { 72 return $$.parents('.apidae-recherche').find('.apidae-recherche-vue .active a').data('vue'); 73 }, 74 'source': (ref = $$.data('source')) != null ? ref : 'list', 75 'zoom': (ref1 = $$.data('zoom')) != null ? ref1 : 15 76 }; 77 for (k in options) { 78 v = options[k]; 79 this.options[k] = v; 80 } 81 $$ = $(this.options.map); 82 this.that = $$[0]; 83 this.groupsEnabled = true; 84 this.listElement = this.options.list; 85 $$.data('apidae-map', this); 86 this.iconBase = ($$.data('assets-uri')) + "/images/markers/"; 87 this.markers = []; 88 this.refresh(); 89 } 90 91 ApidaeRechercheCarte.prototype.getVue = function() { 92 if (this.vue != null) { 93 return this.vue; 94 } else { 95 return this.options.view(); 96 } 97 }; 98 99 ApidaeRechercheCarte.prototype.setHeight = function(height) { 100 if (this.height !== height) { 101 $(this.that).height(height); 102 this.refresh(); 103 return this.height = height; 104 } 105 }; 106 107 ApidaeRechercheCarte.prototype.refresh = function() { 108 var $$, currCenter, j, len, marker, markerClusterOpts, options, ref; 109 $$ = $(this.that); 110 ref = this.markers; 111 for (j = 0, len = ref.length; j < len; j++) { 112 marker = ref[j]; 113 marker.setMap(null); 114 } 115 this.markers = []; 116 this.bounds = new google.maps.LatLngBounds(); 117 this.loadData(); 118 switch (this.options.source) { 119 case 'list': 120 this.refreshFromList(); 121 break; 122 case 'data': 123 this.refreshFromData(); 124 break; 125 case 'self': 126 this.refreshFromSelf(); 127 break; 128 default: 129 console.error('Unknown apidae map data source'); 130 } 131 if (this.that.map != null) { 132 this.that.markerCluster.clearMarkers(); 133 if (this.groupsEnabled) { 134 this.that.markerCluster.addMarkers(this.markers); 135 } 136 currCenter = this.that.map.getCenter(); 137 google.maps.event.trigger(this.that.map, 'resize'); 138 this.that.map.setCenter(currCenter); 139 if (this.that.map.zoom < 5) { 140 return this.that.map.fitBounds(this.bounds); 141 } 142 } else if (this.markers.length) { 143 options = { 144 'center': new google.maps.LatLng(this.markers[0].position.lat(), this.markers[0].position.lng()), 145 'mapTypeId': google.maps.MapTypeId.ROADMAP, 146 'disableDefaultUI': true, 147 'zoom': this.options.zoom 148 }; 149 this.that.map = new google.maps.Map($$[0], options); 150 google.maps.event.addListener(this.that.map, 'click', (function(_this) { 151 return function() { 152 if (_this.infoWindow) { 153 google.maps.event.trigger(_this.infoWindow, 'closeclick'); 154 return _this.infoWindow.close(); 155 } 156 }; 157 })(this)); 158 markerClusterOpts = { 159 imagePath: "" + this.iconBase + ApidaeRechercheCarte.IconsGroup.base, 160 imageExtension: ApidaeRechercheCarte.IconsGroup.extension, 161 maxZoom: ApidaeRechercheCarte.IconsGroup.maxZoom 162 }; 163 if (this.groupsEnabled) { 164 this.that.markerCluster = new MarkerClusterer(this.that.map, this.markers, markerClusterOpts); 165 } else { 166 this.that.markerCluster = new MarkerClusterer(this.that.map, [], markerClusterOpts); 167 } 168 if (this.markers.length > 1) { 169 return this.that.map.fitBounds(this.bounds); 170 } 171 } 172 }; 173 174 ApidaeRechercheCarte.prototype.loadData = function() { 175 var data, e; 176 try { 177 if (this.options.data.length) { 178 data = this.options.data.text(); 179 this.data = JSON.parse(data); 180 console.log(this.data.length + " objets apidae"); 181 } 182 } catch (error1) { 183 e = error1; 184 console.error('Failed to load data', e); 185 } 186 return this.data; 187 }; 188 189 ApidaeRechercheCarte.prototype.getObjet = function(id) { 190 var ref, ref1; 191 return (ref = (ref1 = this.data) != null ? ref1[id] : void 0) != null ? ref : null; 192 }; 193 194 ApidaeRechercheCarte.prototype.refreshFromSelf = function() { 195 var elt, id; 196 console.log('refreshFromSelf'); 197 elt = $(this.that); 198 id = elt.data('apidae-id'); 199 console.log(elt); 200 return this.addMarker(id, elt.data('apidae-lat'), elt.data('apidae-long'), elt.data('apidae-type'), elt.data('apidae-nom'), elt.data('apidae-image'), elt.data('apidae-commune'), elt.data('apidae-lien'), elt.data('apidae-description'), elt, this.getObjet(id)); 201 }; 202 203 ApidaeRechercheCarte.prototype.refreshFromList = function() { 204 console.log('refreshFromList'); 205 return this.options.list.find(this.options.listArticle).each((function(_this) { 206 return function(i, elt) { 207 var id; 208 elt = $(elt); 209 id = elt.data('apidae-id'); 210 return elt[0].marker = _this.addMarker(id, elt.data('apidae-lat'), elt.data('apidae-long'), elt.data('apidae-type'), elt.data('apidae-nom'), elt.data('apidae-image'), elt.data('apidae-commune'), elt.data('apidae-lien'), elt.data('apidae-description'), elt, _this.getObjet(id)); 211 }; 212 })(this)); 213 }; 214 215 ApidaeRechercheCarte.prototype.refreshFromData = function() { 216 var elts, k, ref, ref1, ref2, ref3, ref4, results, row; 217 console.log('refreshFromData'); 218 elts = this.options.list.find(this.options.listArticle); 219 ref = this.data; 220 results = []; 221 for (k in ref) { 222 row = ref[k]; 223 results.push(this.addMarker(row.id, row.latitude, row.longitude, row.type, row.nom, row.image, ((ref1 = (ref2 = row.commune) != null ? ref2.code : void 0) != null ? ref1 : '') + " " + ((ref3 = (ref4 = row.commune) != null ? ref4.nom : void 0) != null ? ref3 : ''), row.lien, row.description, elts.filter("[data-apidae-id=" + row.id + "]"), row)); 224 } 225 return results; 226 }; 227 228 ApidaeRechercheCarte.prototype.addMarker = function(id, lat, long, type, name, image, city, link, description, elt, row) { 229 var $$, icon, instance, marker, position, ref, ref1; 230 if (elt == null) { 231 elt = null; 232 } 233 if (row == null) { 234 row = null; 235 } 236 $$ = $(this.that); 237 instance = this; 238 position = new google.maps.LatLng(lat, long); 239 this.bounds.extend(position); 240 icon = (ref = ApidaeRechercheCarte.Icons[type]) != null ? ref : ApidaeRechercheCarte.Icons.DEFAULT; 241 marker = new google.maps.Marker({ 242 position: position, 243 icon: "" + this.iconBase + icon,
244 map: (ref1 = this.that.map) != null ? ref1 : null 245 }); 246 this.markers.push(marker); 247 google.maps.event.addListener(marker, 'click', function() { 248 var e, iconActive, options, ref2, waypointInfo; 249 iconActive = (ref2 = ApidaeRechercheCarte.IconsActive[type]) != null ? ref2 : ApidaeRechercheCarte.IconsActive.DEFAULT; 250 waypointInfo = { 251 ref: elt, 252 objet: { 253 id: id, 254 type: type, 255 name: name, 256 lat: lat, 257 long: long, 258 city: city, 259 img: image, 260 desc: description, 261 link: link, 262 full: row 263 }, 264 marker: { 265 iconBase: instance.iconBase, 266 icon: icon, 267 iconActive: iconActive 268 }, 269 infoWindow: { 270 id: 'gMapInfoWindow', 271 html: null, 272 maxWidth: null, 273 parentClass: 'apidae-map-infowindow-parent' 274 } 275 }; 276 waypointInfo.infoWindow.html = "<div id='" + waypointInfo.infoWindow.id + "'> <a href=\"" + waypointInfo.objet.link + "\" class=\"apidae-map-image\" target=\"_blank\" title=''> <figure style=\"background-image: url(" + waypointInfo.objet.img + ")\"> <img src=\"" + waypointInfo.objet.img + "\" alt=\"" + waypointInfo.objet.name + "\" /> </figure> </a> <div> <h4><a href=\"" + waypointInfo.objet.link + "\">" + waypointInfo.objet.name + "</a></h4> <p>" + waypointInfo.objet.desc + "</p> </div> </div>"; 277 console.log(waypointInfo.infoWindow.html); 278 e = jQuery.Event('apidae_recherche.click_marker', { 279 'marker': this, 280 'status': true, 281 'waypointInfo': waypointInfo 282 }); 283 $$.trigger(e); 284 if (!e.isDefaultPrevented()) { 285 console.log(waypointInfo.infoWindow.html); 286 this.setIcon("" + instance.iconBase + waypointInfo.marker.iconActive); 287 if (instance.infoWindow) { 288 google.maps.event.trigger(instance.infoWindow, 'closeclick'); 289 instance.infoWindow.close(); 290 } 291 options = { 292 'content': waypointInfo.infoWindow.html 293 }; 294 if (waypointInfo.infoWindow.maxWidth != null) { 295 options.maxWidth = waypointInfo.infoWindow.maxWidth; 296 } 297 instance.infoWindow = new google.maps.InfoWindow(options); 298 instance.infoWindow.open(this.map, marker); 299 google.maps.event.addListener(instance.infoWindow, 'domready', function(e) { 300 return $("#" + waypointInfo.infoWindow.id).parent().parent().parent().parent().addClass(waypointInfo.infoWindow.parentClass); 301 }); 302 return google.maps.event.addListener(instance.infoWindow, 'closeclick', (function(_this) { 303 return function(e) { 304 e = jQuery.Event(ApidaeRecherche.EventClickMarker, { 305 'marker': _this, 306 'status': false, 307 'waypointInfo': waypointInfo 308 }); 309 $$.trigger(e); 310 if (!e.isDefaultPrevented()) { 311 return _this.setIcon("" + instance.iconBase + waypointInfo.marker.icon); 312 } 313 }; 314 })(this)); 315 } 316 }); 317 return marker; 318 }; 319 320 return ApidaeRechercheCarte; 321 322 })(); 323 ApidaeRecherche = (function() { 324 ApidaeRecherche.EventClickMarker = 'apidae_recherche.click_marker'; 325 326 ApidaeRecherche.EventLoading = 'apidae_recherche.loading'; 327 328 ApidaeRecherche.EventLoadPrevious = 'apidae_recherche.prev'; 329 330 ApidaeRecherche.EventLoadedPrevious = 'apidae_recherche.prev_done'; 331 332 ApidaeRecherche.EventLoadNext = 'apidae_recherche.next'; 333 334 ApidaeRecherche.EventLoadedNext = 'apidae_recherche.next_done'; 335 336 ApidaeRecherche.EventLoadFilter = 'apidae_recherche.filtre'; 337 338 ApidaeRecherche.EventLoadedFilter = 'apidae_recherche.filtre_done'; 339 340 ApidaeRecherche.EventLoadHistory = 'apidae_recherche.history'; 341 342 ApidaeRecherche.EventLoadedHistory = 'apidae_recherche.history_done'; 343 344 ApidaeRecherche.EventLoadError = 'apidae_recherche.loading_error'; 345 346 ApidaeRecherche.ActionReplace = 'replace'; 347
348 ApidaeRecherche.ActionPrepend = 'prepend'; 349 350 ApidaeRecherche.ActionAppend = 'append'; 351 352 ApidaeRecherche.Ajax = true; 353 354 ApidaeRecherche.get = function(that) { 355 var instance; 356 instance = $(that).data('apidae-recherche'); 357 if (instance == null) { 358 instance = new ApidaeRecherche(that); 359 } 360 return instance; 361 }; 362 363 function ApidaeRecherche(that1) { 364 var $$; 365 this.that = that1; 366 console.log('Initialize ApidaeRecherche'); 367 $$ = $(this.that); 368 $$.data('apidae-recherche', this); 369 if ($$.find('.apidae-recherche-resultat-carte').length) { 370 this.carte = ApidaeRechercheCarte.get(this.that); 371 } 372 this.bind(); 373 this.bindHandlers(); 374 } 375 376 ApidaeRecherche.prototype.bind = function() { 377 return $('.apidae-recherche-resultat-liste').on('mouseenter', '.apidae-recherche-objet', function(e) { 378 var ref; 379 return (ref = this.marker) != null ? ref.setAnimation(google.maps.Animation.BOUNCE) : void 0; 380 }).on('mouseleave', '.apidae-recherche-objet', function(e) { 381 var ref; 382 return (ref = this.marker) != null ? ref.setAnimation(null) : void 0; 383 }); 384 }; 385 386 ApidaeRecherche.prototype.update = function(data) { 387 var $$, $data; 388 $$ = $(this.that); 389 $data = $(data); 390 if (($data.find('.apidae-recherche-resultats').length)) { 391 $$.find('.apidae-recherche-resultats').html($data.find('.apidae-recherche-resultats').html()); 392 $$.find('.apidae-recherche-filtres').html($data.find('.apidae-recherche-filtres').html()); 393 $$.find('.apidae-recherche-resultat-liste').html($data.find('.apidae-recherche-resultat-liste').html()); 394 $$.find('.apidae-recherche-resultat-carte-data').text($data.find('.apidae-recherche-resultat-carte-data').text()); 395 $$.data('url-next', $data.find('.apidae-recherche').data('url-next')); 396 $$.data('url-prev', $data.find('.apidae-recherche').data('url-prev')); 397 return true; 398 } else { 399 console.error('Echec de chargement'); 400 return false; 401 } 402 }; 403 404 ApidaeRecherche.prototype.prependPreviousPage = function(callback) { 405 var $$, instance, prev; 406 if (callback == null) { 407 callback = null; 408 } 409 instance = this; 410 $$ = $(this.that); 411 prev = $$.data('url-prev'); 412 if (prev) { 413 return instance.loadResults(prev, 'prev', ApidaeRecherche.ActionPrepend, callback); 414 } else if (callback != null) { 415 return callback(false, null); 416 } 417 }; 418 419 ApidaeRecherche.prototype.appendNextPage = function(callback) { 420 var $$, instance, next; 421 if (callback == null) { 422 callback = null; 423 } 424 instance = this; 425 $$ = $(this.that); 426 next = $$.data('url-next'); 427 if (next) { 428 return instance.loadResults(next, 'next', ApidaeRecherche.ActionAppend, callback); 429 } else if (callback != null) { 430 return callback(false, null); 431 } 432 }; 433 434 ApidaeRecherche.prototype.loadResults = function(href, eventType, action, callback) { 435 var $$, instance; 436 if (action == null) { 437 action = ApidaeRecherche.ActionReplace; 438 } 439 if (callback == null) { 440 callback = null; 441 } 442 instance = this; 443 $$ = $(this.that); 444 instance.apidaeLoading = false; 445 if (href) { 446 instance.apidaeLoading = true; 447 $$.trigger(ApidaeRecherche.EventLoading, [true, eventType]); 448 return $.ajax({ 449 'method': 'GET', 450 'url': href 451 }).done((function(_this) { 452 return function(data) { 453 var done, e, list; 454 e = jQuery.Event("apidae_recherche." + eventType, { 455 'href': href, 456 'html': $(data) 457 }); 458 $$.trigger(e); 459 data = e.html; 460 done = true; 461 switch (action) { 462 case ApidaeRecherche.ActionAppend: 463 list = $$.find('.apidae-recherche-resultat-liste'); 464 $$.data('url-next', data.find('.apidae-recherche').data('url-next')); 465 list.html(list.html() + data.find('.apidae-recherche-resultat-liste').html()); 466 break; 467 case ApidaeRecherche.ActionPrepend: 468 list = $$.find('.apidae-recherche-resultat-liste'); 469 $$.data('url-prev', data.find('.apidae-recherche').data('url-prev')); 470 list.html(data.find('.apidae-recherche-resultat-liste').html() + list.html()); 471 break; 472 default: 473 done = instance.update(data); 474 instance.bindFiltres(); 475 } 476 if (done) { 477 instance.carte.refresh(); 478 if (eventType !== 'history') { 479 history.pushState(null, null, href); 480 } 481 e = jQuery.Event("apidae_recherche." + eventType + "_done", { 482 'href': href, 483 'html': data 484 }); 485 $$.trigger(e); 486 $$.trigger(ApidaeRecherche.EventLoading, [false, eventType]); 487 } else { 488 $$.trigger(ApidaeRecherche.EventLoading, [false, eventType]); 489 $$.trigger(ApidaeRecherche.EventLoadError, [_this, eventType]); 490 } 491 instance.apidaeLoading = false;
492 if (callback != null) { 493 return callback(true, data); 494 } 495 }; 496 })(this)).fail(function(xhr, status, error) { 497 $$.trigger(ApidaeRecherche.EventLoading, [false, eventType]); 498 $$.trigger(ApidaeRecherche.EventLoadError, [this, eventType]); 499 instance.apidaeLoading = false; 500 if (callback != null) { 501 return callback(false, xhr); 502 } 503 }); 504 } 505 }; 506 507 ApidaeRecherche.prototype.bindHandlers = function() { 508 var $$, $filtres, $vues, instance; 509 instance = this; 510 $$ = $(this.that); 511 instance.apidaeLoading = false; 512 $vues = $$.find('.apidae-recherche-vue'); 513 $filtres = $$.find('.apidae-recherche-filtres'); 514 if (ApidaeRecherche.Ajax) { 515 $filtres.on('click', 'a', function(e) { 516 e.preventDefault(); 517 e.stopPropagation(); 518 console.log(this.href); 519 return instance.loadResults(this.href, 'filtre'); 520 }); 521 $filtres.on('submit', 'form', function(e) { 522 var action, inp, value; 523 e.preventDefault(); 524 e.stopPropagation(); 525 if (this.action) { 526 instance.apidaeLoading = true; 527 $$.trigger(ApidaeRecherche.EventLoading, [true, 'filtre']); 528 if ($(this).is('.apidae-recherche-prix, .apidae-recherche-capacite')) { 529 value = ($(this).find(':input[type=hidden]').attr('name')) + "=" + (((function() { 530 var j, len, ref, results; 531 ref = $(this).find(':input[type=text], :input[type=number]'); 532 results = []; 533 for (j = 0, len = ref.length; j < len; j++) { 534 inp = ref[j]; 535 results.push($(inp).val()); 536 } 537 return results; 538 }).call(this)).join(';')); 539 } else if ($(this).is('.apidae-recherche-dates')) { 540 value = ($(this).find(':input[type=hidden]').attr('name')) + "=" + (((function() { 541 var j, len, ref, results; 542 ref = $(this).find(':input[type=text]'); 543 results = []; 544 for (j = 0, len = ref.length; j < len; j++) { 545 inp = ref[j]; 546 results.push($.datepicker.formatDate("yy-mm-dd", $(inp).datepicker('getDate'))); 547 } 548 return results; 549 }).call(this)).join(';')); 550 } else { 551 value = ((function() { 552 var j, len, ref, results; 553 ref = $(this).find(':input'); 554 results = []; 555 for (j = 0, len = ref.length; j < len; j++) { 556 inp = ref[j]; 557 results.push(($(inp).attr('name')) + "=" + ($(inp).val())); 558 } 559 return results; 560 }).call(this)).join('&'); 561 } 562 action = this.action + "&" + value; 563 return instance.loadResults(action, 'filtre'); 564 } 565 }); 566 $vues.on('click', 'a.apidae-recherche-vue-option', function(e) { 567 var vuePrecedente; 568 e.preventDefault(); 569 e.stopPropagation(); 570 vuePrecedente = instance.vue; 571 instance.vue = $(this).data('vue'); 572 $$.removeClass('apidae-recherche-vue-carte apidae-recherche-vue-mixte apidae-recherche-vue-liste').addClass("apidae-recherche-vue-" + instance.vue); 573 $(this).parent().addClass('active').siblings('.active').removeClass('active'); 574 $$.trigger('apidae_recherche.vue', [instance.vue, vuePrecedente]); 575 history.pushState(null, null, this.href); 576 return instance.carte.refresh(); 577 }); 578 } 579 return this.bindFiltres(); 580 }; 581 582 ApidaeRecherche.prototype.bindFiltres = function() { 583 var $filtres; 584 $filtres = $(this.that).find('.apidae-recherche-filtres'); 585 $filtres.find('.apidae-recherche-commune input[type=text]').each(function(idx) { 586 var $communeField, communes, opt; 587 $communeField = $(this); 588 communes = (function() { 589 var j, len, ref, results; 590 ref = $("#" + ($communeField.data('source'))).find('option'); 591 results = []; 592 for (j = 0, len = ref.length; j < len; j++) {
593 opt = ref[j]; 594 results.push({ 595 'label': $(opt).text(), 596 'value': $(opt).text() 597 }); 598 } 599 return results; 600 })(); 601 return $communeField.autocomplete({ 602 source: communes 603 }); 604 }); 605 return $filtres.find('.apidae-recherche-dates input[type=text]').each(function(idx) { 606 var $field; 607 return $field = $(this).datepicker(); 608 }); 609 }; 610 611 return ApidaeRecherche; 612 613 })(); 614 window.ApidaeRechercheCarte = ApidaeRechercheCarte; 615 window.ApidaeRecherche = ApidaeRecherche; 616 return jQuery('body').on('map.loaded', function(e) { 617 var ref; 618 $('.apidae-recherche').each(function(idx) { 619 var $$; 620 $$ = $(this); 621 return ApidaeRecherche.get(this); 622 }); 623 $('.apidae-bloc-carte').each(function(idx) { 624 var $$; 625 $$ = $(this); 626 return ApidaeRechercheCarte.get(this); 627 }); 628 if ($.datepicker != null) { 629 $.datepicker.regional['fr'] = { 630 closeText: "OK", 631 prevText: "Précédent", 632 nextText: "Suivant", 633 currentText: "Aujourd'hui", 634 monthNames: ["Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"], 635 monthNamesShort: ["Jan", "Fév", "Mar", "Avr", "Mai", "Juin", "Jui", "Aug", "Sep", "Oct", "Nov", "Déc"], 636 dayNames: ["Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"], 637 dayNamesShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"], 638 dayNamesMin: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"], 639 weekHeader: "Sem", 640 dateFormat: "dd/mm/yy", 641 firstDay: 1, 642 isRTL: false, 643 showMonthAfterYear: false, 644 yearSuffix: "" 645 }; 646 return $.datepicker.setDefaults($.datepicker.regional[(ref = $('body').data('slocale')) != null ? ref : 'fr']); 647 } 648 }); 649 }; 650 651 f(jQuery); 652 653}).call(this); 654 655//# sourceMappingURL=apidae.js.map
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.