1document.addEventListener("DOMContentLoaded",(function(){function e(){let e=customer_call_params(),t="json",o=function(e){let t=$("#cronofy-availability-viewer"),o=document.createElement("div");if(o.append(a.content.cloneNode(!0)),e.error)o.querySelector(".alert-error").innerHTML=`Error Booking: ${e.error}`,o.querySelector(".thank-you-message").style.display="none";else{document.querySelector("#callbooking_dialog .js-booking-header").innerHTML=a.dataset.headerText,t.next(".callbooking-timezone").hide(),t.children(":last").children().hide(),o.querySelector(".alert-error")&&(o.querySelector(".alert-error").style.display="none",o.querySelector(".thank-you-message").style.display="block")}t.children(":last").prepend(o)},n=function(e){o(e.responseJSON)};e=$.extend(e,{time_zone_offset:(new Date).toString().match(/(-|\+)\d{4}/)[0]}),$.ajax({type:"POST",url:a.dataset.bookCallUrl,data:e,success:o,error:n,dataType:t})}let t=Cookies.get("time_zone_offset"),o=(new Date).toString().match(/(-|\+)\d{4}/)[0];t&&t===o||Cookies.set("time_zone_offset",o,{expires:2,path:"/"});if(!Cookies.get("time_zone_name")){const e=Intl.DateTimeFormat().resolvedOptions().timeZone;Cookies.set("time_zone_name",e,{expires:2,path:"/"})}const n="slot_selected",i="visible_slots";let a=document.getElementById("template-call-bookings-thank-you");setTimeout((()=>{$("#btn-create-schedule").click((function(){e()||crono_viewer.refresh()}))}),500),window.cronofyNotification=e=>{if(e.notification.type===n){if("true"===a.dataset.employee)return void itrg.Notifications.warning("InfoTech employees cannot schedule calls from here");$("#btn-create-schedule").data("cronofy-slot",JSON.stringify(e.notification.slot)),$("#slot-selected-start").html(new Date(e.notification.slot.start).toLocaleString("en-US",{weekday:"long",year:"numeric",month:"long",hour:"numeric",minute:"numeric",day:"numeric"})+" ("+new Date(e.notification.slot.start).toString().split("(")[1]),$("#confirmDialog").modal()}else e.notification.type===i&&setTimeout((()=>{window.dispatchEvent(new Event("resize"))}),1e3)},$(document).on("hide.bs.modal","#callbooking_dialog",(function(){$("#confirmDialog").modal("hide")})),document.getElementById("timezone").innerText=Intl.DateTimeFormat().resolvedOptions().timeZone,$(document).on("show.bs.modal","#callbooking_dialog",(function(e){$(".callbooking-timezone").show();let t=e.target,o=e.relatedTarget?.dataset||getModalData();t.querySelector("input#call_topic").value=o.modalTitle,t.querySelector(".js-booking-header").innerHTML=o.modalSubject,t.querySelector(".js-callbooking-title").innerHTML=o.modalTitle;let n=a.dataset.availabilityUrl;n+=`?call_type=${o.callType}`,o.callTypeId&&(n+=`&content_id=${encodeURIComponent(o.callTypeId)}`),o?.recommendationId&&(n+=`&recommendation_id=${o.recommendationId}`),o?.ckipBanner&&(n+=`&ckip_banner=${o.ckipBanner}`),n+=`&time_zone_name=${encodeURIComponent(Intl.DateTimeFormat().resolvedOptions().timeZone)}`,$.getScript(n)}))}));
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.