// source --> https://shop.la-decouverte-du-sommelier.com/wp-content/plugins/dispensary-age-verification/public/js/dispensary-age-verification-public.js?ver=2.5 /* * The Dispensary Age Verification plugin utilizes * the following open source javascript plugin. * * Thanks Michael! * * Plugin: ageCheck.js * Description: A simple plugin to verify user's age. Uses sessionStorage API to store if user is verified - only kept until browser is closed. * Options can be passed for easy customization. * Author: Michael Soriano * Author's website: http://fearlessflyer.com * */ (function ($) { 'use strict'; $.ageCheck = function (options) { const settings = $.extend({ minAge: 18, redirectTo: "", redirectOnFail: "", title: "Age Verification", copy: "You must be [age] years old to enter.", btnYes: "YES", btnNo: "NO", successTitle: "Success!", successText: "You are now being redirected back to the site...", failTitle: "Sorry", failText: "You are not old enough to view this site...", cookieDays: 30, adminDebug: "", beforeContent: "", afterContent: "", }, options); const _this = { age: "", errors: [], setValues() { const month = $(".avwp-av .month").val(); const day = $(".avwp-av .day").val(); _this.month = month; _this.day = day.replace(/^0+/, ''); // remove leading zero _this.year = $(".avwp-av .year").val(); }, validate() { _this.errors = []; if (/^([0-9]|[12]\d|3[0-1])$/.test(_this.day) === false) { _this.errors.push("Day is invalid or empty"); } if (/^(19|20)\d{2}$/.test(_this.year) === false) { _this.errors.push("Year is invalid or empty"); } _this.clearErrors(); _this.displayErrors(); return _this.errors.length < 1; }, clearErrors() { $(".errors").html(""); }, displayErrors() { let html = ""; setTimeout(() => { $(".avwp-av .errors").html(html); }, 200); }, reCenter(b) { b.css("top", `${Math.max(0, (($(window).height() - (b.outerHeight() + 150)) / 2))}px`); b.css("left", `${Math.max(0, (($(window).width() - b.outerWidth()) / 2))}px`); }, buildHtml() { const copy = settings.copy; let html = ""; html += '
'; html += '
'; if (settings.beforeContent !== "") { html += settings.beforeContent; } if (settings.imgLogo !== "") { html += '' + settings.title + ''; } if (settings.title !== "") { html += `

${settings.title}

`; } html += `

${copy.replace("[age]", `${settings.minAge}`)}`; + `

`; html += `

`; if (settings.afterContent !== "") { html += settings.afterContent; } html += "
"; $('body').append(html); $(".avwp-av-overlay").animate({ opacity: 1, }, 500, () => { _this.reCenter($(".avwp-av")); $(".avwp-av").css({ opacity: 1, }); }); $(".avwp-av .day, .avwp-av .year").focus(function () { $(this).removeAttr("placeholder"); }); }, setAge() { _this.age = ""; _this.age = Math.abs(Date.now() - 1970); }, setSessionStorage(key, val) { try { sessionStorage.setItem(key, val); return true; } catch (e) { return false; } }, handleSuccess() { const successMsg = `

${settings.successTitle}

${settings.successText}

`; $(".avwp-av").html(successMsg); setTimeout(() => { $(".avwp-av").animate({ top: "-350px", }, 200, () => { $(".avwp-av-overlay").animate({ opacity: "0", }, 500, () => { if (settings.redirectTo !== '') { window.location.replace(settings.redirectTo); } else { $(".avwp-av-overlay, .avwp-av").remove(); } }); }); }, 2000); }, handleUnderAge() { const underAgeMsg = `

${settings.failTitle}

${settings.failText}

