PageSourceSearch

https://nvtour.am/newdesign/files/tours.min.js

js nvtour.am collected 2026-10-04 09:33:30 UTC 9,039 bytes, 1 lines download raw bytes

1!function(e){"use strict";var o={};function t(){var o,t;(o=e(".qodef-tours-filter-holder.qodef-tours-filter-horizontal form"),t=e(".qodef-tours-filter-holder.qodef-tours-filter-vertical-small form"),{fieldsHelper:{init:function(){var e;e="undefined"!=typeof qodefToursSearchData?qodefToursSearchData.destinations:[],e=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e}),o.find(".qodef-tours-destination-search").typeahead({hint:!0,highlight:!0,minLength:1},{name:"destinations",source:e}),t.find(".qodef-tours-destination-search").typeahead({hint:!0,highlight:!0,minLength:1},{name:"destinations",source:e})}}}).fieldsHelper.init()}function i(){}function n(){}function a(){}"undefined"!=typeof qodef&&(qodef.modules.destinations=o),o.qodefOnDocumentReady=t,o.qodefOnWindowLoad=i,o.qodefOnWindowResize=n,o.qodefOnWindowScroll=a,e(document).ready(t),e(window).load(i),e(window).resize(n),e(window).scroll(a)}(jQuery),function(h){"use strict";var e={};function o(){"undefined"!=typeof qodef&&""!=typeof qodef||t(),"undefined"!=typeof qodef&&i(),h(".qodef-tour-item-single-holder").find(".qodef-tour-item-wrapper ul li a").on("click",function(){var e=h(this),o=e.attr("href");"#tour-item-gallery-id"===o&&"function"==typeof qodef.modules.common.qodefInitGridMasonryListLayout&&qodef.modules.common.qodefInitGridMasonryListLayout()}),a().fieldsHelper.init(),a().handleSearch.init(),m()}function t(){var e=h(".qodef-tour-item-single-holder"),t=e.find(".qodef-tour-item-wrapper ul li a"),i=e.find(".qodef-tour-item-section");t.first().addClass("qodef-active-item"),t.on("click",function(){t.removeClass("qodef-active-item");var e=h(this),o=e.attr("href");e.addClass("qodef-active-item"),i.length&&i.each(function(){var e=h(this);e.attr("id")===o?(e.show(),"#tour-item-location-id"===o&&n()):e.hide()})})}function i(){h(".qodef-tour-item-single-holder").find(".qodef-tour-item-wrapper ul li a").on("click",function(){"#tour-item-location-id"===h(this).attr("href")&&n()})}function n(){"undefined"!=typeof qodef&&qodef.modules.googleMap.qodefShowGoogleMap()}function a(){var u,c=h(".qodef-tours-search-main-filters-holder form");return{fieldsHelper:{init:function(){var e,d,s,f,o,t,i,n,a,r,l,u;e=c.find(".qodef-tours-range-input"),d=c.find(".qodef-tours-price-range-field"),s=c.find('[name="min_price"]'),f=c.find('[name="max_price"]'),o=d.data("min-price"),t=d.data("max-price"),i=d.data("chosen-min-price"),n=d.data("chosen-max-price"),e.length&&e.each(function(){noUiSlider.create(this,{start:[i,n],connect:!0,step:1,range:{min:[o],max:[t]},format:{to:function(e){return Math.floor(e)},from:function(e){return e}}}).on("update",function(e){var o=e[0],t=e[1],i=d.data("currency-symbol"),n=d.data("currency-symbol-position"),a="left"===n?i+o:o+i,r="left"===n?i+t:o+t;d.val(a+" - "+r),s.val(o),f.val(t)})}),u="undefined"!=typeof qodefToursSearchData?qodefToursSearchData.tours:[],u=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:u}),c.find(".qodef-tours-keyword-search").typeahead({hint:!0,highlight:!0,minLength:1},{name:"tours",source:u}),l="undefined"!=typeof qodefToursSearchData?qodefToursSearchData.destinations:[],l=new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:l}),c.find(".qodef-tours-destination-search").typeahead({hint:!0,highlight:!0,minLength:1},{name:"destinations",source:l}),a=h(".qodef-tours-select-placeholder"),r=function(e){""===e.val()?e.addClass("qodef-tours-select-default-option"):e.removeClass("qodef-tours-select-default-option")},a.length&&a.each(function(){var e=h(this);r(h(this)),e.on("change",function(){r(h(this))})})}},handleSearch:(u=function(e,i,o,n){var a=e.find('input[type="submit"]'),r=h(".qodef-tours-search-content"),d=h(".qodef-tours-search-page-holder"),s=!1;i=void 0===i||i,o=void 0===o||o,n=void 0!==n&&n;var t=a.data("searching-label"),f=a.val();if(!s){i&&a.val(t),o&&e.find('[name="page"]').val(1),s=!0,r.addClass("qodef-tours-searching");var l={action:"tours_search_handle_form_submission"};l.fields=e.serialize(),h.ajax({type:"GET",url:qodefToursAjaxURL,dataType:"json",data:l,success:function(e){var o,t;i&&a.val(f),r.removeClass("qodef-tours-searching"),s=!1,r.find(".qodef-tours-row .qodef-tours-row-inner-holder").html(e.html),o=e.url,t="",location.href.match(/\?.*/)&&document.referrer&&(t=location.href.replace(/\?.*/,"")),window.history.replaceState({page:t+"?"+o},"",t+"?"+o),h(".qodef-tours-search-pagination").remove(),r.append(e.paginationHTML),n&&h("html, body").animate({scrollTop:d.offset().top-80},700),m()}})}},{init:function(){var o,n,a,r,d,i,s,f,t,e,l;o=c,h("body").hasClass("post-type-archive-tour-item")&&o.on("submit",function(e){e.preventDefault(),e.stopPropagation(),u(o)}),n=c,a=h(".qodef-search-ordering-item"),r=n.find('[name="order_by"]'),d=n.find('[name="order_type"]'),a.length&&a.on("click",function(e){e.preventDefault(),e.stopPropagation();var o=h(this);a.removeClass("qodef-search-ordering-item-active"),o.addClass("qodef-search-ordering-item-active");var t=o.data("order-by"),i=o.data("order-type");void 0!==t&&void 0!==i&&(r.val(t),d.val(i)),u(n,!1,!1)}),i=c,s=h(".qodef-tours-search-view-item"),f=i.find('[name="view_type"]'),s.length&&s.on("click",function(e){e.preventDefault(),e.stopPropagation();var o=h(this);s.removeClass("qodef-tours-search-view-item-active"),o.addClass("qodef-tours-search-view-item-active");var t=o.data("type");void 0!==t&&f.val(t),u(i,!1,!1)}),t=c,e=h(".qodef-tours-search-pagination"),l=t.find('[name="page"]'),e.length&&h(document).on("click",".qodef-tours-search-pagination li",function(e){e.preventDefault(),e.stopPropagation();var o=h(this).data("page");void 0!==o&&l.val(o),u(t,!0,!1,!0)})}})}}function m(){var e=h(".qodef-tours-gallery-item");e.length&&e.each(function(){var e=h(this),o=e.find(".qodef-tours-gallery-item-content-holder"),t=o.find(".qodef-tours-gallery-item-excerpt"),i=Math.ceil(t.height());o.css("transform","translate3d(0,"+i+"px,0)"),e.mouseenter(function(){o.css("transform","translate3d(0,
10,0)")}),e.mouseleave(function(){i=Math.ceil(t.height()),o.css("transform","translate3d(0,"+i+"px,0)")})})}"undefined"!=typeof qodef&&(qodef.modules.tours=e),e.qodefOnDocumentReady=o,e.qodefInitTourItemTabs=t,e.qodefTourTabsMapTrigger=i,e.qodefToursGalleryAnimation=m,h(document).ready(o)}(jQuery),function(m){"use strict";var e={};function o(){t().init()}function p(){return"undefined"!=typeof qodef}function t(){var e=m(".qodef-tours-list-holder"),o=function(d){var s,f,l,u=d.find(".qodef-tours-list-pagination-data"),c=d.find(".qodef-tours-list-holder-inner");s=d.find(".qodef-tours-load-more-button"),f=d.find(".qodef-tours-pagination-holder"),l=!1,s.length&&s.on("click",function(e){e.preventDefault(),e.stopPropagation();var o,t,i,n,a=s.data("loading-label"),r=s.text();s.text(a),(t=(o=d).find(".qodef-tour-list-filter-item")).removeClass("qodef-tour-list-current-filter"),t.eq(0).addClass("qodef-tour-list-current-filter"),o.find(".qodef-tours-list-holder-inner").isotope({filter:"*"}),l||(l=!0,i=function(e){if(!0===e.havePosts){s.text(r);var o=m(e.html);c.append(o),c.waitForImages(function(){h(c),c.isotope("appended",o).isotope("reloadItems"),qodef.modules.tours.qodefToursGalleryAnimation()})}else s.remove(),f.html(e.message);l=!1},n={action:"setsail_tours_list_ajax_pagination",fields:u.find("input").serialize()},m.ajax({url:qodefToursAjaxURL,data:n,dataType:"json",type:"POST",success:function(e){e.havePosts&&u.find('[name="next_page"]').val(e.nextPage),p()&&qodef.modules.common.qodefInitParallax(),i.call(this,e)}}))})},h=function(e){if(e.parent().hasClass("qodef-tours-type-masonry")){var o=parseInt(e.find(".qodef-tours-row-item").css("padding-left")),t=e.find(".qodef-size-default"),i=e.find(".qodef-size-large-width"),n=e.find(".qodef-size-large-height"),a=e.find(".qodef-size-large-width-height"),r=e.find(".qodef-tours-list-grid-sizer").width();t.css("height",r-2*o),n.css("height",Math.round(2*r)-2*o),a.css("height",Math.round(2*r)-2*o),i.css("height",r-2*o)}};return{init:function(){e.length&&void 0!==m.fn.isotope&&e.each(function(){var e,i,n;(e=m(this).find(".qodef-tours-list-holder-inner")).animate({opacity:1}),h(e),e.isotope({percentPosition:!0,itemSelector:".qodef-tours-row-item",transitionDuration:"0.4s",isInitLayout:!0,hiddenStyle:{opacity:0},visibleStyle:{opacity:1},masonry:{columnWidth:".qodef-tours-list-grid-sizer"}}),p()&&qodef.modules.common.qodefInitParallax(),m(window).resize(function(){h(e)}),i=m(this),(n=i.find(".qodef-tour-list-filter-item")).on("click",function(e){e.preventDefault(),e.stopPropagation();var o=m(this),t=o.data("type");n.removeClass("qodef-tour-list-current-filter"),o.addClass("qodef-tour-list-current-filter"),t=void 0===t?"*":"."+t,i.find(".qodef-tours-list-holder-inner").isotope({filter:t})}),o(m(this))})}}}"undefined"!=typeof qodef&&(qodef.modules.toursListSC=e),e.qodefOnWindowLoad=o,e.toursList=t,m(window).load(o)}(jQuery);

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.