(function($){$(document).ready(function(){let tfhb_local_timeZone=Intl.DateTimeFormat().resolvedOptions().timeZone;const tfhb_i18n=tfhb_app_booking.i18n;tfhb_local_timeZone=="Asia/Calcutta"&&(tfhb_local_timeZone="Asia/Kolkata");function tfhbTranslate(t){return tfhb_i18n[t]||t}function tfhbTranslateNumber(t){return t.toString().split("").map(function(e){return tfhbTranslate(e)}).join("")}function tfhbTranslateTimeSlot(t){return t.slice(6,8)!=""?tfhbTranslateNumber(t.slice(0,2))+":"+tfhbTranslateNumber(t.slice(3,5))+" "+tfhbTranslate(t.slice(6,8)):tfhbTranslateNumber(t.slice(0,2))+":"+tfhbTranslateNumber(t.slice(3,5))}function tfhbPad(t){return t.toString().padStart(2,"0")}function tfhbDateFormatFromSettings(t){if(typeof tfhb_app_booking>"u"||!tfhb_app_booking.general_settings)return t;var e=tfhb_app_booking.general_settings.date_format;return typeof e!="string"||e.trim()===""?t:e.trim()}function tfhbFormatDateByPattern(t,e){if(!t||isNaN(t.getTime()))return"";for(var a=["January","February","March","April","May","June","July","August","September","October","November","December"],n=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],l={d:tfhbTranslateNumber(tfhbPad(t.getDate())),j:tfhbTranslateNumber(t.getDate()),m:tfhbTranslateNumber(tfhbPad(t.getMonth()+1)),n:tfhbTranslateNumber(t.getMonth()+1),Y:tfhbTranslateNumber(t.getFullYear()),y:tfhbTranslateNumber(t.getFullYear().toString().slice(-2)),F:tfhbTranslate(a[t.getMonth()]),M:tfhbTranslate(n[t.getMonth()]),l:tfhbTranslate(o[t.getDay()]),D:tfhbTranslate(i[t.getDay()])},d="",f=0;f<e.length;f++){var s=e[f];if(s==="\\"){f+=1,d+=e[f]||"";continue}d+=Object.prototype.hasOwnProperty.call(l,s)?l[s]:s}return d}$(document).on("click",".tfhb-timezone-tabs ul li",function(t){$(".tfhb-timezone-tabs ul li").removeClass("active");var e=$(this);e.addClass("active")}),$(".tfhb-meeting-box").each(function(){let $this=$(this),calenderId=$this.attr("data-calendar"),calenderData=eval("tfhb_app_booking_"+calenderId),preloader=`<div class="tfhb-preloader"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="shape-rendering: auto; display: block; background: transparent;" width="200" height="200" xmlns:xlink="http://www.w3.org/1999/xlink"><g><circle stroke-linecap="round" fill="none" stroke-dasharray="51.83627878423159 51.83627878423159" stroke="#2e6b38" stroke-width="4" r="33" cy="50" cx="50">
				<animateTransform values="0 50 50;360 50 50" keyTimes="0;1" dur="1s" repeatCount="indefinite" type="rotate" attributeName="transform"></animateTransform>
			  </circle><g></g></g><!-- [ldio] generated by https://loading.io --></svg></span></div>`,date=new Date,year=date.getFullYear(),month=date.getMonth();const tfhb_calendar_navs=$this.find(".tfhb-calendar-navigation span"),months=["January","February","March","April","May","June","July","August","September","October","November","December"];tfhb_date_manipulate($this,calenderData,year,month,date,months),tfhb_calendar_navs.each(function(){$(this).on("click",function(){month=$(this).attr("id")==="tfhb-calendar-prev"?month-1:month+1,month<0||month>11?(date=new Date(year,month,new Date().getDate()),year=date.getFullYear(),month=date.getMonth()):date=new Date,$this.find(".tfhb-meeting-times").animate({left:"-50%",width:0,opacity:0},300,function(){$(this).css("display","none")}),tfhb_date_manipulate($this,calenderData,year,month,date,months);var t=new Date(year,month,2).toISOString().split("T")[0];setTimeout(function(){tfhb_times_manipulate($this,t,calenderData)},1e3)})}),$($this).on("click",".tfhb-calendar-dates li",function(t){var e=$(this);if(e.hasClass("inactive"))return!1;$this.find(".tfhb-meeting-times").css("display","block").animate({left:"0%",opacity:1,width:224},400),$this.find(".tfhb-available-times").removeClass("inactive"),$this.find(".tfhb-available-times").html(""),$this.find(".tfhb-available-times").append("<ul></ul>");var a=e.attr("data-date");$this.find("#meeting_dates").val(a);var n=new Date(a+"T00:00:00");if(isNaN(n.getTime())){console.error("Invalid date:",a);return}var o=tfhbFormatDateByPattern(n,tfhbDateFormatFromSettings("l, F j"));$this.find(".tfhb-meeting-times .tfhb-select-date").html(o);var i=calenderData.calander_available_time_slot[a];if(i.length>0)for(var l=0;l<i.length;l++){var d="";i[l].remaining!=null&&(d='<span class="tfhb-time-slot-remaining tfhb-flexbox"><span></span>'+tfhbTranslateNumber(i[l].remaining)+" "+tfhbTranslate("seats left")+"</span>"),$this.find(".tfhb-available-times ul").append('<li class="tfhb-flexbox"> <div class="time" data-time-start="'+i[l].start+'" data-time-end="'+i[l].end+'">'+tfhbTranslateTimeSlot(i[l].start)+d+" </div> </li>")}else $this.find(".tfhb-available-times ul").append('<li class="tfhb-flexbox"> <div>No time slot available in this date ! Try another date.</span> </div>');$this.find(".tfhb-calendar-dates li").removeClass("active"),e.addClass("active")}),$this.find("#attendee_time_zone_"+calenderId).on("change",function(t){$this.find(".tfhb-meeting-times").animate({left:"-50%",width:0,opacity:0},300,function(){$(this).css("display","none")});var e=new Date(year,month,2).toISOString().split("T")[0];tfhb_times_manipulate($this,e,calenderData)}),$this.find('input[name="tfhb_time_format"]').on("change",function(t){var e=new Date(year,month,2).toISOString().split("T")[0];tfhb_times_manipulate($this,e,calenderData,function(){$this.find(".tfhb-calendar-dates li.active").trigger("click")})});const $timezoneSelect=$this.find("#attendee_time_zone_"+calenderId);$timezoneSelect.length&&($timezoneSelect.select2({dropdownCssClass:"tfhb-select2-dropdown"}),$timezoneSelect.val(tfhb_local_timeZone).trigger("change")),$($this).on("click",".tfhb-available-times li .time",function(t){$this_time=$(this),$(".tfhb-available-times li .time").removeClass("active"),$(".tfhb-available-times li .next").remove();var e=$this_time.attr("data-time-start"),a=$this_time.attr("data-time-end");$this.find("input[name='meeting_time_start']").val(e),$this.find("input[name='meeting_time_end']").val(a),$this_time.parent().append('<span class="next tfhb-flexbox tfhb-gap-8"> '+tfhbTranslate("Next")+'<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 10L14 10" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/><path d="M9 4.16666L14.8333 9.99999L9 15.8333" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg></span>'),$this_time.addClass("active")}),$($this).on("click",".tfhb-available-times li .next",function(t){var e=$this.find("#attendee_time_zone_"+calenderId).val(),a=$this.find("#meeting_dates").val(),n=$this.find("#meeting_time_start").val();$this.find("#meeting_time_end").val();var o=`<li class="tfhb-flexbox tfhb_time_zone_info tfhb-gap-8">
						<input type="hidden" id="recurring_maximum" name="recurring_maximum" value="' . esc_attr( $meeting['recurring_maximum'] ) . '">
						<div class="tfhb-icon">  
							<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
								<g clip-path="url(#clip0_1840_26071)">
									<path d="M8.00065 14.6667C11.6825 14.6667 14.6673 11.6819 14.6673 8.00001C14.6673 4.31811 11.6825 1.33334 8.00065 1.33334C4.31875 1.33334 1.33398 4.31811 1.33398 8.00001C1.33398 11.6819 4.31875 14.6667 8.00065 14.6667Z" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
									<path d="M8.00065 1.33334C6.28881 3.13078 5.33398 5.51784 5.33398 8.00001C5.33398 10.4822 6.28881 12.8692 8.00065 14.6667C9.71249 12.8692 10.6673 10.4822 10.6673 8.00001C10.6673 5.51784 9.71249 3.13078 8.00065 1.33334Z" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
									<path d="M1.33398 8H14.6673" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
									</g>
									<defs>
									<clipPath id="clip0_1840_26071">
									<rect width="16" height="16" fill="white"/>
									</clipPath>
									</defs>
							</svg>
						</div> 
						<div>
							`+e+"("+tfhbTranslateTimeSlot(n)+`)
						</div>
					</li>`,i=new Date(a+"T00:00:00"),l=tfhbFormatDateByPattern(i,tfhbDateFormatFromSettings("l, F j, Y")),d=`<li class="tfhb-flexbox tfhb_date_time_info tfhb-gap-8">
						<input type="hidden" id="recurring_maximum" name="recurring_maximum" value="' . esc_attr( $meeting['recurring_maximum'] ) . '">
						<div class="tfhb-icon">  
							<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
								<path d="M5.33398 1.33334V4.00001" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
								<path d="M10.666 1.33334V4.00001" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
								<path d="M12.6667 2.66666H3.33333C2.59695 2.66666 2 3.26361 2 3.99999V13.3333C2 14.0697 2.59695 14.6667 3.33333 14.6667H12.6667C13.403 14.6667 14 14.0697 14 13.3333V3.99999C14 3.26361 13.403 2.66666 12.6667 2.66666Z" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
								<path d="M2 6.66666H14" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
								<path d="M6 10.6667L7.33333 12L10 9.33334" stroke="#273F2B" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
							</svg>
						</div> 
						<div>
							`+l+`
						</div>
					</li>`;$this.find(".tfhb-meeting-details ul").append(o),$this.find(".tfhb-meeting-details ul").append(d),$this.find(".tfhb-timezone").hide(),$this.find(".tfhb-meeting-times").animate({left:"-50%",width:0,opacity:0},300,function(){$(this).css("display","none")}),$this.find(".tfhb-calander-times").animate({left:"-5%",opacity:0},400,function(){$(this).css("display","none"),$this.find(".tfhb-meeting-booking-form").css("display","block").animate({left:"0",opacity:1,width:536},300)})}),$("span.tfhb-see-description").on("click",function(){$(".tfhb-short-description").slideUp(),$(".tfhb-full-description").slideDown()}),$("span.tfhb-see-less-description").on("click",function(){$(".tfhb-full-description").slideUp(),$(".tfhb-short-description").slideDown()}),$($this).on("click",".tfhb-meeting-booking-form .tfhb-back-btn",function(t){$this.find(".tfhb-meeting-booking-form").animate({left:"-5%",opacity:0},300,function(){$(this).css("display","none"),$this.find(".tfhb-timezone").show(),$this.find(".tfhb-calander-times").css("display","flex").animate({left:"0",opacity:1},200,function(){}),$this.find(".tfhb-meeting-times").css("display","block").animate({left:"0",width:224},400,function(){$(this).css("opacity","1"),$this.find(".tfhb-meeting-details ul .tfhb_time_zone_info").remove(),$this.find(".tfhb-meeting-details ul .tfhb_date_time_info").remove()})})}),$this.find(".tfhb-meeting-form.ajax-submit").on("submit",function(t){t.preventDefault();var e=new FormData(this),a={};e.forEach(function(n,o){a[o]=n}),tfhb_from_submission($this,preloader,a,calenderData)}),document.addEventListener("wpcf7mailsent",function(t){var e=t.detail.formData;if(calenderData.questions_type=="existing"&&calenderData.questions_form_type=="wpcf7"&&t.detail.contactFormId==calenderData.questions_form){var a={};e.forEach(function(n,o){a[o]=n}),tfhb_from_submission($this,preloader,a,calenderData)}}),$(document).on("forminator:form:submit:success",function(t,e){var a={};e.forEach(function(n,o){a[o]=n}),tfhb_from_submission($this,preloader,a,calenderData)}),$(document).on("fluentform_submission_success",function(t,e){var a=new FormData(e.form[0]),n={};a.forEach(function(o,i){n[i]=o}),tfhb_from_submission($this,preloader,n,calenderData)})});function tfhb_render_paypal_payment(t,e){t.find(".tfhb-paypal-button-container");var a=e.confirmation_template;t.find(".tfhb-confirmation-button").hide(),t.find(".wpcf7").hide();let n=typeof tfhb_app_booking.general_settings.currency<"u"&&tfhb_app_booking.general_settings.currency!=""?tfhb_app_booking.general_settings.currency:"USD";paypal.Buttons({createOrder:function(o,i){return i.order.create({purchase_units:[{reference_id:e.data.attendee_data.id,description:e.data.meeting.title+" - "+e.data.meeting.duration+" Minutes | "+e.data.booking.start_time+" - "+e.data.booking.end_time+" | "+e.data.booking.meeting_dates,custom_id:e.data.attendee_data.id,amount:{currency_code:n,value:e.data.meeting.meeting_price}}]})},onApprove:function(o,i){return i.order.capture().then(function(l){$.ajax({url:tfhb_app_booking.ajax_url,type:"POST",data:{nonce:tfhb_app_booking.nonce,action:"tfhb_meeting_paypal_payment_confirmation",payment_details:l,responseData:e},success:function(d){d.success?(t.find(".tfhb-meeting-card").html(""),t.find(".tfhb-meeting-card").append(a)):(t.find(".tfhb-notice").html(d.data.message),t.find(".tfhb-notice").show())},error:function(d){console.log(d)}})})},onCancel:function(o){},onError:function(o){console.error("An error occurred during the transaction",o),alert("Payment could not be completed due to an error")}}).render(".tfhb-paypal-button-container")}function tfhb_render_stripe_payment(t,e,a,n){t.find(".tfhb-confirmation-button").hide();let o=typeof tfhb_app_booking.general_settings.currency<"u"&&tfhb_app_booking.general_settings.currency!=""?tfhb_app_booking.general_settings.currency:"USD";t.find(".wpcf7").hide();const i=t.find(".tfhb-stripe-button-container");i.html("<a href='#' class='tfhb-stripe-payment-btn'>Pay With Stripe</a>"),i.show();var l=e.confirmation_template;const d=StripeCheckout.configure({key:a,locale:"auto",token:function(f){const s={tokenId:f.id};jQuery.ajax({url:tfhb_app_booking.ajax_url,type:"POST",data:{nonce:tfhb_app_booking.nonce,action:"tfhb_meeting_stripe_payment_confirmation",payment_data:s,responseData:e},beforeSend:function(h){$(".tfhb-stripe-payment-btn").append(`<span class="tfhb-submit-preloader"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="shape-rendering: auto; display: block; background: transparent;" width="200" height="200" xmlns:xlink="http://www.w3.org/1999/xlink"><g><circle stroke-dasharray="188.49555921538757 64.83185307179586" r="40" stroke-width="4" stroke="#ffffff" fill="none" cy="50" cx="50">
							<animateTransform keyTimes="0;1" values="0 50 50;360 50 50" dur="0.49751243781094534s" repeatCount="indefinite" type="rotate" attributeName="transform"></animateTransform>
						</circle><g></g></g><!-- [ldio] generated by https://loading.io --></svg><span>`),$(".tfhb-stripe-payment-btn").addClass("disabled")},success:function(h){h.success?(t.find(".tfhb-meeting-card").html(""),t.find(".tfhb-meeting-card").append(l)):(t.find(".tfhb-notice").html(h.data.message),t.find(".tfhb-notice").show())},error:function(h){console.error("Payment processing error:",h)}})}});i.on("click",".tfhb-stripe-payment-btn",function(f){f.preventDefault(),d.open({name:n,amount:e.data.meeting.meeting_price*100,currency:o})}),window.addEventListener("popstate",function(){d.close()})}function tfhb_from_submission(t,e,a,n){t.find(".tfhb-booking-submit").append(`<span class="tfhb-submit-preloader"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="shape-rendering: auto; display: block; background: transparent;" width="200" height="200" xmlns:xlink="http://www.w3.org/1999/xlink"><g><circle stroke-dasharray="188.49555921538757 64.83185307179586" r="40" stroke-width="4" stroke="#ffffff" fill="none" cy="50" cx="50">
			<animateTransform keyTimes="0;1" values="0 50 50;360 50 50" dur="0.49751243781094534s" repeatCount="indefinite" type="rotate" attributeName="transform"></animateTransform>
		  </circle><g></g></g><!-- [ldio] generated by https://loading.io --></svg><span>`),t.find(".tfhb-booking-submit").attr("disabled","disabled"),t.find(".tfhb-notice").hide(),t.find(".tfhb-notice").html("");var i=t.find(".tfhb-meeting-details h2").text(),l=t.find("#meeting_id").val(),d=t.find("#host_id").val(),f=t.find("#meeting_duration").val(),s=t.find("#meeting_dates").val(),h=t.find("#meeting_time_start").val(),w=t.find("#meeting_time_end").val(),p=t.find("#booking_hash").val(),F=t.find("#action_type").val(),D=t.find("#meeting_price").val(),u=t.find("#recurring_maximum").val(),_=t.find("#attendee_time_zone_"+n.meeting_id).val(),T=t.find("#tfhb_time_format").val();t.find("#name").val(),t.find("#email").val(),t.find("#address").val();var b=t.find("#payment_method").val(),D=t.find("#meeting_price").val(),N=t.find("#payment_amount").val(),x=t.find("#stpublic_key").val();t.find("#paypal_public_key").val();var P=t.find("#payment_currency").val(),c=n.payment_status,g={action:"tfhb_meeting_form_submit",nonce:tfhb_app_booking.nonce,meeting_id:l,host_id:d,meeting_dates:s,meeting_duration:f,meeting_time_start:h,meeting_time_end:w,booking_hash:p,action_type:F,recurring_maximum:u,attendee_time_zone:_,tfhb_time_format:T,payment_type:b,meeting_price:D,payment_amount:N,stripe_public_key:x,payment_currency:P};g=Object.assign(a,g),c==1&&b==""&&setTimeout(function(){t.find(".tfhb-notice").append(tfhbTranslate("Payment Method Required.")),t.find(".tfhb-notice").show(),t.find(".tfhb-booking-submit .tfhb-submit-preloader").remove(),t.find(".tfhb-booking-submit").remove(".tfhb-submit-preloader"),t.find(".tfhb-booking-submit").removeAttr("disabled")},1e3),(c!=1||c==1&&b=="woo_payment"||c==1&&b=="paypal_payment"||c==1&&b=="stripe_payment")&&$.ajax({url:tfhb_app_booking.ajax_url,type:"POST",action:"tfhb_meeting_form_submit",data:g,success:function(m){if(t.find(".tfhb-booking-submit .tfhb-submit-preloader").remove(),t.find(".tfhb-booking-submit").removeAttr("disabled"),m.success){if(t.find(".tfhb-booking-submit").remove(".tfhb-submit-preloader"),t.find(".tfhb-booking-submit").removeAttr("disabled"),c==1&&b=="paypal_payment"&&m.data.data){tfhb_render_paypal_payment(t,m.data);return}if(c==1&&b=="stripe_payment"&&m.data.data){tfhb_render_stripe_payment(t,m.data,x,i);return}if(m.data.redirect){window.location.href=m.data.redirect;return}else t.find(".tfhb-meeting-card").html(""),t.find(".tfhb-meeting-card").append(m.data.confirmation_template),m.data.action=="rescheduled"&&t.find(".tfhb-meeting-hostinfo").append(`
										   <div class="tfhb-notice " > 
										   <span>`+m.data.message+` </span>
									   </div>`)}else return t.find(".tfhb-notice").append(m.data.message),t.find(".tfhb-notice").show(),!1},error:function(m){console.log(m)}})}function tfhb_date_manipulate(t,e,a,n,o,i){const l=t.find(".tfhb-calendar-dates"),d=t.find(".tfhb-calendar-weekdays"),f=t.find(".tfhb-calendar-current-date");let s=e,h=s.availability,w=h.date_slots,p=h.time_slots;s.availability_range;let F=s.availability_range_type,u=s.availability_range.start,_=s.availability_range.end,T=null,b=null;u&&(T=u.includes("T")||u.includes(" ")?new Date(u):new Date(u+"T00:00:00")),_&&(b=_.includes("T")||_.includes(" ")?new Date(_):new Date(_+"T23:59:59.999"));let D=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],N=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],x=[],P=tfhb_app_booking.general_settings.week_start_from||"Sunday",c=D.indexOf(P);c===-1&&(c=0);let g=[];for(let r=0;r<7;r++){let v=(c+r)%7;g.push(`<li>${tfhbTranslate(N[v])}</li>`)}d.html(g.join(""));for(let r=0;r<p.length;r++)(p[r].status===!1||p[r].status==!1)&&x.push(p[r].day);let A=(new Date(a,n,1).getDay()-c+7)%7,z=new Date(a,n+1,0).getDate(),j=(new Date(a,n,z).getDay()-c+7)%7,I=new Date(a,n,0).getDate(),C="";for(let r=A;r>0;r--)C+=`<li class="inactive">${tfhbTranslateNumber(I-r+1)}</li>`;for(let r=1;r<=z;r++){let v=r===o.getDate()&&n===new Date().getMonth()&&a===new Date().getFullYear()?"active":"",B=`${a}-${(n+1).toString().padStart(2,"0")}-${r.toString().padStart(2,"0")}`,y=typeof w<"u"?w.find(M=>M.date.match(B)):"",k=typeof y<"u"&&y!==""&&y.available==!0?"inactive ":" ",S="available";new Date>new Date(a,n,r)&&r!==o.getDate()&&(k="inactive ",S="unavailable");let L=D[new Date(a,n,r).getDay()];if(x.includes(L)&&(k="inactive ",S="unavailable",v=""),F!=="indefinitely"&&T&&b){let M=new Date(a,n,r);(M<T||M>b)&&(k="inactive ",S="unavailable",v="")}typeof y<"u"&&y!==""&&y.available==""&&(k=" ",S="available"),v==="active"&&(k=" "),C+=`<li data-date="${B}" data-available="${S}" class="${v} current ${k}">${tfhbTranslateNumber(r)}</li>`}for(let r=j;r<6;r++)C+=`<li class="inactive">${tfhbTranslateNumber(r-j+1)}</li>`;f.text(`${tfhbTranslate(i[n])} ${tfhbTranslateNumber(a)}`),l.html(C)}function tfhb_times_manipulate(t,e,a,n=null){var o=t.find(".tfhb-calendar-dates li.active");t.find(".tfhb-available-times").addClass("inactive"),t.find(".tfhb-calendar-body").addClass("inactive");var i=t.find("input[name='meeting_id']").val(),l=e;o.attr("data-available");var d=t.find('input[name="tfhb_time_format"]:checked').val(),f=t.find(".tfhb-time-zone-select").val();$.ajax({url:tfhb_app_booking.ajax_url,type:"POST",data:{action:"tfhb_already_booked_times",nonce:tfhb_app_booking.nonce,selected_date:l,meeting_id:i,time_format:d,time_zone:f},success:function(s){s.success==!0&&(t.find(".tfhb-calendar-body").removeClass("inactive"),s.data,a.calander_available_time_slot=s.data,typeof n=="function"&&n()),s.success==!1&&(t.find(".tfhb-available-times").removeClass("inactive"),t.find(".tfhb-calendar-body").removeClass("inactive"),t.find(".tfhb-available-times").html(""),t.find(".tfhb-available-times").append("<ul></ul>"),t.find(".tfhb-available-times ul").append("<li > <p>"+s.data.message+"</p></li>"),t.find(".tfhb-meeting-times").css("display","block").animate({left:"0",opacity:1,width:224},400))},error:function(s){console.log(s)}})}})})(jQuery);
