function Showloading(n){n?$("#divLoading").show():$("#divLoading").hide()}function GetBrowser(){var n=!!window.opera||navigator.userAgent.indexOf(" OPR/")>=0,i=typeof InstallTrigger!="undefined",r=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0,u=!!window.chrome&&!n,t=!1||!!document.documentMode,f=!t&&!!window.StyleMedia;return{isOpera:n,isFirefox:i,isSafari:r,isChrome:u,isIE:t,isEdge:f}}function specialOfferClick(n,t,i,r){var u=SearchHelper({});(typeof r=="undefined"||r==null)&&(r={});(typeof r.ServiceDate=="undefined"||r.ServiceDate==null)&&(r.ServiceDate=i);u.SearchProduct(n,t,r)}function htmlEncode(n){return n?$("<div/>").html(n).text():""}function htmlDecode(n){return $("<div/>").html(n).text()}function contains(n,t){for(var i=n.length;i--;)if(n[i]===t)return!0;return!1}function rePaintDiv(n){$(n).find(".box-slide-div").css("position","relative");$(n).find(".box-slide-div").css("bottom","6px")}function initBinding(){}function loadImageCrc(n){n.is("img")||n.each(function(){var n=$(this).find("img[src*='_placeholder']");n!=null&&n.length>0&&n.attr("src",n.data("original"))})}function trim(n){return n.replace(/^\s+|\s+$/g,"")}function ltrim(n){return n.replace(/^\s+/,"")}function rtrim(n){return n.replace(/\s+$/,"")}function postNewForm(n,t){var r="__fornew_postdata_",u=[],i;jQuery.each(t,function(n,t){u[u.length]='<input type="hidden" name="'+n+'" value="'+t+'" />'});i=$("#"+r);i.length===0&&(i=document.createElement("FORM"),i.setAttribute("id",r),i.setAttribute("name",r),i.setAttribute("action",n),i.setAttribute("method","POST"),i.setAttribute("target","_self"),document.body.appendChild(i));i.innerHTML=u.join("");i.submit()}function mp_DataPost(n,t){function i(n,i){var f="__formmp_postdata_",e=[],r,u;jQuery.each(i,function(n,t){e[e.length]='<input type="hidden" name="'+n+'" value="'+t+'" />'});r=document.getElementById(f);u=$("#"+t);r||(r=document.createElement("FORM"),r.setAttribute("id",f),r.setAttribute("name",f),r.setAttribute("action",u.attr("action")),r.setAttribute("method",u.attr("method")),r.setAttribute("target",u.attr("target")),document.body.appendChild(r));r.innerHTML=e.join("");r.submit()}if($("#mp_buil_your_trip_Form:visible").length>0&&$("#mp_buil_your_trip_Form input:checked").each(function(t){n["ProductTypes["+t+"]"]=$(this).val()}),$("#mp_finally_add_Form:visible").length>0&&$("#mp_finally_add_Form input:checked").each(function(t){n["ProductTypes["+t+"]"]=$(this).val()}),$("#"+t+" .promocode input:checked").length!=0){if($("#"+t+" .promocode input:text").val()=="")return mp_ShowError(t,CommonMessages.PROMO_CODE_MISSING),!1;n.PDC=$("#"+t+" .promocode input:text").val()}return typeof n.ReservationId=="undefined"&&typeof n.OverwriteBooking=="undefined"&&(n.commercial_client_code=commercial_client_code,n.commercial_client_type=commercial_client_type),(typeof n.ReservationId=="undefined"||typeof n.OverwriteBooking!="undefined")&&(n.point_of_sale=point_of_sale),typeof n.ReservationId!="undefined"&&typeof n.OverwriteBooking!="undefined"?ConfirmDlg(CommonMessages.CONFIRM_TITLE,CommonMessages.ALERT_TACODE_BOOKING,"czConfirm",[CommonMessages.YES,CommonMessages.NO],".item-video",function(t){return t==CommonMessages.YES?(i(url,n),!1):!1}):i(url,n),!1}function mp_ShowError(n,t){var i="#mp_"+n+"Form",f=$(i),u=i+" .form-errors",r;f.length==0&&(i="#"+n,u=i+" .form-errors");r=$(u);r.length==0&&($(i+" .form-container-end").before('<div class="form-errors"><\/div>'),r=$(u));r.append("<p>"+t+"<\/p>")}function mp_ClearErrors(n){$("#"+n+" .form-errors").html("");$("#mp_"+n+"Form .form-errors").html("")}function mp_start_date_changed(n,t,i){var f=$("#"+n).data("kendoDatePicker"),r=i,e=f.value(),u;r&&(u=new Date(r),u.setDate(u.getDate()+t),u>e&&(r=new Date(r),r.setDate(r.getDate()+t),f.value(r)))}function mp_end_date_changed(n,t,i){var f=$("#"+n).data("kendoDatePicker"),r=i,e=f.value(),u;r&&(u=new Date(e),u.setDate(u.getDate()+t),u>r&&(r=new Date(r),r.setDate(r.getDate()-t),f.value(r)))}function UiShowDialog(n,t,i,r){var f,u;typeof r.width=="undefined"&&(r.width="600");typeof r.height=="undefined"&&(r.height="400");$("<div />",{id:"dialogWnd"+n,"class":"dialog-content-container"}).appendTo("body");$("#dialogWnd"+n).kendoWindow({width:r.width,maxHeight:r.height,title:t,actions:["Close"],visible:!1,resizable:!1,modal:!0});f=$("#dialogWnd"+n).data("kendoWindow");f.bind("deactivate",function(){f.destroy();$("#dialogWnd"+n).length>0&&$("#dialogWnd"+n).remove()});u=$("#dialogWnd"+n).data("kendoWindow");u.content(i);u.center();u.open();Showloading(!1)}function parseDates(n){for(var t=[],r,i,f,e,u=0;u<n.length;u++)if(r=new Date(n[u]),t.length!==0)for(i=0,f=!1;i<t.length&&!f;)e=$.grep(t[i],function(n){return n.getMonth()===r.getMonth()}),e.length>0?(t[i].push(r),f=!0):t.length===i+1&&(t.push([]),t[i+1].push(r),f=!0),i++;else t.push([]),t[0].push(r);return t}function czDLGClose(n){czDLGResult=n;czDLGWindow.close()}function czDLGCloseCallBack(){czDLGWindow.unbind("close",czDLGCloseCallBack);czDLGCallBack!==null&&czDLGCallBack(czDLGResult)}function ConfirmDlg(n,t,i,r,u,f){var e,s,o;__hideItemsSelector=u;e='<div style="display:inline-block; padding: 4px 0px 16px 20px;"><div style="width:100%;margin-top:10px;text-align:right;"><img id="closeMessageDialogBtn" style="cursor:pointer;display:inline-block;margin-right: 10px;" src="'+virtualDirectory+'/Content/Images/icon-close.png"/><\/div><table class="msgTable" cellpadding="0" cellspacing="0"><tr><td style="width:48px;"><div class="czDLGIcon '+i+'"><\/div><\/td><td><div class="czDLGText-top '+i+'-color-top">'+n+'<\/div><\/td><\/tr><\/table><div class="czDLGText '+i+'-color">'+t+'<\/div><div style="text-align:right;width:100%;display:inline-block;padding:0;padding-right:-10px;margin-top: 10px;">';for(s in r)o=r[s],e+='<span style="display:inline-block;position:relative;" class="yellow-btn dlgBtn" type="button" onclick="czDLGClose(\''+o+'\')" value="'+o+'">'+o+"<\/span>";e+="<\/div><\/div>";czDLGResult="Cancel";czDLGCallBack=f!==undefined?f:null;czDLGWindow.bind("close",czDLGCloseCallBack);czDLGWindow.bind("open",function(){$(__hideItemsSelector).hide()});czDLGWindow.bind("deactivate",function(){$(__hideItemsSelector).show()});czDLGWindow.content(e);$("#closeMessageDialogBtn").unbind().click(function(){czDLGWindow.close()});czDLGWindow.center();czDLGWindow.open()}function initSearchMultiproduct(n){$(".modal-closer").click(function(){return $("ul.ui-autocomplete").hide(),$(".modal-overlay").hide(),$(".modal-closer").hide(),$("div.tab-form.selected","#multiproduct-searchbox").hide().removeClass("selected"),$(".options a.selected","#multiproduct-searchbox").removeClass("selected"),!1});$("a","#multiproduct-searchbox-tabs-homefix").click(function(){if($(this).hasClass("cruise-link"))return!0;$("#announcement-searchbox").smoothScroll(function(){},!0);var n=$(this).attr("id");return n=n.substring(0,n.length-8),$("#"+n).click(),!1});$("a","#multiproduct-searchbox-tabs").click(function(){if($("ul.ui-autocomplete").hide(),$(this).hasClass("cruise-link"))return!0;$("div.tab-form.selected","#multiproduct-searchbox").hide().removeClass("selected");$("div#"+$(this).attr("id")+"-form").show().addClass("selected");var n=$(".options a.selected","#multiproduct-searchbox");return n.length>0?n.attr("id")!=$(this).attr("id")&&(n.removeClass("selected"),$(this).addClass("selected")):$(this).addClass("selected"),($(this).parents(".relative").length>0||$(this).parents(".fixed").length>0)&&$("#multiproduct-searchbox").smoothScroll(function(){$("#searchbox.relative").removeClass("relative").addClass("fixed");$(".modal-overlay").show();$(".modal-closer").show()},!0),!1});var t,i=$("#multiproduct-searchbox").offset();t=i.top;$(window).scroll(function(){var i=n.isHomePage?$("#multiproduct-searchbox").outerHeight()+20:0,r=$(window).scrollTop();r>t+i&&(n.isHomePage?$("div.homefix").show():$("#multiproduct-searchbox").parent(".relative").removeClass("relative").addClass("fixed"));r<t+i&&(n.isHomePage?$("div.homefix").hide():$("#multiproduct-searchbox").parent(".fixed").removeClass("fixed").addClass("relative"))}).scroll();$("#multiproduct-searchbox-tabs a",".home").first().click();$("#multiproduct-searchbox-tabs a",".dialog").first().click();$("#multiproduct-searchbox .k-datepicker input").prop("readonly",!0);$(".hint").tooltipster({position:"bottom",theme:"selected-tooltip-theme",trigger:"hover"});n.isFormPreload&&$("div#loader-links a").click()}function getSearchHelper(n){return SearchHelper=function(t){var i=typeof t.commercial_client_code!="undefined"?t.commercial_client_code:commercial_client_code,r=typeof t.point_of_sale!="undefined"?t.point_of_sale:point_of_sale,u=typeof t.commercial_client_type!="undefined"?t.commercial_client_type:commercial_client_type;return{options:{commercial_client_code:i,point_of_sale:r,commercial_client_type:u,action:n.searchUrl,method:"POST",target:"_self"},__request:{},SearchProduct:function(n,t,i){var f=this,u,r;this.__request={};this.__request["Criteria[0].CriteriaType"]=n;u=typeof i.ServiceDate!="undefined"?i.ServiceDate.split("/"):["0","0","0"];r=new Date(u[0],u[1]-1,u[2]);typeof i.Criteria!="undefined"&&i.Criteria!=null?(i.Criteria.CriteriaType=n,$.each(i.Criteria,function(n,t){if(jQuery.isArray(t))for(var i=0;i<t.length;i++)$.each(t[i],function(t,r){r!==null&&(f.__request["Criteria[0]."+n+"["+i+"]."+t]=r)});else t!==null&&(f.__request["Criteria[0]."+n]=t)})):("Hotel"==n?(typeof t!="undefined"&&t!=""&&(this.__request["Criteria[0].Hotel"]=t),typeof i.Destination!="undefined"&&(this.__request["Criteria[0].Destination"]=i.Destination),this.__request["Criteria[0].CheckIn"]=i.ServiceDate,this.__request["Criteria[0].Rooms[0].Adults"]=1,r.setDate(r.getDate()+1),this.__request["Criteria[0].CheckOut"]=r.getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()):this.__request["Criteria[0].ProductCode"]=t,"Flight"==n&&(this.__request["Criteria[0].DepartureDate"]=i.ServiceDate),"Car"==n&&(this.__request["Criteria[0].PickUpDestination"]=i.PickUpDestination,this.__request["Criteria[0].DropOffDestination"]=i.DropOffDestination,this.__request["Criteria[0].DriverAge"]="33",this.__request["Criteria[0].PickUpTime"]="09:00",this.__request["Criteria[0].PickUpDate"]=i.ServiceDate,this.__request["Criteria[0].ReturnTime"]="09:00",r.setDate(r.getDate()+3),this.__request["Criteria[0].ReturnDate"]=r.getFullYear()+"/"+(r.getMonth()+1)+"/"+r.getDate()),"Excursion"==n&&(this.__request["Criteria[0].DepartureDate"]=i.ServiceDate,this.__request["Criteria[0].Adults"]=1),"Program"==n&&(this.__request["Criteria[0].DepartureDate"]=i.ServiceDate,this.__request["Criteria[0].ProgramType"]=i.ProgramType,this.__request["Criteria[0].Adults"]=1));typeof i.IgnoreOwner!="undefined"&&i.IgnoreOwner!=null&&i.IgnoreOwner!=""&&(this.__request.IgnoreOwner=i.IgnoreOwner);typeof i.ReservationId!="undefined"&&i.ReservationId!=null&&i.ReservationId!=""?this.__request.ReservationId=i.ReservationId:(this.__request.point_of_sale=this.options.point_of_sale,this.__request.commercial_client_code=this.options.commercial_client_code,this.__request.commercial_client_type=this.options.commercial_client_type);this.__post()},__post:function(){var t="__formsearch_postdata_",i=[],n;jQuery.each(this.__request,function(n,t){i[i.length]='<input type="hidden" name="'+n+'" value="'+t+'" />'});n=document.getElementById(t);n||(n=document.createElement("FORM"),n.setAttribute("id",t),n.setAttribute("name",t),n.setAttribute("action",this.options.action),n.setAttribute("method",this.options.method),n.setAttribute("target",this.options.target),document.body.appendChild(n));n.innerHTML=i.join("");n.submit()}}}}function getSearchBoxHelper(){return SearchBoxHelper={Search:function(n,t){var i=$("#"+n+"-tab");i&&(typeof t!="undefined"&&this.__setDefaultDestination(n,t),i.attr("href")!="#"?document.location=i.attr("href"):i.click())},__setDefaultDestination:function(n,t){var i="",u="kendoDropDownList",r;switch(n){case"Hotel":i="mp_hotel_Destination";break;case"Flight":i="mp_flight_Destination";break;case"Car":i="mp_car_PickUpDestination";__DropOff=$("#mp_car_DropOffDestination").data("kendoDropDownList");__DropOff.value(t);break;case"Excursion":i="mp_excursion_Departure";break;case"Program-Tour":i="mp_program_Duration";break;case"Program-SpecialProgram":i="mp_program_Duration"}u!=""?(r=$("#"+i).data(u),r.value(t),r.trigger("change")):(r=$("#"+i),r.val(t))}}}function initSearchBoxCommon(n){if($("#"+n.prefixId+"cb_promocode").change(function(){$("#"+n.prefixId+"promocode").css("display",$(this).prop("checked")?"":"none")}).change(),$("#page-code").val()==n.ePageCode||n.isTravelAgent){$("#"+n.prefixId+"code_group input:radio").click(function(){$("#"+n.prefixId+"code").attr("placeholder",$(this).val());$("#"+n.prefixId+"code_group a").hide();$("#"+$(this).attr("id")+"_link").show()});$("#"+n.prefixId+"code_access_radio").click();var t=$("#"+n.prefixId+"CCType").val();t!="TravelAgency"&&t!="PublicPricesTravelAgency"&&$("#"+n.prefixId+"code_group").show()}}function DataPostCommon(n){var t={};return $("#"+n.prefixId+"Id").val()!=""&&(t.ReservationId=$("#"+n.prefixId+"Id").val()),$("#"+n.prefixId+"ServiceId").val()!=""&&(t.ServiceId=$("#"+n.prefixId+"ServiceId").val()),$("#"+n.prefixId+"ResultItemId").val()!=""&&(t.ResultItemId=$("#"+n.prefixId+"ResultItemId").val()),$("#"+n.prefixId+"code").val()!=""&&(t.commercial_client_type=$("#"+n.prefixId+"code_access_radio").prop("checked")?"TravelAgency":"PublicPricesTravelAgency",t.commercial_client_code=$("#"+n.prefixId+"code").val(),t.OverwriteBooking=!0),t}function getDepartureAirport(n){var t=$("#"+n+"-International.selected").length>0?$("#"+n+"DepartureInternational").val():$("#"+n+"DepartureDomestic").val();return t!=null?t:""}function ArrivalOnKeyHandler(n){return n.preventDefault(),!1}function populateArrivalCities(n,t,i,r){var o,u;if(n!=lastIsInt||lastDepartureCity!=t){lastIsInt=n;lastDepartureCity=t;var f=[],e="",s="";for(o=0;o<arrivalCities.length;o++)u=arrivalCities[o],n==u.International&&u.Departure==t&&(f.push(u),u.Value==r&&(e=u.Value,s=u.Text+" ("+u.Value+") "+u.Country));e==""&&f.length>0&&(u=f[0],e=u.Value,s=u.Text+" ("+u.Value+") "+u.Country);populateComboBox("#"+i,f,e);$("#"+i).combobox("setInputValue",s);$("#"+i).combobox("hideAutocomplete",{});$("#"+i).combobox("setupHint",{show:!1})}}function populateComboBox(n,t,i){var u,r,f;if(i=typeof i!="undefined"?i:"",$(n).length>0){for(u=[],r=0;r<t.length;r++)f=i==t[r].Value?'selected="selected" ':" ",u.push("<OPTION "+f+'VALUE="'+t[r].Value+'">'+t[r].Text+"|"+t[r].Value+"|"+t[r].Country+"<\/OPTION>");$(n).html(u.join(""))}else console.log(n+"Select Not Found")}var indexOfValue,czDLGResult,czDLGWindow,czDLGCallBack,__hideItemsSelector,buttonPressed;$(document).ready(function(){$("input.page_data").each(function(key,value){var evalProperty=$(value).data("setupattr"),evalValue=$(value).val();eval(evalProperty+'="'+evalValue+'"')});initBinding();$(".accordion-header, .arrow").click(function(){$(this).parent().find(".accordion-data").toggle();$(this).parent().find(".arrow").toggleClass("arrow-down arrow-up");$(this).parent().siblings().find(".accordion-data").css("display","none");$(this).parent().siblings().find(".arrow").removeClass("arrow-up").addClass("arrow-down")});$("div.boxes-container div.basic-box:last-child").length>0&&$("div.boxes-container div.basic-box:last-child").css("margin-right","0")});$.fn.smoothScroll=function(n,t){var r=0,i=$("#multiproduct-searchbox").outerHeight(!0),u;t=typeof t=="undefined"?!1:t;!t&&!isNaN(i)&&$("div#searchbox.fixed:visible").length>0&&(r=i);!t&&!isNaN(i)&&$("div#searchbox.relative:visible").length>0&&(r=2*i);u=$(this).offset();u&&$("html, body").animate({scrollTop:u.top-r},"fast","swing",n)};$.fn.scrollMinimal=function(n,t){var i=$(this).offset().top,r=$(this).outerHeight(!0),f=$(window).scrollTop(),u=$(window).height();i<f?n?$("body").animate({scrollTop:i},"slow","swing",t):($(window).scrollTop(i),t!=null&&t()):i+r>f+u&&(n?$("body").animate({scrollTop:i-u+r},"slow","swing",t):($(window).scrollTop(i-u+r),t!=null&&t()))};indexOfValue=_.indexOf;_.mixin({indexOf:function(n,t){if(!_.isFunction(t))return indexOfValue(n,t);for(var i=0;i<n.length;i++)if(t(n[i]))return i;return-1}});czDLGResult="Cancel";$(document).ready(function(){$("#czDLGWindow").length==0&&$("<div />",{id:"czDLGWindow"}).appendTo("body");czDLGWindow=$("#czDLGWindow").kendoWindow({actions:["Close"],draggable:!0,modal:!0,resizable:!1,visible:!1,title:!1}).data("kendoWindow");$("#czDLGWindow").parent().addClass("dlg")});var SelectedSoFarController=null,SystemGlobalConfig=dejavu.Class.declare({$constants:{RETRY:50}}),SystemSteps=dejavu.Class.declare({$constants:{UNDEFINED:"undefined",CARS:"cars",HOTELS:"hotels",FLIGHTS:"flights",EXCURSIONS:"excursions",TRANSFERS:"transfers",PROGRAMS:"programs",CRUISES:"cruises",TOURS:"tours",MISCELANY:"miscelany"}}),ProcessSteps=dejavu.Class.declare({$constants:{UNDEFINED:0,SEARCH:1,SELECTPRODUCT:2,CHECKOUT:3,CONFIRMATION:4,COMPLETETRIP:5,SUMMARY:6}}),MessageType=dejavu.Class.declare({$constants:{ERROR:"error",WARNING:"warning",INFORMATION:"information"}}),LoaderControllerContext=dejavu.Class.declare({$constants:{LIST:"list",FT:"ft"}}),ListState=dejavu.Class.declare({$constants:{NORMAL:"normal",EDITING:"editing"}}),ItemState=dejavu.Class.declare({$constants:{UNCHANGED:"unchanged",ADDED:"added",MODIFIED:"modified",DELETED:"deleted",EDITING:"editing",UNDEFINED:"undefined",NOT_AVAILABLE:"not_available"}}),ProductType=dejavu.Class.declare({$constants:{UNDEFINED:"Undefined",FLIGHT:"Flight",HOTEL:"Hotel",CAR:"Car",PROGRAM:"Program",EXCURSION:"Excursion",TRANSFER:"Transfer"}}),ProgramType=dejavu.Class.declare({$constants:{UNDEFINED:"Undefined",SPECIAL_PROGRAM:"SpecialProgram",TOUR:"Tour"}}),SelectedSoFarItemType=dejavu.Class.declare({$constants:{SERVICE:"service",INPROCESS:"inprocess",ONREQUEST:"onrequest"}}),ActiveView=dejavu.Class.declare({$constants:{UNDEFINED:"Undefined",LIST:"List",MAP:"Map"}}),ActionResult=dejavu.Class.declare({$constants:{OK:"OK",ERROR:"ERROR",TIMEOUT:"TIMEOUT",NOCHANGE:"NOCHANGE"}}),Order=dejavu.Class.declare({$constants:{NONE:"none",ASC:"asc",DESC:"desc"}}),CommonMessages=dejavu.Class.declare({$name:"CommonMessages",$static:{TRANSFER_ADDED:"",SELECT_TRANSFER:"",ADD_TRANSFER:"",ROOM:"",FLIGHT_OUTBOUND_ADDED_NEED_INBOUND:"",ADD_EXCURSION:"",ADD_CAR:"",SELECT_CAR:"",ADD_INBOUND_FLIGHT:"",ADD_OUTBOUND_FLIGHT:"",SELECT_INBOUND_FLIGHT:"",SELECT_OUTBOUND_FLIGHT:"",SELECT_OUTBOUND_ONEWAY_FLIGHT:"",ADD_ROOM:"",ADDED:"",ALERT_TECH_ERROR:"",BOOKINGPROCESS_FROM:"",SELECT:"",MORE_FILTERS:"",LESS_FILTERS:"",PREVIOUS_PAGE:"",NEXT_PAGE:"",CAR_COMPANY_CONDITIONS:"",SHOW_FLIGHT_DETAILS:"",HIDE_FLIGHT_DETAILS:"",SHOW_RETURN_FLIGHTS:"",HIDE_RETURN_FLIGHTS:"",SHOW_DETAILS:"",HIDE_DETAILS:"",NO:"",YES:"",REMOVE_SERVICE:"",CONFIRM_TITLE:"",OK:"",CANCEL:"",PRICE_BREAKDOWN:"",HOTEL_ADDED:"",ROOM_ADDED:"",FLIGHT_ADDED:"",CAR_ADDED:"",SERVICES_SUCCESFULL_SAVED:"",NOT_AVAILABLE:"",FLIGHT_COMPANY_CONDITIONS:"",ADD_PROGRAM:"",ADD_TOUR:"",EXCURSION_ADDED:"",TOUR_ADDED:"",SPECIAL_PROGRAM_ADDED:"",CHOOSE_DESTINATION:"",CHOOSE_HOTEL:"",CHOOSE_LANGUAGE:"",CHOOSE_HOUR:"",START_NEW_SEARCH:"",CONFIRM_NEXT_PRODUCT_TYPE:"",CONFIRM_NO_PRODUCT_SELECTED:"",ADD_HOTEL:"",HOTEL_SELECTED:""}}),ICaller=dejavu.Interface.declare({$name:"ICaller",setCallback:function(){}}),ISorter=dejavu.Interface.declare({$name:"ISorter",$extends:ICaller,getSortCriteria:function(){},setEnabled:function(){}}),IFilter=dejavu.Interface.declare({$name:"IFilter",$extends:ICaller,getFilter:function(){},setEnabled:function(){},updateFilter:function(){},runFilter:function(){},setCallback:function(){},getValues:function(){},updateValues:function(){}}),Sorter=dejavu.Class.declare({$name:"Sorter",$implements:[ISorter],_selector:"",_options:[],_callback:null,_currentOption:null,_classASC:null,_classDESC:null,_classActive:null,_classNormal:null,_enabled:!0,initialize:function(n){this._selector=n.selector;this._classASC=n.classASC;this._classDESC=n.classDESC;this._classActive=n.classActive;this._classNormal=n.classNormal;this._classDisabled=n.classDisabled;this._dataOrder=n.dataOrder;this._fieldOrder=n.fieldOrder;this._options=$(this._selector);for(var t=0,i=this._options.length,t=0;t<i;t++)$(this._options[t]).unbind().click(this._optionClick.$bind(this)),this._updateOptionView($(this._options[t]));this._currentOption=this.__getCurrentOption()},__getCurrentOption:function(){var n=$("."+this._classActive);return n.length==0?null:n.length==1?$(n):$(n[0])},setEnabled:function(n){this._enabled=n;n?$(this._selector).removeClass(this._classDisabled):$(this._selector).addClass(this._classDisabled)},setCallback:function(n){this._callback=n},getSortCriteria:function(){return this._currentOption==null?null:{field:this._currentOption.data(this._fieldOrder),fieldOrder:this._currentOption.data(this._dataOrder)}},_resetOrder:function(){for(var n=0,t=this._options.length,n=0;n<t;n++)this._options[n].data(this._dataOrder,Order.ASC),this._updateOptionView(this._options[n])},_resetOptionView:function(n){n!=null&&(n.data(this._dataOrder,Order.NONE),n.attr("data-"+this._dataOrder,Order.NONE),n.removeClass(this._classASC).removeClass(this._classDESC))},_resetOptions:function(){for(var n=0,r=this._options.length,u=this._currentOption.data(this._fieldOrder),t,i,n=0;n<r;n++)t=$(this._options[n]),i=t.data(this._fieldOrder),i!=u&&this._resetOptionView(t)},_updateOptionView:function(n){if(n!=null){var t=n.data(this._dataOrder);t==Order.NONE?n.removeClass(this._classASC).removeClass(this._classDESC):t==Order.ASC&&n.removeClass(this._classDESC).addClass(this._classASC);t==Order.DESC&&n.removeClass(this._classASC).addClass(this._classDESC)}},_optionClick:function(n){if(this._enabled){this._currentOption=$($(n.currentTarget));var i=this._currentOption.data(this._fieldOrder),t=this._currentOption.data(this._dataOrder);t==Order.NONE?t=Order.ASC:t==Order.ASC?t=Order.DESC:t==Order.DESC&&(t=Order.ASC);this._currentOption.data(this._dataOrder,t);this._currentOption.removeClass(this._classNormal).addClass(this._classActive);this._currentOption.siblings(this._selector).removeClass(this._classActive).addClass(this._classNormal);this._updateOptionView(this._currentOption);this._resetOptions();this._callback!=null&&this._callback(this.getSortCriteria())}}}),ListFilters=dejavu.Class.declare({$constants:{HOTEL_STARS:"stars",HOTEL_CHAIN:"hotelChain",MEAL_PLAN:"mealPlan",ACCOMMODATION:"accommodation",SHOW_ONLY_FULL_AVAILABLE_ROOMS:"showOnlyFullAvailableRooms",PRICE_RANGE:"priceRange",ROOM_TYPE:"roomType",CLASIFICATION:"clasification",DESTINATION:"destination",NONSTOP:"nonstop",AIRLINE:"airline"}}),Filter=dejavu.Class.declare({$name:"Filter",$implements:[IFilter],_selector:"",_enabled:!0,_callback:null,initialize:function(n){this._selector=n.selector},setEnabled:function(n){this._enabled=n},getFilter:function(){return[]},updateFilter:function(){},runFilter:function(){this._callback!=null&&this._callback(this.getFilter())},_updateRegion:function(n,t){var i=$("#"+n);i.length==1&&(t.length==0?i.hide():i.show())},setCallback:function(n){this._callback=n},getValues:function(n,t){for(var r=[],u=$(n),f=u.length,i=0;i<f;i++)t?r.push(parseInt($(u[i]).val())):r.push($(u[i]).val());return r},updateValues:function(n,t){var u=$("#CommonValueFilterTemplate"),r=$("#"+n+" ul"),f,i;if(u.length!=0&&r.length!=0){for(r.empty(),f=kendo.template(u.html()),i=0;i<t.length;i++)r.append(f(t[i]));this._updateRegion(n,t)}}}),ResultItem=dejavu.Class.declare({$name:"ResultItem",_id:"",_resultItemId:"",_reservationId:null,_requestId:null,_serviceId:null,_initPrice:"",_subTotalPriceValue:0,_currencySymbol:"",initialize:function(n,t,i,r,u,f,e){this._id=n;this._reservationId=t;this._requestId=i;this._serviceId=r;this._initPrice=u;this._subTotalPriceValue=f;this._currencySymbol=e}}),ResultItemsLoader=dejavu.Class.declare({$name:"ResultItemsLoader",_partialResultItemsContainer:null,_reservationId:0,_requestId:0,_serviceId:0,_resultItemId:"",_activeView:ActiveView.LIST,_sorterControl:null,_filterControl:null,_retry:10,_retryCounter:0,OnLoadComplete:null,_selectedSoFarController:null,_loadedCompleted:!1,_progress:null,_updateProgress:null,_noPaging:!1,_ajaxRequest:null,_cancelRequest:!1,__pageUnloading:!1,_listStatus:ListState.NORMAL,_options:{},_reCallWait:1500,_startPage:1,_firstLoading:!0,__resetFilterCtrl:null,_callingCount:0,_lastIdx:0,_editingResultItemId:"",_perPage:10,$static:{preloadingImage:""},initialize:function(n,t,i){n.selectedSoFarController==null&&(SelectedSoFarController==null&&initSelectedSoFarController(),n.selectedSoFarController=SelectedSoFarController);this._options=n;this._startPage=1;this._callingCount=0;this._retryCounter=0;this._loadedCompleted=!1;this._cancelRequest=!1;this._ajaxRequest=null;this._lastIdx=0;this._perPage=10;this._activeView=ActiveView.LIST;t!=null&&dejavu.instanceOf(t,ISorter)&&(this._sorterControl=t);i!=null&&dejavu.instanceOf(i,IFilter)&&(this._filterControl=i);this.__resetFilterCtrl=$("#resetFilterLink");this.__resetFilterCtrl.length==0&&(this.__resetFilterCtrl=null);this._progress=$("#loadingDataProgress");this._progress.length==0&&(this._progress=null);this._updateProgress=$("#showMapProgress");this._updateProgress.length==0&&(this._updateProgress=null);$("#totalResultItems").length>0&&$("#totalResultItems").text("0");this._partialResultItemsContainer=$("#PartialResultItemsContainer");typeof n.editingResultItemId=="string"&&(this._editingResultItemId=n.editingResultItemId);this._filterControl!=null&&this._filterControl.setCallback(this._filterChanged.$bind(this));this._sorterControl!=null&&this._sorterControl.setCallback(this._sortContent.$bind(this));this._reCallWait=typeof n.reCallWait=="number"?n.reCallWait:1500;this._selectedSoFarController=n.selectedSoFarController;this._activeView=ActiveView.LIST;this._reservationId=n.reservationId;this._requestId=n.requestId;this._serviceId=n.serviceId;this._resultItemId=n.resultItemId;this._retry=n.retry;this._listStatus=n.listStatus;this.OnLoadComplete=n.onLoadComplete;typeof n.noPaging!="undefined"&&(this._noPaging=!0);$(window).on("beforeunload",this.__onPageUnload.$bind(this));var r=$("#searchAgainLink");r.length>0&&r.click(this._searchAgain.$bind(this))},getCount:function(){return this._getResultItems().length},_getResultItems:function(){return $(this._options.resultItemSelector)},getResultItemId:function(n){var t=this._getResultItems();return t.length==0||n<0||n>=t.length?"":$(t[n]).data("resultitemid")},_getFilteredItems:function(){return $(this._options.resultItemFilteredSelector)},_filterResultItems:function(){},_filterChanged:function(n){this._filterResultItems(n);this._partialResultItemsContainer.css("min-height","0px");this.__resetFilterCtrl!=null&&(this._isFilterEmpty(n)?this.__resetFilterCtrl.parent().hide():this.__resetFilterCtrl.parent().show())},_showResetFilterCtrl:function(n){this.__resetFilterCtrl!=null&&(n?this.__resetFilterCtrl.parent().show():this.__resetFilterCtrl.parent().hide())},_isFilterEmpty:function(){return!0},_sortContent:function(){},_updateListingAreas:function(n,t,i,r){n?$("#itemsListHeader").show():$("#itemsListHeader").hide();t?($("#itemsListHeader").show(),$("#PartialResultItemsContainer").show(),$("#searchAgainLink").length>0&&$("#searchAgainLink").show()):($("#itemsListHeader").hide(),$("#PartialResultItemsContainer").hide(),$("#searchAgainLink").length>0&&$("#searchAgainLink").hide());i?$("#listPager").show():$("#listPager").hide();r?($("#listSorter").show(),$("#listFilter").show()):($("#listSorter").hide(),$("#listFilter").hide())},_getFiltersValues:function(n,t,i,r){var u=[],f=1,e=typeof r=="boolean"?r:!1;return $.each(n,function(n,r){n!=""&&(e&&$("."+i+"[value='"+htmlDecode(n)+"']").prop("checked",!1),u.push({selector:i,id:t+"_"+f,value:n,text:n,count:r,selected:e?!1:$("."+i+"[value='"+htmlDecode(n)+"']").is(":checked")}),f++)}),u},_onDeleteSoFar:function(){this._updateStatus()},_updateStatus:function(){},_updateInfoBinding:function(){},_updateListItems:function(n,t,i){this._updateInfoBinding();(this._listStatus!=ListState.EDITING||this._listStatus==ListState.EDITING&&this._serviceId==0)&&this._updateStatus();n&&this._updatePaging(t,i)},_showNoAvailabilityMessage:function(){$("#NoAvailabilityErrmsg").show();$("#changeCriteriaBtn").click()},_onLoadCompleted:function(n){this._sorterControl!=null&&this._sorterControl.setEnabled(!0);this._showProgress(!1);this._enableFilterControls(!0);this._loadedCompleted=!0;this._callingCount=0;this._retryCounter=0;this._lastIdx=0;this.OnLoadComplete!=null&&typeof this.OnLoadComplete=="function"&&setTimeout(this.OnLoadComplete,10);this.getCount()===0&&this._showNoAvailabilityMessage();this._partialResultItemsContainer.css("min-height","0px");this._updateListItems(!0,!0,n);this._resetFirstLoading();this._updateStatus()},_updateFilters:function(){},__onPageUnload:function(){this.__pageUnloading=!0},PageUnLoading:function(){return this.__pageUnloading},showPreloading:function(n,t,i,r,u,f){t?(typeof n!="undefined"&&n!=null&&(typeof i=="undefined"||typeof r=="undefined"||typeof u=="undefined"?n.after("<img style='float:right;display:none;margin-right:20px;margin-top:5px;' id='preloadingOptionImage' src='"+ResultItemsLoader.preloadingImage+"' />"):typeof f=="boolean"&&f?n.after("<img style='width:"+i+"px;height:"+i+"px;position:absolute;display:none;right:"+r+"px;top:"+u+"px;' id='preloadingOptionImage' src='"+ResultItemsLoader.preloadingImage+"' />"):n.after("<img style='width:"+i+"px;height:"+i+"px;float:right;display:none;margin-right:"+r+"px;margin-top:"+u+"px;' id='preloadingOptionImage' src='"+ResultItemsLoader.preloadingImage+"' />"),n.hide()),$("#preloadingOptionImage").show()):($("#preloadingOptionImage").remove(),typeof n!="undefined"&&n!=null&&n.show())},__getEncodedArray:function(n){for(var i=[],r=n.length,t=0;t<r;t++)i.push(htmlEncode(n[t]));return i},_itemsInFilterArray:function(n,t){if(n.length==0&&t.length==0)return!0;if(n.length>0&&t.length==0)return!1;var i=_.intersection(this.__getEncodedArray(n),this.__getEncodedArray(t));return i.length>0},_itemInFilterArray:function(n,t){return n.length==0?!0:_.indexOf(this.__getEncodedArray(n),htmlEncode(t))!=-1},_showItems:function(n,t){var i,r,u;if(n.length!=0)for(r=0,u=n.length,r=0;r<u;r++)i=$(n[r]),t?(i.show(),i.removeClass("jp-hidden"),i.addClass("visibleItem")):(i.hide(),i.addClass("jp-hidden"),i.removeClass("visibleItem"))},_LoadCompleted:function(){var n=$("#LoadCompleteFlag");return n.length>0},_isEditing:function(){return this._listStatus==ListState.EDITING},_disabledClick:function(n){n.preventDefault()},_enableFilterControls:function(n){this._sorterControl!=null&&this._sorterControl.setEnabled(n);this._filterControl&&this._filterControl.setEnabled(n);this.__resetFilterCtrl!=null&&(n?this.__resetFilterCtrl.unbind().click(this._resetFilter.$bind(this)):this.__resetFilterCtrl.unbind().click(this._disabledClick.$bind(this)))},_resetFilter:function(n){n.preventDefault();this._updateFilters(this._getResultItems(),!0);this._filterControl&&this._filterControl.runFilter()},getLoadComplete:function(){return this._loadedCompleted},updateProgress:function(){if(this._progress!=null&&$("#tableOptions").length!=0){var n=$("#tableOptions").position().top+$("#tableOptions").height()+2,t=$("#tableOptions").offset().left+$("#tableOptions").width()/2-this._progress.width()/2;this._progress.css({left:t,top:n})}},_showProgress:function(n){this._progress!=null&&(n?(this.updateProgress(),this._progress.show()):this._progress.hide())},_setPositionUpdateProgress:function(){if(this._updateProgress!=null&&$("#tableOptions").length!=0){var n=$(window).height()/2-this._updateProgress.height()/2+50,t=$("#tableOptions").offset().left+$("#tableOptions").width()/2-this._updateProgress.width()/2;this._updateProgress.css({left:t,top:n})}},_showUpdateProgress:function(n){this._updateProgress!=null&&(n?(this._setPositionUpdateProgress(),this._updateProgress.show()):setTimeout(function(){this._updateProgress.hide()}.$bind(this),1e3))},_updatePaging:function(n,t){var i=this,r;typeof t=="string"&&(r=$(t),r.length/this._perPage<this._startPage&&(this._startPage=1));typeof this._noPaging!="undefined"&&this._noPaging||$("#navigation").jPages("destroy").jPages({containerID:"PartialResultItemsContainer",perPage:i._perPage,restoreOnDestroy:!1,previous:CommonMessages.PREVIOUS_PAGE,next:CommonMessages.NEXT_PAGE,itemsSelector:".visibleItem"+(typeof t=="string"?t:""),startPage:i._startPage,callback:function(t){i._startPage=t.current;i._partialResultItemsContainer.css("min-height","0px");typeof n=="boolean"&&n&&$("html,body").animate({scrollTop:0},"slow",null)}})},cancelLoading:function(){this._ajaxRequest&&(this._cancelRequest=!0,this._ajaxRequest.abort())},_retriesExpired:function(){this._retryCounter++;var n=this._retryCounter>=this._retry;return n&&(this._retryCounter=0),n},_resetRetries:function(){this._retryCounter=0},_searchAgain:function(n){n.preventDefault();var t=$("#changeCriteriaBtn"),i=$("#searchBoxContainer");t.length!=0&&i.length!=0&&($("html,body").animate({scrollTop:0},"slow",null),i.is(":visible")||t.trigger("click"))},showTCDialog:function(n,t){$("<div />",{id:"dialogWnd"}).appendTo("body");$("#dialogWnd").kendoWindow({width:"600px",maxHeight:"500px",title:n,actions:["Close"],visible:!1,resizable:!1,modal:!0});$("#dialogWnd").parent().addClass("dlg");var i=$("#dialogWnd").data("kendoWindow");i.bind("deactivate",function(){i.destroy();$("#dialogWnd").length>0&&$("#dialogWnd").remove()}.$bind(this));$("#dialogWnd").parent().css("padding-bottom","10px");$("#dialogWnd").data("kendoWindow").content(t);$("#dialogWnd").data("kendoWindow").center();$("#dialogWnd").data("kendoWindow").open()},getReCallWait:function(){var t=$(".ReCallWait"),n;return t.length==0?this._reCallWait:(n=_.sortBy(t,function(n){return $(n).data("time")}),$(n[n.length-1]).val())},hasAnySelected:function(){return!1},_startFirstLoading:function(){this._firstLoading&&(this._firstLoading=!0)},_endFirstLoading:function(){this._firstLoading=!1},_resetFirstLoading:function(){this._firstLoading=!0}});(function(n){function o(t){return i?t.data("events"):n._data(t[0]).events}function s(n,t,r){var f=o(n),u=f[t],e;if(!i){e=r?u.splice(u.delegateCount-1,1)[0]:u.pop();u.splice(r?0:u.delegateCount||0,0,e);return}r?f.live.unshift(f.live.pop()):u.unshift(u.pop())}function t(t,i,r){var u=i.split(/\s+/);t.each(function(){for(var i,t=0;t<u.length;++t)i=n.trim(u[t]).match(/[^\.]+/i)[0],s(n(this),i,r)})}function f(i){n.fn[i+"First"]=function(){var u=n.makeArray(arguments),r=u.shift();return r&&(n.fn[i].apply(this,arguments),t(this,r)),this}}var r=n.fn.jquery.split("."),u=parseInt(r[0]),e=parseInt(r[1]),i=u<1||u==1&&e<7;f("bind");f("one");n.fn.delegateFirst=function(){var i=n.makeArray(arguments),r=i[1];return r&&(i.splice(0,2),n.fn.delegate.apply(this,arguments),t(this,r,!0)),this};n.fn.liveFirst=function(){var t=n.makeArray(arguments);return t.unshift(this.selector),n.fn.delegateFirst.apply(n(document),t),this};i||(n.fn.onFirst=function(i,r){var u=n(this),f=typeof r=="string";if(n.fn.on.apply(u,arguments),typeof i=="object")for(type in i)i.hasOwnProperty(type)&&t(u,type,f);else typeof i=="string"&&t(u,i,f);return u})})(jQuery);buttonPressed=!1,function(n){if(n("#Flight-tab-form")!=null)n(document).on("click",function(t){var i=n(t.target).hasClass("show-all-auto-complete");i||n(t.target).hasClass("ui-button-text")&&n(t.target).parent().hasClass("show-all-auto-complete")&&(i=!0);i||n("ul.ui-autocomplete").hide()});n.widget("custom.catcomplete",n.ui.autocomplete,{options:{maxItemsXCol:15},_create:function(){this._super();this.widget().menu("option","items","> :not(.ui-autocomplete-category)")},_renderMenu:function(t,i){t.css("z-index","10005");t.on("mouseleave",function(){});n("ul.ui-autocomplete").each(function(){n(this).attr("id")!=t.attr("id")&&n(this).is(":visible")&&n(this).hide()});var f=this,r="",u=Math.ceil(i.length/this.options.maxItemsXCol);u>0&&t.css("column-count",u);n.each(i,function(n,i){var u;i.category!=r&&(t.append("<li class='ui-autocomplete-category'>"+i.category+"<\/li>"),r=i.category);u=f._renderItemData(t,i);i.category&&u.attr("aria-label",i.category+" : "+i.label)})},_setOptions:function(){this._superApply(arguments)},_setOption:function(n,t){this._super(n,t)}});n.widget("custom.combobox",{autoCompleteOpened:!1,options:{autoCompMinLength:0,labels:{infoText:"Escriba el nombre de la ciudad, país o código para comenzar",invalidItem:"La ciudad solicitada es incorrecta",seeAll:"Ver todos"},controlId:"",maxItemsXCol:15,customClickFunc:null},_create:function(){this.wrapper=n("<span>").addClass("custom-combobox").insertAfter(this.element);this.element.hide();this.customHint=n("<div>").appendTo(this.wrapper).addClass("custom-combobox-hint").css("display","none");this._createAutocomplete();this._createShowAllButton()},setInputValue:function(n){this.input.val(n)},setElementValue:function(n){this.element.val(n)},_createAutocomplete:function(){var r=this.element.children(":selected"),u="",t,i;r.val()&&(t=r.text().split("|"),u=t.length>0?t[0]+" ("+t[1]+") "+t[2]:t[0]);i=this.customHint;this.input=n("<input>").appendTo(this.wrapper).val(u).addClass("custom-combobox-input ui-widget ui-widget-content ui-state-default ui-corner-left").catcomplete({delay:0,minLength:0,source:n.proxy(this,"_source"),maxItemsXCol:this.options.maxItemsXCol}).click(function(){n(this).select()});this.input.catcomplete("instance")._renderItem=function(t,i){var r=i.label.split("|");return n("<li>").append(r[0]+" ("+r[1]+")").appendTo(t)};this._on(this.input,{catcompleteselect:function(n,t){console.log("catcompleteselect");t.item.option.selected=!0;this.setupHint({show:!1});this._trigger("change",n,{item:t.item.option})},catcompleteresponse:function(n,t){console.log("catcompleteresponse");this.autoCompleteOpened=!0;t.content.length==0?(this.element.val(""),this.setupHint({show:!0,isError:!0,errorMessage:this.options.labels.invalidItem})):this.setupHint({show:!1})},catcompletesearch:function(){return console.log("catcompletesearch"),i.is(":visible")&&(i.hasClass("info")||this.input.val().length<3)&&this.setupHint({show:!1}),this.input.val().length<3&&!buttonPressed?(this.element.val(""),this.hideAutocomplete(),!1):void 0},click:function(){n("ul.ui-autocomplete").each(function(){n(this).is(":visible")&&n(this).hide()});var t=!0;this.options.customClickFunc!=null&&typeof this.options.customClickFunc=="function"&&(t=this.options.customClickFunc());t&&this.setupHint({show:!0,isError:!1})},blur:function(n){var t=!1;this.element.val()==null||this.element.val()==""?(this.input.val(""),this._trigger("change",n,{item:""}),t=!0):this.input.siblings(".custom-combobox-hint").hasClass("info")&&(t=!0);t&&this.setupHint({show:!1})}})},_handleClick:function(){console.log("handleClick")},hideAutocomplete:function(){this.autoCompleteOpened&&this.input.catcomplete().is(":visible")&&this.input.catcomplete("close")},setupHint:function(t){var i=this.input.siblings(".custom-combobox-hint"),r=this;if(!t.show){i.delay(100).slideUp("fast");return}t.isError?(i.removeClass("info"),i.hasClass("error")||i.addClass("error"),i.html("<span>&nbsp;&nbsp;&nbsp;&nbsp;"+t.errorMessage+"<\/span>")):(i.removeClass("error"),i.hasClass("info")||(i.addClass("info"),i.html(""),n("<span>"+this.options.labels.infoText+"<\/span>").appendTo(i),n('<a href="#" class="show-all-auto-complete" onclick="return false" >'+this.options.labels.seeAll+"<\/a>").click(function(){r._showAll()}).appendTo(i)));t.show&&!i.is(":visible")&&i.slideDown("fast")},_createShowAllButton:function(){var t=this.input,i=!1,r=this;n("<a>").attr("tabIndex",-1).appendTo(this.wrapper).button({text:!1}).removeClass("ui-corner-all").addClass("custom-combobox-toggle show-all-auto-complete").mousedown(function(){i=t.catcomplete("widget").is(":visible")}).click(function(){r._showAll()})},_source:function(t,i){var r=new RegExp(n.ui.autocomplete.escapeRegex(t.term),"i");i(this.element.children("option").map(function(){var u=n(this).text(),i=u.split("|"),e=n(this).val().split("|"),f=i[0]+" ("+i[1]+") "+i[2];if(this.value&&(!t.term||r.test(u)||r.test(f)))return{value:i.length>0?i[0]+" ("+i[1]+") "+i[2]:u,label:u,category:i.length>2?i[2]:"",option:this}}))},_showAll:function(){buttonPressed=!0;this.input.val("");this.element.val("");this.input.catcomplete("search","");buttonPressed=!1},_destroy:function(){this.wrapper.remove();this.element.show()},_setOptions:function(){this._superApply(arguments)},_setOption:function(n,t){this._super(n,t)}})}(jQuery),function(n){var r=window.kendo,t=r.ui,i=t.Calendar,u=i.extend({init:function(n,t){i.fn.init.call(this,n,t);this._updateselection()},options:{name:"MultiCalendar",values:[]},_updateselection:function(){var t=this;n.each(this.options.values,function(n,i){t._cellByDate(t._view.toDateString(new Date(i)))});this._disableDates()},_cellByDate:function(t){this._table.find("td").each(function(){var i=n(this.firstChild).attr("data-value");i===t&&(n(this.firstChild).addClass("k-state-selected"),n(this.firstChild).addClass("date-go"),n(this.firstChild)[0].firstChild.classList.remove("disabledDay"))})},_disableDates:function(){var t=this;this._table.find("td").each(function(){var i=n(this.firstChild).attr("data-value");t._findDateValue(i)||(n(this.firstChild).removeClass("k-link"),n(this.firstChild).addClass("text-underline-none"),n(this.firstChild).removeAttr("href"))});n(this._nextArrow[0]).css("display","none");n(this._prevArrow[0]).css("display","none");n(this._title[0]).addClass("k-state-disabled")},_findDateValue:function(n){for(var t=0;t<this.options.values.length;t++)if(n===this._view.toDateString(new Date(this.options.values[t])))return!0;return!1}});t.plugin(u)}(jQuery)