`; $(".avwp-av").html(underAgeMsg); if (settings.redirectOnFail !== '') { setTimeout(() => { window.location.replace(settings.redirectOnFail); }, 2000); } }, }; // end _this // Check for cookie and reture false if it's set. var cookiereader = readCookie("age-verification"); if (cookiereader) { if (settings.adminDebug !== "") { eraseCookie("age-verification"); } else { return false; } } // Create pop up. _this.buildHtml(); // Successful "YES" button click. $(".avwp-av button.yes").on("click", () => { createCookie("age-verification", "true", settings.cookieDays); _this.handleSuccess(); }); // Successful "NO" button click. $(".avwp-av button.no").on("click", () => { _this.handleUnderAge(); }); $(window).resize(() => { _this.reCenter($(".avwp-av")); setTimeout(() => { _this.reCenter($(".avwp-av")); }, 500); }); }; }(jQuery)); // source --> https://shop.la-decouverte-du-sommelier.com/wp-content/themes/decouvsom8/js/script.js?ver=1.0 window.u$ = window.u$ || window.jQuery; (function($, jQuery) { !function(e){function t(n){if(i[n])return i[n].exports;var o=i[n]={i:n,l:false,exports:{}};return e[n].call(o.exports,o,o.exports,t),o.l=true,o.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,n){if(!t.o(e,i))Object.defineProperty(e,i,{configurable:false,enumerable:true,get:n})},t.n=function(e){var i=e&&e.__esModule?function t(){return e.default}:function t(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="/Content/BundledScripts/",t(t.s=512)}({1:function(e,t){e.exports=jQuery},100:function(e,t,i){"use strict";function ResponsiveMenu(e,t){this.responsive=e,this.root=t||n("body"),this.init()}e.exports=ResponsiveMenu;var n=window.jQuery;ResponsiveMenu.prototype.init=function init(){if(this.root.is("body"))this.subscribe();this.initStyles()},ResponsiveMenu.prototype.subscribe=function e(){this.root.on("click",".u-menu .menu-collapse",function(e){e.preventDefault();var t=n(e.currentTarget).closest(".u-menu");if(ResponsiveMenu.isActive(t))this.close(t);else this.open(t)}.bind(this)),this.root.on("click",".u-menu .u-menu-close",function(e){e.preventDefault();var t=n(e.currentTarget).closest(".u-menu");this.close(t)}.bind(this)),this.root.on("click",".u-menu .u-menu-overlay",function(e){var t=n(e.currentTarget).closest(".u-menu.open");this.close(t)}.bind(this)),this.root.find(".u-menu").on("click",".u-nav-container-collapse .u-nav-link",function(e){var t=n(e.currentTarget);if(!t.siblings(".u-nav-popup").length){var i=t.attr("href");if(i&&-1!==i.indexOf("#")){var o=n(e.currentTarget).closest(".u-menu");this.close(o)}}}.bind(this)),this.root.find(".u-menu:not(.u-menu-one-level)").on("click",".u-nav-container-collapse .u-nav-link",function(e){var t=n(e.currentTarget).siblings(".u-nav-popup"),i=t.closest(".u-menu"),o=i.attr("data-submenu-level")||"on-click";if(t.length&&"on-click"===o){e.preventDefault(),e.stopPropagation(),e.returnValue=false,t.one("transitionend webkitTransitionEnd oTransitionEnd",function(e){e.stopPropagation(),t.removeClass("animating"),t.toggleClass("open"),t.css({"max-height":t.is(".open")?"none":"",visibility:""}),t.find(".open").removeClass("open").css("max-height","")}),t.css({"max-height":"none",visibility:"visible"});var height=t.outerHeight();t.css("max-height",t.is(".open")?height:0),t.addClass("animating"),t[0].offsetHeight,t.css("max-height",t.is(".open")?0:height)}}),n(window).on("resize",function(){n(".u-menu.open").each(function(e,el){this.close(n(el))}.bind(this))}.bind(this)),n(document).keyup(function(e){if(27===e.keyCode)n(".u-menu.open").each(function(e,el){this.close(n(el))}.bind(this))}.bind(this)),ResponsiveMenu.fixDirection()},ResponsiveMenu.prototype.initStyles=function e(){this.root.find(".u-menu").each(function(){var menu=n(this),style=menu.find(".offcanvas-style"),e=menu.find(".u-nav-container-collapse .u-sidenav").attr("data-offcanvas-width")||250;if(!style.length)style=n(''),menu.append(style);style.html(" .u-offcanvas .u-sidenav { flex-basis: {width} !important; } .u-offcanvas:not(.u-menu-open-right) .u-sidenav { margin-left: -{width}; } .u-offcanvas.u-menu-open-right .u-sidenav { margin-right: -{width}; } @keyframes menu-shift-left { from { left: 0; } to { left: {width}; } } @keyframes menu-unshift-left { from { left: {width}; } to { left: 0; } } @keyframes menu-shift-right { from { right: 0; } to { right: {width}; } } @keyframes menu-unshift-right { from { right: {width}; } to { right: 0; } } ".replace(/\{width\}/g,e+"px"))})},ResponsiveMenu.prototype.onResponsiveResize=function e(){n(".u-menu").each(function(e,el){var t=n(el).attr("data-responsive-from")||"MD",i=this.responsive.modes.indexOf(t),o=this.responsive.modes.slice(i);ResponsiveMenu.toggleResponsive(el,-1!==o.indexOf(this.responsive.mode)),this.megaResize(el,1),this.megaColumns(el,this.responsive.mode)}.bind(this))},ResponsiveMenu.toggleResponsive=function e(t,i){n(t).toggleClass("u-enable-responsive",i)},ResponsiveMenu.prototype.close=function close(menu,e){if(ResponsiveMenu.isActive(menu)){if(this.enableScroll(),ResponsiveMenu.isOffcanvasMode(menu))this.offcanvasMenuClose(menu);else this.overlayMenuClose(menu);this.root.removeClass("menu-overlay"),this.hideOverlay(menu,e)}},ResponsiveMenu.prototype.open=function e(menu){if(this.root.addClass("menu-overlay"),!ResponsiveMenu.isActive(menu)){if(this.disableScroll(),ResponsiveMenu.isOffcanvasMode(menu))this.offcanvasMenuOpen(menu);else this.overlayMenuOpen(menu);this.showOverlay(menu)}},ResponsiveMenu.prototype.offcanvasMenuOpen=function e(menu){var t=this.root;if(menu.addClass("open"),t.addClass("u-offcanvas-opened"),menu.is(".u-offcanvas-shift"))t.addClass("u-offcanvas-shifted-"+(menu.hasClass("u-menu-open-right")?"right":"left"))},ResponsiveMenu.prototype.offcanvasMenuClose=function e(menu){if(menu.removeClass("open"),this.root.removeClass("u-offcanvas-opened u-offcanvas-shifted-left u-offcanvas-shifted-right"),menu.is(".u-offcanvas-shift"))this.root.addClass("u-offcanvas-unshifted-"+(menu.hasClass("u-menu-open-right")?"right":"left"))},ResponsiveMenu.prototype.megaColumns=function e(menu,t){if(menu=n(menu),menu.hasClass("u-menu-mega"))menu.find(".u-mega-popup .u-popupmenu-items").each(function(index,e){e=n(e);var i=this.getColumnSize(e.parent(),t),o=e.children().toArray().reduce(function(e,t){var i=Math.ceil(n(t).outerHeight(true));if(e.total+=i,e.list.push(i),i>e.max)e.max=i;return e},{list:[],total:0,max:0}),a=Math.ceil(Math.max(o.total/i,o.max)),s,l=0;do{s=[0];for(var u=0;u=c)f+=c,s[s.length-1]=f;else s.push(c)}if(s.length<=i)break;a+=20}while(l++<100);e.css("height",a+"px")}.bind(this))},ResponsiveMenu.prototype.getColumnSize=function e(el,t){var i=el.attr("class")||"",n;if(t=t||this.responsive&&this.responsive.mode||"no-value",n=new RegExp("u-columns-(\\d+)-"+t.toLowerCase()).exec(i),n)return parseFloat(n[1])||1;if(n=new RegExp("u-columns-(\\d+)([^-]|$)").exec(i),n)return parseFloat(n[1])||1;else return 1},ResponsiveMenu.prototype.megaResize=function e(menu,t){if(menu=n(menu),t=t||1,menu.hasClass("u-menu-mega"))menu.outerHeight(),menu.each(function(){var menu=n(this),e=menu.closest(".u-sheet, .u-body"),i=e.offset(),o=e.outerWidth();menu.find(".u-mega-popup").each(function(){var e=n(this);e.css({left:"",width:""}),e.outerHeight();var a=e.offset(),s=(i.left-a.left)/t;e.css({left:Math.round(s)+"px",width:o+"px"})})})},ResponsiveMenu.prototype.hideOverlay=function e(menu,t){var overlay=menu.find(".u-menu-overlay"),i=function(){if(!ResponsiveMenu.isActive(menu))menu.find(".u-nav-container-collapse").css("width",""),this.root.filter("body").find(".u-sticky").css("top","")}.bind(this);if(t)i();else overlay.fadeOut(500,i)},ResponsiveMenu.prototype.showOverlay=function e(menu){var overlay=menu.find(".u-menu-overlay");menu.find(".u-nav-container-collapse").css("width","100%"),overlay.fadeIn(500)},ResponsiveMenu.prototype.disableScroll=function e(){if(this.root.is("body"))document.documentElement.style.overflow="hidden"},ResponsiveMenu.prototype.enableScroll=function e(){if(this.root.is("body"))document.documentElement.style.overflow=""},ResponsiveMenu.prototype.overlayMenuOpen=function e(menu){menu.addClass("open")},ResponsiveMenu.prototype.overlayMenuClose=function e(menu){menu.removeClass("open")},ResponsiveMenu.isOffcanvasMode=function(menu){return menu.is(".u-offcanvas")},ResponsiveMenu.isActive=function(menu){return menu.hasClass("open")},ResponsiveMenu.fixDirection=function e(){n(document).on("mouseenter touchstart",".u-nav-container ul > li",function e(){var t="u-popup-left",i="u-popup-right",o=n(this).children(".u-nav-popup");if(o.length){o.removeClass(t+" "+i);var a="";if(o.parents("."+t).length)a=t;else if(o.parents("."+i).length)a=i;if(a)o.addClass(a);else{var s=o.offset().left,l=o.outerWidth();if(s<0)o.addClass(i);else if(s+l>n(window).width())o.addClass(t)}}})},window.ResponsiveMenu=ResponsiveMenu},101:function(e,t,i){"use strict";var bootstrap=function(e,t){function i(e,t){for(var i=0;i0?selector:null}catch(e){return null}},reflow:function e(t){return t.offsetHeight},triggerTransitionEnd:function e(i){t(i).trigger(s.end)},supportsTransitionEnd:function e(){return Boolean(s)},isElement:function e(t){return(t[0]||t).nodeType},typeCheckConfig:function t(i,n,o){for(var a in o)if(Object.prototype.hasOwnProperty.call(o,a)){var s=o[a],l=n[a],u=l&&f.isElement(l)?"element":e(l);if(!new RegExp(s).test(u))throw new Error(i.toUpperCase()+": "+'Option "'+a+'" provided type "'+u+'" '+'but expected type "'+s+'".')}}};return a(),f}(t),a=n,Carousel=function(){var e="u-carousel",i="4.0.0-beta",n="bs.u-carousel",s="."+n,l=".data-u-api",u=t.fn[e],f=600,c=37,p=39,h=500,Default={interval:5e3,keyboard:true,slide:false,pause:"hover",wrap:true},m={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},v={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},g={SLIDE:"u-slide"+s,SLID:"slid"+s,KEYDOWN:"keydown"+s,MOUSEENTER:"mouseenter"+s,MOUSELEAVE:"mouseleave"+s,TOUCHEND:"touchend"+s,LOAD_DATA_API:"load"+s+l,CLICK_DATA_API:"click"+s+l},y={CAROUSEL:"u-carousel",ACTIVE:"u-active",SLIDE:"u-slide",RIGHT:"u-carousel-item-right",LEFT:"u-carousel-item-left",NEXT:"u-carousel-item-next",PREV:"u-carousel-item-prev",ITEM:"u-carousel-item"},Selector={ACTIVE:".u-active",ACTIVE_ITEM:".u-active.u-carousel-item",ITEM:".u-carousel-item",NEXT_PREV:".u-carousel-item-next, .u-carousel-item-prev",INDICATORS:".u-carousel-indicators, .u-carousel-thumbnails",DATA_SLIDE:"[data-u-slide], [data-u-slide-to]",DATA_RIDE:'[data-u-ride="carousel"]'},Carousel=function(){function Carousel(e,i){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=false,this._isSliding=false,this.touchTimeout=null,this._config=this._getConfig(i),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(Selector.INDICATORS)[0],this._addEventListeners()}var l=Carousel.prototype;return l.next=function e(){if(!this._isSliding)this._slide(v.NEXT)},l.nextWhenVisible=function e(){if(!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility"))this.next()},l.prev=function e(){if(!this._isSliding)this._slide(v.PREV)},l.pause=function e(i){if(!i)this._isPaused=true;if(t(this._element).find(Selector.NEXT_PREV)[0]&&o.supportsTransitionEnd())o.triggerTransitionEnd(this._element),this.cycle(true);clearInterval(this._interval),this._interval=null},l.cycle=function e(t){if(!t)this._isPaused=false;if(this._interval)clearInterval(this._interval),this._interval=null;if(this._config.interval&&!this._isPaused)this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval)},l.to=function e(index){var i=this;this._activeElement=t(this._element).find(Selector.ACTIVE_ITEM)[0];var n=this._getItemIndex(this._activeElement);if(!(index>this._items.length-1||index<0)){if(this._isSliding)return t(this._element).one(g.SLID,function(){return i.to(index)}),void 0;if(n===index)return this.pause(),this.cycle(),void 0;var o=index>n?v.NEXT:v.PREV;this._slide(o,this._items[index])}},l.dispose=function e(){t(this._element).off(s),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},l._getConfig=function i(n){return n=t.extend({},Default,n),o.typeCheckConfig(e,n,m),n},l._addEventListeners=function e(){var i=this;if(this._config.keyboard)t(this._element).on(g.KEYDOWN,function(e){return i._keydown(e)});if("hover"===this._config.pause)if(t(this._element).on(g.MOUSEENTER,function(e){return i.pause(e)}).on(g.MOUSELEAVE,function(e){return i.cycle(e)}),"ontouchstart"in document.documentElement)t(this._element).on(g.TOUCHEND,function(){if(i.pause(),i.touchTimeout)clearTimeout(i.touchTimeout);i.touchTimeout=setTimeout(function(e){return i.cycle(e)},h+i._config.interval)})},l._keydown=function e(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case c:t.preventDefault(),this.prev();break;case p:t.preventDefault(),this.next();break;default:return}},l._getItemIndex=function e(i){return this._items=t.makeArray(t(i).parent().find(Selector.ITEM)),this._items.indexOf(i)},l._getItemByDirection=function e(t,i){var n=t===v.NEXT,o=t===v.PREV,a=this._getItemIndex(i),s=this._items.length-1;if((o&&0===a||n&&a===s)&&!this._config.wrap)return i;var l=t===v.PREV?-1:1,u=(a+l)%this._items.length;return-1===u?this._items[this._items.length-1]:this._items[u]},l._triggerSlideEvent=function e(i,n){var o=this._getItemIndex(i),a=this._getItemIndex(t(this._element).find(Selector.ACTIVE_ITEM)[0]),s=t.Event(g.SLIDE,{relatedTarget:i,direction:n,from:a,to:o});return t(this._element).trigger(s),s},l._setActiveIndicatorElement=function e(i){if(this._indicatorsElement){t(this._indicatorsElement).find(Selector.ACTIVE).removeClass(y.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(i)];if(n)t(n).addClass(y.ACTIVE)}},l._slide=function e(i,n){var a=this,s=t(this._element).find(Selector.ACTIVE_ITEM)[0],l=this._getItemIndex(s),u=n||s&&this._getItemByDirection(i,s),c=this._getItemIndex(u),p=Boolean(this._interval),h,m,w;if(i===v.NEXT)h=y.LEFT,m=y.NEXT,w=v.LEFT;else h=y.RIGHT,m=y.PREV,w=v.RIGHT;if(u&&t(u).hasClass(y.ACTIVE))return this._isSliding=false,void 0;if(!this._triggerSlideEvent(u,w).isDefaultPrevented())if(s&&u){if(this._isSliding=true,p)this.pause();this._setActiveIndicatorElement(u);var b=t.Event(g.SLID,{relatedTarget:u,direction:w,from:l,to:c}),x=null;if(o.supportsTransitionEnd()&&t(this._element).hasClass(y.CAROUSEL)){var _=f,C=this._element.className,T=/u-carousel-duration-(\d+)/.exec(C);if(T&&2===T.length)_=parseInt(T[1]);if(p){var A=+t(this._element).attr("data-interval")+_;if(!isNaN(A)&&A>0)x=this._config.interval,this._config.interval=A}t(u).addClass(m),o.reflow(u),t(s).addClass(h),t(u).addClass(h),t(s).one(o.TRANSITION_END,function(){t(u).removeClass(h+" "+m).addClass(y.ACTIVE),t(s).removeClass(y.ACTIVE+" "+m+" "+h),a._isSliding=false,setTimeout(function(){return t(a._element).trigger(b)},0)}).emulateTransitionEnd(_)}else t(s).removeClass(y.ACTIVE),t(u).addClass(y.ACTIVE),this._isSliding=false,t(this._element).trigger(b);if(p)this.cycle();if(x)this._config.interval=x}},Carousel._jQueryInterface=function e(i){return this.each(function(){var data=t(this).data(n),e=t.extend({},Default,t(this).data());if("object"==typeof i)t.extend(e,i);var o="string"==typeof i?i:e.uSlide;if(!data)data=new Carousel(this,e),t(this).data(n,data);if("number"==typeof i)data.to(i);else if("string"==typeof o){if(void 0===data[o])throw new Error('No method named "'+o+'"');data[o]()}else if(e.interval)data.pause(),data.cycle()})},Carousel._dataApiClickHandler=function e(i){var selector=o.getSelectorFromElement(this);if(selector){var a=t(selector)[0];if(a&&t(a).hasClass(y.CAROUSEL)){var s=t.extend({},t(a).data(),t(this).data()),l=this.getAttribute("data-u-slide-to");if(l)s.interval=false;if(Carousel._jQueryInterface.call(t(a),s),l)t(a).data(n).to(l);i.preventDefault()}}},a(Carousel,null,[{key:"VERSION",get:function e(){return i}},{key:"Default",get:function e(){return Default}}]),Carousel}();return t(document).on(g.CLICK_DATA_API,Selector.DATA_SLIDE,Carousel._dataApiClickHandler),t(window).on(g.LOAD_DATA_API,function(){t(Selector.DATA_RIDE).each(function(){var e=t(this);Carousel._jQueryInterface.call(e,e.data())})}),t.fn[e]=Carousel._jQueryInterface,t.fn[e].Constructor=Carousel,t.fn[e].noConflict=function(){return t.fn[e]=u,Carousel._jQueryInterface},Carousel}(t);return e.Util=o,e.Carousel=Carousel,e}({},$);window.bootstrap=bootstrap},102:function(e,t,i){"use strict";function n(e){var data=e.attr("data-map");if(data){data=Utility.decodeJsonAttribute(data);var t=e.contents()[0],i=t.createElement("script");i.type="text/javascript",i.innerHTML="var data = "+JSON.stringify(data)+";\n;"+"var mapIframeApiReady = function () {\n"+' parent.mapIframeApiReady(google, document.getElementById("map"), data);\n'+"}";var n=t.createElement("script");if(n.type="text/javascript",n.src="//maps.google.com/maps/api/js?key="+data.apiKey+"&callback=mapIframeApiReady",data.lang)n.src+="&language="+data.lang;t.head.appendChild(i),t.head.appendChild(n),$(t.body).append(""+'
')}}function o(e){var t="";if(e.title)t+=""+e.title+"";if(e.description)t+="
"+e.description.replace(/\n/g,"
")+"
";if(e.linkUrl){t+=''+(e.linkCaption||e.linkUrl)+""}if(t)t='
'+t+"
";return t}var MapsLoader={};window.loadMapsContent=function(){$("iframe.map-content").each(function(){var e=$(this);if(0===e.contents().find("#map").length)n(e)})},window.mapIframeApiReady=function(e,t,data){data.markers=data.markers||[];var i=data.zoom;if(!i&&1===data.markers.length)i=data.markers[0].zoom;if(!i)i=14;if(i=parseInt(i,10),data.map=data.map||{},data.map.zoom=i,data.map.mapTypeId="satellite"===data.typeId?e.maps.MapTypeId.HYBRID:e.maps.MapTypeId.ROADMAP,data.markers.length)data.map.center=data.markers[0].position;var map=new e.maps.Map(t,data.map||{}),n=new e.maps.LatLngBounds;if(data.markers.forEach(function(t){t.map=map;var i=new e.maps.Marker(t);n.extend(new e.maps.LatLng(t.position.lat,t.position.lng));var a=o(t);if(a){var s=new e.maps.InfoWindow({content:$("