/*! */ var sdViewport={currentWidth:null,newWidth:null,updateTimer:0,intervalTime:150,breakpoints:{mobile:768,tablet:1055,desktop2k:2e3},resizeHandlers:[],is2k:function(){return sdViewport.init(),sdViewport.currentWidth>=sdViewport.breakpoints.desktop2k},isDesktop:function(){return sdViewport.init(),sdViewport.currentWidth>sdViewport.breakpoints.tablet},isTablet:function(){return sdViewport.init(),sdViewport.currentWidth<=sdViewport.breakpoints.tablet&&sdViewport.currentWidth>=sdViewport.breakpoints.mobile},isMobile:function(){return sdViewport.init(),sdViewport.currentWidth=sdViewport.breakpoints.mobile&&sdViewport.newWidth=sdViewport.breakpoints.tablet)&&sdViewport.newWidth>=sdViewport.breakpoints.mobile&&sdViewport.newWidth=sdViewport.breakpoints.tablet},updateWidth:function(){sdViewport.newWidth=window.innerWidth,(sdViewport.switchedToMobile()||sdViewport.switchedToTablet()||sdViewport.switchedToDesktop())&&(clearTimeout(sdViewport.updateTimer),sdViewport.currentWidth=sdViewport.newWidth,$(sdViewport.resizeHandlers).each(function(index,handler){handler.call()}))}};!function(root,factory){if("function"==typeof define&&define.amd)define(["exports","jquery"],function(exports,$){return factory(exports,$)});else if("undefined"!=typeof exports){var $=require("jquery");factory(exports,$)}else factory(root,root.jQuery||root.Zepto||root.ender||root.$)}(this,function(exports,$){var patterns={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};function FormSerializer(helper,$form){var data={},pushes={};function build(base,key,value){return base[key]=value,base}function serialize(){return data}this.addPair=function(pair){if(!patterns.validate.test(pair.name))return this;var obj=function(root,value){for(var k,keys=root.match(patterns.key);void 0!==(k=keys.pop());)patterns.push.test(k)?value=build([],(key=root.replace(/\[\]$/,""),void 0===pushes[key]&&(pushes[key]=0),pushes[key]++),value):patterns.fixed.test(k)?value=build([],k,value):patterns.named.test(k)&&(value=build({},k,value));var key;return value}(pair.name,function(pair){switch($('[name="'+pair.name+'"]',$form).attr("type")){case"checkbox":return"on"===pair.value||pair.value;default:return pair.value}}(pair));return data=helper.extend(!0,data,obj),this},this.addPairs=function(pairs){if(!helper.isArray(pairs))throw new Error("formSerializer.addPairs expects an Array");for(var i=0,len=pairs.length;ic.size&&(d=a.trim(b).substring(0,c.size).split(" ").slice(0,-1).join(" "),c.ignore&&(d=d.replace(f,"")),a(this).html(d+c.omission))})})}}(jQuery),function(e){e.fn.visible=function(t,n,r){var i=e(this).eq(0),s=i.get(0),o=e(window),u=o.scrollTop(),a=u+o.height(),f=o.scrollLeft(),l=f+o.width(),c=i.offset().top,h=c+i.height(),p=i.offset().left,d=p+i.width(),v=!0===t?h:c,m=!0===t?c:h,g=!0===t?d:p,y=!0===t?p:d,b=!0!==n||s.offsetWidth*s.offsetHeight;return"both"===(r=r||"both")?!!b&&m<=a&&u<=v&&y<=l&&f<=g:"vertical"===r?!!b&&m<=a&&u<=v:"horizontal"===r?!!b&&y<=l&&f<=g:void 0}}(jQuery),jQuery.extend({highlight:function(node,re,nodeName,className){if(3===node.nodeType){var match=node.data.match(re);if(match){var highlight=document.createElement(nodeName||"span");highlight.className=className||"highlight";var wordNode=node.splitText(match.index);wordNode.splitText(match[0].length);var wordClone=wordNode.cloneNode(!0);return highlight.appendChild(wordClone),wordNode.parentNode.replaceChild(highlight,wordNode),1}}else if(1===node.nodeType&&node.childNodes&&!/(script|style)/i.test(node.tagName)&&(node.tagName!==nodeName.toUpperCase()||node.className!==className))for(var i=0;i

'+title+'

×'),$boxContent=$('
');$box.empty(),$modal.removeClass("with-footer with-footer-big with-tabs");var $div=$('
'),$icon=$('warning'),$title=$('

'+window.lang.reservationCancelErrorMessage+"

"),$description=$('

'+window.lang.App_genericServerError+"

"),$html=$div.append($icon).append($title).append($description);$boxContent.find(".box-content").append($html),$box.append($boxTitle).append($boxContent),$box.boxLoader("hide",!1),$box.attr("loading",!1)}},success:function(jqXHR){var cacheUrl=new URI(this.url);cacheUrl.setQueryAsArray([]),cacheUrl=cacheUrl.toString();var html="string"==typeof jqXHR?jqXHR:jqXHR.responseText;if(loadingBoxesCache[cacheUrl]){var $box=$("#"+loadingBoxesCache[cacheUrl]);loadingBoxesCache[cacheUrl]=null;try{var json=$.parseJSON(html);if(json&&!1===json.success&&!0===json.shouldLogin){if(1==$("#loginModal").length){if(1===$("#detailBox").length){var dealUrl=window.location.href.split("?")[0],loadModal=json.redirect.split("modal/")[1].split("/")[0];json.redirect=dealUrl+"?modal="+loadModal}showLogin(event,json.redirect)}else window.location.reload(!0);return}}catch(e){}$box.empty(),$box.html(html);var $html=$(html),modalName=$html.attr("data-modal"),boxFooter=$html.attr("data-footer"),boxTabs=$html.attr("data-tabs"),boxRedirect=$html.attr("data-redirect"),boxLoadModal=$html.attr("data-load-modal"),boxCallFunction=$html.attr("data-function");if($modal.attr("data-modal",modalName),$modal.removeClass("with-footer").removeClass("with-footer-big"),"false"===boxFooter||$box.hasClass("with-footer")&&$box.hasClass("with-footer-big")||(boxFooter="big"===boxFooter?"with-footer-big":"with-footer",$modal.addClass(boxFooter)),"false"===$html.attr("data-keyboard")&&$_b.off("keyup.sdBox"),"false"===$html.attr("data-backdrop")&&($modal.off("click.sdBox"),$modal.data("backdrop",!1)),"false"===$html.attr("data-closable")&&$modal.find(".close-box").remove(),"true"===boxTabs?$modal.addClass("with-tabs"):$modal.removeClass("with-tabs"),0<$html.find("#multiDealCartTabs").length&&($modal.find('[data-toggle="tooltip"]').tooltip(),multiDealTabs($modal.find("#multiDealCartTabs"))),0<$html.find("div.carousel").length&&createCarousel($("div.carousel",$box)),void 0!==$html.attr("data-fade-in-title-on-scroll")){var $boxTitle=$modal.find(".box-title").addClass("fade-out"),$fadeInAfter=$("."+$html.attr("data-fade-in-title-on-scroll"));$modal.find(".box-modal-scroll").addClass("full-height").add($_w).off("scroll.fadeInTitle").on("scroll.fadeInTitle",function(){$boxTitle.toggleClass("fade-out",$(this).scrollTop()=$scrollParent.height()/2,maxHeight=positionTop?top-36:$scrollParent.height()+36-(top+67+8);$(this).toggleClass("position-top",positionTop),!0!==$(this).data("ignoreHeight")&&$(this).find(".select-dropdown .dropdown-container").css("max-height",320'+$(this).find(".placeholder").text()+"").insertBefore($phoneRow.find(".phone-row-number .input input"))}),$_d.off("keyup.sdSelect keydown.sdSelect").on("keyup.sdSelect keydown.sdSelect",onTyping),$_w.off("scroll.sdSelect").on("scroll.sdSelect",onWindowScroll),$('[class*="mv-"]').find(":input").not("select, .searchbox--input").off("focus.focusInputs").on("focus.focusInputs",closeOthers)}},rebuildSelects=function($select){if($select.addClass("sd-custom-select"),!$select.data("skip-rebuild")){$select.removeClass("no-script");var changeCountryCodeCallback=function(){var val=$(this).val();$(this).parent().next("label").find('li[data-value="'+val+'"]').click(),$(this).prev(".placeholder").text(val);var $phoneRow=$(this).parents(".phone-row");0<$phoneRow.length&&$phoneRow.find(".phone-row-number .country-placeholder").text(val)};$select.find("select#countryCode").off("change").on("change",changeCountryCodeCallback),$select.filter(".country-codes").find("select").off("change").on("change",changeCountryCodeCallback)}},searchInSelect=function($select){var $searchbox=$select.find("input"),$container=$select.find(".dropdown-container"),value=$searchbox.val();if(0');if("init"===action)return $(this).not(".no-rebuild, .checkbox-box").sdCheckbox();this.each(function(){var $c=$check.clone(),id=this.id,makeSelector=function(find){return"label[for=%s] %s".sprintf(id,find=void 0===find?"":find)};$(makeSelector("input[type=checkbox]")).is(":checked")&&$c.addClass("active"),0===$(makeSelector(".sd-checkbox")).length&&($(makeSelector()).prepend($c),$(makeSelector("input[type=checkbox]")).addClass("hidden")),$_d.off("change.sdCheckBox",makeSelector("input[type=checkbox]")).off("click.sdCheckBox",makeSelector()).on("change.sdCheckBox",makeSelector("input[type=checkbox]"),function(){$(this).parent().find(".sd-checkbox").toggleClass("active")}).on("click.sdCheckBox",makeSelector(),function(event){preventDefault(event);var $el=$(this);if(!$el.find(".sd-checkbox").hasClass("disabled")){var isChecked=$el.find("input[type=checkbox]").is(":checked");$el.find("input[type=checkbox]").prop("checked",!isChecked),$_d.find("label[for=%s] %s".sprintf(id,"input[type=checkbox]")).trigger("change")}})})},$.fn.mvCheckbox=function(){$(this).off("change.mvCheckBox").on("change.mvCheckBox",function(){var isChecked=$(this).is(":checked");$(this).prev().toggleClass("active",isChecked)}).off("focus.mvCheckBox").on("focus.mvCheckBox",function(){$(this).parents("label.mv-checkbox").hasClass("disabled")&&$(this).blur(),$(this).prev().addClass("focus")}).off("blur.mvCheckBox").on("blur.mvCheckBox",function(){$(this).prev().removeClass("focus")}).off("keyup.mvCheckBox").on("keyup.mvCheckBox",function(e){if(32===e.which){var isChecked=$(this).is(":checked");$(this).prop("checked",!isChecked),$(this).prev().toggleClass("active",!isChecked)}}),$(this).parents("label.mv-checkbox").off("click.mvCheckBox").on("click.mvCheckBox",function(e){if($(this).hasClass("disabled"))return preventDefault(e),!1;0');$("input[type=radio]").each(function(){var $el=$(this),$radio=$sdRadio.clone(),cssClass=($el.attr("name")?$el.attr("name").replace(/\[|\]/g,""):"")+"Radio";0<$el.parent().find(".sd-radio").length||$el.hasClass("no-sd-style")||0<$el.parent().find(".sd-radio").length||($radio.addClass(cssClass),$el.is(":checked")&&$radio.addClass("active"),$el.css({display:"none"}).after($radio))}),$(".sd-radio").parent().on("click",function(){var $label=$(this),$sdRadio=$label.find(".sd-radio"),cssClass=$sdRadio.attr("class").split(" "),$radio=$label.find('input[type="radio"]');cssClass=cssClass[1],$("."+cssClass).removeClass("active"),$radio.prop("checked",!0),$sdRadio.addClass("active"),$radio.trigger("change")})},function($){var $modal,unique,$body=$("body"),$BSFrame=$(''),$BSDialog=$('
'),$boxFrame=$('
'),$boxTitle=$('
'),$boxContent=$('
'),$boxFooter=$(''),$boxClose=$('×');$.sdBoxRemote=function(url,settings,overlay){return settings=$.extend({url:url,overlay:overlay},settings),($modal=$.sdBox(settings).sdBox("show",settings)).find(".box-content").html(''+lang.oneMoment+'
'),$modal.find(".box").attr("data-remote",url).remoteBox(settings),$modal},$.sdConfirm=function(params){var $modal,generateButtons=function(){var $wrap=$('
');if(!1===settings.button_confirm&&!1===settings.button_decline){var buttons=[];return void 0===settings.button_custom[0]?(buttons[0]={text:!1,return:!1},buttons[1]=settings.button_custom):buttons=settings.button_custom,$.each(buttons,function(key,button){var $customButton=!1!==button.text?$('").text(button.text):"";void 0!==button.flag&&""!==button.flag&&$customButton.prepend($(''));var $customHtml=$('
').clone().append($customButton);$wrap.append($customHtml)}),$wrap}if(!1!==settings.button_decline){var $cancel=$('').text(settings.button_decline),$cancelHtml=(!settings.button_confirm||settings.button_confirm.length<=18?$('
'):$('
')).clone().append($cancel);$wrap.append($cancelHtml)}if(!1!==settings.button_confirm){var $confirm=$('').text(settings.button_confirm),$confirmHtml=(!settings.button_confirm||settings.button_confirm.length<=18?$('
'):$('
')).clone().append($confirm);$wrap.append($confirmHtml)}return $wrap},confirmCallback=function(event,manual){preventDefault(event);var $el=$(this),action=manual||$el.attr("data-return"),userAction=!1;return"n"!==action&&(userAction="y"===action||action),"function"==typeof settings.callback&&(settings.callback(event,userAction,$modal),!0!==settings.keepCallback&&(settings.callback=null)),!1},settings={title:lang.Confirm,content:withBoxContent(params.message),button_confirm:lang.Yes,button_decline:lang.Cancel,callback:function(){console.error("Please set a confirm callback.")}};if($.extend(settings,params),settings.button_confirm="false"!==settings.button_confirm&&settings.button_confirm,settings.button_decline="false"!==settings.button_decline&&settings.button_decline,$modal=function(settings){return settings.type="confirm",settings.footer=generateButtons(),($modal=$.sdBox(settings)).find(".action-button").on("click.sdBox",confirmCallback),$modal.find(".close-box").off("click.sdBox").on("click.sdBox",function(event){confirmCallback(event,!1)}),$modal}(settings),$_b.hasClass("modal-open")){var $alpha=$('
');0<$('[data-template="modal/lmd-deal-details"], [data-template="modal/hotel-deal-details"], [data-template="modal/restaurant-deal-details"], [data-template="modal/hotel-deal-details"], [data-modal="collaboration"]').length&&$alpha.addClass("alpha-xl"),$modal.prepend($alpha)}return $modal.find(".close-box").remove(),$modal},$.sdBox=function(params){var $frame=$BSFrame.clone(),$dialog=$BSDialog.clone(),$box=$boxFrame.clone(),$title=$boxTitle.clone(),$content=$boxContent.clone(),$footer=$boxFooter.clone(),$close=$boxClose.clone(),paramsUnique=params.unique?params.unique:"";unique=function(text){if(0===text.length){possible="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";for(var i=0;i<5;i++)text+=possible.charAt(Math.floor(Math.random()*possible.length))}return"sdBox-"+text}(paramsUnique);var buildBox=function(){return $box.append((settings.title&&$title.html("

%s

".sprintf(settings.title)),settings.close&&$title.append($close),$title)).append(settings.content?$content.html(settings.content):$content).append(settings.footer?($frame.addClass("with-footer"),"boolean"==typeof settings.footer?$footer:$footer.html(settings.footer)):"").attr("id",settings.boxId)},settings={boxId:"BOX-"+unique,title:" ",close:!0,content:withBoxContent(""),footer:!1,type:""};return $.extend(settings,params),function(settings){return 0<$(settings.boxId).length?$modal=$("#"+unique):($dialog.html(buildBox()),$frame.attr("id",unique).addClass("custom-box").addClass(null!=settings.customClass?settings.customClass:"").addClass(0'),settings={dismissable:!0,color:"blue",content:""};$.extend(settings,params),html=html.sprintf(settings.color);var $alert=$(html);return $alert.html(settings.content),settings.dismissable&&$alert.prepend($close),$alert}}(jQuery),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(d){var c="ellipsis",b='',e={lines:"auto",ellipClass:"ellip",responsive:!1};function a(h,q){var k,p,i,f,j,n,s,m=this,w=0,g=[];function t(){var x;"number"==typeof m.opts.lines&&m.opts.lines<2?m.$el.addClass(m.opts.ellipLineClass):(n=m.$cont.height(),"auto"===m.opts.lines&&m.$el.prop("scrollHeight")<=n||k&&(s=d.trim(m.text).split(/\s+/),m.$el.html(b+s.join(" "+b)+""),m.$el.find("span").each(k),null!=p&&(s[x=p]=''+s[x],s.push(""),m.$el.html(s.join(" ")))))}if(m.$cont=d(h),m.opts=d.extend({},e,q),"auto"===m.opts.lines){k=function(y,A){var x=d(A),z=x.position().top;if(j=j||x.height(),z===f?g[w].push(x):(f=z,g[w+=1]=[x]),n'),m.$el.text(m.text),m.$cont.empty().append(m.$el),t()}d.fn[c]=function(f){return this.each(function(){try{d(this).data(c,new a(this,f))}catch(g){window.console&&console.error(c+": "+g)}})}}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof module&&module.exports?require("jquery"):jQuery)}(function(a){function c(b,c){var d=this,f=a(d);if(d.value==f.attr("placeholder")&&f.hasClass(m.customClass))if(f.data("placeholder-password")){if(f=f.hide().nextAll('input[type="password"]:first').show().attr("id",f.removeAttr("id").data("placeholder-id")),!0===b)return f[0].value=c;f.focus()}else d.value="",f.removeClass(m.customClass),d==e()&&d.select()}function d(){var d,e=this,f=a(e),g=this.id;if(""===e.value){if("password"===e.type){if(!f.data("placeholder-textinput")){try{d=f.clone().prop({type:"text"})}catch(h){d=a("").attr(a.extend(function(b){var c={},d=/^jQuery\d+$/;return a.each(b.attributes,function(a,b){b.specified&&!d.test(b.name)&&(c[b.name]=b.value)}),c}(this),{type:"text"}))}d.removeAttr("name").data({"placeholder-password":f,"placeholder-id":g}).bind("focus.placeholder",c),f.data({"placeholder-textinput":d,"placeholder-id":g}).before(d)}f=f.removeAttr("id").hide().prevAll('input[type="text"]:first').attr("id",g).show()}f.addClass(m.customClass),f[0].value=f.attr("placeholder")}else f.removeClass(m.customClass)}function e(){try{return document.activeElement}catch(a){}}var f,g,h="[object OperaMini]"==Object.prototype.toString.call(window.operamini),i="placeholder"in document.createElement("input")&&!h,j="placeholder"in document.createElement("textarea")&&!h,k=a.valHooks,l=a.propHooks;if(i&&j)(g=a.fn.placeholder=function(){return this}).input=g.textarea=!0;else{var m={};(g=a.fn.placeholder=function(b){m=a.extend({},{customClass:"placeholder"},b);return this.filter((i?"textarea":":input")+"[placeholder]").not("."+m.customClass).bind({"focus.placeholder":c,"blur.placeholder":d}).data("placeholder-enabled",!0).trigger("blur.placeholder"),this}).input=i,g.textarea=j,f={get:function(b){var c=a(b),d=c.data("placeholder-password");return d?d[0].value:c.data("placeholder-enabled")&&c.hasClass(m.customClass)?"":b.value},set:function(b,f){var g=a(b),h=g.data("placeholder-password");return h?h[0].value=f:g.data("placeholder-enabled")?(""===f?(b.value=f,b!=e()&&d.call(b)):g.hasClass(m.customClass)&&c.call(b,!0,f)||(b.value=f),g):b.value=f}},i||(k.input=f,l.value=f),j||(k.textarea=f,l.value=f),a(function(){a(document).delegate("form","submit.placeholder",function(){var b=a("."+m.customClass,this).each(c);setTimeout(function(){b.each(d)},10)})}),a(window).bind("beforeunload.placeholder",function(){a("."+m.customClass).each(function(){this.value=""})})}}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b,c=navigator.userAgent,d=/iphone/i.test(c),e=/chrome/i.test(c),f=/android/i.test(c);a.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},autoclear:!0,dataName:"rawMaskFn",placeholder:"_"},a.fn.extend({caret:function(a,b){var c;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof a?(b="number"==typeof b?b:a,this.each(function(){this.setSelectionRange?this.setSelectionRange(a,b):this.createTextRange&&((c=this.createTextRange()).collapse(!0),c.moveEnd("character",b),c.moveStart("character",a),c.select())})):(this[0].setSelectionRange?(a=this[0].selectionStart,b=this[0].selectionEnd):document.selection&&document.selection.createRange&&(c=document.selection.createRange(),a=0-c.duplicate().moveStart("character",-1e5),b=a+c.text.length),{begin:a,end:b})},unmask:function(){return this.trigger("unmask")},mask:function(c,g){var i,j,k,l,m,n,o;if(!c&&0e.length){y(b+1,n);break}}else C[b]===e.charAt(d)&&d++,ba.length){for(A(!0);0');ripple_effect_wrap.css({width:the_dom_width,height:the_dom_height,position:"absolute",top:the_dom_offset.top,left:the_dom_offset.left,"z-index":1e4,overflow:"hidden","background-clip":"padding-box","-webkit-border-radius":radius,"border-radius":radius});var ripple_effect_wrap_class=the_dom.attr("data-ripple-wrap-class");void 0!==ripple_effect_wrap_class&&ripple_effect_wrap.addClass(ripple_effect_wrap_class),ripple_effect_wrap.appendTo("body");var click_x_ripple=click_x-the_dom_offset.left,click_y_ripple=click_y-the_dom_offset.top,ripple=$('');ripple.css({width:1e3,height:1e3,background:color,position:"absolute",top:click_y_ripple-500,left:click_x_ripple-500,content:"","background-clip":"padding-box","-webkit-border-radius":"50%","border-radius":"50%","-webkit-animation-name":"ripple-animation","animation-name":"ripple-animation","-webkit-animation-duration":"2s","animation-duration":"2s","-webkit-animation-fill-mode":"both","animation-fill-mode":"both"}),$(".ripple-effect-wrap:last").append(ripple),setTimeout(function(){ripple_effect_wrap.fadeOut(function(){$(this).remove()})},500);var href=the_dom.attr("href"),target=the_dom.attr("target");target||(target="_self"),void 0!==href&&"#"!=href.substring(0,1)&&setTimeout(function(){window.open(href,target)},200),(the_dom.is("input")||the_dom.is("button"))&&setTimeout(function(){the_dom.removeClass("ripple-effect"),the_dom.trigger("click"),the_dom.addClass("ripple-effect")},200)})}),function(e,t){"use strict";var n=e.History=e.History||{},r=e.jQuery;if(void 0!==n.Adapter)throw new Error("History.js Adapter has already been loaded...");n.Adapter={bind:function(e,t,n){r(e).bind(t,n)},trigger:function(e,t,n){r(e).trigger(t,n)},extractEventData:function(e,n,r){return n&&n.originalEvent&&n.originalEvent[e]||r&&r[e]||void 0},onDomLoad:function(e){r(e)}},void 0!==n.init&&n.init()}(window),function(e,t){"use strict";var n=e.console||t,r=e.document,i=e.navigator,s=!1,o=e.setTimeout,u=e.clearTimeout,a=e.setInterval,f=e.clearInterval,l=e.JSON,c=e.alert,h=e.History=e.History||{},p=e.history;try{(s=e.sessionStorage).setItem("TEST","1"),s.removeItem("TEST")}catch(d){s=!1}if(l.stringify=l.stringify||l.encode,l.parse=l.parse||l.decode,void 0!==h.init)throw new Error("History.js Core has already been loaded...");h.init=function(e){return void 0!==h.Adapter&&(void 0!==h.initCore&&h.initCore(),void 0!==h.initHtml4&&h.initHtml4(),!0)},h.initCore=function(d){if(void 0!==h.initCore.initialized)return!1;if(h.initCore.initialized=!0,h.options=h.options||{},h.options.hashChangeInterval=h.options.hashChangeInterval||100,h.options.safariPollInterval=h.options.safariPollInterval||500,h.options.doubleCheckInterval=h.options.doubleCheckInterval||500,h.options.disableSuid=h.options.disableSuid||!1,h.options.storeInterval=h.options.storeInterval||1e3,h.options.busyDelay=h.options.busyDelay||250,h.options.debug=h.options.debug||!1,h.options.initialTitle=h.options.initialTitle||r.title,h.options.html4Mode=h.options.html4Mode||!1,h.options.delayInit=h.options.delayInit||!1,h.intervalList=[],h.clearAllIntervals=function(){var e,t=h.intervalList;if(null!=t){for(e=0;e",">").replace(" & "," & ")}catch(i){}return r.title=t,h},h.queues=[],h.busy=function(e){if(void 0!==e?h.busy.flag=e:void 0===h.busy.flag&&(h.busy.flag=!1),!h.busy.flag){u(h.busy.timeout);var t=function(){var e,n,r;if(!h.busy.flag)for(e=h.queues.length-1;0<=e;--e)0!==(n=h.queues[e]).length&&(r=n.shift(),h.fireQueueItem(r),h.busy.timeout=o(t,h.options.busyDelay))};h.busy.timeout=o(t,h.options.busyDelay)}return h.busy.flag},h.busy.flag=!1,h.fireQueueItem=function(e){return e.callback.apply(e.scope||h,e.args||[])},h.pushQueue=function(e){return h.queues[e.queue||0]=h.queues[e.queue||0]||[],h.queues[e.queue||0].push(e),h},h.queue=function(e,t){return"function"==typeof e&&(e={callback:e}),void 0!==t&&(e.queue=t),h.busy()?h.pushQueue(e):h.fireQueueItem(e),h},h.clearQueue=function(){return h.busy.flag=!1,h.queues=[],h},h.stateChanged=!1,h.doubleChecker=!1,h.doubleCheckComplete=function(){return h.stateChanged=!0,h.doubleCheckClear(),h},h.doubleCheckClear=function(){return h.doubleChecker&&(u(h.doubleChecker),h.doubleChecker=!1),h},h.doubleCheck=function(e){return h.stateChanged=!1,h.doubleCheckClear(),h.bugs.ieDoubleCheck&&(h.doubleChecker=o(function(){return h.doubleCheckClear(),h.stateChanged||e(),!0},h.options.doubleCheckInterval)),h},h.safariStatePoll=function(){var t=h.extractState(h.getLocationHref());if(!h.isLastSavedState(t))return t||h.createStateObject(),h.Adapter.trigger(e,"popstate"),h},h.back=function(e){return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.back,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.back(!1)}),p.go(-1),!0)},h.forward=function(e){return!1!==e&&h.busy()?(h.pushQueue({scope:h,callback:h.forward,args:arguments,queue:e}),!1):(h.busy(!0),h.doubleCheck(function(){h.forward(!1)}),p.go(1),!0)},h.go=function(e,t){var n;if(0u;u++)o(u,i[u])})},r.resolve=function(t){return t&&"object"==typeof t&&t.constructor===r?t:new r(function(e){e(t)})},r.reject=function(t){return new r(function(e,n){n(t)})},r.race=function(t){return new r(function(n,o){if(!e(t))return o(new TypeError("Promise.race accepts an array"));for(var i=0,a=t.length;io[0]&&i[1] assuming success'),[2];if(_(document.body,t))return u("copyUsingTempSelection worked"),[2];if(function(t){var e=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important"),e.textContent="temporary element",document.body.appendChild(e);var n=_(e,t);return document.body.removeChild(e),n}(t))return u("copyUsingTempElem worked"),[2];if(void 0!==(e=t.getData(s))&&function(t){u("copyTextUsingDOM");var e=document.createElement("div");e.setAttribute("style","-webkit-user-select: text !important");var n=e;e.attachShadow&&(u("Using shadow DOM."),n=e.attachShadow({mode:"open"}));var r=document.createElement("span");r.innerText=t,n.appendChild(r),document.body.appendChild(e),T(r);var o=document.execCommand("copy");return E(),document.body.removeChild(e),o}(e))return u("copyTextUsingDOM worked"),[2];throw new Error("Copy command failed.")})})}function h(t){return e(this,void 0,void 0,function(){return n(this,function(e){return navigator.clipboard&&navigator.clipboard.writeText?(u("Using `navigator.clipboard.writeText()`."),[2,navigator.clipboard.writeText(t)]):[2,p(D(t))]})})}function v(){return e(this,void 0,void 0,function(){var t;return n(this,function(e){switch(e.label){case 0:return t=D,[4,y()];case 1:return[2,t.apply(void 0,[e.sent()])]}})})}function y(){return e(this,void 0,void 0,function(){return n(this,function(t){if(navigator.clipboard&&navigator.clipboard.readText)return u("Using `navigator.clipboard.readText()`."),[2,navigator.clipboard.readText()];if(j())return u("Reading text using IE strategy."),[2,function(){return e(this,void 0,void 0,function(){var t;return n(this,function(e){if(""===(t=window.clipboardData.getData("Text")))throw new Error("Empty clipboard or could not read plain text from clipboard");return[2,t]})})}()];throw new Error("Read is not supported in your browser.")})})}var m=!1;function w(){m||(c&&f('The deprecated default object of `clipboard-polyfill` was called. Please switch to `import * as clipboard from "clipboard-polyfill"` and see https://github.com/lgarron/clipboard-polyfill/issues/101 for more info.'),m=!0)}var b={DT:a,setDebugLog:function(t){return w(),l(t)},suppressWarnings:function(){return w(),d()},write:function(t){return e(this,void 0,void 0,function(){return n(this,function(e){return w(),[2,p(t)]})})},writeText:function(t){return e(this,void 0,void 0,function(){return n(this,function(e){return w(),[2,h(t)]})})},read:function(){return e(this,void 0,void 0,function(){return n(this,function(t){return w(),[2,v()]})})},readText:function(){return e(this,void 0,void 0,function(){return n(this,function(t){return w(),[2,y()]})})}},g=function(){this.success=!1};function x(t){var e=new g,n=function(t,e,n){u("listener called"),t.success=!0,e.forEach(function(e,r){var o=n.clipboardData;o.setData(r,e),r===s&&o.getData(r)!==e&&(u("setting text/plain failed"),t.success=!1)}),n.preventDefault()}.bind(this,e,t);document.addEventListener("copy",n);try{document.execCommand("copy")}finally{document.removeEventListener("copy",n)}return e.success}function _(t,e){T(t);var n=x(e);return E(),n}function T(t){var e=document.getSelection();if(e){var n=document.createRange();n.selectNodeContents(t),e.removeAllRanges(),e.addRange(n)}}function E(){var t=document.getSelection();t&&t.removeAllRanges()}function D(t){var e=new a;return e.setData(s,t),e}function j(){return"undefined"==typeof ClipboardEvent&&void 0!==window.clipboardData&&void 0!==window.clipboardData.setData}t.DT=a,t.default=b,t.read=v,t.readText=y,t.setDebugLog=l,t.suppressWarnings=d,t.write=p,t.writeText=h,Object.defineProperty(t,"__esModule",{value:!0})}),function(e,t){if("function"==typeof define&&define.amd)define(["module","exports"],t);else if("undefined"!=typeof exports)t(module,exports);else{var n={exports:{}};t(n,n.exports),e.autosize=n.exports}}(this,function(e,t){"use strict";var n,o,p="function"==typeof Map?new Map:(n=[],o=[],{has:function(e){return-1>>0;if("function"!=typeof fun)throw new TypeError;for(var res=new Array(len),thisArg=2<=arguments.length?arguments[1]:void 0,i=0;i'+$htmlAlert.find('button[data-return="messenger"]').text()+""),$htmlAlert.find('button[data-return="whatsapp"]').replaceWith(''+$htmlAlert.find('button[data-return="whatsapp"]').text()+"")),$htmlAlert.css("display","table")}},getShownBottomElements=function(){var mobileButtonClasses={".review-tooltip.show.open .review-tooltip-content":0,".address--add--button":115,".phone--add--button":115,"#cartModal.modal-show":27,".bottom-drawer-inside.active":0,".bottom-drawer.open":0,".share-box.open":0,"#giftCardModal .expire:not(.hidden)":146,".fixed-info":0,"#landing-mobile .landing-footer:not(.hidden)":83,".city-select":27,".desktop.open-city .super-dropdown.active":0,".info-actions.active":0,".mobile-footer:not(.push-out)":83,".cart-button":0,".overview-information-box":150,".box-footer-big":83,".lmd-book-now":0,".modal-show .box-footer:not(.push-out)":0,".instructions--add-button":115,".mobile-submit-btn":0,".btn.btn-buy":0,".navbar.navbar-fixed-bottom":0,"#loginTab.box-tabs-content.active .box-footer":27,"#registerTab.box-tabs-content.active .box-footer":27};for(var mobileButtonClass in mobileButtonClasses){var adjustBottom=mobileButtonClasses[mobileButtonClass],$elements=$(mobileButtonClass);if(0<$elements.length)return{element:$($elements[$elements.length-1]),adjust_bottom:adjustBottom}}return null}};if(void 0!==window.ts){var $whatsappBox=new whatsappBoxClass;$whatsappBox.init()}var scrollTimer,$_d=$(document),$_w=$(window),$_b=$body=$("body"),page=$("html,body"),$mobileHeaderCity=$(".mobile-header nav.navbar h3"),animateMedium=300;function boolval(val){return!0===val||"true"===val||1===val||"1"===val}function boolOrValue(val){return!!boolval(val)||!1!==val&&"false"!==val&&val}function isEmpty(val){try{return null==val||""===val||val.hasOwnProperty("length")&&0===val.length}catch(err){}return!0}function inputFocusState(){$(document).on("focus",".form-control, .sd-select",function(){$(this).parent().find(".input-group-addon").addClass("active")}).on("blur",".form-control, .sd-select",function(){$(this).parent().find(".input-group-addon").removeClass("active")})}function breakOutOfiFrame(){var isLanding=-1.ellip)");0<$ellipseMe.length&&$ellipseMe.ellipsis({lines:2})}function closePopup(event,fbClass,callback){$.sdBoxClose(event),$body.removeClass("open"),$whatsappBox.init(),callback&&callback()}function closeModalToMenu(event){!0!==$(event.currentTarget).parents(".box-modal").hasClass("box-overlay")&&(preventDefault(event),$('.mobile-footer a[data-name="menu"]').hasClass("active")?($(".mobile-footer").removeClass("push-out"),setTimeout(function(){loadModal("account")},100)):closePopup(event))}function removeFocus(){$(this).blur()}function scrollTo(id,time,offset){time=time||300,offset=offset||70;var scrollTo=null;return 0<$(id).length&&(scrollTo=Math.round($(id).offset().top-offset)),null!==scrollTo&&page.scrollTop()!==scrollTo&&page.animate({scrollTop:scrollTo},time)}function navTo(link,newWindow){newWindow=void 0!==newWindow&&newWindow,link&&0'),closeFunction=function(){$html.removeClass("animate"),setTimeout(function(){$html.remove()},300)},$closeButton=$('').on("click",closeFunction),$titleBar=$('
'+$("header.navbar-fixed-top h3").text()+"
");$titleBar.append($closeButton),$html.append($titleBar);var $photoScroll=$('
');$(target).parents(".sd-carousel").find(".item .image").each(function(){$photoScroll.append($(this).html())}),$html.append($photoScroll);var $closeButtonFloating=$('').on("click",closeFunction);$html.append($closeButtonFloating),$_b.append($html),setTimeout(function(){$html.addClass("animate")},1)}function shareLink(event,anchor){preventDefault(event);var $anchor=$(anchor),link=$anchor.attr("href").replace("http:","https:").replace("local","www"),type=$anchor.attr("data-type");"mail"==type?$.sdBoxRemote("/modal/share/?link="+link):window.open(link,"_blank",{facebook:"width=558,height=578",twitter:"width=558,height=444",linkedin:"width=640,height=550"}[type])}function withBoxContent(text,classes){return'
%s
'.sprintf(classes=classes&&void 0!==classes?classes:"",text)}function isIE(){var versions=[8,9,10,11];for(var k in versions)if($body.hasClass("ie"+versions[k]))return versions[k]}function getParameterByName(queryParam){var parameterName,i,URLVariables=window.location.search.substring(1).split("&");for(i=0;ielementHeight)return 0;visibleHeight-=Math.abs(offsetTop)}var bottomPos=offsetTop+elementHeight;if(viewport$element.height())return 0;visibleHeight-=diff}return visibleHeight/elementHeight*100}function hideScrollTabsOnTablet(){isTablet()&&$(window).scroll(function(){$(".scroll-tabs").removeClass("stickyTabs").removeClass("stickyTabsAbsolute").addClass("scroll-tabs-hide")})}$.fn.sdAlert=function(message,type){var $alert=$(this);if(!1===$alert.hasClass("box-alert"))return $("
");switch(type){case"green":case"blue":case"red":type="box-alert-"+type;break;default:type="box-alert-green"}return $alert.html(message||"").removeClass("box-alert-green box-alert-blue box-alert-red").addClass(type),message?$alert.show():$alert.hide()};var filterMenuCityDebounce=null;function filterMenuCity(){var $search=$("#search-city");$search.once("blur.searchCity",function(){clearTimeout(filterMenuCityDebounce),filterMenuCityDebounce=setTimeout(function(){var val=$search.val().trim();0'),getOpt=function(key,item){var result="";return k=key+item,"step"===key&&!0===settings[k]&&(result="completed"),"bar"===key&&(result=settings[k]),result},editBar=function(){var $this={step1:$wrap.find(".step1"),step2:$wrap.find(".step2"),step3:$wrap.find(".step3"),bar1:$wrap.find(".bar1"),bar2:$wrap.find(".bar2")};-1'+i+"");if($container.append($step),i<3){var $bar=$('
'),$barCompleted=$('
');$bar.append($barCompleted),$container.append($bar)}}$wrap.html($container),$wrap.attr("data-progressbar","true")}(),el&&val&&editBar()):editBar(),$wrap}}(jQuery),function($){$.fn.boxLoader=function(type,disableElems){disableElems=void 0===disableElems||disableElems;var $element=$(this),$title=$element.find(".box-title, .table-box-title"),$form=$element.find("form");return type&&"show"!==type?"hide"===type&&($title.find(".close-box").show(),$title.find(".sd-spinner").remove(),$("a, button",$element).prop("disabled",!1).removeAttr("disabled").removeClass("disabled"),$element.find("input").each(function(){var $input=$(this),readOnly=$input.data("readonly");$input.prop("readonly",readOnly).removeClass("disabled").parent().find(".input-group-addon, .sd-checkbox").removeClass("disabled").parent("label").removeClass("disabled"),$input.closest("label").removeClass("disabled"),readOnly||$input.removeAttr("readonly")}),$element.find("select, textarea").each(function(){var $inputGroup=$(this).removeAttr("readonly").removeClass("disabled").closest(".input-group");$inputGroup.find(".input-group-addon, .sd-select, .mv-select, .mv-textarea").removeClass("disabled"),$inputGroup.parents("label").removeClass("disabled")}),$element.find(".loader-container").hide()):(disableElems&&0<$form.length&&($("a, button",$element).prop("disabled",!0).attr("disabled","disabled").addClass("disabled"),$element.find("input").each(function(){var $input=$(this);$input.data("readonly",$input.prop("readonly")).prop("readonly",!0).attr("readonly","readonly").addClass("disabled").parent().find(".input-group-addon, .sd-checkbox").addClass("disabled").parents("label").addClass("disabled"),$input.closest("label").addClass("disabled")}),$element.find("select, textarea").each(function(){var $inputGroup=$(this).attr("readonly","readonly").addClass("disabled").closest(".input-group");$inputGroup.find(".input-group-addon, .sd-select, .mv-select, .mv-textarea").addClass("disabled"),$inputGroup.parents("label").addClass("disabled")})),$element.find(".loader-container").show()),$element},$.fn.btnLoader=function(type){$(this).each(function(){var height,width,$element=$(this);"true"!=$element.attr("data-init")&&"click"===type&&$element.on("click",function(){width=$(this).outerWidth(),height=$(this).outerHeight(),$(this).hasClass("btn-block")&&(width="100%"),$(this).css({width:width,height:height}).attr("data-inner",$(this).html()).attr("data-init","true").prop("disabled",!0).html($.sdBuildLoadingIndicator("span"))}),"hide"===type?$element.removeAttr("data-init").prop("disabled",!1).html($element.attr("data-inner")):type&&"show"!==type||(width=$element.outerWidth(),height=$element.outerHeight(),$element.hasClass("btn-block")&&(width="100%"),void 0===$element.attr("data-init")&&$element.css({width:width,height:height}).attr("data-inner",$element.html()).attr("data-init","true").prop("disabled",!0).html($.sdBuildLoadingIndicator("span").show()))})},$.resetMiniDealLoaders=function(){$(".deal-card.social-deal-loading").each(function(){$(this).miniDealLoader("hide")})},$.fn.miniDealLoader=function(type){var $element=$(this),$overlay=$('');$overlay.html($.sdBuildLoadingIndicator("div")),type&&"show"!==type||0!==$element.find(".social-deal-overlay").length?"hide"===type&&0<$element.find(".social-deal-overlay").length&&($element.removeClass("social-deal-loading").find(".social-deal-overlay").remove(),0<$("body").find(".deals-overview-overlay").length&&$(".deals-overview-overlay").remove()):$element.addClass("social-deal-loading").append($overlay)},$.sdBuildLoadingIndicator=function(type){var $indicator=$("<"+type+' class="sd-spinner" style="display: none;">");return function(){for(var i=1;i<=5;i++){var $rectangle=$("<"+type+' class="rect'+i+'">");$indicator.append($rectangle)}return $indicator}()}}(jQuery),function($){var countDown=function(element,options){var interval,endDate,$elem=$(element),obj=this,settings=$.extend({date:null,text:"{d} {h}:{i}:{s}",complete:"",double0:!0},options);this.init=function(){if(null!==settings.date){if("number"==typeof settings.date&&isFinite(settings.date)&&Math.floor(settings.date)===settings.date){var now=new Date;endDate=new Date(now.getTime()+1e3*settings.date)}else endDate=Date.parse(settings.date);interval=setInterval(print,200)}else console.error("Please set a correct date.")},this.calculate=function(){var totalSecsLeft=calcTotalSecsLeft(),calculate={seconds:totalSecsLeft%60,minutes:Math.floor(totalSecsLeft/60)%60,hours:Math.floor(totalSecsLeft/60/60)%24,hours48:Math.floor(totalSecsLeft/60/60)%48,days:Math.floor(totalSecsLeft/60/60/24)%7,weeks:Math.floor(totalSecsLeft/60/60/24/7)%52,months:Math.floor(totalSecsLeft/60/60/24/30.4368)%12,years:Math.floor(totalSecsLeft/60/60/24/365),daysToWeek:Math.floor(totalSecsLeft/60/60/24)%7,daysToMonth:Math.floor(totalSecsLeft/60/60/24%30.4368),weeksToMonth:Math.floor(totalSecsLeft/60/60/24/7)%4,totalSeconds:totalSecsLeft,totalMinutes:Math.floor(totalSecsLeft/60),totalHours:Math.floor(totalSecsLeft/60/60),totalDays:Math.floor(totalSecsLeft/60/60/24),totalWeeks:Math.floor(totalSecsLeft/60/60/24/7),totalMonths:Math.floor(totalSecsLeft/60/60/24/30.4368)};return calculate.totalSeconds<0?complete():calculate};var calcTotalSecsLeft=function(){var now=new Date;return Math.floor((endDate-now)/1e3)},print=function(){"function"==typeof settings.text&&(settings.text=settings.text(obj));var text=prepareText();$elem.html(text)},prepareText=function(){var times=obj.calculate();if(!1===times)return settings.complete;var countText=settings.text;if(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=countText.replace("{s}",makeDouble0(times.seconds))).replace("{i}",makeDouble0(times.minutes))).replace("{h}",makeDouble0(times.hours))).replace("{h48}",makeDouble0(times.hours48))).replace("{d}",times.days)).replace("{dtw}",times.daysToWeek)).replace("{dtm}",times.daysToMonth)).replace("{w}",times.weeks)).replace("{wtm}",times.weeksToMonth)).replace("{m}",times.months)).replace("{y}",times.years)).replace("{D}",times.totalDays)).replace("{H}",times.totalHours)).replace("{I}",times.totalMinutes)).replace("{S}",times.totalSeconds)).replace("{W}",times.totalWeeks)).replace("{M}",times.totalMonths)).replace("{Y}",times.years),window.lang){var dateTimes=window.lang.allTypesOfDatesAndTimes.split("|");return countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=(countText=countText.replace("{seconds}",1===times.seconds?dateTimes[12]:dateTimes[13])).replace("{minutes}",1===times.minutes?dateTimes[10]:dateTimes[11])).replace("{hours}",1===times.hours?dateTimes[8]:dateTimes[9])).replace("{days}",1===times.days?dateTimes[6]:dateTimes[7])).replace("{weeks}",1===times.weeks?dateTimes[4]:dateTimes[5])).replace("{months}",1===times.months?dateTimes[2]:dateTimes[3])).replace("{years}",1===times.years?dateTimes[0]:dateTimes[1])).replace("{SECONDS}",1===times.totalSeconds?dateTimes[12]:dateTimes[13])).replace("{MINUTES}",1===times.totalMinutes?dateTimes[10]:dateTimes[11])).replace("{HOURS}",1===times.totalHours?dateTimes[8]:dateTimes[9])).replace("{DAYS}",1===times.totalDays?dateTimes[6]:dateTimes[7])).replace("{WEEKS}",1===times.totalWeeks?dateTimes[4]:dateTimes[5])).replace("{MONTHS}",1===times.totalMonths?dateTimes[2]:dateTimes[3])).replace("{YEARS}",1===times.years?dateTimes[0]:dateTimes[1])}},complete=function(){return clearInterval(interval),"function"==typeof settings.complete&&(settings.complete=settings.complete($elem)),!1},makeDouble0=function(val){return val<10&&settings.double0?"0"+val:val}};$.fn.countDown=function(options){var $element=$(this);if($element.data("countDown"))return $element.data("countDown");var $countDown=new countDown($element,options);return $element.data("countDown",$countDown),$countDown.init(),$countDown}}(jQuery),function($){$.fn.sdDatePicker=function(options){var months,obj=this,$domDP=$(this),settings=$.extend({dayNames:window.lang.dayNames,dayNamesMin:window.lang.dayNamesMin,dayNamesShort:window.lang.dayNamesShort,monthNames:window.lang.monthNames,monthNamesShort:window.lang.monthNamesShort,numberOfMonths:(months=parseInt(obj.attr("data-num-of-months")),isNaN(months)&&(months=3),months),minDate:$.datepicker.parseDate("yy-mm-dd",this.attr("data-startdate")),maxDate:$.datepicker.parseDate("yy-mm-dd",this.attr("data-enddate")),showButtonPanel:!1,firstDay:1,dateFormat:"yy-mm-dd",beforeShowDay:function(){return[!0,"open"]}},options),$datePicker=this.datepicker(settings),date=$datePicker.datepicker("getDate");return $domDP.attr("data-selecteddate",date.getFullYear()+"-"+date.getMonth()+"-"+date.getDate()),$datePicker.datepicker("option","onSelect",function(dateText){$domDP.attr("data-selecteddate",dateText).trigger("change",[date])}),$domDP}}(jQuery),function($){$.fn.sdMainNavigation=function(){var cityListLockTimeout,cityListOpenTimeout,$nav=$(this),$dropdown=$(".super-dropdown"),activated=!1,cityListLocked=!1,ieOrOldEdge=$_b.hasAnyClass("edge-lt-20 ie11"),ie=$_b.hasClass("ie11"),$search=$nav.find("#search-city"),openMenu=function($menu,reloadLock){reloadLock=!1!==reloadLock,closeOthers(),$menu.addClass("open"),isTablet()||ie||setTimeout(function(){$search.focus()},100),reloadLock&&clearTimeout(cityListLockTimeout),cityListLockTimeout=setTimeout(function(){cityListLocked=!0},200)},closeMenu=function(reloadLock){(reloadLock=!1!==reloadLock)&&(clearTimeout(cityListLockTimeout),cityListLocked=!1),clearTimeout(cityListOpenTimeout),$nav.find(".dropdown").removeClass("open"),$("#menuDeals .pull-down-with-scroll").removeClass("keep-in-place sticky-to-bottom")},closeOthers=function(){$nav.find(".dropdown").each(function(){var $dd=$(this);!1===$dd.hasClass("super-dropdown")&&$dd.removeClass("open")})},onHover=function(event){if(cityListLocked||closeMenu(),clearTimeout(cityListOpenTimeout),"mouseover"===event.type){var $el=$(this),$menu=$el.parent();$el.hasClass("dropdown-menu")?openMenu($menu,!1):cityListOpenTimeout=setTimeout(function(){openMenu($menu)},100)}else"mouseleave"===event.type&&(activated=!1);!1===activated&&(toggleMenuDeals($("#navCityList").find(".menu-deal-city-list a.active li").data("slug")),activated=!0)};$_w.off("scroll.navbar").on("scroll.navbar",function(){if(sdViewport.isDesktop()){var currentScrollTop=$_w.scrollTop();if($dropdown.hasClass("active")){var floatingUntil=$("#navCityList").height()+174+46-$("#menuDeals").find(".menuDeals:visible .super-dropdown-left").height();currentScrollTop .dropdown-menu"),link=$(".link");$(".menu-city > a").on("click",function(){sdViewport.isMobile()&&($('.mobile-footer a[data-name="map"]').hasClass("active")||$('.mobile-footer a[data-name="hotel"]').hasClass("active")||$('.mobile-footer a[data-name="lmd"]').hasClass("active"))||navTo($(this).attr("href"))}),link.on("touchend",function(){sdViewport.isMobile()&&($('.mobile-footer a[data-name="map"]').hasClass("active")||$('.mobile-footer a[data-name="hotel"]').hasClass("active")||$('.mobile-footer a[data-name="lmd"]').hasClass("active"))||navTo($(this).attr("href"))}),dropDownContainer.click(!1);close.on("click",function(){closeMenu(),$dropdown.off("mouseleave.tabletCloseMenu").on("mouseleave.tabletCloseMenu",function(){closeMenu()})}),$dropdown.on("click",function(event){event.stopPropagation()})}(),$nav.removeClass("page-scrolled animated"),function(){if(isTablet(!0)){var body=$("body"),menu=$("#super-dropdown > .dropdown-menu");menu.css({height:"auto","min-height":"1px","max-height":$_w.height(),overflow:"scroll"}),$_w.scroll(function(){menu.css({"max-height":$_w.height()}),body.css("margin-top",$_w.scrollTop()<=0?"":"0")})}}(),$nav.find(".menu-deal-city-list li a").on("click",function(){$(".menu-deal-city-list li.active").removeClass("active"),$(this).parent().addClass("active")}),$nav.find(' [data-toggle="dropdown"]').on("click",function(event){var $el=$(this);if(!(1<$el.parent("#whitelabel-dropdown").length)){var link=$el.attr("data-link"),$dd=$el.parents(".dropdown");if($dd.off("hidden.bs.dropdown.ssKeeper"),event&&"click"==event.type&&$dd.hasClass("open")&&$dd.on("hidden.bs.dropdown.ssKeeper",function(){$dd.addClass("open").off("hidden.bs.dropdown.ssKeeper")}),preventDefault(event),isTablet())return!1;navTo(link)}}),$nav.find('[data-toggle="dropdown"], .dropdown-menu').on("mouseover",onHover).on("mouseleave",onHover),isTablet(!0)&&$nav.find(".menu-deal-city-list li a").on("mouseover",function(){$(".menu-deal-city-list li.active").removeClass("active"),$(this).parent().addClass("active"),navTo($(this).attr("href"))})}}(jQuery);var placeholder,$navCityList=$("#navCityList").find(".menu-deal-city-list");function toggleMenuDeals(slug){$("#menuDeals").find(".menuDeals").hide().filter('[data-city="'+slug+'"]').show(),page.trigger("scroll"),initImages()}function onFooterInputFocusIn(){var $el=$(this);$el.css("text-align","left"),placeholder=$el.attr("placeholder"),$el.attr("placeholder","")}function onFooterInputFocusOut(){var $el=$(this);""===$el.val()&&($el.css("text-align","center"),$el.attr("placeholder",placeholder))}function scrollInspirationBoxHalfOpen($inspirationsBox){$inspirationsBox.addClass("half-open");var $header=$inspirationsBox.find(".header"),$drawer=$inspirationsBox.find(".drawer"),startHeight=.7*innerHeight-94;$header.animate({height:startHeight},{duration:100,queue:!1}),$drawer.animate({marginTop:startHeight-8},{duration:100,queue:!1})}function pushOutTabs(push){push=!1!==push,$(".mobile-footer").toggleClass("push-out",push)}function addGTMPromotion(e){$.gtmEvent(null,"promotionEvent",$(this))}$navCityList.find("a").once("mouseout mouseover",function(e){clearTimeout(window.menuDealTimeout);var $elem=$(this);sdViewport.isDesktop()&&"mouseover"===e.type&&(window.menuDealTimeout=setTimeout(function(){toggleMenuDeals($elem.find(".menu-city").data("slug"))},300))}),$_w.on("scroll",function(){if(sdViewport.isMobile())if(150<=$(this).scrollTop()&&!$(".tablet-menu").hasClass("page-scrolled")){var scrollTop=$(this).scrollTop(),scroll=scrollTop<639?scrollTop-150:489;$(".pull-down-with-scroll").css("top",scroll)}else $(".pull-down-with-scroll").css("top",0)}),$("#navbar").sdMainNavigation(),$mobileHeaderCity.once("click.openCitySelect",function(e){e.preventDefault(),$("#super-dropdown").addClass("active"),$_b.addClass("open open-city"),focusAndOpenKeyboard(document.getElementById("search-city")),$whatsappBox.move(),setTimeout(function(){$_w.sdGps.getCurrentGps(function(position){var $closestLocation=$("#navCityList .closestLocations");$closestLocation.find(".super-dropdown-title").text($closestLocation.find(".super-dropdown-title").data("gps"));var $cityList=$('.super-dropdown-right .menu-deal-city-list li:not([data-is-synonym="true"])');$(".super-dropdown-right").hasClass("lmd")&&($cityList=$cityList.filter(":not(.sdonly)"));var distance=[];$cityList.each(function(){distance[Math.round(new Line(new Point($(this).data("latitude"),$(this).data("longitude")),new Point(position.lat,position.lng)).length())]=$(this).data("slug")}),distance=arrayCollapse(distance),$closestLocation.find(".menu-city").each(function(index){var $city=$cityList.filter('[data-slug="'+distance[index]+'"]');$(this).find("a").text($city.data("source")),$(this).find("a").data("latitude",$city.data("latitude")),$(this).find("a").data("longitude",$city.data("longitude"))})})},200)}),$(".mobile-bar .closeCitySelect").once("click.closeCitySelect",function(e){preventDefault(e),$("#mainDropDownMenu").find("#super-dropdown").removeClass("open"),$_b.removeClass("open open-city");var $superDropDown=$("#super-dropdown");return"lmd"===$superDropDown.data("citySelect")&&($superDropDown.data("citySelect","sd"),$superDropDown.find(".super-dropdown-right").removeClass("lmd")),$whatsappBox.move(),!1}),$("a.citySelect").once("click.MouseOverTrigger",function(){$(".mobile-menu").removeClass("open"),$("#citySelector").trigger("mouseover")}),$("#citySelector").once("tap.TapTrigger",function(e){e.preventDefault(),$("#citySelector").trigger("mouseover")}),$(".mobile-footer li a").click(function(e){var $footer=$(".mobile-footer"),lastActive=$footer.find("li a.active").data("name"),clicked=$(this).data("name"),$inspirationsBox=$(".box-content.inspirations-a80e4e"),isInspirations=0<$inspirationsBox.length;!$(this).hasClass("active")||"map"!==clicked&&"lmd"!==clicked&&"hotel"!==clicked||(0===$(window).scrollTop()?isInspirations?scrollInspirationBoxHalfOpen($inspirationsBox):$("#nearbyList, #nearbyLmdList").addClass("half-open"):$("html, body").animate({scrollTop:0},200,null,function(){setTimeout(function(){isInspirations?scrollInspirationBoxHalfOpen($inspirationsBox):$("#nearbyList, #nearbyLmdList").addClass("half-open")},200)})),$footer.find("li a").removeClass("active"),$(this).addClass("active"),"home"!==clicked||"home"!==lastActive&&"menu"!==lastActive?"menu"!==clicked||"home"!==lastActive&&"menu"!==lastActive||(e.preventDefault(),loadModal("account",{boxId:"account"}),$whatsappBox.init(),History.replaceState(null,document.title,$(this).attr("href"))):(e.preventDefault(),$(".box-modal.modal-show .box").sdBox("hide"),$whatsappBox.init(),History.replaceState(null,document.title,"/"))}),$(".mobile-banner--anchor").on("click",function(){var $footer=$(".mobile-footer");$("#lastMinuteBox").addClass("hidden"),$footer.before($('')),$footer.find("li a").removeClass("active").filter('[data-name="lmd"]').addClass("active")}),$.gtmEvent=function(event,action,target,callBack){preventDefault(event);var $target=$(target);window.dataLayer=window.dataLayer||[];var getProduct=function(){return{name:$target.data("deal-name"),brand:$target.data("company-name"),id:$target.data("unique"),price:$target.data("quantity"),category:$target.data("category"),variant:$target.data("variant"),quantity:1}};switch(action){case"loggedIn":"function"==typeof window.ga&&ga("set","loggedIn",target);break;case"details":window.dataLayer.push({event:"detail",ecommerce:{currencyCode:"USD",detail:{actionField:{},products:[getProduct()]}}});break;case"addToCart":window.dataLayer.push({event:"addToCart",ecommerce:{currencyCode:"USD",add:{products:[getProduct()]}}});break;case"checkout":window.dataLayer.push({event:"checkout",ecommerce:{currencyCode:"USD",checkout:{actionField:{option:$target.data("method")},products:[getProduct()]}}});break;case"purchase":break;case"removeFromCart":window.dataLayer.push({event:"removeFromCart",ecommerce:{currencyCode:"USD",remove:{products:[getProduct()]}}});break;case"promotionEvent":window.dataLayer.push({event:"promotionClick",ecommerce:{currencyCode:"USD",promoClick:{promotions:[{id:$target.data("gtm-id"),name:$target.data("gtm-name")}]}}})}"function"==typeof callBack&&callBack.call()},function($){var bottomDrawer=function(element,options){var obj=this,$elem=$(element),$drawerElem=$(element).parent().find(".bottom-drawer"),settings=$.extend(options||{menuList:!1,forceLogin:!1,modal:!1,dev:!1,afterClose:null});obj.init=function(){if(settings.menuList)$drawerElem=0<$drawerElem.length?$drawerElem:$elem;else{$drawerElem.addClass("open"),$drawerElem.parent().find(".alpha").addClass("open"),$_b.addClass(settings.modal&&!sdViewport.isMobile()?"open modal-open":"open"),$drawerElem.off("click.alpha").on("click.alpha",function(e){if(e.stopPropagation(),$(e.target).hasAnyClass("bottom-drawer","bottom-drawer-inner","menu--list--item--text","menu--list--item--icon","bottom-drawer-part")&&($(e.target).parents(".menu--list--item").hasClass("disabled")||$(e.target).hasClass("bottom-drawer-inner")&&!sdViewport.isMobile()||($_b.removeClass(settings.modal?"open modal-open":"open"),$drawerElem.removeClass("open"),$drawerElem.parent().find(".alpha").removeClass("open"),"function"==typeof settings.afterClose&&settings.afterClose(),($drawerElem.is('[data-drawer="calendar-drawer')||$drawerElem.is('[data-drawer="multi-deal-timeslot-drawer'))&&$(".availability-with-multidealcards").find(".availability-picker").removeClass("active"))),$drawerElem.is('[data-drawer="reservation"]')){var params=$("#reservation-calendar").find("> div").data("params");$(e.target).hasClass("time-slot")||void 0===params.selected||delete params.selected,$_w.trigger($_w.sdEvents.reservations.refreshCalendar,[params])}$drawerElem.is('[data-drawer="multi-deal-timeslot-drawer"]')&&($(".availability-with-multidealcards").availabilityWithMultiDealCards().calendarParams.setParams({selected:null}),$drawerElem.closest(".box").find('[id^="sd-calendar"]').multiDealCalendar().refreshCalendar());$drawerElem.is('[data-drawer="availability-timeslots"]')&&$("#availability-calendar > div").availabilityCalendar().resetCalendar();$whatsappBox.move()}),$whatsappBox.move(),$drawerElem.parent().find(".alpha").off("click.alphaClick scroll.alphaScroll").on("click.alphaClick scroll.alphaScroll",function(){$whatsappBox.move(),obj.close()});var title=0<$drawerElem.find(".bottom-drawer-title").length?64:0,$drawerElemInner=$drawerElem.find(".bottom-drawer-inner");$drawerElemInner.height($drawerElem.height()-title),$drawerElem.toggleClass("fade-bottom",$drawerElemInner.find("> div:first").height()>$drawerElemInner.height()),$drawerElemInner.off("scroll.fadeOut").on("scroll.fadeOut",function(){$drawerElem.toggleClass("fade-top",0<$(this).scrollTop()),$drawerElem.toggleClass("fade-bottom",$(this).find("> div:first").height()-$(this).height()>$(this).scrollTop())}),$_w.on("resize",function(){$drawerElem.hasClass("open")&&$drawerElem.find(".bottom-drawer-inner").height("auto").height($drawerElem.height()-title)})}!0===$drawerElem.data("force-login")&&(settings.forceLogin=!0),!0!==settings.dev&&(setViewVoucherEvent(),setViewDealEvent(),setViewAddressEvent(),setReviewEvent(),setPaymentFormEvent(),setPrintEvent(),setListReservationsEvent(),setNewReservationEvent(),setEditReservationsEvent(),setDetailsReservationsEvent(),setDeleteVoucherFromReservationEvent(),setAddVoucherToReservationEvent(),setClaimVoucherToReservationEvent(),setCallCompanyEvent(),setMailCompanyEvent(),setExtraLocationsEvent(),setWhatsAppCompanyEvent(),setWebsiteCompanyEvent(),setExternalMapEvent(),setCancelReservationEvent(),setVouchersByReservation(),setSelectMultiDeal(),setPrintReceiptEvent()),setShareEvent(),setNotImplementedEvent(".view-dev-drawer")},obj.close=function(){$drawerElem.click(),$drawerElem.next().hasClass("open")&&$drawerElem.next().click()},obj.closeSpecific=function(){$_b.removeClass("open"),$drawerElem.removeClass("open"),$drawerElem.next().removeClass("open")};var setReviewEvent=function(){$drawerElem.off("click.bottomDrawerReview").on("click.bottomDrawerReview",".view-review",function(){var $drawerLI=$(this);showAlertModal($drawerLI)||(loadModal("/write-review/"+$(this).data("href")+"/?returnTo="+$drawerElem.parents(".box").data("remote").replace("/modal","")),$whatsappBox.move())})},setExternalMapEvent=function($otherDrawer){(void 0!==$otherDrawer?$drawerElem.add($otherDrawer):$drawerElem).off("click.bottomDrawerExternalMap").on("click.bottomDrawerExternalMap",".view-external-map, .view-external-directions",function(){navTo($(this).data("href"),!0)})},setShareEvent=function(){$drawerElem.off("click.bottomDrawerShare").on("click.bottomDrawerShare",".view-share",function(event){event.stopPropagation(),$drawerElem.removeClass("open"),shareBox($drawerElem.next()),$whatsappBox.move()})},setViewVoucherEvent=function(){$drawerElem.off("click.bottomDrawerViewVoucher").on("click.bottomDrawerViewVoucher",".view-voucher-details, .view-voucher-campaign, .view-bankrupt",function(){var $drawerLI=$(this);if(!showAlertModal($drawerLI)){var unique=$drawerLI.data("href"),type=$drawerLI.hasClass("view-voucher-campaign")?"campaign/":"details/";loadModal("/my-vouchers/"+type+unique+"/"+generateUrlQueries()),$whatsappBox.move()}})},setNotImplementedEvent=function(classes){$drawerElem.off("click.bottomDrawerNotImplemented").on("click.bottomDrawerNotImplemented",classes,function(){var $drawer=$(this).parents(".bottom-drawer");($drawer.parent().hasClass("bottom-drawer-modal")&&sdViewport.isMobile()||!$drawer.parent().hasClass("bottom-drawer-modal"))&&$drawer.removeClass("open").parent().find(".alpha").removeClass("open"),$.sdConfirm({message:"De functie die je probeert uit te voeren is (nog) niet geïmplementeerd.",title:"Nog niet geïmplementeerd!",boxId:"notImplemented",button_confirm:lang.Ok,button_decline:!1,callback:function(event,action,$modal){action&&($drawer.addClass("open").parent().find(".alpha").addClass("open"),$modal.remove())}}).css("display","table")})},setViewDealEvent=function(){$drawerElem.off("click.bottomDrawerViewDeal").on("click.bottomDrawerViewDeal",".view-deal-details",function(){navTo($(this).data("href"),!1),$whatsappBox.move()})},setViewAddressEvent=function(){$drawerElem.off("click.bottomDrawerViewAddress").on("click.bottomDrawerViewAddress",".view-addresses, .view-edit-addresses",function(){var $drawerLI=$(this);if(!showAlertModal($drawerLI)){var voucherUnique=$drawerLI.data("href");$whatsappBox.move(),loadModal("/account/address/?loadModal=my-vouchers&voucherUnique="+voucherUnique+"&returnTo=my-vouchers")}})},setPaymentFormEvent=function(){$drawerElem.off("click.bottomDrawerPaymentForm").on("click.bottomDrawerPaymentForm",".view-payment-form",function(){var $drawerLI=$(this),unique=$drawerLI.data("href");if($drawerLI.hasClass("disabled")||$drawerLI.hasClass("not-active"))return $.sdConfirm({title:$drawerLI.data("alertTitle"),message:$drawerLI.data("alertDetail"),button_confirm:$drawerLI.data("confirmButton"),button_decline:lang.Back,callback:function(event,action,$modal){return action&&($drawerElem.removeClass("open"),$drawerElem.parent().find(".alpha").removeClass("open"),$_b.removeClass("open"),loadModal("/my-vouchers/tentative/"+unique+"/"+generateUrlQueries())),$modal.remove(),!1}}).css("display","table").find(".box-footer .col-xs-6:first").addClass("col-xs-4").removeClass("col-xs-6").parent().find(".col-xs-6").addClass("col-xs-8").removeClass("col-xs-6"),!1;loadModal("/my-vouchers/tentative/"+unique+"/"+generateUrlQueries()),$whatsappBox.move()})},setPrintEvent=function(){$drawerElem.off("click.bottomDrawerPrintVoucher").on("click.bottomDrawerPrintVoucher",".view-external-print",function(){var $drawerLI=$(this);showAlertModal($drawerLI)||(navTo($drawerLI.data("href"),!0),$whatsappBox.move())})},setPrintReceiptEvent=function(){$drawerElem.off("click.bottomDrawerPrintReceiptVoucher").on("click.bottomDrawerPrintReceiptVoucher",".view-external-receipt-print",function(){var printUrl=$(this).data("href");$.sdConfirm({message:window.lang["65633.App_DownloadVoucherReceiptAlertMessage"],title:window.lang["65632.App_DownloadVoucherReceiptAlertTitle"],button_confirm:window.lang["65635.App_DownloadVoucherReceiptAlertCompanyButton"],button_decline:window.lang["65634.App_DownloadVoucherReceiptAlertPersonalButton"],boxId:"receiptEvent",callback:function(event,action,$modal){$modal.remove(),action?loadModal("/my-vouchers/company-receipt-form/"+btoa(printUrl)+"/"):navTo(printUrl,!0)}}).css("display","table"),$whatsappBox.move()})},setVouchersByReservation=function(){$drawerElem.off("click.bottomDrawerVoucherByReservation").on("click.bottomDrawerVoucherByReservation",".view-voucher-campaign-reservation",function(){var $drawerItem=$(this);$drawerItem.parents(".bottom-drawer"),$drawerItem.data("href");loadModal("/my-vouchers/by-reservation/"+$(this).data("href")+"/"+generateUrlQueries()),$whatsappBox.move()})},setListReservationsEvent=function(){$drawerElem.off("click.bottomDrawerReservations").on("click.bottomDrawerReservations",".view-reservation-list",function(){var $drawerItem=$(this),unique=$drawerItem.data("href");$drawerItem.parents(".bottom-drawer").hasClass("reservation-drawer");if($drawerItem.hasClass("disabled")||$drawerItem.hasClass("not-active")){var isOkButton=!1===$drawerItem.data("confirm-button");return $.sdConfirm({message:$drawerItem.data("alert-detail"),title:$drawerItem.data("alert-title"),button_confirm:isOkButton?window.lang.Ok:$drawerItem.data("confirm-button"),button_decline:!isOkButton&&lang.Back,boxId:"resBox",callback:function(event,action,$modal){$modal.remove(),action&&!isOkButton&&($drawerElem.removeClass("open"),$drawerElem.parent().find(".alpha").removeClass("open"),$_b.removeClass("open"),loadModal("/my-reservations/new/"+unique+"/"+generateUrlQueries()))}}).css("display","table"),$whatsappBox.move(),!1}loadModal("/my-reservations/campaign/"+unique+"/"+generateUrlQueries()),$whatsappBox.move()})},setNewReservationEvent=function(){$drawerElem.off("click.bottomDrawerNewReservation").on("click.bottomDrawerNewReservation",".view-reservation-new",function(){var $drawerItem=$(this),unique=$drawerItem.data("href");if($drawerItem.hasClass("disabled")||$drawerItem.hasClass("not-active")){var isOkButton=!1===$drawerItem.data("confirm-button");$.sdConfirm({message:$drawerItem.data("alert-detail"),title:$drawerItem.data("alert-title"),button_confirm:isOkButton?window.lang.Ok:$drawerItem.data("confirm-button"),button_decline:!isOkButton&&lang.Back,boxId:"resBox",callback:function(event,action,$modal){$modal.remove(),action&&!isOkButton&&($drawerElem.removeClass("open"),$drawerElem.parent().find(".alpha").removeClass("open"),$_b.removeClass("open"),loadModal("/my-reservations/campaign/"+unique+"/"+generateUrlQueries()))}}).css("display","table").find(".box-footer .col-xs-6:first").addClass("col-xs-4").removeClass("col-xs-6").parent().find(".col-xs-6").addClass("col-xs-8").removeClass("col-xs-6"),$whatsappBox.move()}else loadModal("/my-reservations/new-or-campaign/"+unique+"/"+generateUrlQueries()),$whatsappBox.move()})},setEditReservationsEvent=function(){$drawerElem.off("click.bottomDrawerEditReservation").on("click.bottomDrawerEditReservation",".view-reservation-edit",function(){var $drawerItem=$(this),$bottomDrawer=$drawerItem.parents(".bottom-drawer"),unique=$drawerItem.data("href");if($drawerItem.hasClass("disabled")||$drawerItem.hasClass("not-active")){var isOkButton=!1===$drawerItem.data("confirm-button");$.sdConfirm({message:$drawerItem.data("alert-detail"),title:$drawerItem.data("alert-title"),button_confirm:isOkButton?window.lang.Ok:$drawerItem.data("confirm-button"),button_decline:!isOkButton&&lang.Back,boxId:"resBox",callback:function(event,action,$modal){$modal.remove(),action&&!isOkButton&&($drawerElem.removeClass("open"),$drawerElem.parent().find(".alpha").removeClass("open"),$_b.removeClass("open"),loadModal("/my-reservations/new/"+unique+"/"+generateUrlQueries()))}}).css("display","table"),$whatsappBox.move()}else $bottomDrawer.parents(".box-modal-scroll").hasClass("my-reservations")||$bottomDrawer.hasClass("reservation-campaign-drawer")?loadModal("/my-reservations/edit/"+unique+"/"+generateUrlQueries()):loadModal("/my-reservations/campaign/"+unique+"/"+generateUrlQueries()),$whatsappBox.move()})},setDetailsReservationsEvent=function(){$drawerElem.off("click.bottomDrawerDetailsReservation").on("click.bottomDrawerDetailsReservation",".view-reservation-details",function(){loadModal("/my-reservations/details/"+$(this).data("href")+"/"+generateUrlQueries()),$whatsappBox.move()})},setDeleteVoucherFromReservationEvent=function(){$drawerElem.off("click.bottomDrawerDeleteVoucherFromReservation").on("click.bottomDrawerDeleteVoucherFromReservation",".view-reservation-remove-voucher",function(){var voucherUnique=$(this).data("href"),$box=$(this).parents(".box-modal"),numVouchers=$(this).closest(".vouchers").find(".view-reservation-remove-voucher").length;$.sdConfirm({title:1Let op! Bij het verwijderen van de laatste voucher wordt de reservering geannuleerd. Weet je zeker dat je de reservering wilt annuleren?",button_confirm:lang.Ok,button_decline:lang.Back,callback:function(event,action,$modal){$modal.remove(),action&&($box.boxLoader(),$.postJSON("/my-reservations/remove-voucher/",{unique:voucherUnique}).done(function(){$.sdConfirm({title:1
",$drawerElem.parent().append(externalBottomDrawer);var $externalList=$drawerElem.parent().find(".external-list"),$alpha=$externalList.parent().find(".alpha");$alpha.addClass("open"),$externalList.find(".bottom-drawer-inner").height($externalList.height()),$_w.on("resize",function(){$externalList.find(".bottom-drawer-inner").height("auto").height($externalList.height())}),setCallCompanyEvent($externalList),setMailCompanyEvent($externalList),setWhatsAppCompanyEvent($externalList),setWebsiteCompanyEvent($externalList),setExternalMapEvent($externalList),setTimeout(function(){$externalList.addClass("open"),$externalList.off("click.externalList").on("click.externalList",function(e){$(e.target).hasAnyClass("mv-list--item","mv-list--item--title","mv-list--item--text","mv-list--item--group","mv-list--item--details","menu--list--item--icon","menu--list")&&($(e.target).parent().hasClass("disabled")||($externalList.removeClass("open"),$alpha.removeClass("open"),setTimeout(function(){$_b.removeClass("open"),$externalList.remove()},100)))}),$alpha.off("click.alphaLayer").on("click.alphaLayer",function(e){preventDefault(e),$externalList.removeClass("open"),$alpha.removeClass("open"),setTimeout(function(){$_b.removeClass("open"),$externalList.remove()},100)}),$whatsappBox.move()},100)}})},setCallCompanyEvent=function($otherDrawer){(void 0!==$otherDrawer?$drawerElem.add($otherDrawer):$drawerElem).off("click.bottomDrawerCallCompany").on("click.bottomDrawerCallCompany",".view-external-phone",function(){var callText=lang.Api_callCustomerService,callNumber=lang.Api_callCustomerServiceNumber.replace(" - ","-");if($(this).data("href")!==callNumber){var $drawerLI=$(this);if(showAlertModal($drawerLI))return;callText=lang.App_voucherCallCustomerServicePopUpAccept+" "+$(this).data("company"),callNumber=$(this).data("href")}!1===sdViewport.isMobile()?$.sdConfirm({title:callText,message:callNumber,button_confirm:lang.App_voucherCallCustomerServicePopUpAccept,button_decline:lang.Back,boxId:"resBox",callback:function(event,action,$modal){$modal.remove(),action&&(document.location.href="tel:"+callNumber.replace(/ /g,""))}}).css("display","table"):document.location.href="tel:"+callNumber.replace(/ /g,"")})},setMailCompanyEvent=function($otherDrawer){(void 0!==$otherDrawer?$drawerElem.add($otherDrawer):$drawerElem).off("click.bottomDrawerMailCompany").on("click.bottomDrawerMailCompany",".view-external-email",function(){var $drawerLI=$(this);showAlertModal($drawerLI)||navTo("mailto:"+$drawerLI.data("href")+("?subject="+$drawerLI.data("subject")),!1)})},setWhatsAppCompanyEvent=function($otherDrawer){(void 0!==$otherDrawer?$drawerElem.add($otherDrawer):$drawerElem).off("click.bottomDrawerWhatsAppCompany").on("click.bottomDrawerWhatsAppCompany",".view-external-whatsapp",function(){var $drawerLI=$(this);if(!showAlertModal($drawerLI)){navTo(sdViewport.isDesktop()?"https://wa.me/send?phone="+$drawerLI.data("href").replace("+",""):"whatsapp://send?phone="+$drawerLI.data("href"),sdViewport.isDesktop())}})},setWebsiteCompanyEvent=function($otherDrawer){(void 0!==$otherDrawer?$drawerElem.add($otherDrawer):$drawerElem).off("click.bottomDrawerWebsiteCompany").on("click.bottomDrawerWebsiteCompany",".view-external-website",function(){var $drawerLI=$(this);if(!showAlertModal($drawerLI)){var websiteLink=$drawerLI.data("href");navTo(websiteLink=-1===websiteLink.indexOf("http")?"http://"+websiteLink:websiteLink,!0)}})},setSelectMultiDeal=function(){$drawerElem.off("click.bottomDrawerSelectMultiDeal").on("click.bottomDrawerSelectMultiDeal",".select-multideal",function(){var $drawerItem=$(this);if(showAlertModal($drawerItem)){var $alphaLayer=$(".confirm-box .box-modal-alpha");0<=$alphaLayer.length&&$alphaLayer.remove()}else{var unique=$drawerItem.data("href"),name=$drawerItem.data("multideal"),$select=$drawerItem.parents(".bottom-drawer-modal").find(".mv-fakeselect");$select.addClass("disabled").find(".mv-fakeselect-placeholder").addClass("selected").text(name),$select.find("input").val(unique).trigger("change"),$drawerItem.parents(".bottom-drawer").removeClass("open").next(".alpha").removeClass("open"),$_b.removeClass("open modal-open"),$whatsappBox.move()}})},showAlertModal=function($drawerLI){var $drawer=$drawerLI.parents(".bottom-drawer");($drawer.parent().hasClass("bottom-drawer-modal")&&sdViewport.isMobile()||!$drawer.parent().hasClass("bottom-drawer-modal"))&&$drawer.removeClass("open").parent().find(".alpha").removeClass("open");var type=$drawerLI.data("alert-type"),view=$drawerLI.data("view"),title=$drawerLI.data("alert-title"),message=$drawerLI.data("alert-detail"),goToApp=$drawerLI.data("alert-go-to-app"),confirmBtn=$drawerLI.data("alert-confirm-button"),declineBtn=$drawerLI.data("alert-decline-button"),boxId=$drawerLI.data("alert-box-id");return!isEmpty(title)&&!isEmpty(message)&&(("noMoreCustomCodes"!==type||"voucher-details"!==view)&&(isEmpty(confirmBtn)&&(confirmBtn=window.lang.Ok),isEmpty(declineBtn)&&(declineBtn=!1),isEmpty(boxId)&&(boxId="emptyBoxId"),goToApp&&(confirmBtn=window.lang.goToAppButton,declineBtn=window.lang.Back),$.sdConfirm({title:title,message:message,boxId:boxId,button_confirm:confirmBtn,button_decline:declineBtn,callback:function(event,action,$modal){$modal.remove(),goToApp&&action?navTo("/app/",!0):$drawer.addClass("open").parent().find(".alpha").addClass("open")}}).css("display","table"),!0))},generateUrlQueries=function(){var fullUrl=$elem.closest(".box-modal").data("name"),returnTo=(fullUrl=fullUrl.split("?"))[0];returnTo="/"!==(returnTo="/"!==returnTo.charAt(0)?"/"+returnTo:returnTo).charAt(returnTo.length-1)?returnTo+"/":returnTo;var url="?";return url=(url=settings.forceLogin?url+"forceLogin=true&":url)+"returnTo="+returnTo,url=settings.forceLogin?url+"?forceLogin=true":url}};$.fn.bottomDrawer=function(options){var $element=$(this);if($element.data("bottomDrawer"))return $element.data("bottomDrawer");var $bottomDrawer=new bottomDrawer($element,options);return $element.data("bottomDrawer",$bottomDrawer),$bottomDrawer}}(jQuery),function($){var inputs=function(element,options){var $elem=$(element),$input=$elem.find("input"),blurTimer=null;this.init=function(){$input.once("focus.InputFocus",onFocus),$input.once("blur.InputBlur",onBlur),$input.once("keydown.KeyPress",onKeyPress);var $eye=$elem.find(".eye");0<$eye.length&&$eye.once("click.toggleInputType",function(e){var currentType=$input.attr("type");$input.attr("type","password"===currentType?"text":"password"),$eye.find(".material-icons").attr("data-ligature","password"===currentType?"visibility":"visibility_off"),$input.focus()}),$elem.hasClass("disabled")&&$input.attr("readonly","readonly")};var onFocus=function(){$elem.hasClass("disabled")?$input.attr("readonly","readonly"):($elem.addClass("with-active with-focus"),$elem.parents(".phone-row").addClass("with-focus"),clearTimeout(blurTimer),$elem[0].scrollIntoView({block:"center"}))},onBlur=function(){blurTimer=setTimeout(function(){$elem.removeClass("with-focus"),$elem.parents(".phone-row").find(".mv-select").hasClass("open")||$elem.parents(".phone-row").find("select").is(":focus")||$elem.parents(".phone-row").removeClass("with-focus"),0===$input.val().length&&$elem.removeClass("with-active")},100)},onKeyPress=function(){$elem.removeClass("with-error"),$elem.parents(".phone-row").removeClass("with-error"),0<$elem.find(".error-message").length&&$elem.find(".error-message").html("")}};$.fn.inputs=function(options){var $element=$(this);if($element.data("inputs"))return $element.data("inputs");var $inputs=new inputs($element,options);return $element.data("inputs",$inputs),$inputs.init(),$inputs}}(jQuery),$(".input").each(function(){$(this).inputs()}),function($){var textareas=function(element,options){var $elem=$(element),$textarea=$elem.find("textarea"),maxlength=null,allowedKeys=[8,16,17,18,20,27,33,34,35,36,37,38,39,40,46,93];this.init=function(){if($textarea.once("focus.TextareaFocus",onFocus),$textarea.once("blur.TextareaBlur",onBlur),$textarea.once("keydown.TextareaPress input.autoCompletePress",onKeyPress),$textarea.once("keyup.TextareaRelease input.autoCompleteRelease",onKeyRelease),null!==(maxlength=void 0!==$textarea.attr("maxlength")?$textarea.attr("maxlength"):null)){var $counter=$(''+$textarea.val().length+" / "+maxlength+"");$textarea.after($counter)}autosize($textarea)};var onFocus=function(){$textarea.hasClass("disabled")||($elem.addClass("with-focus"),$elem[0].scrollIntoView({block:"center"}))},onBlur=function(){$elem.removeClass("with-focus")},onKeyPress=function(e){if(13!==e.keyCode){if(null!==maxlength){var val=$(this).val(),valLength=val.length+1;maxlength"),$count=$(''+$(this).val().length+""+maxlengthText),$(this).after($count)}0<$(this).parents(".mv-textarea").length&&autosize($(this))})},keyDown=function(e){if(13!==e.keyCode||!0===$(this).data("ignoreEnter")){if(void 0!==$(this).attr("maxlength")){var maxLength=$(this).attr("maxlength"),val=$(this).val();maxLength").addClass("deals-overview-overlay visible-xs").appendTo("body"),$("
").addClass("loader-container").appendTo(".deals-overview-overlay"),$("
").addClass("loader").appendTo(".deals-overview-overlay .loader-container"),$(".deals-overview-overlay").on("click",function(e){e.stopPropagation()}),setTimeout(function(){$("body").addClass("open")},250),$el.miniDealLoader()),$el.is("a")&&isEmpty($el.attr("href"))?navTo($el.data("link"),openNewWindow):$el.is("div")&&!$el.hasClass("deal-card-lmd")&&navTo($el.data("link"),openNewWindow),!0}};window.addEventListener("popstate",function(event){if(!(!event.state||void 0===event.state.modal)&&event.state.modal)if(event.state&&event.state.modalTemplate){if(0<$("#serverSideModal").length)return;var dataLayerUnique=event.state.unique;loadModal(event.state.modalPath,{onOpened:function(){pushOutTabs(),void 0!==dataLayerUnique&&($.sdGA("details"),dataLayer.push({CriteoProductID:dataLayerUnique}),dataLayer.push({event:"criteoProduct"}))},template:event.state.modalTemplate})}else loadModal(event.state.modalPath);else $(".box-modal:not(#cartModal):not(#loginModal)").sdBox("hide",!1),pushOutTabs(!1)}),$_d.on("click",".logout",function(event){preventDefault(event);$(this);return $.sdConfirm({title:window.lang.LogoutTitle,message:window.lang.LogoutDescription,button_confirm:window.lang.LogoutConfirm,button_decline:window.lang.Back,callback:function(event,action,$modal){action?(navTo("/logout/"),$modal.boxLoader()):$modal.remove()}}).css("display","table"),!1});var handlers={ucFirst:function(){var $el=$(this),val=$el.val();0 div:first"),$slides:$elem.find("> div:first > div"),$ignoreSlideWith:null,minIndicators:2,maxIndicators:5,forcedMinAmountIndicators:0,navigationArrowsDesktop:!0,maximizeSlides:!1,swipeCallback:null,offCenterBounds:!1},options);null!==settings.$ignoreSlideWith&&(settings.$slides=settings.$slides.not($(settings.$ignoreSlideWith)));var scrollStart=0,currentScroll=0,currentSlide=0,slideWidth=0,$indicators=null;this.init=function(){if(!$elem.hasClass("universal-carousel")&&0!==$elem.length){$elem.addClass("universal-carousel"),settings.$scroll.addClass("universal-carousel-scroll"),settings.$slides.addClass("universal-carousel-slide");var ignoreInputTimeout=null;$_w.scroll(function(){clearTimeout(ignoreInputTimeout),settings.$scroll.addClass("ignore-input"),ignoreInputTimeout=setTimeout(function(){settings.$scroll.removeClass("ignore-input"),scrollTo("reset")},100)}),disableNativeHref(),swipeBinding(),0 div"),settings.$slides=0<$(settings.$slides.selector).length?$(settings.$slides.selector):settings.$slides.parent().find("> div"),settings.$slides.addClass("universal-carousel-slide"),settings.$scroll.trigger("scroll.activeNavigationArrowsDesktop"),addOrRemoveIndicators(),disableNativeHref(),swipeBinding(),scrollTo("reset")};var disableNativeHref=function(){settings.$slides.find("a").on("click.disableNativeHref",function(e){e.preventDefault()})},resizeSlidesToBiggestSlide=function(){var height=0;settings.$slides.each(function(){var currentDealHeight=$(this).find(".title-container").height();height');var pages=amountPages()+1;if(!(pages");var timeoutIsScrolling;$elem.append($indicators),settings.$scroll.once("scroll.activateIndicators",function(){clearTimeout(timeoutIsScrolling),timeoutIsScrolling=setTimeout(function(){resizeIndicators()},33)}),settings.$scroll.trigger("scroll.activateIndicators"),setTimeout(function(){$indicators.find("li").addClass("animation")},100)}},addOrRemoveIndicators=function(){var $indicators=$elem.find(".universal-carousel-indicators");if($indicators.length<0)createIndicators();else{for(var amountToAdd=amountPages()-$indicators.find("li").length,a=0;a<=amountToAdd;a++)$indicators.append("
  • ");for(var r=0;amountToAdd+1
    '),$arrowRight=$(''),$videoBox.prepend($playButton),$videoBox.once("click.clickVideoPlayer",clickVideo),videoPlayer.addEventListener("play",eventPlay),videoPlayer.addEventListener("pause",eventPause),videoPlayer.addEventListener("playing",loadPoster),videoPlayer.addEventListener("ended",eventEnded),videoPlayer.addEventListener("contextmenu",eventContextMenu),videoPlayer.addEventListener("volumechange",eventVolumeChange),videoPlayer.addEventListener("error",eventError),$videoBox.on("mousemove",function(e){var rect=$videoBox[0].getBoundingClientRect();lastMouseY=e.clientY-rect.top}),$videoBox.on("mouseenter",function(){mouseOver=!0}),$videoBox.on("mouseleave",function(){mouseOver=!1}),$_d.once("visibilitychange.videoPlayer_OtherTabActive"+settings.identifier,otherTabActive),$scrollElement.once("scroll.videoPlayer_PauseOutOfScreen"+settings.identifier,scrollOutOfScreenTimer),settings.autoPlay&&sdViewport.isDesktop()&&($muteButton=$('
    volume_off'+window.lang["10544.Buttons_UnmuteVideo"]+"
    "),$videoBox.append($muteButton),$scrollElement.once("scroll.videoPlayer_AutoPlay"+settings.identifier,scrollAutoPlayTimer),scrollAutoPlayTimer()),sdViewport.isDesktop()||(videoPlayer.muted=!1))};var removeUnmuteButton=function(unmuteVideo){unmuteVideo=void 0!==unmuteVideo&&unmuteVideo,$muteButton&&($muteButton.fadeOut(300,function(){$(this).remove()}),$muteButton=null),unmuteVideo&&(videoPlayer.muted=!1)},clickVideo=function(e){if(loadVideo(),$muteButton&&"unmute-button"===e.target.className)return preventDefault(e),removeUnmuteButton(!0),void videoPlayer.play();if($videoBox.hasClass("playing")&&!videoPlayer.paused&&sdViewport.isMobile())videoPlayer.pause();else if(!$videoBox.data("link")||sdViewport.isMobile())$(e.target).is("video")||videoPlayer.play();else{var rect=$videoBox[0].getBoundingClientRect();lastMouseY/rect.height*100<90&&mouseOver&&function(e){preventDefault(e),videoPlayer.pause(),navTo($videoBox.data("link"),"_blank"===$videoBox.data("link-target"))}(e)}},loadVideo=function(){videoPlayer.src||(videoPlayer.src=sdViewport.isDesktop()?$videoBox.data("source"):$videoBox.data("source-lq"),$videoBox.removeAttr("data-source").removeAttr("data-source-lq"))},loadPoster=function(e){$videoPlayer.attr("poster")||($videoPlayer.attr("poster",$videoBox.data("poster")),$videoBox.removeAttr("data-poster"))},eventPlay=function(){$videoBox.addClass("playing"),$videoBox.removeClass("paused"),sdViewport.isMobile()||$videoPlayer.attr("controls","controls"),stopAllOtherVideos(videoPlayer)},eventPause=function(e){if(sdViewport.isDesktop()){var rect=$videoBox[0].getBoundingClientRect();lastMouseY/rect.height*100<90&&mouseOver&&clickVideo(e)}$videoBox.addClass("paused")},eventEnded=function(){removeUnmuteButton(!0),settings.resetVideoAfterEnding&&($videoBox.removeClass("playing"),$videoPlayer.removeAttr("controls"),videoPlayer.currentTime=0,(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()),document.pictureInPictureElement===videoPlayer&&document.exitPictureInPicture())},eventVolumeChange=function(){removeUnmuteButton()},eventContextMenu=function(e){e.preventDefault(),removeUnmuteButton(!0)},eventError=function(){$videoBox.removeClass("playing").addClass("video-error"),$playButton.append('
    '+window.lang.App_titleSomethingWentWrong+"
    "),$playButton.find(".material-icons").text("play_disabled"),$videoBox.off("click.clickVideoPlayer")},checkAutoPlay=function(){sdViewport.isDesktop()&&(videoPlayer.paused||videoPlayer.currentTime)&&$videoBox.visible(!0)&&(percentageVisibleInViewport()=settings.canPlayOnPercentageVisible||document.pictureInPictureElement!==videoPlayer&&videoPlayer.pause()},otherTabActive=function(){"visible"!==document.visibilityState&&(videoPlayer.paused||0===videoPlayer.currentTime||document.pictureInPictureElement!==videoPlayer&&videoPlayer.pause())},stopAllOtherVideos=function(){$("video").each(function(){var video=$(this)[0];video.paused||0===video.currentTime||video!==videoPlayer&&video.pause()})},percentageVisibleInViewport=function(){var viewport=$_w.innerHeight(),scrollTop=$_w.scrollTop(),offsetTop=$videoBox.offset().top-scrollTop,elementHeight=$videoBox.height(),visibleHeight=elementHeight;if(offsetTop<0){if(Math.abs(offsetTop)>elementHeight)return 0;visibleHeight-=Math.abs(offsetTop)}var bottomPos=offsetTop+elementHeight;if(viewport
    '+alert.title);var sdConfirmObject={boxId:"alerts_"+identifier,title:alert.title,message:alert.message,button_custom:alert.buttons,button_confirm:!1,button_decline:!1,callback:function(event,action,$alert){switch(action){case"confirm":$alert.boxLoader(),"function"==typeof callback&&callback(),hide($alert);break;case"back":$alert.boxLoader();var prevModalLink=$(".box-modal.modal-show .box-title a").attr("href");void 0!==prevModalLink?(loadModal(prevModalLink),hide($alert)):-1!==document.referrer.indexOf(window.location.host)&&history&&1';$button=($button=($button=$button.replace(":link",$this.data("data").link)).replace(":target",$this.data("data").target)).replace(":class",$this.attr("class")),$button=$($button).text($this.text()),$(this).replaceWith($($button))}),$sdConfirm.css("display","table"),$_b.addClass("alert-open")}};var hide=function($alert){$alert.remove(),$_b.removeClass("alert-open")}};$.fn.alerts=function(){var $element=$(this);if($element.data("alerts"))return $element.data("alerts");var $alerts=new alerts;return $element.data("alerts",$alerts),$alerts.init(),$alerts}}(jQuery),window.sdAlerts=$_b.alerts(),function($){var dynamicBanner=function(element,options){var $elem=$(element),$citySelector=$elem.find(".city-selector"),$dateSelector=$elem.find(".date-selector"),$selectRange=$dateSelector.find(".selected-range"),$roomPeopleSelector=$elem.find(".room-people-selector"),$searchButton=$elem.find(".search-bar > a.button");this.init=function(){if(!$elem.hasClass("gen")){$elem.addClass("gen"),$_w.off("CitySelect.DynamicBanner"+options.identifier).on("CitySelect.DynamicBanner"+options.identifier,function(event,data){patchSearchBar(data,function(){$citySelector.find("li.city").removeClass("active").filter('[data-name="'+data.location+'"]').addClass("active")}),setTimeout(function(){$selectRange.trigger("click")},0)}),$_w.off("forceGetCurrentLocation.DynamicBanner"+options.identifier).on("forceGetCurrentLocation.DynamicBanner"+options.identifier,function(event,trigger){$(trigger).closest(".dynamic-banner-g398mv").is($elem)&&$_w.sdGps.getCurrentGps(function(position){patchSearchBar({latitude:position.lat,longitude:position.lng,location:null}),$citySelector.extCitySelect("activateGPS",{latitude:position.lat,longitude:position.lng}),$selectRange.trigger("click")},function(){$.sdConfirm({title:window.lang.gpsIsNotAllowedTitle,message:window.lang.gpsIsNotAllowed,boxId:"noGPS",button_confirm:lang.gpsIsNotAllowedButton,button_decline:lang.Back,callback:function(event,action,$modal){action&&$elem.find(".searchableCityList").addClass("open").find(".citySearch").focus();$modal.remove()}}).css("display","table")})}),$citySelector.off("click.mobileShowDateRange").on("click.mobileShowDateRange",function(e){if($(e.target).hasClass("select-dropdown")&&$(e.target).parents(".city-selector").is($citySelector))$_b.trigger("click");else{prepareAllSelectsForMobile(),scrollIntoView();var $dropdown=$citySelector.find(".dropdown-container");setTimeout(function(){$dropdown.removeClass("mobile-animation")},100),$dateSelector.removeClass("hidden-xs")}});var $dropdown=$selectRange.find(".search-bar-calendar-dropdown");$selectRange.off("click.dynamicBanner").on("click.dynamicBanner",function(e){$selectRange.hasClass("active")?$(e.target).hasClass("search-bar-calendar-dropdown")&&$_d.trigger("click.dynamicBanner"+options.identifier):(scrollIntoView(),setTimeout(function(){$selectRange.addClass("active"),setTimeout(function(){$dropdown.removeClass("mobile-animation")},100),$roomPeopleSelector.removeClass("hidden-xs")},0))}),$_d.off("click.dynamicBanner"+options.identifier).on("click.dynamicBanner"+options.identifier,function(e){$selectRange.hasClass("active")&&!$(e.target).hasClass("search-bar-calendar-dropdown")&&0===$(e.target).parents(".search-bar-calendar-dropdown").length&&($selectRange.removeClass("active"),$dropdown.addClass("mobile-animation"))}),$_w.off("searchBar-submitSearchBarFromView.dynamicBanner"+options.identifier).on("searchBar-submitSearchBarFromView.dynamicBanner"+options.identifier,function(e){$(e.detail.element.$el).closest(".dynamic-banner-g398mv").is($elem)&&patchSearchBar(e.detail.params,function(){$selectRange.removeClass("active"),$dropdown.addClass("mobile-animation"),$roomPeopleSelector.find(".sd-select").trigger("click")})}),$_w.off("searchBar-closeSearchBarCalendar.dynamicBanner"+options.identifier).on("searchBar-closeSearchBarCalendar.dynamicBanner"+options.identifier,function(e){$(e.detail.element.$el).closest(".dynamic-banner-g398mv").is($elem)&&setTimeout(function(){$selectRange.removeClass("active"),$dropdown.addClass("mobile-animation"),$roomPeopleSelector.find(".sd-select").trigger("click")},0)}),$elem.find('label[for="rooms"], label[for="people"]').off("click.dynamicBannerMobile").on("click.dynamicBannerMobile",function(e){if(sdViewport.isMobile()){if($(e.target).hasClass("select-dropdown"))$_b.trigger("click");else if(!(0<$(e.target).parents(".select-dropdown").length)){var $target=$(e.currentTarget),$dropdown=$target.find(".dropdown-container");setTimeout(function(){$target.addClass("open"),setTimeout(function(){$dropdown.removeClass("mobile-animation")},100)},0)}}else scrollIntoView()}),$elem.find("select#rooms, select#people").off("change.dynamicBanner").on("change.dynamicBanner",function(){var data=[];data["people"===$(this).attr("id")?"people":"num_rooms"]=$(this).val(),patchSearchBar(data,function(){sdViewport.isMobile()&&"_blank"!==$searchButton.attr("target")&&(window.location.href=$searchButton.attr("href"))})}),$searchButton.off("click.searchButtonMobile").on("click.searchButtonMobile",function(e){if(sdViewport.isMobile()&&($dateSelector.hasClass("hidden-xs")||$roomPeopleSelector.hasClass("hidden-xs"))){if(e.preventDefault(),prepareAllSelectsForMobile(),$dateSelector.hasClass("hidden-xs"))return $dateSelector.removeClass("hidden-xs"),void setTimeout(function(){$selectRange.trigger("click")},0);$roomPeopleSelector.hasClass("hidden-xs")&&($roomPeopleSelector.removeClass("hidden-xs"),$roomPeopleSelector.find(".sd-select").trigger("click"))}})}};var patchSearchBar=function(payload,callback){void 0!==(payload=Object.assign({},options.searchbar,payload)).people&&(payload.num_people=payload.people,delete payload.people),$.ajax({url:"/search-bar/"+options.type+"/"+options.citySlug+"/",type:"post",data:payload,dataType:"json"}).done(function(response){var newSearchbar=response.search_bar_data;options.searchbar=newSearchbar;var $cityInput=$elem.find(".searchableCityList > span.placeholder"),$dateInput=$elem.find(".selected-range .placeholder");void 0!==response.input_data.date_label.desktop&&$dateInput.find(".hidden-xs").text(response.input_data.date_label.desktop),void 0!==response.input_data.date_label.mobile&&$dateInput.find(".visible-xs").text(response.input_data.date_label.mobile),null!==response.input_data.placeholder&&$cityInput.text(response.input_data.placeholder);var link=$searchButton.data("href");void 0!==newSearchbar.slug&&""!==newSearchbar.slug&&(link+=newSearchbar.slug+"/");var paramsString="?";void 0!==newSearchbar.date_shortcut&&""!==newSearchbar.date_shortcut&&null!==newSearchbar.date_shortcut&&(paramsString+="date_shortcut="+newSearchbar.date_shortcut+"&"),void 0!==newSearchbar.from_date&&""!==newSearchbar.from_date&&(paramsString+="from_date="+newSearchbar.from_date+"&"),void 0!==newSearchbar.till_date&&""!==newSearchbar.till_date&&(paramsString+="till_date="+newSearchbar.till_date+"&"),void 0!==newSearchbar.num_rooms&&""!==newSearchbar.num_rooms&&(paramsString+="rooms="+newSearchbar.num_rooms+"&"),void 0!==newSearchbar.inclusive&&""!==newSearchbar.inclusive&&(paramsString+="inclusive="+(newSearchbar.inclusive?"true":"false")+"&"),void 0!==newSearchbar.date&&""!==newSearchbar.date&&(paramsString+="date="+newSearchbar.date+"&"),void 0!==newSearchbar.people&&""!==newSearchbar.people&&(paramsString+="people="+newSearchbar.people+"&"),paramsString=paramsString.slice(0,-1),$searchButton.attr("href",link+paramsString),"function"==typeof callback&&callback()})},prepareAllSelectsForMobile=function(){var $dropdownContainer;0===($dropdownContainer=$citySelector.find(".select-dropdown .dropdown-container")).find(".dropdown-title").length&&($dropdownContainer.prepend($('
    ')),$dropdownContainer.find(".dropdown-title").on("click",function(e){$(e.target).is("i")||e.stopPropagation()})),0===($dropdownContainer=$selectRange.find(".search-bar-calendar-dropdown").addClass("mobile-animation")).find(".dropdown-title").length&&($dropdownContainer.prepend($('
    ')),$dropdownContainer.find(".dropdown-title i").on("click",function(e){e.stopPropagation(),$selectRange.removeClass("active"),$selectRange.find(".search-bar-calendar-dropdown").addClass("mobile-animation")})),$roomPeopleSelector.find("select").addClass("keep-open-mobile"),0===($dropdownContainer=$roomPeopleSelector.find(".select-dropdown .dropdown-container")).find(".dropdown-title").length&&($dropdownContainer.prepend($('
    ')),$dropdownContainer.find(".dropdown-title").on("click",function(e){$(e.target).is("i")||e.stopPropagation()}))},scrollIntoView=function(){sdViewport.isDesktop()&&$("html, body").animate({scrollTop:$elem.offset().top-88},300)}};$.fn.dynamicBanner=function(options){var $element=$(this);if($element.data("dynamicBanner"))return $element.data("dynamicBanner");(options=void 0!==options?options:{}).identifier=void 0!==options.identifier?options.identifier:$element.data("identifier");var $dynamicBanner=new dynamicBanner($element,options);return $element.data("dynamicBanner",$dynamicBanner),$dynamicBanner.init(),$dynamicBanner}}(jQuery),function($){var emoticonButtons=function(element,options){var $elem=$(element),$customScroll=$elem.find(".custom-scroll"),$customScrollOverflow=$customScroll.find(".custom-scroll-overflow"),$customScrollBar=$customScroll.find(".custom-scroll-bar"),$customScrollBarThumb=$customScrollBar.find(".custom-scroll-bar-thumb");this.init=function(){$elem.hasClass("gen")||($elem.addClass("gen"),calculateEmoticonButtons(),setTimeout(calculateEmoticonButtons,100),$_w.once("resize.calculateEmoticonButtons",function(){setTimeout(calculateEmoticonButtons,300)}),sdViewport.isMobile()&&(calculateScrollBar(),$_w.once("resize.customScrollBarEmoticonButtons",calculateScrollBar),$customScrollOverflow.once("scroll.customScrollBarEmoticonButtons",function(){$customScrollBarThumb.css({left:this.scrollLeft/this.scrollWidth*$customScrollBar[0].offsetWidth})})))};var calculateEmoticonButtons=function(){$elem.find(sdViewport.isMobile()?".visible-xs":".hidden-xs").find(".emoticon-button-knE3ka .label").each(function(){$(this).css({width:"auto"}),sizeElementToContent(this)})},calculateScrollBar=function(){if(0<$customScrollBar.length){var percentageVisible=$customScrollOverflow[0].offsetWidth/$customScrollOverflow[0].scrollWidth;percentageVisible<1?($customScrollBarThumb.css({width:percentageVisible*$customScrollBar[0].offsetWidth}),$customScrollBar.addClass("visible")):$customScrollBar.removeClass("visible")}},sizeElementToContent=function(el){var range,width;if(document.createRange)(range=document.createRange()).selectNodeContents(el),width=range.getBoundingClientRect().width;else{(range=document.body.createTextRange()).moveToElementText(el),range.moveStart("character",1),width=range.boundingWidth;var height=range.boundingHeight;if(range.collapse(),range.moveEnd("character",1),range.boundingHeight==height)return}el.style.width=Math.ceil(width)+"px"}};$.fn.emoticonButtons=function(options){var $element=$(this);if($element.data("emoticonButtons"))return $element.data("emoticonButtons");(options=void 0!==options?options:{}).identifier=void 0!==options.identifier?options.identifier:$element.data("identifier");var $emoticonButtons=new emoticonButtons($element,options);return $element.data("emoticonButtons",$emoticonButtons),$emoticonButtons.init(),$emoticonButtons}}(jQuery);