!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}(function(o){"use strict";return o.widget("ui.autocomplete",{version:"1.13.3",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this._isContentEditable(this.element),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault();else if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){n?(n=!1,e.preventDefault()):this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=o("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(e,t){var i,s;this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent)&&/^mouse/.test(e.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)})):(s=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(i=t.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(i))},100)))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==o.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||o.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e=(e=(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e=e&&this._normalize(e),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:o.map(e,function(e){return"string"==typeof e?{label:e,value:e}:o.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(o.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var s=this;o.each(e,function(e,t){s._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return o("<li>").append(o("<div>").text(t.label)).appendTo(e)},_move:function(e,t){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[e](t):this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){var t;return!!e.length&&("inherit"===(t=e.prop("contentEditable"))?this._isContentEditable(e.parent()):"true"===t)}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(o("<div>").text(t))},100))}}),o.ui.autocomplete});
jQuery(document).ready(function($){
jQuery('.qcld_pd_tablinks').on('click', function(evt){
var qcld_pd_event=jQuery(this).data('contentid');
var i, qcld_pd_tabcontent, qcld_pd_tablinks;
qcld_pd_tabcontent=document.getElementsByClassName("qcld_pd_tabcontent");
for (i=0; i < qcld_pd_tabcontent.length; i++){
qcld_pd_tabcontent[i].style.display="none";
}
qcld_pd_tablinks=document.getElementsByClassName("qcld_pd_tablinks");
for (i=0; i < qcld_pd_tablinks.length; i++){
qcld_pd_tablinks[i].className=qcld_pd_tablinks[i].className.replace(" qcld_pd_active", "");
}
document.getElementById(qcld_pd_event).style.display="block";
evt.currentTarget.className +=" qcld_pd_active";
jQuery('#'+qcld_pd_event +' .qcpd-single-list-pd').each(function(e){
if(jQuery(this).find('.pdp-holder').length > 0&&jQuery(this).find('.pdp-holder > .jp-current').length==0){
var containerId=jQuery(this).find('.pdp-holder').attr('id');
var containerList=jQuery(this).find('ul').attr('id');
console.log(containerList);
jQuery("#"+jQuery(this).find('.pdp-holder').attr('id')).jPages({
containerID:containerList,
perPage:per_page,
});
}})
jQuery('.sbd_main_wrapper:visible .qc-grid').packery({
itemSelector: '.qc-grid-item',
gutter: 10
});
jQuery('.sbd_main_wrapper:visible').siblings('.sbd-filter-area').find('.filter-btn[data-filter="all"]').trigger("click");
var newmapid=jQuery('#'+qcld_pd_event+' .sbd_map').attr('id');
if(typeof google!=='undefined'){
if(typeof(newmapid)!=="undefined"||newmapid!==''){
initializetab(newmapid);
}}
})
if(typeof google!=='undefined'){
if(typeof google.maps!=='undefined'){
var geocoder;
var map;
var bounds=new google.maps.LatLngBounds();
var mapid="sbd_all_location0";
if(jQuery('#'+mapid).length>0){
window.addEventListener("load", initializetab(mapid) );
}
var oms;
}}
var lat=parseFloat(sld_variables.latitute);
var lon=parseFloat(sld_variables.longitute);
if(! localStorage.getItem("qcld_map_latitite")){
localStorage.setItem("qcld_map_latitite",  lat);
}
if(! localStorage.getItem("qcld_map_longitute")){
localStorage.setItem("qcld_map_longitute", lon);
}
if(sld_variables.current_location_map=='on'){
if(typeof google!=='undefined'){
if(navigator.geolocation){
navigator.geolocation.getCurrentPosition(showMapTabPositions);
}
function showMapTabPositions(position){
var latVal=position.coords.latitude;
var lonVal=position.coords.longitude;
if(latVal!=''&&lonVal!=''&&! localStorage.getItem("qcld_map_current_position")){
localStorage.setItem("qcld_map_latitite",  latVal);
localStorage.setItem("qcld_map_longitute", lonVal);
localStorage.setItem("qcld_map_current_position", 1);
location.reload();
}}
}}
function initializetab(mapid){
if(typeof google!=='undefined'){
map=new google.maps.Map(document.getElementById(mapid), {
center: new google.maps.LatLng(localStorage.getItem("qcld_map_latitite"), localStorage.getItem("qcld_map_longitute")),
zoom: parseInt(sld_variables.zoom),
mapTypeId: google.maps.MapTypeId.ROADMAP,
gestureHandling: 'cooperative'
});
if((typeof pd_snazzymap_js==="object"||typeof pd_snazzymap_js==='function')&&(pd_snazzymap_js!==null)){
map.setOptions({styles: pd_snazzymap_js});
}
geocoder=new google.maps.Geocoder();
oms=new OverlappingMarkerSpiderfier(map, {
markersWontMove: true,
markersWontHide: true,
basicFormatEvents: true
});
myLooptab();
}}
var i=0;
function myLooptab (){
if(typeof google!=='undefined'){
markers=[];
jQuery(".qcld_pd_tabcontent:visible .qc-grid-item ul li:visible").each(function(){
var obj=jQuery(this);
var icons=obj.find('.pd-bottom-area').clone();
icons.find('.pd-map').removeClass('open-mpf-sld-link');
if(typeof(obj.attr('data-address'))!=='undefined'&&obj.attr('data-address')!=''){
icons.find('.pd-map').attr("href", "https://www.google.com/maps/dir/?api=1&origin=none&destination="+encodeURIComponent(obj.attr('data-address'))+"&travelmode=driving");
icons.find('.pd-map').attr("target", "_blank");
}
icons.find('.open-mpf-sld-link').remove();
icons.find('.pd-map').remove();
icons=icons.html();
var custom_content=obj.find('.sbd_custom_content').clone();
custom_content=custom_content.html();
var others_info='';
if(obj.attr('data-local')!=''){
others_info +="<p><b>Local: </b>"+obj.attr('data-local')+"</p>";
}
if(obj.attr('data-phone')!=''){
others_info +="<p><b>Phone: </b>"+obj.attr('data-phone')+"</p>";
}
if(obj.attr('data-businesshour')!=''){
others_info +="<p><b>Business Hours: </b>"+obj.attr('data-businesshour')+"</p>";
}
var imgurl='';
if(obj.find('img').length>0){
imgurl=obj.find('img').attr('src');
}
var target='';
if(typeof(obj.find('a').attr('target'))!=='undefined'){
target='target="_blank"';
}
if(obj.attr('data-latlon')!==''&&typeof(obj.attr('data-latlon'))!=='undefined'){
i++;
var locations=obj.attr('data-latlon');
var latlng=locations.split(',');
var title=obj.attr('data-title');
var address=obj.attr('data-address');
var url=obj.attr('data-url');
var subtitle=obj.attr('data-subtitle');
var markericon='';
if(sld_variables.global_marker!=''){
markericon=sld_variables.global_marker;
}
if(typeof(obj.attr('data-paid'))!='undefined'&&obj.attr('data-paid')!=''){
markericon=sld_variables.paid_marker_default;
if(sld_variables.paid_marker!=''){
markericon=sld_variables.paid_marker;
}}
var map_marker_id=jQuery(this).attr('id');
if(typeof(obj.attr('data-marker'))!='undefined'&&obj.attr('data-marker')!=''){
markericon=obj.attr('data-marker');
}
var icon=markericon;
if(markericon!=''){
icon={
url: markericon,
scaledSize: new google.maps.Size(30, 30),
};}
var marker=new google.maps.Marker({
map: map,
icon: icon,
position:  new google.maps.LatLng(latlng[0],latlng[1]),
title: title,
animation: google.maps.Animation.DROP,
address: address,
url: url,
mapSelectorID: map_marker_id
})
markers.push(marker);
infoWindow(marker, map, title, address, url, subtitle, imgurl, target, icons, custom_content, others_info);
if(sld_variables.sbd_map_fitbounds=='on'){
bounds.extend(marker.getPosition());
map.fitBounds(bounds);
}}
});
if(cluster.cluster){
var markerCluster=new MarkerClusterer(map, markers,
{imagePath: 'https://developers.google.com/maps/documentation/javascript/examples/markerclusterer/m'});
}
}}
function clearmarker(){
if(typeof google!=='undefined'){
for (var i=0; i < markers.length; i++){
markers[i].setMap(null);
}}
}
jQuery('.sbd_radius_find').on('click',function(){
if(typeof google!=='undefined'){
var address=jQuery('.qcld_pd_tabcontent:visible .sbd_location_name').val();
var radiusi=jQuery('.qcld_pd_tabcontent:visible .sbd_distance').val();
if(address==''){
alert(sld_variables.distance_location_text);
return;
}
if(radiusi==''){
alert(sld_variables.distance_value_text);
return;
}
if(jQuery('.qcld_pd_tabcontent:visible .sdb_distance_cal').val()=='miles'){
radiusi=radiusi*1.60934;
}
var radius=parseInt(radiusi, 10)*1000;
var geocoder=new google.maps.Geocoder();
geocoder.geocode({ 'address': address}, function(results, status){
if(status==google.maps.GeocoderStatus.OK){
map.setCenter(results[0].geometry.location);
var searchCenter=results[0].geometry.location;
if(circle) circle.setMap(null);
circle=new google.maps.Circle({center:searchCenter,
radius: radius,
strokeColor: sld_variables.radius_circle_color,
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: sld_variables.radius_circle_color,
fillOpacity: 0.35,
map: map});
clearmarker();
jQuery(".qcld_pd_tabcontent:visible .qc-grid-item ul li").each(function(){
var obj=jQuery(this);
var icons=obj.find('.pd-bottom-area').clone();
icons.find('.pd-map').removeClass('open-mpf-sld-link');
if(typeof(obj.attr('data-address'))!=='undefined'&&obj.attr('data-address')!=''){
icons.find('.pd-map').attr("href", "https://www.google.com/maps/dir/?api=1&origin=none&destination="+encodeURIComponent(obj.attr('data-address'))+"&travelmode=driving");
icons.find('.pd-map').attr("target", "_blank");
}
icons.find('.open-mpf-sld-link').remove();
icons.find('.pd-map').remove();
icons=icons.html();
var custom_content=obj.find('.sbd_custom_content').clone();
custom_content=custom_content.html();
var others_info='';
if(obj.attr('data-local')!=''){
others_info +="<p><b>Local: </b>"+obj.attr('data-local')+"</p>";
}
if(obj.attr('data-phone')!=''){
others_info +="<p><b>Phone: </b>"+obj.attr('data-phone')+"</p>";
}
if(obj.attr('data-businesshour')!=''){
others_info +="<p><b>Business Hours: </b>"+obj.attr('data-businesshour')+"</p>";
}
var imgurl='';
if(obj.find('img').length>0){
imgurl=obj.find('img').attr('src');
}
var target='';
if(typeof(obj.find('a').attr('target'))!=='undefined'){
target='target="_blank"';
}
if(obj.attr('data-latlon')!==''&&typeof(obj.attr('data-latlon'))!=='undefined'){
i++;
var locations=obj.attr('data-latlon');
var latlng=locations.split(',');
var title=obj.attr('data-title');
var address=obj.attr('data-address');
var url=obj.attr('data-url');
var subtitle=obj.attr('data-subtitle');
var markericon='';
if(sld_variables.global_marker!=''){
markericon=sld_variables.global_marker;
}
if(typeof(obj.attr('data-paid'))!='undefined'&&obj.attr('data-paid')!=''){
markericon=sld_variables.paid_marker_default;
if(sld_variables.paid_marker!=''){
markericon=sld_variables.paid_marker;
}}
var map_marker_id=jQuery(this).attr('id');
if(typeof(obj.attr('data-marker'))!='undefined'&&obj.attr('data-marker')!=''){
markericon=obj.attr('data-marker');
}
if(google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(latlng[0],latlng[1]),searchCenter) < radius){
var icon=markericon;
if(markericon!=''){
icon={
url: markericon,
scaledSize: new google.maps.Size(30, 30),
};}
var marker=new google.maps.Marker({
map: map,
icon: icon,
position:  new google.maps.LatLng(latlng[0],latlng[1]),
title: title,
animation: google.maps.Animation.DROP,
address: address,
url: url,
mapSelectorID: map_marker_id
})
infoWindow(marker, map, title, address, url, subtitle, imgurl, target, icons, custom_content, others_info);
bounds.extend(marker.getPosition());
map.fitBounds(bounds);
obj.removeClass("showMe");
obj.show();
obj.addClass("showMe");
}else{
obj.fadeOut();
obj.removeClass("showMe");
}}
})
map.fitBounds(circle.getBounds());
var visibleItems=0;
var totalvisibleitem=0;
jQuery(".qcpd-single-list-pd, .qcpd-single-list-pd-1, .opd-list-pd-style-8, .opd-list-pd-style-9, .pd-container, .qc-sbd-single-item-11, .qc-sld-masonary-15").each(function(){
visibleItems=jQuery(this).find("li.showMe").length;
totalvisibleitem +=jQuery(this).find("li.showMe").length;
if(visibleItems==0){
jQuery(this).hide();
}else{
jQuery(this).show();
}});
setTimeout(function(){
jQuery('.qc-grid').packery({
itemSelector: '.qc-grid-item',
gutter: 10
});
setTimeout(function(){
if(totalvisibleitem==0){
alert(sld_variables.distance_no_result_text);
}},500)
},1000)
}else{
}});
}
return;
})
jQuery('.sbd_radius_clear').on('click', function(){
if(typeof google!=='undefined'){
var obj=jQuery(this);
jQuery('.qcld_pd_tabcontent:visible .sbd_location_name').val('');
jQuery('.qcld_pd_tabcontent:visible .sbd_distance').val('');
if(circle) circle.setMap(null);
jQuery(".qcpd-single-list-pd, .qcpd-single-list-pd-1, .opd-list-pd-style-8, .opd-list-pd-style-9, .pd-container").each(function(){
jQuery(this).show();
});
jQuery(".qcld_pd_tabcontent:visible .qc-grid-item ul li").each(function(){
jQuery(this).show();
})
clearmarker();
myLooptab();
setTimeout(function(){
jQuery('.qc-grid').packery({
itemSelector: '.qc-grid-item',
gutter: 10
});
},1000)
}})
function infoWindow(marker, map, title, address, url, subtitle, imgurl, target, icons, custom_content, others_info){
if(typeof google!=='undefined'){
oms.forgetAllMarkers();
google.maps.event.addListener(marker, 'click', function(){
if(iw){
iw.close();
}
var main_click_check=cluster.main_click;
var html="<div>";
if(imgurl!=''&&!cluster.image_infowindow){
html +="<div class='sbd_pop_img'><img src='"+imgurl+"' /></div>";
}
html +="<div class='sbd_pop_text'><h3>" + title + "</h3><p>" + subtitle + "</p>";
if(address!=''){
html+="<p><b><i class='fa fa-map-marker fa-map-marker-alt' aria-hidden='true'></i> </b>" + address + "</p>";
}
if(others_info!=''){
html+=others_info;
}
if(custom_content!=''&&typeof(custom_content)!='undefined'){
html+=custom_content;
}
if(main_click_check==2){
html +="<a style='text-align: center;display:block;font-weight: bold;' class='popup_instead_marker_details_trigger' item-id='"+marker.mapSelectorID+"' href='#' >"+sld_variables.view_details+"</a>";
}else if(url!==''&&url.length > 2&&main_click_check!==2){
html +="<a style='text-align: center;display:block;font-weight: bold;' href='" + url + "' "+ target +">"+sld_variables.view_details+"</a>";
}
html +="</div></div>"
html +="<div class='sbd_bottom_area_marker'>"+icons+"</div>";
html+="</div></div>";
iw=new google.maps.InfoWindow({
content: html,
maxWidth: 230,
});
iw.setZIndex(9999);
iw.open(map, marker);
});
oms.addMarker(marker);
}}
$(document).on("click", ".popup_instead_marker_details_trigger", function(e){
e.preventDefault();
var value=jQuery(this).attr('item-id');
jQuery('#'+value + ' .popup_instead_marker_details.open-mpf-sld-link').trigger('click');
});
jQuery(document).on("click",".sbd-filter-area a", function(event){
event.preventDefault();
var sbd_mode='categoryTab';
if(!jQuery(this).parent('.sbd-filter-area').parent().hasClass('qcld_pd_tabcontent')){
sbd_mode='';
return false;
}
var findmapid=jQuery('.qcld_pd_tabcontent:visible .sbd_map:visible').length>0?jQuery('.qcld_pd_tabcontent:visible .sbd_map:visible').attr('id'):'';
if(typeof google!=='undefined'){
if(findmapid!=''){
map=new google.maps.Map(document.getElementById(findmapid), {
center: new google.maps.LatLng(localStorage.getItem("qcld_map_latitite"), localStorage.getItem("qcld_map_longitute")),
zoom: parseInt(sld_variables.zoom),
mapTypeId: google.maps.MapTypeId.ROADMAP,
gestureHandling: 'cooperative'
});
if((typeof pd_snazzymap_js==="object"||typeof pd_snazzymap_js==='function')&&(pd_snazzymap_js!==null)){
map.setOptions({styles: pd_snazzymap_js});
}
oms=new OverlappingMarkerSpiderfier(map, {
markersWontMove: true,
markersWontHide: true,
basicFormatEvents: true
});
}}
var filterName=jQuery(this).attr("data-filter");
jQuery(".sbd-filter-area a").removeClass("filter-active");
jQuery(this).addClass("filter-active");
if(filterName=="all"){
jQuery(".qcld_pd_tabcontent:visible #sbdopd-list-holder .qc-grid-item").css("display", "block");
if(findmapid!=''){
if(typeof google!=='undefined'){
myLooptab();
}}
}else{
var categoryGridSelector=".qcld_pd_tabcontent:visible .qc-grid";
if(jQuery(categoryGridSelector).length==0){
categoryGridSelector=".qcld_pd_tabcontent:visible .qcpd-list-hoder";
}
jQuery(categoryGridSelector+" .qc-grid-item").css("display", "none");
jQuery(categoryGridSelector+" .qc-grid-item."+filterName+"").css("display", "block");
if(findmapid!=''){
jQuery(categoryGridSelector+" ."+filterName+" ul li").each(function(){
var obj=jQuery(this);
var icons=obj.find('.pd-bottom-area').clone();
icons.find('.pd-map').removeClass('open-mpf-sld-link');
if(typeof google!=='undefined'){
if(typeof(obj.attr('data-address'))!=='undefined'&&obj.attr('data-address')!=''){
icons.find('.pd-map').attr("href", "https://www.google.com/maps/dir/?api=1&origin=none&destination="+encodeURIComponent(obj.attr('data-address'))+"&travelmode=driving");
icons.find('.pd-map').attr("target", "_blank");
}
icons.find('.open-mpf-sld-link').remove();
icons.find('.pd-map').remove();
icons=icons.html();
var custom_content=obj.find('.sbd_custom_content').clone();
custom_content=custom_content.html();
var others_info='';
if(obj.attr('data-local')!=''){
others_info +="<p><b>Local: </b>"+obj.attr('data-local')+"</p>";
}
if(obj.attr('data-phone')!=''){
others_info +="<p><b>Phone: </b>"+obj.attr('data-phone')+"</p>";
}
if(obj.attr('data-businesshour')!=''){
others_info +="<p><b>Business Hours: </b>"+obj.attr('data-businesshour')+"</p>";
}
var imgurl='';
if(obj.find('img').length>0){
imgurl=obj.find('img').attr('src');
}
var target='';
if(typeof(obj.find('a').attr('target'))!=='undefined'){
target='target="_blank"';
}
var obj=jQuery(this);
if(obj.attr('data-latlon')!==''&&typeof(obj.attr('data-latlon'))!=='undefined'){
var locations=obj.attr('data-latlon');
var latlng=locations.split(',');
var title=obj.attr('data-title');
var address=obj.attr('data-address');
var url=obj.attr('data-url');
var subtitle=obj.attr('data-subtitle');
var markericon='';
if(sld_variables.global_marker!=''){
markericon=sld_variables.global_marker;
}
if(typeof(obj.attr('data-paid'))!='undefined'&&obj.attr('data-paid')!=''){
markericon=sld_variables.paid_marker_default;
if(sld_variables.paid_marker!=''){
markericon=sld_variables.paid_marker;
}}
var map_marker_id=jQuery(this).attr('id');
if(typeof(obj.attr('data-marker'))!='undefined'&&obj.attr('data-marker')!=''){
markericon=obj.attr('data-marker');
}
var icon=markericon;
if(markericon!=''){
icon={
url: markericon,
scaledSize: new google.maps.Size(30, 30),
};}
var marker=new google.maps.Marker({
icon:icon,
map: map,
position:  new google.maps.LatLng(latlng[0],latlng[1]),
title: title,
animation: google.maps.Animation.DROP,
address: address,
url: url,
mapSelectorID: map_marker_id
})
infoWindow(marker, map, title, address, url, subtitle, imgurl, target, icons, custom_content, others_info);
bounds.extend(marker.getPosition());
map.fitBounds(bounds);
}}
})
}}
jQuery('.qc-grid').packery({
itemSelector: '.qc-grid-item',
gutter: 10
});
});
jQuery('.qc-grid').packery({
itemSelector: '.qc-grid-item',
gutter: 10
});
})
jQuery(".pd_search_filter").keyup(function(){
var filter=jQuery(this).val(), count=0;
var findmapid=jQuery('.qcld_pd_tabcontent:visible .sbd_map').length>0?jQuery('.qcld_pd_tabcontent:visible .sbd_map').attr('id'):'';
if(findmapid!=''){
if(typeof google!=='undefined'){
map=new google.maps.Map(document.getElementById(findmapid), {
center: new google.maps.LatLng(localStorage.getItem("qcld_map_latitite"), localStorage.getItem("qcld_map_longitute")),
zoom: parseInt(sld_variables.zoom),
mapTypeId: google.maps.MapTypeId.ROADMAP,
gestureHandling: 'cooperative'
});
if((typeof pd_snazzymap_js==="object"||typeof pd_snazzymap_js==='function')&&(pd_snazzymap_js!==null)){
map.setOptions({styles: pd_snazzymap_js});
}
oms=new OverlappingMarkerSpiderfier(map, {
markersWontMove: true,
markersWontHide: true,
basicFormatEvents: true
});
}
jQuery(".qcld_pd_tabcontent:visible .qc-grid ul li").each(function(){
var dataTitleTxt=jQuery(this).children('a').attr('data-title');
var dataurl=jQuery(this).find('a').attr('href');
if(typeof(dataurl)=='undefined'){
dataurl="-----";
}
if(typeof(dataTitleTxt)=='undefined'){
dataTitleTxt="-----";
}
var parentH3=jQuery(this).parentsUntil('.qc-grid-item').children('h3').text();
if(jQuery(this).text().search(new RegExp(filter, "i")) < 0&&dataurl.search(new RegExp(filter, "i")) < 0&&dataTitleTxt.search(new RegExp(filter, "i")) < 0&&parentH3.search(new RegExp(filter, "i")) < 0){
jQuery(this).fadeOut();
jQuery(this).removeClass("showMe");
}else{
jQuery(this).show();
jQuery(this).addClass("showMe");
count++;
if(typeof google!=='undefined'){
if(findmapid!=''){
var obj=jQuery(this);
var icons=obj.find('.pd-bottom-area').clone();
icons.find('.pd-map').removeClass('open-mpf-sld-link');
if(typeof(obj.attr('data-address'))!=='undefined'&&obj.attr('data-address')!=''){
icons.find('.pd-map').attr("href", "https://www.google.com/maps/dir/?api=1&origin=none&destination="+encodeURIComponent(obj.attr('data-address'))+"&travelmode=driving");
icons.find('.pd-map').attr("target", "_blank");
}
icons.find('.open-mpf-sld-link').remove();
icons.find('.pd-map').remove();
icons=icons.html();
var custom_content=obj.find('.sbd_custom_content').clone();
custom_content=custom_content.html();
var others_info='';
if(obj.attr('data-local')!=''){
others_info +="<p><b>Local: </b>"+obj.attr('data-local')+"</p>";
}
if(obj.attr('data-phone')!=''){
others_info +="<p><b>Phone: </b>"+obj.attr('data-phone')+"</p>";
}
if(obj.attr('data-businesshour')!=''){
others_info +="<p><b>Business Hours: </b>"+obj.attr('data-businesshour')+"</p>";
}
var imgurl='';
if(obj.find('img').length>0){
imgurl=obj.find('img').attr('src');
}
var target='';
if(typeof(obj.find('a').attr('target'))!=='undefined'){
target='target="_blank"';
}
if(obj.attr('data-latlon')!==''&&typeof(obj.attr('data-latlon'))!=='undefined'){
var locations=obj.attr('data-latlon');
var latlng=locations.split(',');
var title=obj.attr('data-title');
var address=obj.attr('data-address');
var url=obj.attr('data-url');
var subtitle=obj.attr('data-subtitle');
var markericon='';
if(sld_variables.global_marker!=''){
markericon=sld_variables.global_marker;
}
if(typeof(obj.attr('data-paid'))!='undefined'&&obj.attr('data-paid')!=''){
markericon=sld_variables.paid_marker_default;
if(sld_variables.paid_marker!=''){
markericon=sld_variables.paid_marker;
}}
var map_marker_id=jQuery(this).attr('id');
if(typeof(obj.attr('data-marker'))!='undefined'&&obj.attr('data-marker')!=''){
markericon=obj.attr('data-marker');
}
var icon=markericon;
if(markericon!=''){
icon={
url: markericon,
scaledSize: new google.maps.Size(30, 30),
};}
var marker=new google.maps.Marker({
icon:icon,
map: map,
position:  new google.maps.LatLng(latlng[0],latlng[1]),
title: title,
animation: google.maps.Animation.DROP,
address: address,
url: url,
mapSelectorID: map_marker_id
})
infoWindow(marker, map, title, address, url, subtitle, imgurl, target, icons, custom_content, others_info);
bounds.extend(marker.getPosition());
map.fitBounds(bounds);
}}
}}
});
jQuery(".qcpd-single-list-pd, .qcpd-single-list-pd-1, .opd-list-pd-style-8, .opd-list-pd-style-9, .pd-container").each(function(){
var visibleItems=jQuery(this).find("li.showMe").length;
if(visibleItems==0){
jQuery(this).hide();
}else{
jQuery(this).show();
}});
jQuery('.qc-grid').packery({
itemSelector: '.qc-grid-item',
gutter: 10
});
}});
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=116)}({116:function(e,t,n){"use strict";n.r(t);var r=function(e){return"string"!=typeof e||""===e?(console.error("The namespace must be a non-empty string."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.\-\/]*$/.test(e)||(console.error("The namespace can only contain numbers, letters, dashes, periods, underscores and slashes."),!1)};var o=function(e){return"string"!=typeof e||""===e?(console.error("The hook name must be a non-empty string."),!1):/^__/.test(e)?(console.error("The hook name cannot begin with `__`."),!1):!!/^[a-zA-Z][a-zA-Z0-9_.-]*$/.test(e)||(console.error("The hook name can only contain numbers, letters, dashes, periods and underscores."),!1)};var i=function(e,t){return function(n,i,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10,l=e[t];if(o(n)&&r(i))if("function"==typeof a)if("number"==typeof s){var c={callback:a,priority:s,namespace:i};if(l[n]){var u,d=l[n].handlers;for(u=d.length;u>0&&!(s>=d[u-1].priority);u--);u===d.length?d[u]=c:d.splice(u,0,c),l.__current.forEach((function(e){e.name===n&&e.currentIndex>=u&&e.currentIndex++}))}else l[n]={handlers:[c],runs:0};"hookAdded"!==n&&e.doAction("hookAdded",n,i,a,s)}else console.error("If specified, the hook priority must be a number.");else console.error("The hook callback must be a function.")}};var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(i,a){var s=e[t];if(o(i)&&(n||r(a))){if(!s[i])return 0;var l=0;if(n)l=s[i].handlers.length,s[i]={runs:s[i].runs,handlers:[]};else for(var c=s[i].handlers,u=function(e){c[e].namespace===a&&(c.splice(e,1),l++,s.__current.forEach((function(t){t.name===i&&t.currentIndex>=e&&t.currentIndex--})))},d=c.length-1;d>=0;d--)u(d);return"hookRemoved"!==i&&e.doAction("hookRemoved",i,a),l}}};var s=function(e,t){return function(n,r){var o=e[t];return void 0!==r?n in o&&o[n].handlers.some((function(e){return e.namespace===r})):n in o}};var l=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return function(r){var o=e[t];o[r]||(o[r]={handlers:[],runs:0}),o[r].runs++;var i=o[r].handlers;for(var a=arguments.length,s=new Array(a>1?a-1:0),l=1;l<a;l++)s[l-1]=arguments[l];if(!i||!i.length)return n?s[0]:void 0;var c={name:r,currentIndex:0};for(o.__current.push(c);c.currentIndex<i.length;){var u=i[c.currentIndex],d=u.callback.apply(null,s);n&&(s[0]=d),c.currentIndex++}return o.__current.pop(),n?s[0]:void 0}};var c=function(e,t){return function(){var n,r,o=e[t];return null!==(n=null===(r=o.__current[o.__current.length-1])||void 0===r?void 0:r.name)&&void 0!==n?n:null}};var u=function(e,t){return function(n){var r=e[t];return void 0===n?void 0!==r.__current[0]:!!r.__current[0]&&n===r.__current[0].name}};var d=function(e,t){return function(n){var r=e[t];if(o(n))return r[n]&&r[n].runs?r[n].runs:0}},f=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.actions=Object.create(null),this.actions.__current=[],this.filters=Object.create(null),this.filters.__current=[],this.addAction=i(this,"actions"),this.addFilter=i(this,"filters"),this.removeAction=a(this,"actions"),this.removeFilter=a(this,"filters"),this.hasAction=s(this,"actions"),this.hasFilter=s(this,"filters"),this.removeAllActions=a(this,"actions",!0),this.removeAllFilters=a(this,"filters",!0),this.doAction=l(this,"actions"),this.applyFilters=l(this,"filters",!0),this.currentAction=c(this,"actions"),this.currentFilter=c(this,"filters"),this.doingAction=u(this,"actions"),this.doingFilter=u(this,"filters"),this.didAction=d(this,"actions"),this.didFilter=d(this,"filters")};var h=function(){return new f},p=h();p.addAction,p.addFilter,p.removeAction,p.removeFilter,p.hasAction,p.hasFilter,p.removeAllActions,p.removeAllFilters,p.doAction,p.applyFilters,p.currentAction,p.currentFilter,p.doingAction,p.doingFilter,p.didAction,p.didFilter,p.actions,p.filters;function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=v(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==v(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}window.isEditMode=!1,window.eael=window.ea={hooks:h(),isEditMode:!1,elementStatusCheck:function(e){return!(!window.eaElementList||!(e in window.eaElementList))||(window.eaElementList=y(y({},window.eaElementList),{},g({},e,!0)),!1)},debounce:function(e,t){var n;return function(){var r=this,o=arguments;clearTimeout(n),n=setTimeout((function(){e.apply(r,o)}),t)}}},eael.hooks.addAction("widgets.reinit","ea",(function(e){var t=jQuery(".eael-filter-gallery-container",e),n=jQuery(".eael-post-grid:not(.eael-post-carousel)",e),r=jQuery(".eael-twitter-feed-masonry",e),o=jQuery(".eael-instafeed",e),i=jQuery(".premium-gallery-container",e),a=jQuery(".eael-event-calendar-cls",e),s=jQuery(".eael-testimonial-slider",e),l=jQuery(".eael-tm-carousel",e),c=jQuery(".eael-post-carousel:not(.eael-post-grid)",e),u=jQuery(".eael-logo-carousel",e),d=jQuery(".eael-twitter-feed-carousel",e);t.length&&t.isotope("layout"),n.length&&n.isotope("layout"),r.length&&r.isotope("layout"),o.length&&o.isotope("layout"),i.length&&i.isotope("layout"),a.length&&eael.hooks.doAction("eventCalendar.reinit"),s.length&&eael.hooks.doAction("testimonialSlider.reinit"),l.length&&eael.hooks.doAction("teamMemberCarousel.reinit"),c.length&&eael.hooks.doAction("postCarousel.reinit"),u.length&&eael.hooks.doAction("logoCarousel.reinit"),d.length&&eael.hooks.doAction("twitterCarousel.reinit")}));var w,b=function(e){void 0===window.eaelPreventResizeOnClick&&window.dispatchEvent(new Event("resize")),(e="object"===v(e)?e:jQuery(e)).find(".swiper-wrapper").each((function(){var e=jQuery(this).css("transform");jQuery(this).css("transform",e)}))};eael.hooks.addAction("ea-advanced-tabs-triggered","ea",b),eael.hooks.addAction("ea-advanced-accordion-triggered","ea",b),jQuery(window).on("elementor/frontend/init",(function(){window.isEditMode=elementorFrontend.isEditMode(),window.eael.isEditMode=elementorFrontend.isEditMode(),eael.hooks.doAction("init"),eael.isEditMode&&eael.hooks.doAction("editMode.init")})),function(e){eael.getToken=function(){localize.nonce&&!eael.noncegenerated&&e.ajax({url:localize.ajaxurl,type:"post",data:{action:"eael_get_token"},success:function(e){e.success&&(localize.nonce=e.data.nonce,eael.noncegenerated=!0)}})},eael.sanitizeURL=function(e){if(e.startsWith("/")||e.startsWith("#"))return e;try{var t=new URL(e);if(!["http:","https:","ftp:","ftps:","mailto:","news:","irc:","irc6:","ircs:","gopher:","nntp:","feed:","telnet:","mms:","rtsp:","sms:","svn:","tel:","fax:","xmpp:","webcal:","urn:"].includes(t.protocol))throw new Error("Invalid protocol");return t.toString()}catch(e){return console.error("Error sanitizing URL:",e.message),"#"}};var t=!0;window.addEventListener("hashchange",(function(){if(t){var n=window.location.hash.substr(1);"undefined"!==(n="safari"===n?"eael-safari":n)&&n&&/^[A-Za-z][-A-Za-z0-9_:.]*$/.test(n)&&e("#"+n).trigger("click")}})),e("a").on("click",(function(n){var r,o=e(this).attr("href");(r=(o=void 0===o?"":o).startsWith("#"))||(r=(o=o.replace(localize.page_permalink,"")).startsWith("#")),r&&(t=!1,setTimeout((function(){t=!0}),100));try{if(o.startsWith("#!")){var i=o.replace("#!","#");e(i).trigger("click")}else if(r&&(e(o).hasClass("eael-tab-item-trigger")||e(o).hasClass("eael-accordion-header"))&&(e(o).trigger("click"),void 0!==o&&o)){var a=e(o).closest(".eael-advance-tabs");if(a.length>0){var s=a.data("custom-id-offset");s=s?parseFloat(s):0,e("html, body").animate({scrollTop:e(o).offset().top-s},300)}}}catch(e){}})),e(document).on("click",".e-n-tab-title",(function(){setTimeout((function(){window.dispatchEvent(new Event("resize"))}),100)}))}(jQuery),(w=jQuery)(document).on("click",".theme-savoy .eael-product-popup .nm-qty-minus, .theme-savoy .eael-product-popup .nm-qty-plus",(function(e){var t=w(this),n=t.closest(".quantity").find(".qty"),r=parseFloat(n.val()),o=parseFloat(n.attr("max")),i=parseFloat(n.attr("min")),a=n.attr("step");r&&""!==r&&"NaN"!==r||(r=0),""!==o&&"NaN"!==o||(o=""),""!==i&&"NaN"!==i||(i=0),"any"!==a&&""!==a&&void 0!==a&&"NaN"!==parseFloat(a)||(a=1),t.hasClass("nm-qty-plus")?o&&(o==r||r>o)?n.val(o):n.val(r+parseFloat(a)):i&&(i==r||r<i)?n.val(i):r>0&&n.val(r-parseFloat(a))})),function(e){e.fn.isInViewport=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:2;if(e(this).length<1)return!1;var n=e(this).offset().top,r=n+e(this).outerHeight()/t,o=e(window).scrollTop(),i=o+e(window).height()/t;return r>o&&n<i},e(document).ready((function(){var e=new URLSearchParams(location.search);if(e.has("popup-selector")&&(e.has("eael-lostpassword")||e.has("eael-resetpassword"))){var t=e.get("popup-selector");t.length&&/^[A-Za-z.#][A-Za-z0-9_:.#\s-]*$/.test(t)&&(t=t.replace(/_/g," "),setTimeout((function(){jQuery(t).trigger("click")}),300))}})),e(document).on("click",".eael-onpage-edit-template",(function(){var t=e(this),n=t.data("eael-template-id"),r=t.data("page-id"),o=t.data("mode");"edit"===o?(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(n)}).then((function(){t.data("mode","save"),t.find("span").text("Save & Back"),t.find("i").addClass("eicon-arrow-left").removeClass("eicon-edit"),t.closest(".eael-onpage-edit-template-wrapper").addClass("eael-onpage-edit-activate").parent().addClass("eael-widget-otea-active"),parent.window.$e.internal("panel/state-ready")}))):"save"===o&&(parent.window.$e.internal("panel/state-loading"),parent.window.$e.run("editor/documents/switch",{id:parseInt(r),mode:"save",shouldScroll:!1}).then((function(){parent.window.$e.internal("panel/state-ready"),t.data("mode","edit")})))}))}(jQuery)}});