PageSourceSearch

https://www.bridgeporthospital.org/Dist/Scripts/script.min.js?v=0901205925

js bridgeporthospital.org collected 2026-10-03 20:50:32 UTC 150,296 bytes, 55 lines download raw bytes

1"use strict";function GatewayQuestionsBind(){var e=document.querySelector(".appointment-booking__step1-form-continue"),t=document.querySelectorAll(".appointment-booking__current-health-info input"),n=document.querySelector(".appointment-booking__alert");t.forEach(function(i){i.addEventListener("change",function(){var i=[];t.forEach(function(t){if(t.checked){var o=t.getAttribute("data-value");i.push(o),i.includes("exit")?(n.classList.add("active"),e.setAttribute("style","pointer-events:none;"),e.classList.add("appointment-booking__btn-disabled")):(n.classList.remove("active"),e.setAttribute("style","pointer-events:auto;"),e.classList.remove("appointment-booking__btn-disabled"))}})})})}function ClearActiveCalendarDay(){var e=document.querySelectorAll(".open-scheduler-epic__selected");e.length>0&&e[0].classList.remove("open-scheduler-epic__selected")}function CalendarOnSelect(e,t){document.querySelectorAll(".vanilla-calendar-date--active").forEach(function(e){e.classList.remove("vanilla-calendar-date--selected")}),t.classList.add("vanilla-calendar-date--selected");var n=$(t).data("calendar-data").date,i=document.querySelectorAll(".appointment-booking-right-rail__times-container");"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var o=GetVisitTypeId(GetPatientType()),a=new Boolean(!1);i.forEach(function(e){ClearActiveCalendarDay(),$(e).data("date")==n&&$(e).data("visit-type")==o?(e.classList.add("active"),a=!0):e.classList.remove("active"),e.addEventListener("click",function(e){var t=$(".appointment-booking-right-rail__times-container.active").first().data("display-date");t&&$("#appointment-selected-display-date").text(t)})}),0==a?$(".appointment-booking__noslots").show():$(".appointment-booking__noslots").hide(),a=!1}function GetPatientType(){var e;return document.querySelectorAll(".appointment-booking__question-1 input").forEach(function(t){t.checked&&(e=$(t).data("patient-visit-type"))}),e}function GetVisitTypeId(e){var t;return document.querySelectorAll(".appointment-booking__question-3 input").forEach(function(n){if(n.checked){var i=e+"-patient-visit-type-id";t=$(n).data(i)}}),t}function setActiveDateTime(){"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),$("#appointment-visittype-1").prop("checked",!0),$("#appointment-new-doctor").prop("checked",!0);var e=getUrlParams().dt,t=getUrlParams().si,n=document.querySelectorAll(".appointment-booking-right-rail__times-container"),i=new Boolean(!1),o=GetVisitTypeId(GetPatientType());n.forEach(function(n){var a=n.querySelectorAll(".appointment-booking-right-rail__times-list ul li");if($(n).data("date")==e&&$(n).data("visit-type")==o&&(n.classList.add("active"),i=!0,a&&t)){a[t].classList.add("open-scheduler-epic__selected");var s=$(a[t]).text();$("#appointment-selected-time").text(s)}a.forEach(function(e){e.addEventListener("click",function(t){t.preventDefault();var n=$(e).text();$("#appointment-selected-time").text(n)})})}),0==i?$(".appointment-booking__noslots").show():$(".appointment-booking__noslots").hide(),i=!1}function getUrlParams(){var e={};window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(t,n,i){e[n]=i});return e}function BindVisitTypes(){var e=new Boolean(!1),t=GetPatientType(),n=GetVisitTypeId(t),i=document.querySelectorAll(".appointment-booking-right-rail__times-container");document.querySelectorAll(".appointment-booking__question-1 input").forEach(function(t){t.addEventListener("click",function(t){var o=GetVisitTypeId($(this).data("patient-visit-type"));n!=o&&ClearActiveCalendarDay(),i.forEach(function(t){var n;n=$(".vanilla-calendar-date--selected").length>0?$(".vanilla-calendar-date--selected").data("calendar-data").date:getUrlParams().dt,$(t).data("date")==n&&$(t).data("visit-type")==o?(t.classList.add("active"),e=!0):t.classList.remove("active")}),0==e?$(".appointment-booking__noslots").show():$(".appointment-booking__noslots").hide(),e=!1})}),document.querySelectorAll(".appointment-booking__question-3 input").forEach(function(n){n.addEventListener("click",function(o){ClearActiveCalendarDay();var a=GetPatientType(),s=$(this).data(a+"-patient-visit-type-id");
1i.forEach(function(t){var n;n=$(".vanilla-calendar-date--selected").length>0?$(".vanilla-calendar-date--selected").data("calendar-data").date:getUrlParams().dt,$(t).data("date")==n&&$(t).data("visit-type")==s?(t.classList.add("active"),e=!0):t.classList.remove("active")}),0==e?$(".appointment-booking__noslots").show():$(".appointment-booking__noslots").hide(),e=!1,"True"==$(n).data("is-telehealth")?($(".appointment-booking__map").hide(),$(".appointment-details__information-address").hide(),$(".appointment-details__information-telehealth").show()):($(".appointment-booking__map").show(),$(".appointment-details__information-address").show(),$(".appointment-details__information-telehealth").hide());var r="/api/sitecore/Appointment/QuestionsPartial?OpenSchedulerId="+$("#appointment-booking-form-questions-inner-container").data("open-scheduler-id")+"&VisitTypeId="+s+"&PatientType="+t,c=$("#appointment-booking-form-questions-outer-container"),l=$("#appointment-booking-form-questions-inner-container");document.querySelector(".appointment-booking__alert").classList.remove("active");var p=document.querySelector(".appointment-booking__step1-form-continue");p.classList.add("appointment-booking__btn-disabled"),makeRequest(r,"POST",null,null,function(e,t){t&&($(l).remove(),$(c).append(e.responseText),p.classList.remove("appointment-booking__btn-disabled"),GatewayQuestionsBind())})})})}function BookAppointment(){"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var e,t=GetVisitTypeId(GetPatientType());document.querySelectorAll(".appointment-booking__question-3 input").forEach(function(e){e.checked&&(E=$(e).data("is-telehealth"))}),document.querySelectorAll(".appointment-booking__gender-container input").forEach(function(t){t.checked&&(e=t.value)});var n=n=$("#openSchedulerEpicDropdownPhysicianAppointment").length?$("#openSchedulerEpicDropdownPhysicianAppointment").find(":selected").data("provider-department-id"):$("#appointment-booking-one-department").data("provider-department-id"),i=getUrlParams().id,o=(t=t,$(".open-scheduler-epic__selected").data("date")),a=$(".open-scheduler-epic__selected").data("time"),s=$("#appointment-reason").val(),r=$("#appointment-booking-group-number").val(),c=$("#appointment-booking-insurance-name").val(),l=$("#appointment-booking-memberid").val(),p=$("#appointment-booking-insurance").find(":selected").data("payorid"),d=$("#appointment-booking-subscriber-sub-date-birth").val(),m=$("#appointment-booking-subscriber-name").val(),u=$("#appointment-booking-first-name").val(),v=$("#appointment-booking-last-name").val(),h=$("#appointment-booking-email").val(),g=$("#appointment-booking-dob").val(),b=e,_=$("#appointment-booking-street").val(),f=$("#appointment-booking-city").val(),L=$("#appointment-booking-state").val(),y=$("#appointment-booking-zip").val(),k=$("#appointment-booking-phone").val(),E=E,S="/api/sitecore/Appointment/ScheduleAppointment?Captcha="+grecaptcha.getResponse()+"&DepartmentId="+n+"&PhysicianId="+i+"&VisitTypeId="+t+"&Date="+o+"&Time="+a+"&Comments="+s+"&GroupNumber="+r+"&InsuranceName="+c+"&MemberNumber="+l+"&PayorID="+p+"&SubscriberDateOfBirth="+d+"&SubscriberName="+m+"&FirstName="+u+"&LastName="+v+"&Email="+h+"&DateOfBirth="+g+"&Gender="+b+"&Street="+_+"&City="+f+"&State="+L+"&Zipcode="+y+"&PhoneNumber="+k+"&IsTelehealth="+E,q=$("#appointment-booking-form-outer-container"),A=$("#appointment-booking-form-inner-container");grecaptcha&&grecaptcha.getResponse().length>0&&makeRequest(S,"POST",null,null,function(e,t){t&&($(A).remove(),$(q).append(e.responseText),document.querySelectorAll(".appointment-booking__step")[2].classList.add("active"),$(".appointment-details__confirmation-text").show())})}function appointmentBookingInit(){"function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach);var e=document.querySelectorAll(".appointment-booking__navigation li"),t=document.querySelectorAll(".appointment-booking__step"),n=document.querySelector(".appointment-booking__step1-form-continue"),i=document.querySelector(".appointment-booking__step2-form-continue"),o=!1,a=!1,s=!1,r=!1,c=!1,l=!1,p=!1,d=!1,m=!1,u=!1,v=!0,h=!1,g=!1,b=!1,_=!1,f=!1,L=!1,y=!1,k=!1,E=!1;!function(){if($(".appointment-details").length>0&&$("#openSchedulerEpicDropdownPhysicianAppointment").length>0){var e=document.querySelector(".appointment"),t=document.querySelector(".appointment-booking");if($(".custom-select-dropdown-open-scheduler").length>0){var n,i,o,a,s,r,c,l,p;for(n=document.getElementsByClassName("custom-select-dropdown-open-scheduler"),a=n.length,i=0;i<a;i++){for(r=n[i].getElementsByTagName("select")[0],s=r.length,(c=document.createElement("DIV")).setAttribute("class","select-selected"),c.id=r.options[r.selectedIndex].id,c.innerHTML=r.options[r.selectedIndex].innerHTML,n[i].appendChild(c),(l=document.createElement("DIV")).setAttribute("class","select-items select-hide"),o=1;o<s;o++)(p=document.createElement("DIV")).innerHTML=r.options[o].innerHTML,p.id=r.options[o].id,p.addEventListener("click",function(i){var o,a,s,r,c,l,p;r=this.parentNode.parentNode.getElementsByTagName("select")[0],l=r.length,c=this.parentNode.previousSibling;
1var d=document.getElementById("content-"+this.id);for($(".dropdown-select-content > div").removeClass("active"),$(d).addClass("active"),a=0;a<l;a++)if(r.options[a].innerHTML==this.innerHTML){for(r.selectedIndex=a,c.innerHTML=this.innerHTML,o=this.parentNode.getElementsByClassName("same-as-selected"),p=o.length,s=0;s<p;s++)o[s].removeAttribute("class");this.setAttribute("class","same-as-selected");break}c.click(),n[0].setAttribute("style","pointer-events:none;"),$("#openSchedulerEpicDropdownPhysicianAppointment").get(0).selectedIndex=a;var m=$("#openSchedulerEpicDropdownPhysicianAppointment").find(":selected").data("provider-department-id"),u=$("#openSchedulerEpicDropdownPhysicianAppointment").find(":selected").data("physician-id"),v=$("#openSchedulerEpicDropdownPhysicianAppointment").find(":selected").data("dt"),h="/api/sitecore/Appointment/AppointmentPartial?PhysicianId="+u+"&DepartmentId="+m+"&Date="+v;makeRequest(h,"POST",null,null,function(n,i){if(i){t.remove();var o=$(e);if(o.append(n.responseText),setActiveDateTime(),appointmentBookingInit(),$("#physicianappointmentcaptcha").length){var a=$("#physicianappointmentcaptcha").data("sitekey");grecaptcha.render("physicianappointmentcaptcha",{sitekey:""+a})}}})}),l.appendChild(p);n[i].appendChild(l),c.addEventListener("click",function(e){e.stopPropagation(),d(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function d(e){var t,n,i,o,a,s=[];for(t=document.getElementsByClassName("select-items"),n=document.getElementsByClassName("select-selected"),o=t.length,a=n.length,i=0;i<a;i++)e==n[i]?s.push(i):n[i].classList.remove("select-arrow-active");for(i=0;i<o;i++)s.indexOf(i)&&t[i].classList.add("select-hide")}document.addEventListener("click",d)}}}(),BindVisitTypes();var S=document.querySelectorAll(".appointment-booking__step textarea"),q=document.querySelectorAll(".appointment-booking__step input"),A=document.querySelectorAll(".appointment-booking__step select");S.forEach(function(e){e.addEventListener("input",function(){$(this).closest("div").find(".appointment-booking__question-error").hasClass("active")&&$(this).closest("div").find(".appointment-booking__question-error").removeClass("active"),$(this).hasClass("error")&&$(this).removeClass("error")})}),q.forEach(function(e){e.addEventListener("input",function(){"appointment-gender"==e.getAttribute("name")?($(this).closest(".appointment-booking__gender-container").find(".appointment-booking__question-error").hasClass("active")&&$(this).closest(".appointment-booking__gender-container").find(".appointment-booking__question-error").removeClass("active"),$(this).hasClass("error")&&$(this).removeClass("error")):"covid-question"==e.getAttribute("data-group")?($(this).closest("fieldset").find(".appointment-booking__question-error").hasClass("active")&&$(this).closest("fieldset").find(".appointment-booking__question-error").removeClass("active"),$(this).hasClass("error")&&$(this).removeClass("error")):($(this).closest("div").find(".appointment-booking__question-error").hasClass("active")&&$(this).closest("div").find(".appointment-booking__question-error").removeClass("active"),$(this).hasClass("error")&&$(this).removeClass("error"))})}),A.forEach(function(e){e.addEventListener("input",function(){$(this).closest("div").find(".appointment-booking__question-error").hasClass("active")&&$(this).closest("div").find(".appointment-booking__question-error").removeClass("active"),$(this).hasClass("error")&&$(this).removeClass("error")})});var w=document.querySelectorAll(".appointment-booking-right-rail__times-list ul li");w.forEach(function(e){e.addEventListener("click",function(){w.forEach(function(e){e.classList.remove("open-scheduler-epic__selected")}),e.classList.add("open-scheduler-epic__selected")})}),GatewayQuestionsBind();var x=document.getElementById("appointment-booking-insurance"),C=document.querySelector(".appointment-booking__insurance-name"),T=document.querySelector(".appointment-booking__all-other-fields");x&&x.addEventListener("change",function(e){"not insured"==x.value.toLowerCase()?(C.classList.remove("show"),T.classList.remove("show"),u=!0):""==x.value.toLowerCase()?(C.classList.remove("show"),T.classList.remove("show")):"not listed"==x.value.toLowerCase()?(C.classList.add("show"),T.classList.add("show")):(C.classList.remove("show"),T.classList.add("show"))});var D=document.querySelector(".appointment-booking__step0-continue-nav"),I=document.querySelector(".appointment-booking__step1-continue-nav"),P=document.querySelector(".appointment-booking__step2-continue-nav"),B=document.querySelector(".appointment-booking-right-rail .appointment-details__locations"),N=document.querySelector(".appointment-booking-right-rail__calendar"),G=document.querySelector(".appointment-booking-right-rail__times"),R=document.querySelector(".appointment-booking-right-rail .appointment-details__information");function V(e){window.location.reload()}B.classList.add("active"),N.classList.add("active"),G.classList.add("active"),n&&n.addEventListener("click",function(l){!function(){var e=document.querySelectorAll(".appointment-booking__question-1 input"),t=document.querySelector(".appointment-booking__question-2 textArea").value,
1n=document.querySelectorAll(".appointment-booking__question-3 input"),i=document.querySelector(".appointment-booking__question-1 .appointment-booking__question-error"),l=document.querySelector(".appointment-booking__question-2 .appointment-booking__question-error"),p=document.querySelector(".appointment-booking__question-3 .appointment-booking__question-error");e.forEach(function(e){e.checked&&(o=!0)}),1==o?i.classList.remove("active"):i.classList.add("active"),t.length>1?(l.classList.remove("active"),document.querySelector(".appointment-booking__question-2 textarea").classList.remove("error"),a=!0):(l.classList.add("active"),document.querySelector(".appointment-booking__question-2 textarea").classList.add("error"),a=!1),n.forEach(function(e){e.checked&&(s=!0)}),1==s?p.classList.remove("active"):p.classList.add("active");var d=document.querySelectorAll(".appointment-booking__current-health-info fieldset"),m=0;d.forEach(function(e){var t=e.querySelectorAll("input");t.forEach(function(e){0==e.checked&&e.parentElement.querySelector(".appointment-booking__question-error").classList.add("active")});for(var n=0,i=t.length;n<i;n++)t[n].checked&&"exit"!==t[n].getAttribute("data-value")&&(t[n].parentElement.querySelector(".appointment-booking__question-error").classList.remove("active"),m++);m==d.length&&(d.forEach(function(e){e.querySelector(".appointment-booking__question-error").classList.remove("active")}),r=!0)});var u=document.querySelectorAll(".appointment-booking-right-rail__times-list ul li"),v=document.querySelector(".appointment-booking-right-rail__times .appointment-booking__question-error");u.forEach(function(e){e.classList.contains("open-scheduler-epic__selected")&&(c=!0)}),1==c?v.classList.remove("active"):v.classList.add("active")}(),n.classList.contains("appointment-booking__btn-disabled")?l.preventDefault():1==o&&1==a&&1==s&&1==r&&1==c?(B&&B.classList.remove("active"),N&&N.classList.remove("active"),G&&G.classList.remove("active"),R&&R.classList.add("active"),t.forEach(function(e){e.classList.remove("active")}),t[1].classList.add("active"),window.scroll({top:0,behavior:"smooth"}),e.forEach(function(e){e.classList.remove("active")}),D.classList.add("complete"),I.classList.add("active"),D.addEventListener("click",V,!0),n.classList.add("hide"),i.classList.remove("hide")):window.scroll({top:0,behavior:"smooth"})}),i&&i.addEventListener("click",function(n){(function(e){var t=document.querySelectorAll(".appointment-booking__pi-top input"),n=document.querySelectorAll(".appointment-booking__gender-container input"),i=document.getElementById("appointment-booking-state"),o=document.querySelectorAll(".appointment-booking__address-info input"),a=document.getElementById("physicianappointmentcaptcha"),s=document.querySelector(".appointment-booking__captcha-error");t.forEach(function(e){var t=e.value;if("email"==e.getAttribute("type")){var n=new RegExp(e.getAttribute("data-email-re"),"im");e.value.match(n)?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),f=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),f=!1)}else if("appointment-booking-dob"==e.getAttribute("name")){var i=new RegExp(e.getAttribute("data-date-re")),o=e.value;if(o.match(i)){var a=(r=new Date).getDate(),s=r.getMonth()+1;a<10&&(a="0"+a),s<10&&(s="0"+s);var r=r.getFullYear()+"-"+s+"-"+a,c=o.split("/"),p=c[2],d=c[0],m=c[1];!function(t,n){t.setHours(0,0,0,0)<=n.setHours(0,0,0,0)?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),L=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),L=!1)}(new Date(p+"-"+d+"-"+m),new Date(r))}else e.nextElementSibling.classList.add("active"),e.classList.add("error"),L=!1}else t.length>1&&new RegExp(e.getAttribute("data-name-re")).test(t)?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),y=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),y=!1);1==f&&1==L&&1==y&&(l=!0)});var r=document.querySelector(".appointment-booking__gender-container .appointment-booking__question-error");
1n.forEach(function(e){e.checked&&(p=!0)}),1==p?r.classList.remove("active"):r.classList.add("active"),""==!i.value?(i.nextElementSibling.classList.remove("active"),i.classList.remove("error"),m=!0):(i.nextElementSibling.classList.add("active"),i.classList.add("error"),m=!1),o.forEach(function(e){var t=e.value;if("tel"==e.getAttribute("type")){var n=new RegExp(e.getAttribute("data-phone-re"),"im");e.value.match(n)?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),g=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),g=!1)}else if("zipcode"==e.getAttribute("data-type")){var i=new RegExp(e.getAttribute("data-zipcode-re"));e.value.match(i)?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),b=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),b=!1)}else t.length>1?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),_=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),_=!1)}),1==g&&1==b&&1==_&&1==m&&(d=!0);var c=document.getElementById("appointment-booking-insurance");""==!c.value?(c.nextElementSibling.classList.remove("active"),c.classList.remove("error")):(c.nextElementSibling.classList.add("active"),c.classList.add("error"));var S=document.querySelector(".appointment-booking__all-other-fields"),$=document.querySelectorAll(".appointment-booking__all-other-fields input");S.classList.contains("show")&&($.forEach(function(e){if("appointment-booking-subscriber-sub-date-birth"==e.getAttribute("name")){var t=new RegExp(e.getAttribute("data-subdate-re")),n=e.value;if(n.match(t)){var i=(a=new Date).getDate(),o=a.getMonth()+1;i<10&&(i="0"+i),o<10&&(o="0"+o);var a=a.getFullYear()+"-"+o+"-"+i,s=n.split("/"),r=s[2],c=s[0],l=s[1];!function(t,n){t.setHours(0,0,0,0)<=n.setHours(0,0,0,0)?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),k=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),k=!1)}(new Date(r+"-"+c+"-"+l),new Date(a))}else e.nextElementSibling.classList.add("active"),e.classList.add("error"),k=!1}else""==!e.value?(e.nextElementSibling.classList.remove("active"),e.classList.remove("error"),E=!0):(e.nextElementSibling.classList.add("active"),e.classList.add("error"),E=!1)}),1==k&&1==E&&(h=!0));var q=document.querySelector(".appointment-booking__insurance-name"),A=document.querySelector(".appointment-booking__insurance-name input");q.classList.contains("show")&&(A.value.length>1?(A.nextElementSibling.classList.remove("active"),A.classList.remove("error"),v=!0):(A.nextElementSibling.classList.add("active"),A.classList.add("error"),v=!1)),a&&(!grecaptcha.getResponse().length>0?s.classList.add("active"):s.classList.remove("active")),1==v&&1==h&&(u=!0)}(),1==l&&1==p&&1==d&&1==u&&grecaptcha.getResponse().length>0)?(document.querySelector(".appointment-booking-right-rail").classList.add("hide"),t.forEach(function(e){e.classList.remove("active")}),window.scroll({top:0,behavior:"smooth"}),e.forEach(function(e){e.classList.remove("active"),e.classList.remove("complete")}),D.classList.add("complete"),I.classList.add("complete"),P.classList.add("active"),D.removeEventListener("click",V,!0),i.classList.add("hide"),BookAppointment()):window.scroll({top:0,behavior:"smooth"})})}$(document).ready(function(){document.querySelector(".appointment-booking")&&(setActiveDateTime(),appointmentBookingInit())});
2"use strict";var VanillaCalendar=function(){return function(a){function t(a,t,e){a&&(a.attachEvent?a.attachEvent("on"+t,e):a.addEventListener(t,e))}function e(a,t,e){a&&(a.detachEvent?a.detachEvent("on"+t,e):a.removeEventListener(t,e))}var n={selector:null,datesFilter:!1,pastDates:!0,availableWeekDays:[],availableDates:[],date:new Date,todaysDate:new Date,button_prev:null,button_next:null,month:null,month_label:null,onSelect:function(a,t){},months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortWeekday:["SU","M","T","W","TH","F","S"]};for(var l in a)n.hasOwnProperty(l)&&(n[l]=a[l]);var r=document.querySelector(n.selector);if(r){var d=function(a){var t=document.createElement("div"),e=document.createElement("span");e.innerHTML=a.getDate(),t.className="vanilla-calendar-date",t.setAttribute("data-calendar-date",a);var l=n.availableWeekDays.filter(function(t){return t.day===a.getDay()||t.day===["sunday","monday","tuesday","wednesday","thursday","friday","saturday"][a.getDay()]}),r=n.availableDates.filter(function(t){return t.date===a.getFullYear()+"-"+String(a.getMonth()+1).padStart("2",0)+"-"+String(a.getDate()).padStart("2",0)});1===a.getDate()&&(t.style.marginLeft=14.28*a.getDay()+"%"),n.date.getTime()<=n.todaysDate.getTime()-1&&!n.pastDates?t.classList.add("vanilla-calendar-date--disabled"):n.datesFilter?l.length?(t.classList.add("vanilla-calendar-date--active"),t.setAttribute("data-calendar-data",JSON.stringify(l[0])),t.setAttribute("data-calendar-status","active")):r.length?(t.classList.add("vanilla-calendar-date--active"),t.setAttribute("data-calendar-data",JSON.stringify(r[0])),t.setAttribute("data-calendar-status","active")):t.classList.add("vanilla-calendar-date--disabled"):(t.classList.add("vanilla-calendar-date--active"),t.setAttribute("data-calendar-status","active")),a.toString()===n.todaysDate.toString()&&t.classList.add("vanilla-calendar-date--today"),t.appendChild(e),n.month.appendChild(t)},s=function(){var a=Array.prototype.slice.call(r.querySelectorAll("[data-calendar-status=active]"));a&&a.length>0&&a.forEach(function(a){a.addEventListener("click",function(){Array.prototype.slice.call(document.querySelectorAll(".vanilla-calendar-date--selected")).forEac
2h(function(a){a.classList.remove("vanilla-calendar-date--selected")});var a=this.dataset,t={};a.calendarDate&&(t.date=a.calendarDate),a.calendarData&&(t.data=JSON.parse(a.calendarData)),n.onSelect(t,this),this.classList.add("vanilla-calendar-date--selected")})})},i=function(){u();for(var a=n.date.getMonth();n.date.getMonth()===a;)d(n.date),n.date.setDate(n.date.getDate()+1);n.date.setDate(1),n.date.setMonth(n.date.getMonth()-1),n.month_label.innerHTML=n.months[n.date.getMonth()]+" "+n.date.getFullYear(),s()},c=function(){n.date.setMonth(n.date.getMonth()-1),i()},o=function(){n.date.setMonth(n.date.getMonth()+1),i()},u=function(){n.month.innerHTML=""};this.init=function(){document.querySelector(n.selector).innerHTML="<div class='vanilla-calendar-header'><button type='button' class='vanilla-calendar-btn' data-calendar-toggle='previous'><svg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' focusable='false' data-prefix='fas' data-icon='chevron-left' class='svg-inline--fa fa-chevron-left fa-w-10' role='img' viewBox='0 0 320 512'><path fill='#00a9e0' d='M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z'/></svg></button><div class='vanilla-calendar-header__label' data-calendar-label='month'></div><button type='button' class='vanilla-calendar-btn' data-calendar-toggle='next'><svg aria-hidden='true' focusable='false' data-prefix='fas' data-icon='chevron-right' class='svg-inline--fa fa-chevron-right fa-w-10' role='img' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path fill='#00a9e0' d='M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z'></path></svg></button></div><div class='vanilla-calendar-week'></div><div class='vanilla-calendar-body' data-calendar-area='month'></div>",n.button_prev=document.querySelector(n.selector+" [data-calendar-toggle=previous]"),n.button_next=document.querySelector(n.selector+" [data-calendar-toggle=next]"),n.month=document.querySelector(n.selector+" [data-calendar-area=month]"),n.month_label=document.querySelector(n.selector+" [data-calendar-label=month]"),n.date.setDate(1),i(),document.querySelector(n.selector+" .vanilla-calendar-week").innerHTML="<span>"+n.shortWeekday[0]+"</span><span>"+n.shortWeekday[1]+"</span><span>"+n.shortWeekday[2]+"</span><span>"+n.shortWeekday[3]+"</span><span>"+n.shortWeekday[4]+"</span><span>"+n.shortWeekday[5]+"</span><span>"+n.shortWeekday[6]+"</span>",t(n.button_prev,"click",c),t(n.button_next,"click",o)},this.destroy=function(){e(n.button_prev,"click",c),e(n.button_next,"click",o),u(),document.querySelector(n.selector).innerHTML=""},this.reset=function(){this.destroy(),this.init()},this.set=function(a){for(var t in a)n.hasOwnProperty(t)&&(n[t]=a[t]);i()},this.init()}}}();String.prototype.padStart||(String.prototype.padStart=function(a,t){return a>>=0,t=String(void 0!==t?t:" "),this.length>a?String(this):((a-=this.length)>t.length&&(t+=t.repeat(a/t.length)),t.slice(0,a)+String(this))}),window.VanillaCalendar=VanillaCalendar;
3"use strict";function openSchedulerDetailsPhysicianInit(){if($(".open-scheduler-epic-physicians-detail-container").length>0){var e,t,n;if($(".open-scheduler-epic-physicians-detail-container").length>0){var i=$("#openSchedulerEpicDropdownPhysician");e=$(i).length>0?$(i).find(":selected").data("provider-department-id"):$("#view-all-appointments").data("provider-department-id")}$("#view-all-appointments").length>0&&(t=$("#view-all-appointments").data("physician-id"),n=$("#view-all-appointments").data("slot-date"));var o=document.getElementById("view-all-appointments");$(o).length>0&&o.addEventListener("click",function(i){i.preventDefault(),window.location.href="/physicians/appointment?id="+t+"&dep="+e+"&dt="+n});var a=document.querySelectorAll(".open-scheduler-epic__time");$(a).length>0&&("function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),a.forEach(function(n){n.addEventListener("click",function(){var n=$(this).data("slot-date"),i=$(this).data("slot-index");window.location.href="/physicians/appointment?id="+t+"&dep="+e+"&dt="+n+"&si="+i})}));var s=document.getElementById("book-appointment-button");$(s).length>0&&s.addEventListener("click",function(e){e.preventDefault();var t=$(this).data("provider-department-id"),n=$(this).data("physician-id");window.location.href="/physicians/appointment?id="+n+"&dep="+t})}if($("#openSchedulerEpicDropdownPhysician").length>0){var c=document.querySelector(".open-scheduler-epic-physicians-detail-container"),d=document.querySelector(".open-scheduler-epic-physicians-detail-inner-container");if($(".custom-select-dropdown-open-scheduler").length>0){var l,r,p,h,m,u,v,f,g;for(h=(l=document.getElementsByClassName("custom-select-dropdown-open-scheduler")).length,r=0;r<h;r++){for(m=(u=l[r].getElementsByTagName("select")[0]).length,(v=document.createElement("DIV")).setAttribute("class","select-selected"),v.id=u.options[u.selectedIndex].id,v.innerHTML=u.options[u.selectedIndex].innerHTML,l[r].appendChild(v),(f=document.createElement("DIV")).setAttribute("class","select-items select-hide"),p=1;p<m;p++)(g=document.createElement("DIV")).innerHTML=u.options[p].innerHTML,g.id=u.options[p].id,g.addEventListener("click",function(e){var t,n,i,o,a,s,r;s=(o=this.parentNode.parentNode.getElementsByTagName("select")[0]).length,a=this.parentNode.previousSibling;
3var p=document.getElementById("content-"+this.id);for($(".dropdown-select-content > div").removeClass("active"),$(p).addClass("active"),n=0;n<s;n++)if(o.options[n].innerHTML==this.innerHTML){for(o.selectedIndex=n,a.innerHTML=this.innerHTML,r=(t=this.parentNode.getElementsByClassName("same-as-selected")).length,i=0;i<r;i++)t[i].removeAttribute("class");this.setAttribute("class","same-as-selected");break}a.click(),l[0].setAttribute("style","pointer-events:none;");var h=$("#openSchedulerEpicDropdownPhysician").find(":selected").data("provider-department-id"),m=$("#openSchedulerEpicDropdownPhysician").find(":selected").data("physician-id");makeRequest("/api/sitecore/physicians/physicianopenscheduler?DepartmentId="+h+"&PhysicianId="+m,"POST",null,null,function(e,t){t&&(d.remove(),$(c).append(e.responseText),openSchedulerDetailsPhysicianInit())})}),f.appendChild(g);l[r].appendChild(f),v.addEventListener("click",function(e){e.stopPropagation(),y(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function y(e){var t,n,i,o,a,s=[];for(t=document.getElementsByClassName("select-items"),n=document.getElementsByClassName("select-selected"),o=t.length,a=n.length,i=0;i<a;i++)e==n[i]?s.push(i):n[i].classList.remove("select-arrow-active");for(i=0;i<o;i++)s.indexOf(i)&&t[i].classList.add("select-hide")}document.addEventListener("click",y)}}}function openSchedulerDetailsLocationInit(){if($(".open-scheduler-epic-facility-location-detail-container").length>0){var e,t,n;if($(".open-scheduler-epic-facility-location-detail-container").length>0){var i=$("#openSchedulerEpicDropdownLocation");e=$(i).length>0?$(i).find(":selected").data("provider-department-id"):$("#view-all-appointments").data("provider-department-id")}$("#view-all-appointments").length>0&&(t=$("#view-all-appointments").data("physician-id"),n=$("#view-all-appointments").data("slot-date"));var o=document.getElementById("view-all-appointments");$(o).length>0&&o.addEventListener("click",function(i){i.preventDefault(),window.location.href="/locations/appointment?id="+t+"&dep="+e+"&dt="+n});var a=document.querySelectorAll(".open-scheduler-epic__time");$(a).length>0&&("function"!=typeof NodeList.prototype.forEach&&(NodeList.prototype.forEach=Array.prototype.forEach),a.forEach(function(n){n.addEventListener("click",function(){var n=$(this).data("slot-date"),i=$(this).data("slot-index");window.location.href="/locations/appointment?id="+t+"&dep="+e+"&dt="+n+"&si="+i})}));var s=document.getElementById("book-appointment-button");$(s).length>0&&s.addEventListener("click",function(e){e.preventDefault();var t=$(this).data("provider-department-id"),n=$(this).data("physician-id");window.location.href="/locations/appointment?id="+n+"&dep="+t})}if($("#openSchedulerEpicDropdownLocation").length>0){var c=document.querySelector(".open-scheduler-epic-facility-location-detail-container"),d=document.querySelector(".open-scheduler-epic-facility-location-detail-inner-container");if($(".custom-select-dropdown-open-scheduler").length>0){var l,r,p,h,m,u,v,f,g;for(h=(l=document.getElementsByClassName("custom-select-dropdown-open-scheduler")).length,r=0;r<h;r++){for(m=(u=l[r].getElementsByTagName("select")[0]).length,(v=document.createElement("DIV")).setAttribute("class","select-selected"),v.id=u.options[u.selectedIndex].id,v.innerHTML=u.options[u.selectedIndex].innerHTML,l[r].appendChild(v),(f=document.createElement("DIV")).setAttribute("class","select-items select-hide"),p=1;p<m;p++)(g=document.createElement("DIV")).innerHTML=u.options[p].innerHTML,g.id=u.options[p].id,g.addEventListener("click",function(e){var t,n,i,o,a,s,r;s=(o=this.parentNode.parentNode.getElementsByTagName("select")[0]).length,a=this.parentNode.previousSibling;var p=document.getElementById("content-"+this.id);for($(".dropdown-select-content > div").removeClass("active"),$(p).addClass("active"),n=0;n<s;n++)if(o.options[n].innerHTML==this.innerHTML){for(o.selectedIndex=n,a.innerHTML=this.innerHTML,r=(t=this.parentNode.getElementsByClassName("same-as-selected")).length,i=0;i<r;i++)t[i].removeAttribute("class");this.setAttribute("class","same-as-selected");break}a.click(),l[0].setAttribute("style","pointer-events:none;");var h=$("#openSchedulerEpicDropdownLocation").find(":selected").data("provider-department-id"),m=$("#openSchedulerEpicDropdownLocation").find(":selected").data("physician-id");
3makeRequest("/api/sitecore/locations/facilitylocationopenscheduler?DepartmentId="+h+"&PhysicianId="+m,"POST",null,null,function(e,t){t&&(d.remove(),$(c).append(e.responseText),openSchedulerDetailsLocationInit())})}),f.appendChild(g);l[r].appendChild(f),v.addEventListener("click",function(e){e.stopPropagation(),y(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function y(e){var t,n,i,o,a,s=[];for(t=document.getElementsByClassName("select-items"),n=document.getElementsByClassName("select-selected"),o=t.length,a=n.length,i=0;i<a;i++)e==n[i]?s.push(i):n[i].classList.remove("select-arrow-active");for(i=0;i<o;i++)s.indexOf(i)&&t[i].classList.add("select-hide")}document.addEventListener("click",y)}}}$(document).ready(function(){openSchedulerDetailsPhysicianInit(),openSchedulerDetailsLocationInit()});
4"use strict";function openSchedulerbtnAnswerClick(e){if($(this).data("nextquestion")){for(var n=$(this).data("nextquestion"),t=document.querySelectorAll(".question"),l=0;l<t.length;l++)t[l].style.display="none";document.getElementById(n).style.display="block"}else if(""==$(this).data("scheduler")){for(t=document.querySelectorAll(".question"),l=0;l<t.length;l++)t[l].style.display="none";document.getElementById("OpenSchedulerNotAvailableContent").style.display="block"}else{for(var d=$(this).data("scheduler"),t=document.querySelectorAll(".question"),l=0;l<t.length;l++)t[l].style.display="none";makeRequest("/api/sitecore/openscheduleriframe/GetOpenSchedulers?guid="+d,"POST",null,null,function(e,n){if(n){var t=JSON.parse(e.responseText);if(t.openSchedulers.length>1){var l=document.getElementById("openschedulers"),d=new Option("Click to Select","",!0,!1);l.appendChild(d);for(var r=0;r<t.openSchedulers.length;r++){var o=new Option(t.openSchedulers[r].Key,t.openSchedulers[r].Value,!0,!1);l.appendChild(o)}document.getElementById("openscheduler-selection").style.display="inline-block",customDropdownInit()}else{document.getElementById("openschedulers");var i=document.getElementById("OpenSchedulerContainer"),c=document.getElementById("OpenSchedulerApiKey"),u=(document.getElementById("OpenSchedulerApi"),t.openSchedulers[0].Value.split("|"));i.innerHTML="",i.style.display="block",mychartWidget.renderWidget({url:"https://openscheduling.ynhhs.org/mychart-prd",apiKey:c.value,widgetType:"openscheduling",containerId:"OpenSchedulerContainer",additionalParams:{vt:u[0],dept:u[1],id:u[2]}}),waitForOpenSchedulerIframeLoad()}}})}}function waitForOpenSchedulerIframeLoad(){document.querySelectorAll("#OpenScheduler iframe").length>0?$("#OpenScheduler iframe").each(function(){$(this).attr("scrolling","yes")}):setTimeout(function(){waitForOpenSchedulerIframeLoad()},5e3)}function selectOpenScheduler(){var e=document.getElementById("openschedulers"),n=document.getElementById("OpenSchedulerContainer"),t=document.getElementById("OpenSchedulerApiKey"),l=(document.getElementById("OpenSchedulerApi"),e.value.split("|"));n.innerHTML="",n.style.display="block",mychartWidget.renderWidget({url:"https://openscheduling.ynhhs.org/mychart-prd",apiKey:t.value,widgetType:"openscheduling",containerId:"OpenSchedulerContainer",additionalParams:{vt:l[0],dept:l[1],id:l[2]}}),waitForOpenSchedulerIframeLoad()}$(document).ready(function(){var e=document.getElementsByClassName("answer-btn");if(0!=e.length)for(var n=0;n<e.length;n++)e[n].addEventListener("click",openSchedulerbtnAnswerClick);waitForOpenSchedulerIframeLoad()});
5"use strict";function setPredictiveTerm(e){document.getElementById("insurance-search").value=e,document.getElementById("predictions").style.display="none",document.getElementById("insurance-search-button").click()}window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".accepted-insurance__right a"),n=document.querySelector(".accepted-insurance__dropdown"),r=document.querySelector(".accepted-insurance__close"),i=[],c={},a=document.getElementById("insurance-search"),l=document.getElementById("predictions"),s=document.getElementById("insurance-search-button");if(t&&(t.addEventListener("click",function(e){e.preventDefault(),n.classList.toggle("active-panel")}),r.addEventListener("click",function(e){n.classList.contains("active-panel")&&n.classList.remove("active-panel")})),a){var o=5,d=a.getAttribute("searchTerms");if(d)for(var u=d.split(";"),p=0;p<u.length;p++)i.push({word:u[p],realWord:u[p],weight:100});var f=a.getAttribute("searchTermCorrections");
5if(f){var h=f.split(";");for(p=0;p<h.length;p++){var v=h[p].split(",");i.push({word:v[0],realWord:v[1],weight:100})}}function g(e,t,n,r){var c;t&&t.length&&(e[c=t.shift()]?function(e,t){var n=function(e,t){var n,r=0,c=e.length;for(;r<c;)i[e[n=r+c>>>1]].weight>i[t].weight?r=n+1:c=n;return r}(e,t);e.splice(n,0,t),e.length>o&&(e=e.splice(-1,1))}(e[c].predictions,r):e[c]={predictions:[r],children:{}},g(e[c].children,t,n,r))}!function(){for(var e,t,n=0;n<i.length;n++)t=(e=i[n]).word.split(""),g(c,t,e.weight,n)}(),a.addEventListener("keyup",function(e){var t=function(e){var t=function e(t,n){var r;if(t&&t.length)return r=t.shift(),n[r]&&n[r].children&&t&&t.length?e(t,n[r].children):n[r]}(e.split(""),c),n=[];if(t){for(var r=0;r<t.predictions.length;r++)n.push(i[t.predictions[r]].realWord);return n=n.reduce(function(e,t){return e.find(function(e){return e===t})||e.unshift(t),e},[])}}(e.target.value.toUpperCase())||[],n="";if(t.length>0){l.style.display="block";for(var r=0;r<t.length;r++)n+="<a onclick=\"javascript: setPredictiveTerm('"+t[r]+"')\">"+t[r]+"</a><br />";l.innerHTML=n}else l.style.display="none"}),a.addEventListener("keyup",function(e){13==e.keyCode&&s.click()}),s.addEventListener("click",function(e){var t=a.value.toUpperCase(),n=a.getAttribute("searchTerms");if(n){var r=n.split(";");document.querySelectorAll(".accepted-insurance__left-content p").forEach(function(e){e.style.display="none"}),r.includes(t.toUpperCase())?document.getElementById("acceptedInsuranceText").style.display="inline-flex":document.getElementById("declinedInsuranceText").style.display="inline-flex"}})}});
6"use strict";$(document).ready(function(){$(".accordion-toggle").click(function(e){var t="content-"+$(this).attr("id");e.preventDefault();var n=document.getElementById(t);$(this).toggleClass("open"),$(n).toggleClass("active")})}),document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".Collapsible").forEach(function(e){var t=e.querySelector(".Collapsible__trigger");e.querySelector(".Collapsible__contentOuter");t.addEventListener("click",function(){e.classList.toggle("is-open")})})});
7"use strict";function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var a,o,n,i,c=[],l=!0,u=!1;try{if(n=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(a=n.call(r)).done)&&(c.push(a.value),c.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var n,i=!0,c=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){c=!0,n=e},f:function(){try{i||null==r.return||r.return()}finally{if(c)throw n}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,a=Array(t);r<t;r++)a[r]=e[r];return a}$(document).ready(function(){function e(){var e=window.location.href.toLowerCase();return e.includes("/search")?"global":e.includes("/find-a-doctor")?"find a clinician":e.includes("/find-a-location")?"location":e.includes("/patient-care")?"services":e.includes("/news-media/blog-search")?"blog":""}var t=document.querySelector('meta[name="analytics-site-name"]');window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"pageView",siteName:t&&t.content?t.content:"",pageReferrer:document.referrer?document.referrer:"",pageUrl:window.location.href,pageTitle:document.title});var r="";Coveo.$(".CoveoSearchInterface").on("deferredQuerySuccess",function(t,a){var o=new URLSearchParams(window.location.hash),n=o.get("#q"),i=o.get("f:location"),c=e(),l=(n||"").toLowerCase(),u=(i||"").toLowerCase(),d="".concat(l,"|").concat(u);(l||u)&&d!==r&&(r=d,window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"siteSearch",searchTerm:l,searchType:c,postalCodeCity:u}))});var a=e(),o={},n=!0;Coveo.$(".CoveoSearchInterface").on("deferredQuerySuccess",function(e,t){t.results.facets;var r,i=window.location.hash,c=_createForOfIteratorHelper(new URLSearchParams(i.replace(/^#/,"?")).entries());try{var l=function(){var e=_slicedToArray(r.value,2),t=e[0],i=e[1];if(!t.startsWith("f:"))return 0;var c=t.substring(2).replace(/^@/,""),l=c.toLowerCase();if(["geolocation","location"].includes(l))return 0;var u=l;document.querySelectorAll(".CoveoFacet, .CoveoBooleanFacet, .CoveoDynamicFacet").forEach(function(e){var t,r,a=null===(t=e.dataset.id)||void 0===t?void 0:t.toLowerCase(),o=null===(r=e.dataset.f
7ield)||void 0===r?void 0:r.replace(/^@/,"").toLowerCase();if(a===l||o===l){var n=e.dataset.title;n&&(u=n)}});var d=[];try{d=JSON.parse(i)}catch(e){d=i.replace(/^\[|\]$/g,"").split(",")}d=d.map(function(e){return null==e?void 0:e.toString().trim().replace(/^"|"$/g,"")}),setTimeout(function(){var e={affiliations:"affiliationsdisplayname"},t=d.map(function(t){var r=null==t?void 0:t.toString().trim().replace(/^"|"$/g,""),a=c.toLowerCase(),o=e[a]||a,n=Array.from(document.querySelectorAll(".CoveoFacet, .CoveoBooleanFacet, .CoveoDynamicFacet")).find(function(e){var t;return(null===(t=e.dataset.field)||void 0===t?void 0:t.replace(/^@/,"").toLowerCase())===o});if(n){var i,l,u=n.querySelector('.coveo-facet-value-caption[data-original-value="'.concat(r,'"]'));if(u)return(null===(l=u.getAttribute("title"))||void 0===l?void 0:l.trim())||u.textContent.trim();var d,f=n.querySelector('.coveo-dynamic-facet-value[data-value="'.concat(r,'"] .coveo-checkbox-span-label'));if(f)return(null===(d=f.getAttribute("title"))||void 0===d?void 0:d.trim())||f.textContent.trim();var s,v=null===(i=Array.from(n.querySelectorAll(".coveo-checkbox-label")).find(function(e){var t;return(null===(t=e.querySelector("input"))||void 0===t?void 0:t.value)===r}))||void 0===i?void 0:i.querySelector(".coveo-checkbox-span-label");if(v)return(null===(s=v.getAttribute("title"))||void 0===s?void 0:s.trim())||v.textContent.trim()}return r}),r=o[u]||[];(n?t:t.filter(function(e){return!r.includes(e)})).forEach(function(e){e&&(window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"refinementApplied",category:u,detail:e.toLowerCase(),searchType:a}))}),o[u]=t},100)};for(c.s();!(r=c.n()).done;)l()}catch(e){c.e(e)}finally{c.f()}n=!1}
7),$("form.custom-form").each(function(){var e=$(this),t=this,r=!1,a=!1,o=!1,n=e.attr("id");"feedbackform"!==n&&(new IntersectionObserver(function(e,a){e.forEach(function(e){e.isIntersecting&&!r&&(r=!0,a.unobserve(t),window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"formView",formName:document.title,formId:n}))})},{}).observe(t),e.one("input change","input, textarea, select",function(){a||(a=!0,window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"formStart",formName:document.title,formId:n}))}),e.on("invalid-form",function(){o=!0}),e.on("submit",function(t){setTimeout(function(){if(o)o=!1;else{var t=e.find('input[type="email"]').val();window.adobeDataLayer=window.adobeDataLayer||[],window.adobeDataLayer.push({event:"formSubmit",formName:document.title,formId:n,email:t})}},500)}))})});
8"use strict";$(document).ready(function(){var e=Array.prototype.slice.call(document.querySelectorAll(".alert-container"));e&&e.length>0&&e.forEach(function(e){var t=e.querySelector(".close");null!=t&&t.addEventListener("click",function(){var t,r,l,n,o=e.querySelector(".hdn-visibility");if(""!==o.value){var c=parseInt(o.value,10),a=e.querySelector(".hdn-cachekey");""===a.value&&0!==c&&(t=a.value,r=!0,l=c,(n=new Date).setTime(n.getTime()+60*l*1e3),document.cookie=t+"="+r+"; expires="+n.toGMTString()+"; path=/")}e.parentNode.removeChild(e),document.querySelector(".mobile-main-nav").style.top="0"})})});
9"use strict";window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelectorAll(".awards-carousel");if(t.length>0){var n=document.querySelectorAll(".glide__arrows"),i=window.matchMedia("(min-width: 1200px)"),s=document.querySelectorAll(".awards-carousel__container"),o=document.querySelectorAll(".awards-carousel .glide__slide:not(.awards-carousel .glide__slide--clone)");t.forEach(function(e){e.classList.remove("awards-carousel--small")});for(var a=function(){var e=t[l].querySelectorAll(".glide__slide");if(e.length<=4){t[l].classList.add("awards-carousel--small");var a=new Glide(s[l],{type:"slider",animationTimingFunc:"ease-in-out",swipeThreshold:!1,dragThreshold:!1,breakpoints:{1200:{type:"carousel",focusAt:"center",swipeThreshold:!0,dragThreshold:!0,perView:1}}});a.on("mount.after",function(){if(e.forEach(function(t){t.addEventListener("mouseenter",function(t){e.forEach(function(e){e.classList.remove("glide__slide--active")})}),t.addEventListener("mouseleave",function(e){this.classList.remove("glide__slide--active")})}),i.matches)for(var t=0;t<o.length;t++)o.length<=5&&(n.forEach(function(e){e.style.display="none"}),e.forEach(function(e){e.classList.contains("glide__slide--active")&&e.classList.add("glide-center")}));for(t=0;t<o.length;t++)o.length<=1&&n.forEach(function(e){e.style.display="none"})}),i.matches?a.disable():a.mount()}else{var r=new Glide(s[l],{type:"carousel",focusAt:"center",animationTimingFunc:"ease-in-out",perView:5,swipeThreshold:!1,dragThreshold:!1,breakpoints:{1200:{type:"carousel",swipeThreshold:!0,dragThreshold:!0,perView:3},767:{type:"carousel",swipeThreshold:!0,dragThreshold:!0,perView:1}}});r.on("mount.after",function(){if(e.forEach(function(t){t.addEventListener("mouseenter",function(t){e.forEach(function(e){e.classList.remove("glide__slide--active")})}),t.addEventListener("mouseleave",function(e){this.classList.remove("glide__slide--active")})}),i.matches)for(var t=0;t<o.length;t++)e.length<=5&&(n.forEach(function(e){e.style.display="none"}),e.forEach(function(e){e.classList.contains("glide__slide--active")&&e.classList.add("glide-center")}))}),r.mount()}},l=0;l<t.length;l++)a()}setTimeout(function(){var e=document.querySelectorAll(".glide__bullet");e.length>0&&e.forEach(function(e,t){e.setAttribute("aria-label","Go to slide ".concat(t+1))})},1e3)});
10"use strict";$(document).ready(function(){function e(e,o){return(e+=e.indexOf("#")>-1?"&":"#")+o}if($(document).click(function(e){e.stopPropagation(),0===$(".dropdown").has(e.target).length&&($(".dropdown:not(.should-open").removeClass("is-active"),$(".fa-flip-vertical").removeClass("fa-flip-vert
10ical"))}),$(".dropdown-trigger").click(function(){var e=$(this).closest(".dropdown");$(e).toggleClass("is-active"),$(".fa-angle-down").toggleClass("fa-flip-vertical")}),$(".tabs ul li").click(function(){var e=$(this),o=e.attr("id"),n=document.getElementById(o+"-pane");$(".tabs ul li").removeClass("is-active"),e.addClass("is-active"),$(".tab-pane").removeClass("is-active"),$(n).addClass("is-active")}),$(".search-card doctor")){var o=$("#specialtySearchBtn"),n=$("#specialtiesDropdown"),a=$("#acceptingNewPatientsCheckbox"),t=$("#telehealthCheckbox"),i=$("#nameSearchBtn"),c=$("#nameInput");o.on("click",function(o){o.preventDefault();var i=window.location.href+"/find-a-doctor";null!=n&&"0"!=n.val()&&(i=e(i,"f:specialties=["+encodeURIComponent(n.val())+"]")),null!=a&&a[0].checked&&(i=e(i,"f:acceptingnewpatients=[1]")),null!=t&&t[0].checked&&(i=e(i,"f:telehealth=[1]")),window.location.href=i}),i.on("click",function(o){o.preventDefault();var n="/find-a-doctor";null!=c&&""!=c[0].value&&(n=e(n,"q="+encodeURIComponent(c[0].value))),window.location.href=n})}if($(".search-card hospital")){var l=$("#locationSearchBtn"),r=$("#facilityTypesDropdown"),d=$("#areaInput");l.on("click",function(o){o.preventDefault();var n=window.location.href+"/find-a-location";(null!=r&&"0"!=r.val()&&(n=e(n,"f:facilitytype=["+encodeURIComponent(r.val())+"]")),null!=d&&""!=d[0].value)?(new google.maps.Geocoder).geocode({address:d[0].value},function(o,a){if(a==google.maps.GeocoderStatus.OK){var t=o[0].geometry.location;n=e(n,"f:location="+encodeURIComponent(d[0].value)),n=e(n,"f:geolocation=["+t.lat()+","+t.lng()+"]"),window.location.href=n}}):window.location.href=n})}}),window.initLocationCard=function(){};
11"use strict";function _createForOfIteratorHelper(r,t){var e="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!e){if(Array.isArray(r)||(e=_unsupportedIterableToArray(r))||t&&r&&"number"==typeof r.length){e&&(r=e);var n=0,o=function(){};return{s:o,n:function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]}},e:function(r){throw r},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,u=!1;return{s:function(){e=e.call(r)},n:function(){var r=e.next();return i=r.done,r},e:function(r){u=!0,a=r},f:function(){try{i||null==e.return||e.return()}finally{if(u)throw a}}}}function _unsupportedIterableToArray(r,t){if(r){if("string"==typeof r)return _arrayLikeToArray(r,t);var e={}.toString.call(r).slice(8,-1);return"Object"===e&&r.constructor&&(e=r.constructor.name),"Map"===e||"Set"===e?Array.from(r):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(r,t):void 0}}function _arrayLikeToArray(r,t){(null==t||t>r.length)&&(t=r.length);for(var e=0,n=Array(t);e<t;e++)n[e]=r[e];return n}$(document).ready(function(){var r=document.getElementsByClassName("conditions-and-services");if(r.length>0){var t,e=_createForOfIteratorHelper(r);try{for(e.s();!(t=e.n()).done;){var n=t.value,o=n.querySelector("li:nth-child(10)"),a=n.querySelector("button");a&&(a.onclick=function(r){r.preventDefault(),r.target&&(r.target.setAttribute("aria-expanded","true"),o.focus())})}}catch(r){e.e(r)}finally{e.f()}}});
12"use strict";
12$(document).ready(function(){var e=$(".carousel.home"),i=document.querySelector(".glide-container");e&&i&&i.dataset.numberofslides>1&&new Glide(".carousel.home",{type:"carousel",autoplay:7e3,startAt:0,perView:1}).mount();var t=$(".slider-container");t&&t.each(function(){var e=$(this).find(".page-carousel"),i=e.data("pagesize");new Glide(e[0],{type:"carousel",startAt:0,perView:i,breakpoints:{768:{perView:1}}}).mount()});var n=$(".service-line-slider-container");if(n){var a=n.find(".service-line-page-carousel"),r=a.data("pagesize");new Glide(a[0],{type:"carousel",startAt:0,perView:r,breakpoints:{768:{perView:1}}}).mount()}1===$(".glide-container .glide__slide").length&&$(".glide-container .nav-container").hide()}),document.addEventListener("DOMContentLoaded",function(){if(document.querySelector(".splide-container")){var e=new Splide("#main-carousel",{type:"fade",rewind:!0,pagination:!1,arrows:!1,focus:"center",cover:!0,width:900,fixedWidth:900,breakpoints:{640:{width:360,fixedWidth:360}}}),i=window.matchMedia("(max-width: 768px)");if(!i.matches){var t=new Splide("#vertical-slider",{width:250,height:600,direction:"ttb",isNavigation:!0,fixedWidth:250,fixedHeight:160,pagination:!1,cover:!0,focus:"center",breakpoints:{768:{destroy:"completely"}}});e.sync(t),e.mount(),t.mount()}i.matches&&e.mount()}});
13"use strict";$(document).ready(function(){$('button[data-feedback-answer="no"]').click(function(e){$("#feedback-question").addClass("is-hidden"),$("#feedback-more-info").removeClass("is-hidden")}),$('button[data-feedback-answer="yes"]').click(function(e){$("#feedback-question").addClass("is-hidden"),$("#feedback-thank-you").removeClass("is-hidden")}),$("#feedback-form").submit(function(e){e.preventDefault(),$("#feedback-more-info").addClass("is-hidden"),$("#feedback-thank-you").removeClass("is-hidden")})});
14"use strict";function bindNewsListing(){var e=document.querySelector("#news-listing-container");if(e){var t=document.querySelector("#news-listing-more");if(t){var n=$(t),i=n.data("context-item-id"),o=n.data("page");t.addEventListener("click",function(t){t.preventDefault(),makeRequest("/api/sitecore/news/getnewslisting?Page="+o+"&ContextItemId="+i,"POST",null,null,function(t,i){i&&(n.parent().remove(),$(e).append(t.responseText),bindNewsListing())})})}}}function bindComebackStories(){var e=document.querySelector(".comeback-container");if(e){var t=document.querySelector("#dnDropdown");if(t){var n=document.querySelector("#hdn-context-id");if(n){var i=document.querySelector("#hdn-datasource-id");if(i){document.querySelector("#hdn-context-id");t.addEventListener("change",function(t){t.preventDefault();var o="/api/sitecore/news/getcomebackstories?ContextItemId="+n.value+"&DatasourceId="+i.value;""!=this.value&&(o+="&DeliveryNetwork="+this.value),makeRequest(o,"POST",null,null,function(t,n){n&&($(e).html(t.responseText),bindComebackStories())})})}}}}}$(document).ready(function(){bindNewsListing(),bindComebackStories()});
15"use strict";window.addEventListener("DOMContentLoaded",function(e){document.querySelector(".details-accordion")&&(document.querySelectorAll(".details-accordion__accordion-container").forEach(function(e){if(e.classList.contains("active")){var t=e.querySelector(".details-accordion__accordion-content");t&&(t.style.maxHeight=t.scrollHeight+"px")}}),document.querySelectorAll(".details-accordion__accordion-heading").forEach(function(e){e.addEventListener("click",function(){this.closest(".details-accordion__accordion-container").classList.toggle("active");var e=this.nextElementSibling;e.style.maxHeight?e.style.maxHeight=null:e.style.maxHeight=e.scrollHeight+"px"})}))});
16"use strict";function _createForOfIteratorHelper(t,r){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){e&&(t=e);var o=0,n=function(){};return{s:n,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return i=t.done,t},e:function(t){c=!0,a=t},f:function(){try{i||null==e.return||e.return()}finally{if(c)throw a}}}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(t,r):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,o=Array(r);e<r;e++)o[e]=t[e];return o}window.addEventListener("DOMContentLoaded",function(t){var r=document.querySelector(".doctors-locations__nav
16-btns"),e=document.querySelector(".locations-time-card");if(null!=r&&e){var o=document.querySelector(".doctors-locations__track"),n=document.querySelector(".doctors-locations__button--bottom"),a=document.querySelector(".doctors-locations__button--top"),i=document.querySelectorAll(".locations-time-card").length,c=e.offsetHeight,l=i-4,u=0,s=0;a.style.display="none",i<=4&&r.classList.add("hide"),n.addEventListener("click",function(t){a.style.display="block",s-=c,o.style.transform="translateY("+s+"px)",++u==l&&(n.style.display="none")}),a.addEventListener("click",function(t){n.style.display="block",s+=c,o.style.transform="translateY("+s+"px)",0==--u&&(a.style.display="none")}),navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(t){var r=t.coords.latitude,e=t.coords.longitude;r&&e&&(function(t,r){document.querySelectorAll(".distanceFromVisitor").forEach(function(e){var o=e.getAttribute("lat"),n=e.getAttribute("lng");if(""==o&&(o=9999),""==n&&(n=9999),o&&n){var a=function(t,r,e,o){if(t==e&&r==o)return 0;var n=Math.PI*t/180,a=Math.PI*e/180,i=r-o,c=Math.PI*i/180,l=Math.sin(n)*Math.sin(a)+Math.cos(n)*Math.cos(a)*Math.cos(c);return l>1&&(l=1),l=60*(l=180*(l=Math.acos(l))/Math.PI)*1.1515}(o,n,t,r);9999!=n|9999!=o&&(e.innerHTML=Math.ceil(a)+" miles"),e.setAttribute("distance",a)}})}(r,e),function(){document.getElementById("DocLoc");var t,r=document.createDocumentFragment(),e=document.querySelector(".doctors-locations__track"),o=_createForOfIteratorHelper(_toConsumableArray(document.querySelectorAll(".locations-time-card")).sort(function(t,r){var e=t.querySelector(".distanceFromVisitor"),o=e.getAttribute("distance"),n=r.querySelector(".distanceFromVisitor"),a=n.getAttribute("distance");return o<a?-1:o>a?1:0}));try{for(o.s();!(t=o.n()).done;){var n=t.value;r.appendChild(n)}}catch(t){o.e(t)}finally{o.f()}e.appendChild(r)}())})}});
17"use strict";window.addEventListener("DOMContentLoaded",function(t){var e=document.querySelector(".book-appointment"),o=document.querySelector(".doctor-bio-masthead__locations");if(e){var n=document.querySelector(".book-appt_placeholder");new window.IntersectionObserver(function(t){t[0].isIntersecting?e.classList.remove("enabled"):e.classList.add("enabled")}).observe(n)}if(document.querySelector(".doctor-bio-masthead__appointment form")){var a=document.querySelector(".doctor-bio-masthead__appointment input.email"),i=document.querySelector(".doctor-bio-masthead__appointment button");a.addEventListener("input",function(t){0==a.value.length?i.disabled=!0:i.disabled=!1})}if(null!=o){navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(t){var e=t.coords.latitude,o=t.coords.longitude;e&&o&&(!function(t,e){document.querySelectorAll(".locations_distanceFromVisitor").forEach(function(o){var n=o.getAttribute("lat"),a=o.getAttribute("lng");if(""==n&&(n=9999),""==a&&(a=9999),n&&a){var i=function(t,e,o,n){if(t==o&&e==n)return 0;var a=Math.PI*t/180,i=Math.PI*o/180,r=e-n,c=Math.PI*r/180,d=Math.sin(a)*Math.sin(i)+Math.cos(a)*Math.cos(i)*Math.cos(c);return d>1&&(d=1),d=60*(d=180*(d=Math.acos(d))/Math.PI)*1.1515}(n,a,t,e);9999!=a|9999!=n&&(o.innerHTML=Math.ceil(i)+" mi"),o.setAttribute("distance",i)}console.log("Distance ",o)})}(e,o),updateOrderByDistance())})}});
18"use strict";$(document).ready(function(){$(".doctor-bio-masthead__profile .save-physician").each(function(){var a=$(this).attr("data-physician-id"),i=localStorage.getItem("favorite-physicians");null!==i&&i.includes(a)&&$(this).addClass("saved")}),$(".doctor-bio-masthead__profile .save-physician").click(function(){var a=$(this).attr("data-physician-id");if(void 0!==a){var i=localStorage.getItem("favorite-physicians"),s=null;null==i||""==i?(s=a.split(","),$(this).addClass("saved")):(s=i.split(",")).includes(a)?(s=s.filter(function(i){return i!==a}),$(this).removeClass("saved")):(s.push(a),$(this).addClass("saved")),localStorage.setItem("favorite-physicians",s.join(","))}})});
19"use strict";function RadarGeocodeForward(e){var o="https://api.radar.io/v1/geocode/forward?query=";if(e){o+=e;var a=new XMLHttpRequest;if(a.open("GET",o,!1),a.setRequestHeader("Authorization","prj_live_pk_e9bc38cc9ac871b02332c0d599d7a893c03ad94d"),a.send(),200===a.status)return JSON.parse(a.responseText);console.error("Network response was not ok")}else console.log("RadarGeocodeForward: you need to pass a value")}function AddLocationToMap(e,o){e.hasCoords?AddMarker(e,o):o.geocoder.geocode({address:e.address},function(a,t){t==google.maps.GeocoderStatus.OK&&(e.coords=a[0].geometry.location,AddMarker(e,o))})}function AddMarker(e,o){for(var a=0;a<o.markertracker.length;a++)if(o.markertracker[a].coords.lat==e.coords.lat&&o.markertracker[a].coords.lng==e.coords.lng){e.coords.lat=e.co
19ords.lat+6e-5*Math.cos(36*o.markertracker[a].count),e.coords.lng=e.coords.lng+6e-5*Math.sin(36*o.markertracker[a].count),o.markertracker[a].count++;break}o.markertracker.push({coords:e.coords,count:1});var t=new google.maps.Marker({position:e.coords,map:o.map,title:e.title,icon:"/Dist/img/pin.svg"}),r=GenerateInfoContent(e),i=new google.maps.InfoWindow({content:r});t.addListener("click",function(){o.openInfoWindow&&o.openInfoWindow.close(),o.openInfoWindow=i,i.open(o.map,t)}),o.markers.push(t),o.markerClusterer.addMarker(t);var n=new google.maps.LatLng(t.position.lat(),t.position.lng());o.bounds.extend(n),1==o.markers.length?(o.map.setZoom(15),o.map.setCenter(e.coords)):(o.map.fitBounds(o.bounds),o.map.panToBounds(o.bounds))}function Location(e){var o=e.querySelector(".location-geo");if(void 0!==o&&o&&""!==o.value){var a=o.value.replace(/\s/g,"").split(",");if(2==a.length){var t=parseFloat(a[0]),r=parseFloat(a[1]);isNaN(t)||isNaN(r)||(this.coords={lat:t,lng:r},this.hasCoords=!0)}}var i=e.querySelector(".location-title");void 0!==i&&i&&""!==i.value&&(this.title=i.value);var n=e.querySelector(".location-address");void 0!==n&&n&&""!==n.value&&(this.address=n.value);var c=e.querySelector(".location-phone");void 0!==c&&c&&""!==c.value&&(this.phone=c.value);var s=e.querySelector(".location-fax");void 0!==s&&s&&""!==s.value&&(this.fax=s.value);var l=e.querySelector(".location-hours");void 0!==l&&l&&""!==l.value&&(this.hours=l.value);var d=e.querySelector(".location-directionslink");void 0!==d&&d&&""!==d.value&&(this.directionslink=d.value);var u=e.querySelector(".location-url");void 0!==u&&u&&""!==u.value&&(this.url=u.value)}function GoogleHelpers(e){this.map=new google.maps.Map(e),this.geocoder=new google.maps.Geocoder,this.bounds=new google.maps.LatLngBounds,this.markers=[],this.markertracker=[],this.openInfoWindow=null,this.markerClusterer=new Mar
19kerClusterer(this.map,this.markers,{maxZoom:20,styles:[MarkerClusterer.withDefaultStyle({width:53,height:52,url:"/Dist/img/cluster1.png",textColor:"#ffffff",textSize:12}),MarkerClusterer.withDefaultStyle({width:56,height:55,url:"/Dist/img/cluster2.png",textColor:"#ffffff",textSize:12}),MarkerClusterer.withDefaultStyle({width:66,height:65,url:"/Dist/img/cluster3.png",textColor:"#ffffff",textSize:12})]})}function GenerateInfoContent(e){var o=e.title,a=e.address,t=e.phone,r=e.fax,i=e.hours,n=e.directionslink,c=e.url,s='<div class="map-overlay">';return o&&""!=o&&(s+=c&&""!=c?'<p class="location"><a href="'+c+'">'+o+"</a></p>":'<p class="location">'+o+"</p>"),s+='<div class="address">',a&&""!=a&&(s+="<div><p>"+a+"</p></div>"),s+="<div>",t&&""!=t&&(s+='<span class="label">Main</span> '+t),r&&""!=r&&(s+='<br/><span class="label">Fax</span> '+r),s+="</div>",s+="</div>",n&&""!=n&&(s+='<a href="'+n+'" class="btn light-blue-filled">Get Directions</a>'),i&&""!=i&&(s+=i),s+="</div>"}function applyRadarLogoAccessibility(){var e=new MutationObserver(function(){var o=document.querySelector("#radar-map-logo"),a=document.querySelector("#radar-map-logo img");o&&a&&(o.setAttribute("aria-label","Radar logo - opens Radar website in a new tab"),a.setAttribute("alt","Radar logo"),e.disconnect())});e.observe(document.body,{childList:!0,subtree:!0})}window.addEventListener("DOMContentLoaded",function(e){applyRadarLogoAccessibility();var o=document.querySelector(".map-component.location");if(o){if(void 0===(c=o.querySelector("#map"))||!c)return;if(!document.querySelector(".location"))return void console.log("no location data found");var a=c.dataset.center.split(","),t=a[0];a[0]=a[1],a[1]=t;var r={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"Point",coordinates:a},properties:{name:"Location"}}]};Radar.initialize("prj_live_pk_e9bc38cc9ac871b02332c0d599d7a893c03ad94d");var i=Radar.ui.map({container:"map",style:"radar-light-v1",center:a,zoom:12});i.loadImage("/Dist/img/pin.png",function(e,o){if(e)throw e;i.addImage("custom-marker",o)}),i.on("load",function(){i.addSource("locations",{type:"geojson",data:r,cluster:!0,clusterMaxZoom:10,clusterRadius:50}),i.addLayer({id:"locationLayer-clustered",type:"circle",source:"locations",filter:["has","point_count"],paint:{"circle-color":"#00A9E0","circle-radius":20}}),i.addLayer({id:"locationLayer-clustercount",type:"symbol",source:"locations",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Graphik Bold"],"text-size":12,"text-allow-overlap":!0}}),i.addLayer({id:"locations-pins",source:"locations",type:"symbol",layout:{"icon-image":"custom-marker","icon-overlap":"always"}}),applyRadarLogoAccessibility()})}var n=document.querySelector(".map-component.physician");if(n){var c=n.querySelector("#map");u=(u=n.dataset.firstlocation).replace(/\[|\]/g,"").split(",");r=JSON.parse(n.dataset.geojson);Radar.initialize("prj_live_pk_e9bc38cc9ac871b02332c0d599d7a893c03ad94d");var s=Radar.ui.map({container:"map",style:"radar-light-v1",center:u,zoom:13}),l=r;s.loadImage("/Dist/img/pin.png",function(e,o){if(e)throw e;s.addImage("custom-marker",o)}),s.on("load",function(){s.addSource("locationJson",{type:"geojson",data:l,cluster:!0,clusterMaxZoom:11,clusterRadius:50}),s.addLayer({id:"locationLayer-clustered",type:"circle",source:"locationJson",filter:["has","point_count"],paint:{"circle-color":"#00A9E0","circle-radius":20}}),s.addLayer({id:"locationLayer-clustercount",type:"symbol",source:"locationJson",filter:["has","point_count"],layout:{"text-field":"{point_count_abbreviated}","text-font":["Graphik Bold"],"text-size":12,"text-allow-overlap":!0}}),s.addLayer({id:"locations-pins",source:"locationJson",type:"symbol",filter:["!",["has","point_count"]],layout:{"icon-image":"custom-marker","icon-overlap":"always"}});var e=new maplibregl.LngLatBounds;l.features.length>1?(l.features.forEach(function(o,a){o.geometry.coordinates;e.extend(o.geometry.coordinates)}),s.fitBounds([e._ne,e._sw],{padding:100})):s.easeTo({center:l.features[0].geometry.coordinates,zoom:12}),s.on("click","locations-pins",function(e){for(var o=e.features[0].geometry.coordinates.slice(),a=e.features[0].properties.description;Math.abs(e.lngLat.lng-o[0])>180;)o[0]+=e.lngLat.lng>o[0]?360:-360;(new maplibregl.Popup).setLngLat(o).setHTML(a).addTo(s)}),s.on("click","locations-clustered",function(e){var o=s.queryRenderedFeatures(e.point,{layers:["locations-clustered"]}),a=o[0].properties.cluster_id;s.getSource("locationJson").getClusterExpansionZoom(a,function(e,a){e||s.easeTo({center:o[0].geometry.coordinates,zoom:10})})}),applyRadarLogoAccessibility()})}var d=document.querySelector(".map-component.location-map");if(d){var u;
19u=(u=d.dataset.firstlocation).replace(/\[|\]/g,"").split(",").map(Number);r=JSON.parse(d.dataset.geojson);Radar.initialize("prj_live_pk_e9bc38cc9ac871b02332c0d599d7a893c03ad94d");var p=Radar.ui.map({container:"map",style:"radar-light-v1",center:u,zoom:13});p.loadImage("/Dist/img/pin.png",function(e,o){if(e)throw e;p.addImage("custom-marker",o)}),p.on("load",function(){p.addSource("locationJson",{type:"geojson",data:r}),p.addLayer({id:"locations-pins",source:"locationJson",type:"symbol",layout:{"icon-image":"custom-marker","icon-overlap":"always"}});var e=r.features[0].geometry.coordinates;p.jumpTo({center:e,zoom:13}),p.on("click","locations-pins",function(e){var o=e.features[0].geometry.coordinates.slice(),a=e.features[0].properties.description;(new maplibregl.Popup).setLngLat(o).setHTML(a).addTo(p)}),applyRadarLogoAccessibility()})}}),window.initLocationMap=function(){var e=document.getElementById("map");if(void 0!==e&&e){var o=document.querySelector(".location");if(o){var a=new Location(o),t=document.getElementById("starting-address"),r=document.getElementById("get-directions");t&&r&&r.addEventListener("click",function(e){e.preventDefault();var o="https://www.google.com/maps/dir/",r=a.address;""!=t.value&&(o+=t.value),o+="/"+r,window.open(o,"_blank")});var i=new GoogleHelpers(e);AddLocationToMap(a,i)}}},window.initLocationMapByType=function(){var e=document.getElementById("map");if(void 0!==e&&e){var o=document.querySelectorAll(".location");if(o){var a=new GoogleHelpers(e);o.forEach(function(e){AddLocationToMap(new Location(e),a)})}}},window.initPhysicianMap=function(){var e=document.getElementById("map");if(void 0!==e&&e){var o=document.querySelectorAll(".facility-location");if(o){var a=new GoogleHelpers(e);o.forEach(function(e){AddLocationToMap(new Location(e),a)})}}};
20"use strict";window.addEventListener("DOMContentLoaded",function(e){var o=document.querySelector(".doctor-bio-overview"),t=document.querySelector(".doctor-bio-overview__read-more"),r=document.querySelector(".doctor-bio-overview__content"),d=document.querySelector(".doctor-bio-overview__right"),i=document.querySelector(".doctor-bio-overview__inner-top");if(o){t.addEventListener("click",function(e){r.classList.add("full-content")}),d||i.classList.add("full-content");var c=window.matchMedia("(min-width: 576px)"),n=document.querySelector(".doctor-bio-overview__wrapper").offsetHeight;c.matches?n<200&&t.classList.add("hide"):n<300&&t.classList.add("hide")}});
21"use strict";window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".doctor-bio-masthead__nav-wrapper");if(t){var a=t.offsetTop,n=window.matchMedia("(max-width: 991px)"),o=document.querySelectorAll(".doctor-bio-masthead__nav-wrapper ul li");o.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),o.forEach(function(e){e.classList.remove("active")}),this.classList.add("active")})}),n.matches&&window.addEventListener("scroll",function(e){var n=window.scrollY;n>=a?t.classList.add("secondary-nav--stick"):n<=a&&t.classList.remove("secondary-nav--stick")})}});
22"use strict";$(document).ready(function(){if(document.getElementById("feedbackform")){var e=document.getElementById("feedbackyes"),t=document.getElementById("feedbackno"),n=document.getElementById("feedbacknosubmit"),l=document.getElementById("feedbackbuttons"),d=document.getElementById("thankyou"),a=document.getElementById("feedbackfields"),c=document.getElementById("feedbackemail"),o=document.getElementById("feedbackmessage"),s=document.querySelector(".thumbs-up"),i=document.querySelector(".content");e.addEventListener("click",function(e){e.preventDefault(),s.style.display="none",l.style.display="none",d.style.display="block",i.classList.add("center");var t="/api/sitecore/Feedback/sendFeedback?feedback=yes&url="+window.location.href;makeRequest(t,"POST",null,null,function(e,t){})}),t.addEventListener("click",function(e){e.preventDefault(),s.style.display="none",l.style.display="none",d.style.display="block",a.style.display="block",i.classList.add("center")}),n.addEventListener("click",function(e){e.preventDefault();var t=document.getElementById("feedbackemail-error"),n=document.getElementById("feedbackmessage-error"),l=document.getElementById("feedbackcaptcha-error");
22if(t.style.display="none",n.style.display="none",l.style.display="none",""===c.value.trim()||""===o.value.trim())return""===c.value.trim()&&(t.style.display="block"),void(""===o.value.trim()&&(n.style.display="block"));var i=hcaptcha.getResponse();if(i&&0!==i.length){var y="/api/sitecore/Feedback/sendFeedback?feedback=no&url="+window.location.href+"&email="+encodeURIComponent(c.value)+"&feedbackmessage="+encodeURIComponent(o.value)+"&captcha="+i;makeRequest(y,"POST",null,null,function(e,t){t&&(s.style.display="none",a.style.display="none",d.style.display="block")})}else l.style.display="block"})}});
23"use strict";$(document).ready(function(){var e=document.getElementsByClassName("cmp-revoke-consent");e.length>0&&(e[0].setAttribute("href","#"),e[0].addEventListener("click",function(e){e.preventDefault()}));var t=$(".sticky-footer");if(t.length){var n=t.find(".btn"),o=!1;n.length&&n.on("click",function(){o=!0,t.stop().slideToggle(400,function(){t.addClass("is-hidden"),o=!1})});var l,s=$(window),c=s.scrollTop(),i=!1;s.scroll(function(){o||(((l=s.scrollTop())>c&&!i||l<c&&i)&&(t.stop().slideToggle(),i=!i),c=l)})}});
24"use strict";window.addEventListener("DOMContentLoaded",function(e){if(null!=document.querySelector(".header")){var t=document.querySelectorAll("li.has-submenu"),n=document.querySelector(".dropdown-overlay"),a=document.querySelector(".header__search"),s=document.querySelector(".main-search-nav");function o(){document.querySelectorAll("li.has-submenu").forEach(function(e){e.classList.remove("open")}),i(),n.classList.remove("active-menu")}function i(){document.querySelectorAll("li.has-submenu button.active-trigger").forEach(function(e){e.setAttribute("aria-expanded","false")})}t.forEach(function(e){e.addEventListener("click",function(e){this.classList.contains("open")?(this.classList.remove("open"),i(),n.classList.remove("active-menu")):(o(),this.classList.add("open"),this.firstElementChild.setAttribute("aria-expanded","true"),n.classList.add("active-menu")),document.getElementsByTagName("html")[0].classList.remove("mobile-open"),a.classList.contains("active-search")&&(a.classList.remove("active-search"),a.setAttribute("aria-expanded","false")),s.classList.contains("active-search")&&s.classList.remove("active-search"),e.stopPropagation()})}),document.querySelectorAll(".drop-down").forEach(function(e){e.addEventListener("click",function(e){o(),e.stopPropagation()})}),document.querySelectorAll(".drop-down__close").forEach(function(e){e.addEventListener("click",function(e){o()})});var c=document.querySelector(".header__main-wrapper"),r=c.offsetTop,l=document.querySelectorAll(".alert-container"),u=document.querySelector(".mobile-main-nav");function d(){var e=0;l.forEach(function(t){var n=t.offsetHeight;e+=n,u.style.top=e+"px"})}l.length>0&&d(),window.onscroll=function(){var e=window.scrollY;e>=r?(c.classList.add("fixed-header"),l.length>0&&(u.style.top="0")):e<=r&&(c.classList.remove("fixed-header"),l.length>0&&d())},window.onresize=function(){l.length>0&&d()};var m=document.getElementsByTagName("html")[0];window.matchMedia("(min-width: 1024px)").matches&&m.addEventListener("click",function(e){var t=$(e.target),s=$("li.has-submenu"),o=$(e.target),c=$("div.main-search-nav");return!(!o.is(c)&&!c.has(o).length)||(c.removeClass("active-search"),a.classList.remove("active-search"),a.setAttribute("aria-expanded","false"),n.classList.remove("active-menu"),m.classList.remove("mobile-open"),!(!t.is(s)&&!s.has(t).length)||(s.removeClass("open"),i(),n.classList.remove("active-menu"),void m.classList.remove("mobile-open")))})}});
25"use strict";window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".main-search-nav");if(null!=t){var a=document.querySelector(".header__search"),s=document.querySelector(".main-search-nav__panel-close"),c=document.getElementsByTagName("html")[0],i=document.querySelectorAll("li.has-submenu"),o=document.querySelectorAll("li.has-submenu button"),n=document.querySelector(".dropdown-overlay"),r=window.matchMedia("(max-width: 1023px)");document.querySelector(".header .main-search-nav.active-search .CoveoSearchButton .coveo-search-button");if(location.pathname.toLowerCase().includes("/search")&&"undefined"!=typeof Coveo){var l=document.querySelector(".CoveoSearchInterface");l&&Coveo.$$(l).on("buildingQuery",function(){a.classList.remove("active-search"),t.classList.remove("active-search"),r.matches&&c.classList.remove("mobile-open"),a.setAttribute("aria-expanded","fal
25se"),n.classList.remove("active-menu")})}a.addEventListener("click",function(e){a.classList.contains("active-search")?(this.classList.remove("active-search"),this.setAttribute("aria-expanded","false"),r.matches&&c.classList.remove("mobile-open"),t.classList.remove("active-search"),n.classList.remove("active-menu")):(this.classList.add("active-search"),this.setAttribute("aria-expanded","true"),document.querySelector(".magic-box-input input"),n.classList.add("active-menu"),r.matches&&(c.classList.contains("mobile-open")||c.classList.add("mobile-open")),t.classList.contains("active-search")||t.classList.add("active-search"),n.classList.contains("active-menu")||n.classList.add("active-menu")),i.forEach(function(e){e.classList.contains("open")&&e.classList.remove("open")}),o.forEach(function(e){e.setAttribute("aria-expanded","false")}),e.stopPropagation()}),s.addEventListener("click",function(e){a.classList.remove("active-search"),t.classList.remove("active-search"),r.matches&&c.classList.remove("mobile-open"),a.setAttribute("aria-expanded","false"),n.classList.remove("active-menu")})}});
26"use strict";window.addEventListener("DOMContentLoaded",function(e){if(null!=document.querySelector(".header")){var t=document.querySelector(".header__burger"),n=document.querySelector(".mobile-main-nav"),o=document.querySelector(".mobile-main-nav__close"),i=document.getElementsByTagName("html")[0];t.addEventListener("click",function(e){this.classList.add("mobile-open"),i.classList.add("mobile-open"),this.classList.contains("mobile-open")?this.setAttribute("aria-expanded","true"):this.setAttribute("aria-expanded","false"),n.classList.add("mobile-open"),navigator.geolocation.getCurrentPosition(r)}),o.addEventListener("click",function(e){t.classList.remove("mobile-open"),n.classList.remove("mobile-open"),i.classList.remove("mobile-open"),t.setAttribute("aria-expanded","false")}),document.querySelectorAll(".mobile-main-nav__menu-item").forEach(function(e){e.addEventListener("click",function(e){this.classList.add("open-panel"),this.firstElementChild.setAttribute("aria-expanded","true"),n.classList.add("in-active"),e.stopPropagation()})});var a=document.querySelectorAll(".mobile-main-nav__panel-return"),c=document.querySelectorAll(".mobile-main-nav__menu-item button");a.forEach(function(e){e.addEventListener("click",function(e){this.parentElement.parentElement.classList.remove("open-panel"),n.classList.remove("in-active"),c.forEach(function(e){e.setAttribute("aria-expanded","false")}),e.stopPropagation()})}),document.querySelectorAll(".mobile-main-nav__panel-close").forEach(function(e){e.addEventListener("click",function(e){i.classList.remove("mobile-open"),n.classList.remove("in-active"),t.classList.remove("mobile-open"),n.classList.remove("mobile-open"),document.querySelectorAll(".mobile-main-nav__menu-item").forEach(function(e){e.classList.contains("open-panel")&&e.classList.remove("open-panel")}),c.forEach(function(e){e.setAttribute("aria-expanded","false")}),e.stopPropagation()})});var l=document.querySelector(".mobile-main-nav__locations button"),s=document.querySelector(".mobile-main-nav__locations");l.addEventListener("click",function(e){s.classList.contains("expand-menu")?s.classList.remove("expand-menu"):s.classList.contains("expand-menu")||s.classList.add("expand-menu")})}function r(e){var t=e.coords.latitude,n=e.coords.longitude;t&&n&&document.querySelectorAll(".location-menu").forEach(function(e){!function(e,t,n){var o=e.getAttribute("data-column-id");fetch("/api/sitecore/navigation/locations?ColumnId="+o+"&lat="+t+"&lon="+n,{method:"get"}).then(function(e){return e.json()}).then(function(t){return function(e,t){var n=t.querySelector(".locations-list"),o="";e.Locations.forEach(function(e){o+='<li><a href="'+e.Url+'">'+e.Name+"</a></li>"}),n.innerHTML=o;var i=t.querySelector(".location-title"),a=i.getAttribute("data-location-title");i.innerHTML=a}(t,e)}).catch(function(e){})}(e,t,n)})}});
27"use strict";window.addEventListener("DOMContentLoaded",function(e){if(document.querySelectorAll(".locations-carousel").length>0)for(var t=document.querySelectorAll(".locations-carousel__container"),a=0;a<t.length;a++){var n=new Glide(t[a],{type:"carousel",autoplay:5500,hoverpause:!1,animationDuration:750,animationTimingFunc:"ease-in-out",gap:0,startAt:0,perView:1});window.matchMedia("(max-width: 1023px)").matches?n.disable():n.mount()}});
28"use strict";window.addEventListener("DOMContentLoaded",function(e){var n=document.querySelector(".bg-video"),t=document.querySelector(".main-hero");if(n){var o=document.querySelector(".main-hero__video-container");n.addEventListener("ended",function(e){t.classList.add("main-hero__fade-out"),setTimeout(function(){o.style.zIndex=1},2e3)})}});
29"use strict";document.addEventListener("DOMContentLoaded",function(){$('a[href^="#"]').on("click",function(e){var t=$(this).attr("href");"#"!=t&&(e.preventDefault(),$("html,body").animate({scrollTop:$(t).offset().top-150},500))}),document.querySelectorAll(".has-submenu").forEach(function(e){var t=e.querySelector(".active-trigger");t&&(t.addEventListener("focus",function(n){n.target.matches(":focus-visible")&&(e.classList.add("open"),t.setAttribute("aria-expanded","true"))}),e.addEventListener("focusin",function(n){n.target.matches(":focus-visible")&&(e.classList.add("open"),t.setAttribute("aria-expanded","true"))}),e.addEventListener("focusout",function(){setTimeout(function(){e.contains(document.activeElement)||(e.classList.remove("open"),t.setAttribute("aria-expanded","fal
29se"))},0)}))})});
30"use strict";function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=Array(t);o<t;o++)n[o]=e[o];return n}function PhysicianCompareMain(){function e(){var e=document.getElementsByClassName("doctor-card__btn--save-btn"),t=document.querySelector(".doctor-compare__btn--borderless");if(document.querySelector(".doctor-compare")){Array.from(e).forEach(function(e){var t=e.querySelector(".temp-checkbox"),o=e.querySelector("span"),n=e.getAttribute("data-expand-id"),r=document.querySelector(".doctor-compare__compare.doctor-compare__btn.doctor-compare__btn--full-sky");t&&o?e.addEventListener("click",function(e){var a=!1,c=JSON.parse(sessionStorage.getItem("savedItems"))||[];t.classList.contains("checked")?(t.classList.remove("checked"),o.textContent="Compare",c=c.filter(function(e){return e!==n}),$(".doctor-compare__checkbox").hasClass("checked")&&(a=!0)):(t.classList.add("checked"),o.textContent="Compare",c.includes(n)||c.push(n)),c.length>6||1==c.length?(r.style.backgroundColor="#dcdcdc",r.disabled=!0,r.cursor="unset",r.textDecoration="none"):(r.style.backgroundColor="#00a9e0",r.disabled=!1,r.cursor="pointer",r.textDecoration="underline"),sessionStorage.setItem("savedItems",JSON.stringify(c)),u(),a&&($(".CoveoResultList").coveo("executeQuery"),c.length<1&&$(".doctor-compare__checkbox").click())}):console.error("Checkbox or button text element not found inside the save button.")}),t?t.addEventListener("click",function(){var t=document.querySelector(".doctor-compare__checkbox");t.classList.contains("checked")&&t.classList.remove("checked"),Array.from(e).forEach(function(e){var t=e.querySelector(".temp-checkbox"),o=e.querySelector("span");t&&o&&(t.classList.remove("checked"),o.textContent="Compare")}),sessionStorage.removeItem("savedItems"),u(),$(".CoveoResultList").coveo("executeQuery")}):console.error("Clear button element not found."),m(),u()}}e(),Coveo.$$(document).on("newResultsDisplayed",function(){e()});var t=document.querySelector(".doctor-compare__compare.doctor-compare__btn.doctor-compare__btn--full-sky"),o=!1,n=!1,r=!1,a=!1,c=!1,l=!1,s=[];function i(e){if("string"==typeof e&&0===e.trim().length)return"<p>N/A</p>";var t=e.split(/[,;]/).map(function(e){return e.trim()}).filter(function(e){return e.length>0});return 0===t.length?"<p>N/A</p>":t.length>4?"<ul>".concat(t.splice(0,4).map(function(e){return"<li>".concat(e,"</li>")}).join(""),"</ul>"):"<ul>".concat(t.map(function(e){return"<li>".concat(e,"</li>")}).join(""),"</ul>")}function d(e){return"string"==typeof e&&0===e.length||e.split(",").length<5?null:'<button type="button" class="doctor-compare__btn doctor-compare__btn--inverted-navy doctor-compare__modal-table-list-tooltip--btn">View full list</button>\n        <div class="doctor-compare__modal-table-list-tooltip">\n          <ul>'.concat(e.split(",").map(function(e){return"<li>".concat(e.trim(),"</li>")}).join(""),'</ul>\n          <button type="button" class="doctor-compare__modal-table-list-tooltip--close" aria-label="Close tooltip">\n            <svg width="22" height="22" viewBox="0 0 22 22" xmlns="http://www.w3.org/2000/svg">\n              <g fill="none" fill-rule="evenodd">\n                <path d="M0 0h22v22H0z" />\n                <path d="M5.243 5.243a.688.688 0 0 1 .972 0L11 10.028l4.785-4.785a.687.
30687 0 1 1 .972.972L11.972 11l4.785 4.785a.688.688 0 1 1-.972.972L11 11.972l-4.785 4.785a.687.687 0 0 1-.972-.972L10.028 11 5.243 6.215a.688.688 0 0 1 0-.972z"\n                      stroke="#1E1E1E" stroke-width=".5" fill="#1E1E1E" />\n              </g>\n            </svg>\n          </button>\n        </div>')}function m(){var e=JSON.parse(sessionStorage.getItem("savedItems"))||[],t=document.getElementsByClassName("doctor-card__btn--save-btn");Array.from(t).forEach(function(t){var o=t.querySelector(".temp-checkbox"),n=t.querySelector("span"),r=t.getAttribute("data-expand-id");o&&n&&e.includes(r)?(o.classList.add("checked"),n.textContent="Compare"):(o.classList.remove("checked"),n.textContent="Compare")})}function u(){var e=JSON.parse(sessionStorage.getItem("savedItems"))||[],t=document.querySelector('label[for="filter-comparison"] span'),o=document.querySelector(".doctor-compare button.doctor-compare__compare.doctor-compare__btn.doctor-compare__btn--full-sky span.doctor-compare__compare-count"),n=document.querySelector(".doctor-compare"),r=document.querySelector(".doctor-compare__modal.modal"),a=e.length,c=document.querySelector(".custom-search-section-new"),l=document.querySelector(".doctor-compare__compare.doctor-compare__btn.doctor-compare__btn--full-sky"),s=document.querySelector(".coveo-dropdown-header-wrapper");e.length>6||1==e.length?(l.style.backgroundColor="#dcdcdc",l.disabled=!0,l.style.cursor="unset",l.style.textDecoration="none"):(l.style.backgroundColor="#00a9e0",l.disabled=!1,l.style.cursor="pointer",l.style.textDecoration="underline"),t&&o?(t.textContent="(".concat(a,")"),o.textContent="(".concat(a,"/6)")):console.error("Filter label element not found."),n?(n.style.display=a>=1?"block":"none",c.style.marginBottom=a>=1?"unset":"3rem",a<1&&r.classList.remove("is-active"),a>=1?s&&s.classList.add("is-compare"):s&&s.classList.remove("is-compare")):console.error("Compare section element not found.")}t&&t.addEventListener("click",function(){var e=sessionStorage.getItem("savedItems");if(e){var t=JSON.parse(e);if(0!==t.length){var s=t.map(function(e){return"itemID=".concat(e)}).join("&");null,fetch("/api/sitecore/physicians/GetPhysiciansForComparison?".concat(s)).then(function(e){if(!e.ok)throw new Error("Network response was not ok.");return e.json()}).then(function(e){e,function e(t){$('.doctor-compare__condition[data-column="gender"]').hasClass("active");$('.doctor-compare__condition[data-column="online-scheduling"]').hasClass("active");$('.doctor-compare__condition[data-column="specialties"]').hasClass("active");var s=document.querySelector(".doctor-compare__modal-table");s.innerHTML='<div class="doctor-compare__modal-table-row">\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__profile-header">\n                  Saved Clinicians\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table--col--1 doctor-compare__modal-table-header" data-column="empty"></div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table--col--2 doctor-compare__modal-table-header" data-column="empty"></div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table--col--3 doctor-compare__modal-table-header" data-column="empty"></div>\n              \n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__modal-table-header--sortable" data-column="location">\n                  <span>Location</span>\n                  <div id="location">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header" data-column="specialties">
30\n                  <span>Specialties</span>\n\n                  <div id="specialties">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header" data-column="subspecialties">\n                  <span>Subspecialties</span>\n\n                  <div id="subspecialties">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header" data-column="conditions-treatments">\n                  <span>Conditions &amp; Treatments</span>\n\n                  <div id="conditions-treatments">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header" data-column="insurance-accepted">\n                  <span>Insurance Accepted</span>\n\n                  <div id="insurance-accepted">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__modal-table-header--sortable" data-column="gender">
30\n                  <span>Gender</span>\n                  <div id="gender">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header" data-column="languages">\n                  <span>Languages Spoken</span>\n\n                  <div id="languages">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header" data-column="delivery-network">\n                  <span>Delivery Network</span>\n\n                  <div id="delivery-network">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__modal-table-header--sortable" data-column="treats-adults-children">\n                  <span>Treats Adults/Children</span>\n\n                  <div id="treats-adults-children">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__modal-table-header--sortable" data-column="online-scheduling">
30\n                  <span>Online Scheduling</span>\n\n                  <div id="online-scheduling">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__modal-table-header--sortable" data-column="offers-telehealth">\n                  <span>Offers Telehealth</span>\n\n                  <div id="offers-telehealth">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n              <div class="doctor-compare__modal-table--col doctor-compare__modal-table-header doctor-compare__modal-table-header--sortable" data-column="accepting-new-patients">\n                  <span>Accepting New Patients</span>\n\n                  <div id="accepting-new-patients">\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 7.35 6.667 0 0 7.35z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n\n                      <button type="button" class="doctor-compare__btn doctor-compare__btn--sort">\n                          <svg width="14" height="8" viewBox="0 0 14 8" xmlns="http://www.w3.org/2000/svg">\n                              <path d="M13.333 0 6.667 7.35 0 0z" fill="#979797" fill-rule="nonzero" />\n                          </svg>\n                      </button>\n                  </div>\n              </div>\n          </div>';Array.isArray(t)?t.forEach(function(e){var t,o,n,r,a,c,l,m,u,p=(t=e,o=document.getElementById("physician-row-template").innerHTML,n=t.BookOnline?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512">\n          \x3c!--!Font Awesome Free 6.6.0 by fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--\x3e\n          <path fill="#00a9e0" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path>\n        </svg>':'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n          <g fill="none" fill-rule="evenodd">\n              <path d="M0 0h24v24H0z" />\n              <path d="M3.303 3.33a1.038 1.038 0 0 1 1.466 0l7.218 7.207 7.217-7.207a1.038 1.038 0 0 1 1.764.45c.094.366-.02.755-.298 1.013L13.452 12l7.218 7.207a1.034 1.034 0 0 1-.45 1.76 1.038 1.038 0 0 1-1.016-.297l-7.217-7.207-7.218 7.207a1.038 1.038 0 0 1-1.44-.025 1.034 1.034 0 0 1-.026-1.438L10.521 12 3.303 4.793a1.034 1.034 0 0 1 0-1.463z"\n                    fill="#979797" />\n          </g>\n        </svg>',r='<a class="doctor-compare__btn doctor-compare__btn--full-navy" href="'.concat(t.BookOnline,'">\n        <svg width="26" height="26" viewBox="0 0 26 26" xmlns="http://www.w3.org/2000/svg">\n          <g transform="matrix(1, 0, 0, 1, -725.0000108033419, -181.3750027026981)"\n              filter="url
30(#ewwixwa1ca)"\n              fill="#FFF"\n              fill-rule="evenodd">\n            <path d="M750.459 185.709h-3.521v-.813a1.896 1.896 0 0 0-3.792 0v.813h-10.291l-.001-.813a1.895 1.895 0 1 0-3.792 0v.813h-3.52a.541.541 0 0 0-.542.541v18.959a.542.542 0 0 0 .541.541h24.918a.542.542 0 0 0 .541-.541V186.25a.542.542 0 0 0-.541-.541zm-6.23-.813a.813.813 0 0 1 1.625 0v2.166a.812.812 0 1 1-1.625 0v-2.166zm-14.084 0h.001a.812.812 0 1 1 1.625 0v2.166a.813.813 0 0 1-1.625 0v-2.166zm-1.083 1.895v.272a1.896 1.896 0 0 0 3.792 0v-.272h10.291v.272h.001a1.895 1.895 0 1 0 3.792 0v-.272h2.978v3.25h-23.832v-3.25h2.978zm-2.978 17.875v-13.541h23.832v13.541h-23.832zm17.316-9.605a.57.57 0 0 1-.205.387l-5.43 4.859a.571.571 0 0 1-.365.132h-.08a.572.572 0 0 1-.395-.252l-2.144-2.715a.572.572 0 1 1 .95-.63l1.789 2.184 4.944-4.452a.572.572 0 0 1 .805.068.572.572 0 0 1 .13.42z" />\n          </g>\n        </svg>\n        <span>Book an Appointment</span>\n      </a>'),a='<a class="doctor-compare__btn doctor-compare__btn--full-navy" href="tel:'.concat(t.Telephone,'">\n        <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n          <g transform="matrix(1, 0, 0, 1, -725.5434068075327, -242.67749385055137)"\n              filter="url(#g197e87g6a)" fill="#ffffff"\n              fill-rule="nonzero">\n            <path d="M735.62 250.189a2.244 2.244 0 0 0 .022-2.26l-2.667-4.61c-.155-.267-.455-.384-.729-.283l-3.174 1.163c-1.617.589-2.51 2.49-2.01 4.28 1.271 4.108 3.422 7.82 6.27 10.825 2.733 3.13 6.11 5.495 9.846 6.893.298.105.61.158.922.158 1.35-.008 2.545-.96 2.972-2.367l1.058-3.49a.726.726 0 0 0-.258-.8l-4.193-2.933a1.745 1.745 0 0 0-2.055.024l-1.335.979a.575.575 0 0 1-.67.018c-.992-.679-1.91-1.48-2.737-2.385a16.827 16.827 0 0 1-2.17-3.01.74.74 0 0 1 .018-.735l.89-1.467zm-1.044-.766-.89 1.468a2.24 2.24 0 0 0-.04 2.23 18.177 18.177 0 0 0 2.349 3.255c.896.98 1.889 1.847 2.961 2.583a1.74 1.74 0 0 0 2.03-.043l1.334-.979a.58.58 0 0 1 .686-.008l3.778 2.644-.904 2.978c-.314 1.066-1.347 1.658-2.322 1.33-3.545-1.33-6.748-3.578-9.339-6.553-2.705-2.849-4.75-6.37-5.96-10.267-.295-1.071.242-2.205 1.21-2.553l2.71-.993 2.405 4.154a.75.75 0 0 1-.008.754z" />\n          </g>\n        </svg>\n        <span>Call for an Appointment</span>\n      </a>'),c=t.AcceptingNewPatients?t.BookOnline?r:t.Telephone?a:null:null,l="yes"==t.OffersTelehealth.toLowerCase()?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512">\n          \x3c!--!Font Awesome Free 6.6.0 by fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--\x3e\n          <path fill="#00a9e0" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path>\n        </svg>':'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n          <g fill="none" fill-rule="evenodd">\n              <path d="M0 0h24v24H0z" />\n              <path d="M3.303 3.33a1.038 1.038 0 0 1 1.466 0l7.218 7.207 7.217-7.207a1.038 1.038 0 0 1 1.764.45c.094.366-.02.755-.298 1.013L13.452 12l7.218 7.207a1.034 1.034 0 0 1-.45 1.76 1.038 1.038 0 0 1-1.016-.297l-7.217-7.207-7.218 7.207a1.038 1.038 0 0 1-1.44-.025 1.034 1.034 0 0 1-.026-1.438L10.521 12 3.303 4.793a1.034 1.034 0 0 1 0-1.463z"\n                    fill="#979797" />\n          </g>\n        </svg>',m=!0===t.AcceptingNewPatients||"yes"==t.AcceptingNewPatients.toString().toLowerCase()?'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 512 512">\n          \x3c!--!Font Awesome Free 6.6.0 by fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--\x3e\n          <path fill="#00a9e0" d="M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"></path>\n        </svg>':'<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n          <g fill="none" fill-rule="evenodd">\n              <path d="M0 0h24v24H0z" />\n              <path d="M3.303 3.33a1.038 1.038 0 0 1 1.466 0l7.218 7.207 7.217-7.207a1.038 1.038 0 0 1 1.764.45c.094.366-.02.755-.298 1.013L13.452 12l7.218 7.207a1.034 1.034 0 0 1-.45 1.76 1.038 1.038 0 0 1-1.016-.297l-7.217-7.207-7.218 7.207a1.038 1.038 0 0 1-1.44-.025 1.034 1.034 0 0 1-.026-1.438L10.521 12 3.303 4.793a1.034 1.034 0 0 1 0-1.463z"\n                    fill="#979797" />\n          </g>\n        </svg>',i(t.Languages),u={ID:t.ID,ImageUrl:t.ImageUrl,FullName:t.FullName,BookingBtn:c,Url:t.Url,Location:t.Location,Specialties:i(t.Specialties),SpecialtiesTooltip:d(t.Specialties),Subspecialties:i(t.Subspecialties),SubspecialtiesTooltip:d(t.Subspecialties),ConditionsTreatments:i(t.ConditionsTreatments),ConditionsTreatmentsTooltip:d(t.ConditionsTreatments),InsuranceAccepted:i(t.InsuranceAccepted),InsuranceAcceptedTooltip:d(t.InsuranceAccepted),Gender:t.Gender,LanguagesSpoken:i(t.Languages),LanguagesSpokenTooltip:d(t.Languages),DeliveryNetworks:i(t.DeliveryNetworks),DeliveryNetworksTooltip:d(t.DeliveryNetworks),TreatsAdultsChildren:t.TreatsAdultsChildren,O
30nlineSchedulingIcon:n,OnlineScheduling:t.OnlineScheduling,OffersTelehealthIcon:l,OffersTelehealth:t.OffersTelehealth,AcceptingNewPatientsIcon:m,AcceptingNewPatients:t.AcceptingNewPatients},Mustache.render(o,u));s.insertAdjacentHTML("beforeend",p)}):console.error("Unexpected response format.");var p=document.querySelectorAll(".doctor-compare__modal-table-list-tooltip--btn");p.forEach(function(e){e.addEventListener("click",function(e){var t=e.target.nextElementSibling;t.classList.toggle("doctor-compare__modal-table-list-tooltip--open")})});var v=document.querySelectorAll(".doctor-compare__modal-table-list-tooltip--close");v.forEach(function(e){e.addEventListener("click",function(e){var t=e.target.closest(".doctor-compare__modal-table-list-tooltip");t.classList.toggle("doctor-compare__modal-table-list-tooltip--open")})});var h=setInterval(function(){var o=document.querySelector("div#location");null!=o&&(clearInterval(h),o.addEventListener("click",function(){var o=t.sort(function(e,t){return e.Location<t.Location?n?1:-1:e.Location>t.Location?n?-1:1:0});n=!n,e(o),_()}))},1e3);var g=setInterval(function(){var n=document.querySelector("div#gender");null!=n&&(clearInterval(g),n.addEventListener("click",function(){var n=t.sort(function(e,t){return e.Gender<t.Gender?o?1:-1:e.Gender>t.Gender?o?-1:1:0});o=!o,e(n),_()}))},1e3);var b=setInterval(function(){var o=document.querySelector("div#online-scheduling");null!=o&&(clearInterval(b),o.addEventListener("click",function(){var o=t.sort(function(e,t){return e.OnlineScheduling<t.OnlineScheduling?a?1:-1:e.OnlineScheduling>t.OnlineScheduling?a?-1:1:0});a=!a,e(o),_()}))},1e3);var f=setInterval(function(){var o=document.querySelector("div#offers-telehealth");o&&(clearInterval(f),o.addEventListener("click",function(){var o=t.sort(function(e,t){return e.OffersTelehealth<t.OffersTelehealth?c?1:-1:e.OffersTelehealth>t.OffersTelehealth?c?-1:1:0});c=!c,e(o),_()}))},1e3);var w=setInterval(function(){var o=document.querySelector("div#accepting-new-patients");o&&(clearInterval(w),o.addEventListener("click",function(){var o=t.sort(function(e,t){return e.AcceptingNewPatients<t.AcceptingNewPatients?l?1:-1:e.AcceptingNewPatients>t.AcceptingNewPatients?l?-1:1:0});l=!l,e(o),_()}))},1e3);var y=setInterval(function(){var o=document.querySelector("div#treats-adults-children");o&&(clearInterval(y),o.addEventListener("click",function(){var o=t.sort(function(e,t){return e.TreatsAdultsChildren<t.TreatsAdultsChildren?r?1:-1:e.TreatsAdultsChildren>t.TreatsAdultsChildren?r?-1:1:0});r=!r,e(o),_()}))},1e3);var x=document.querySelectorAll(".doctor-compare__btn.doctor-compare__btn--remove");x&&x.length>=2&&x.forEach(function(e){e.addEventListener("click",function(e){var t=e.target.dataset.physician;if(t){var o=e.target.closest(".doctor-compare__modal-table-row");!function(e,t){t.remove();var o=JSON.parse(sessionStorage.getItem("savedItems"))||[],n=o.indexOf(e);o.splice(n,1);sessionStorage.setItem("savedItems",JSON.stringify(o)),m(),u(),$(".CoveoResultList").coveo("executeQuery")}(t,o),u()}})})}(e)}).catch(function(e){console.error("There was a problem with the fetch operation:",e)})}else console.error("The saved items list is empty.")}else console.error("No saved items found in session storage.")}),t&&t.addEventListener("click",function(e){document.querySelector(".doctor-compare__modal.modal").classList.add("is-active")});var p=document.querySelector(".doctor-compare__btn--close");p&&p.addEventListener("click",function(e){document.querySelector(".doctor-compare__modal.modal").classList.remove("is-active"),s=[],document.querySelectorAll(".doctor-compare__condition").forEach(function(e){e.classList.remove("active")}),document.querySelectorAll(".doctor-compare__modal-table *[data-column]").forEach(function(e){e.classList.remove("doctor-compare__modal-table--col--1","doctor-compare__modal-table--col--2","doctor-compare__modal-table--col--3")}),$(".CoveoResultList").coveo("executeQuery")});var v=document.querySelector(".doctor-compare__btn.doctor-compare__btn--inverted-navy");v&&v.addEventListener("click",function(e){document.querySelector(".doctor-compare__modal.modal").classList.remove("is-active"),s=[],document.querySelectorAll(".doctor-compare__condition").forEach(function(e){e.classList.remove("active")}),document.querySelectorAll(".doctor-compare__modal-table *[data-column]").forEach(function(e){e.classList.remove("doctor-compare__modal-table--col--1","doctor-compare__modal-table--col--2","doctor-compare__modal-table--col--3")}),$(".CoveoResultList").coveo("executeQuery")});var h=document.querySelector(".doctor-compare__conditions");h&&h.querySelectorAll(".doctor-compare__condition").forEach(function(e){e.addEventListener("click",function(e){var t=e.target.parentElement,o=t.dataset.column;if(t.classList.contains("active")){t.classList.remove("active");var n=s.indexOf(o);s.splice(n,1);var r='.doctor-compare__modal-table *[data-column="'+o+'"]';document.querySelectorAll(r).forEach(function(e){e.classList.remove("doctor-compare__modal-table--col--".concat(n+1))})}else{if(t.classList.add("active"),s.length>=3){var a=s.splice(0,1);document.querySelector('.doctor-compare__condition[data-column="'.concat(a,'"]')).classList.remove("active");var c='.doctor-compare__modal-table *[data-column="'+a+'"]';
30document.querySelectorAll(c).forEach(function(e){e.classList.remove("doctor-compare__modal-table--col--1")})}s.push(o)}_()})});function _(){if(s.forEach(function(e){var t='.doctor-compare__modal-table *[data-column="'+e+'"]',o=document.querySelectorAll(t),n=s.indexOf(e);document.querySelectorAll(".doctor-compare__modal-table--col--".concat(n+1,'[data-column="empty"]')).forEach(function(e){e.classList.remove("doctor-compare__modal-table--col--".concat(n+1))}),o.forEach(function(e){for(var t=0;t<3;t++)e.classList.remove("doctor-compare__modal-table--col--".concat(t+1));e.classList.add("doctor-compare__modal-table--col--".concat(n+1))})}),s.length<3){document.querySelectorAll(".doctor-compare__modal-table-row").forEach(function(e){for(var t=e.querySelectorAll('.doctor-compare__modal-table--col[data-column="empty"]'),o=s.length;o<3;o++)t[o].classList.add("doctor-compare__modal-table--col--".concat(o+1))})}}}window.addEventListener("load",function(e){setTimeout(function(){PhysicianCompareMain()},1e3);var t=document.querySelector(".main-search-nav").offsetHeight||0,o=document.querySelector(".doctor-compare");o&&window.addEventListener("scroll",function(){window.scrollY>t?o.classList.add("fixed-menu"):o.classList.remove("fixed-menu")})});
31"use strict";document.addEventListener("DOMContentLoaded",function(){$(".quick-view").click(function(e){console.log(this);var t=$(this).data("expand-id"),o=document.getElementById(t);$(this).toggleClass("open"),$(o).toggleClass("expanded")}),setTimeout(function(){var e=document.getElementById("geoInput"),t=document.getElementById("clearButton");if(e&&t){function o(){t.style.display=e.value.length>0?"flex":"none"}e.addEventListener("input",o),t.addEventListener("click",function(){e.value="",e.focus(),o()})}},1e3)}),setTimeout(function(){var e=document.querySelector(".custom-search-section-new__input-box .custom-search-section-new__locateme"),t=document.getElementById("geoSearchBarInput"),o=document.querySelector(".custom-search-section-new__locateme"),n=document.querySelector(".custom-search-section-new");"geolocation"in navigator&&"permissions"in navigator?navigator.permissions.query({name:"geolocation"}).then(function(c){console.log("Geolocation permission status: ".concat(c.state)),"granted"===c.state?(t.addEventListener("focus",function(){e&&e.classList.add("visible"),n.classList.add("useMyLocation")}),document.addEventListener("click",function(e){t.contains(e.target)||o.contains(e.target)||(o.classList.remove("visible"),n.classList.remove("useMyLocation"))}),console.log("Geolocation access granted.")):"prompt"===c.state?(console.log("Geolocation access will prompt."),e&&(e.style.display="none")):"denied"===c.state&&(e&&(e.style.display="none"),console.log("Geolocation access denied.")),c.onchange=function(){console.log("Geolocation permission status changed to: ".concat(c.state))}}):console.log("Geolocation or Permissions API is not supported by this browser.")},1e3),document.addEventListener("DOMContentLoaded",function(){function e(e){e.classList.remove("is-active")}(document.querySelectorAll(".js-modal-trigger")||[]).forEach(function(e){var t=e.dataset.target,o=document.getElementById(t);e.addEventListener("click",function(){o.classList.add("is-active")})}),(document.querySelectorAll(".modal-background, .modal-close, .modal-card-head .delete, .modal-card-foot .button")||[]).forEach(function(t){var o=t.closest(".modal");t.addEventListener("click",function(){e(o)})}),document.addEventListener("keydown",function(t){"Escape"===t.key&&(document.querySelectorAll(".modal")||[]).forEach(function(t){e(t)})})});
32"use strict";window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".anchor-nav__wrapper");if(t){var a=window.matchMedia("(max-width: 991px)"),n=document.querySelectorAll(".anchor-nav__wrapper ul li");n.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),n.forEach(function(e){e.classList.remove("active")}),this.classList.add("active")})}),a.matches&&window.addEventListener("scroll",function(e){var a=document.querySelector(".anchor-nav__wrapper").getBoundingClientRect().top,n=window.scrollY;n>=a?t.classList.add("anchor-nav__wrapper--stick"):n<=a&&t.classList.remove("anchor-nav__wrapper--stick")})}}),window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".multispecialty-anchor-nav__wrapper");if(t){var a=window.matchMedia("(max-width: 991px)"),n=document.querySelectorAll(".multispecialty-anchor-nav__wrapper ul li");
32n.forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),n.forEach(function(e){e.classList.remove("active")}),this.classList.add("active")})}),a.matches&&window.addEventListener("scroll",function(e){var a=document.querySelector(".multispecialty-anchor-nav__wrapper").getBoundingClientRect().top,n=window.scrollY;n>=a?t.classList.add("multispecialty-anchor-nav__wrapper--stick"):n<=a&&t.classList.remove("multispecialty-anchor-nav__wrapper--stick")})}});
33"use strict";window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".service-details-hero__heading");null!=t&&(t.addEventListener("click",function(){this.closest(".service-details-hero__contact-us").classList.toggle("open")}),document.getElementsByTagName("html")[0].addEventListener("click",function(e){var t=$(e.target),n=$(".service-details-hero__contact-us");if(t.is(n)||n.has(t).length)return!0;n.removeClass("open")}));var n=document.querySelector(".service-details-hero__heading-left");null!=n&&(n.addEventListener("click",function(){this.closest(".service-details-hero__contact-us").classList.toggle("open")}),document.getElementsByTagName("html")[0].addEventListener("click",function(e){var t=$(e.target),n=$(".service-details-hero__contact-us");if(t.is(n)||n.has(t).length)return!0;n.removeClass("open")}))});
34"use strict";window.addEventListener("DOMContentLoaded",function(e){if(document.querySelector(".service-line-overview")){var i=document.querySelector(".service-line-overview__read-more"),t=document.querySelector(".service-line-overview__content"),r=document.querySelector(".service-line-overview__right"),n=document.querySelector(".service-line-overview__inner-top");i.addEventListener("click",function(e){t.classList.add("full-content")}),r||n.classList.add("full-content");var c=window.matchMedia("(min-width: 576px)"),o=document.querySelector(".service-line-overview__wrapper").offsetHeight;c.matches?o<230&&i.classList.add("hide"):o<350&&i.classList.add("hide")}});
35"use strict";window.addEventListener("DOMContentLoaded",function(e){var t=document.querySelector(".services-listing"),c=document.querySelectorAll(".services-listing .services-facet-values li a.letter-select");t&&c.forEach(function(e){e.addEventListener("click",function(t){e.classList.contains("active-facet")?this.classList.remove("active-facet"):(c.forEach(function(e){e.classList.remove("active-facet")}),this.classList.add("active-facet"))})})});
36"use strict";window.addEventListener("DOMContentLoaded",function(e){var t,a=document.querySelector(".services-search-coveo .landing-top-coveo"),i=document.querySelector(".landing-top-coveo .CoveoSearchButton"),s=document.querySelector(".landing-top-coveo .coveo-results-column"),n=document.querySelector(".landing-top-coveo .clear-results"),r=document.getElementById("servicesListing"),c=document.getElementById("servicesListingResults"),o=document.getElementById("servicesListPagination"),l=document.getElementById("servicesListingPageNext"),u=document.getElementById("servicesListingPagePrev"),d=document.getElementById("servicesListingTotalResults"),v=document.getElementById("servicesListingClearButton");if(r){function g(){r.querySelectorAll(".service-results-pagination a.page-select").forEach(function(e){e.addEventListener("click",function(){var t=e.getAttribute("data-services-page-num");r.setAttribute("services-data-page",t),e.classList.add("active"),L()})})}function f(){r.querySelectorAll(".page-previous").forEach(function(e){e.addEventListener("click",function(){var e=r.getAttribute("services-data-page");r.setAttribute("services-data-page",parseInt(e)-1),L()})}),r.querySelectorAll(".page-next").forEach(function(e){e.addEventListener("click",function(){var e=r.getAttribute("services-data-page");r.setAttribute("services-data-page",parseInt(e)+1),L()})})}function L(){var e=r.getAttribute("services-data-page-id"),t=r.getAttribute("services-data-letter"),a=r.getAttribute("services-data-page");fetch("/api/sitecore/services/services?pageId="+e+"&startLetter="+t+"&currentPage="+a,{method:"get"}).then(function(e){return e.json()}).then(function(e){return function(e){(function(e){var t="";
36e.Items.forEach(function(e){t+='<div class="services-result"><div class="search-component landing"><a href="'+e.Link+'" class="search-content"><h4>'+e.Name+'</h4><p class="summary">'+e.Summary+"</p></a></div></div>"}),c.innerHTML=t})(e),function(e){o.innerHTML="";var t=r.getAttribute("services-data-page"),a="";"1"!=r.getAttribute("services-data-page")&&(o.innerHTML=u.outerHTML);if(e.EndPage>1)for(var i=e.StartPage;i<=e.EndPage;i++){var s=i==t?"active":"";a+='<li class="page-item"><a class="page-select '+s+'" data-services-page-num="'+i+'">'+i+"</a></li>"}d.innerHTML=e.PaginationText,o.innerHTML=o.innerHTML+a,e.Total>10&&e.EndPage!=r.getAttribute("services-data-page")&&(o.innerHTML=o.innerHTML+l.outerHTML);g(),f()}(e),function(){if("URLSearchParams"in window){var e=r.getAttribute("services-data-page"),t=r.getAttribute("services-data-letter"),a=new URLSearchParams(window.location.search);a.set("startLetter",t),a.set("currentPage",e);var i=window.location.pathname+"?"+a.toString();history.pushState(null,"",i)}}()}(e)}).catch(function(e){})}a&&(i.addEventListener("click",function(e){s.classList.add("active")}),n.addEventListener("click",function(e){s.classList.remove("active")})),g(),r.querySelectorAll(".services-listing-facet a.letter-select").forEach(function(e){e.addEventListener("click",function(){r.querySelectorAll(".services-listing-facet a.letter-select").forEach(function(e){e.classList.remove("active-facet")}),e.classList.add("active-facet");var t=e.getAttribute("services-link-letter");r.setAttribute("services-data-letter",t),r.setAttribute("services-data-page","1"),v.classList.add("active"),L()})}),f(),(t=document.getElementById("servicesListingClearButton")).addEventListener("click",function(){r.setAttribute("services-data-letter",""),r.setAttribute("services-data-page","1"),L(),t.classList.remove("active"),r.querySelectorAll(".services-listing-facet a.letter-select").forEach(function(e){e.classList.remove("active-facet")})})}});
37"use strict";$(document).ready(function(){$(document).ajaxComplete(function(o,e,n){-1!==n.url.indexOf("formbuilder")&&window.scrollTo(0,0)})});
38"use strict";$(document).ready(function(){$(".system-profile .save-location, .system-location-banner .save-location").each(function(){var t=$(this).attr("data-location-id"),a=localStorage.getItem("favorite-locations");null!==a&&a.includes(t)&&$(this).addClass("saved")}),$(".system-profile .save-location, .system-location-banner .save-location").click(function(){var t=$(this).attr("data-location-id");if(void 0!==t){var a=localStorage.getItem("favorite-locations"),o=null;null==a||""==a?(o=t.split(","),$(this).addClass("saved")):(o=a.split(",")).includes(t)?(o=o.filter(function(a){return a!==t}),$(this).removeClass("saved")):(o.push(t),$(this).addClass("saved")),localStorage.setItem("favorite-locations",o.join(","))}})});
39"use strict";$(document).ready(function(){if($(".haze-container").length>0){var e=$(".haze-container").offset().top;$(window).scroll(function(){$(window).scrollTop()+56>=e?$(".haze-container").addClass("fixed-bar"):$(".haze-container").removeClass("fixed-bar")})}});
40"use strict";$(document).ready(function(){var t=$(".toolbar");if(0!==t.length){var e=t.offset.left,o=t.height()+"px",n=t.offset().top;$(window).scroll(function(){var t=$(window).scrollTop(),c=$(".toolbar-desktop");t+10+116>n?c.css({position:"fixed",top:"126px",left:e,height:o}):c.removeAttr("style")}),$(".toolbar-mobile").click(function(t){$(".toolbar-box.help").toggleClass("open")}),$(".toolbar-box.mobile").click(function(t){t.stopPropagation(),"switchRoundedDefault"!==t.target.id&&"switchRoundedDefault"!==t.target.getAttribute("for")&&$(this).toggleClass("active")});var c=document.querySelector(".desktop-input");c&&c.addEventListener("change",function(t){document.body.classList.toggle("contrast")});var l=document.querySelector(".mobile-input");l&&l.addEventListener("change",function(t){document.body.classList.toggle("contrast")});var r=document.querySelector(".toolbar-box.mobile").querySelector("label[for='switchRoundedDefault']");document.querySelector(".contrast-checkbox");r&&r.addEventListener("click",function(){var t=new Event("click");l.dispatchEvent(t)})}});
41"use strict";$(document).ready(function(){var e=document.querySelector(".floating-quick-links");if(e){document.querySelector(":root");var t=document.querySelector("header.header").offsetHeight;t>0&&(t+=14,e.style.setProperty("--floating-quick-links-top",t+"px"))}});
42"use strict";$(document).ready(function(){var t=document.getElementsByClassName("solv-available-times-by-state");t.length>0&&Array.from(t).forEach(function(t){var e=t.getElementsByClassName("slot-list-control");e.length>0&&Array.from(e).forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),"true"==t.target.getAttribute("aria-expanded")?(t.target.setAttribute("aria-expanded","fal
42se"),t.target.innerHTML="View All"):(t.target.setAttribute("aria-expanded","true"),t.target.innerHTML="View Less")})});var n={button:t.querySelector('[role="combobox"]'),dropdownlist:document.querySelector('[role="listbox"]')},r=!1,a=function(){n.dropdownlist.classList.toggle("show"),r=!r,n.button.setAttribute("aria-expanded",r.toString())};n.button&&(n.button.addEventListener("keydown",function(t){t.preventDefault();var e=t.key;["Enter"," "].includes(e)&&a()}),n.button.addEventListener("click",a))})});
43"use strict";$(document).ready(function(){var e=document.getElementsByClassName("urgent-care-location-detail");e.length>0&&Array.from(e).forEach(function(e){var t=e.getElementsByClassName("slot-list-control");t.length>0&&Array.from(t).forEach(function(e){e.addEventListener("click",function(e){e.preventDefault(),"true"==e.target.getAttribute("aria-expanded")?(e.target.setAttribute("aria-expanded","false"),e.target.innerHTML="View All"):(e.target.setAttribute("aria-expanded","true"),e.target.innerHTML="View Less")})})})});
44"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,o,c=[],l=!0,s=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);l=!0);}catch(t){s=!0,a=t}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(s)throw a}}return c}}function _arrayWithHoles(t){if(Array.isArray(t))return t}function _createForOfIteratorHelper(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_unsupportedIterableToArray(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,c=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return o=t.done,t},e:function(t){c=!0,i=t},f:function(){try{o||null==r.return||r.return()}finally{if(c)throw i}}}}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}window.addEventListener("DOMContentLoaded",function(t){var e=0,r=0,n=document.querySelector(".waiting-times__button--bottom"),a=document.querySelector(".waiting-times__button--top"),i=document.querySelector(".waiting-times__track"),o=document.querySelector(".waiting-times__nav-btns"),c=5;function l(){var t=document.querySelectorAll(".waiting-times-card.active"),l=t[0];if(o&&l&&i){var s=t.length,u=(l.offsetHeight,s-c);e=0,r=0,i.style.transform="translateY(0px)",u<=0?(a.style.display="none",n.style.display="none",o.classList.add("hide")):(a.style.display="none",n.style.display="block",o.classList.remove("hide"))}}setTimeout(function(){l()},100),n&&n.addEventListener("click",function(){var t=document.querySelectorAll(".waiting-times-card.active"),o=t[0];if(o){var l=o.offsetHeight,s=t.length-c;r<s&&(r++,e-=l,i.style.transform="translateY(".concat(e,"px)"),a.style.display="block",r===s&&(n.style.display="none"))}}),a&&a.addEventListener("click",function(){var t=document.querySelectorAll(".waiting-times-card.active")[0];if(t){var o=t.offsetHeight;r>0&&(r--,e+=o,i.style.transform="translateY(".concat(e,"px)"),n.style.display="block",0===r&&(a.style.display="none"))}}),l();var s=document.querySelector(".waiting-times-card");if(null!=o&&s){navigator.geolocation&&navigator.geolocation.getCurrentPosition(function(t){var e=t.coords.latitude,r=t.coords.longitude;e&&r&&(function(t,e){document.querySelectorAll(".distanceFromVisitor").forEach(function(r){var n=r.getAttribute("lat"),a=r.getAttribute("lng");if(""==n&&(n=9999),""==a&&(a=9999),n&&a){var i=function(t,e,r,n){if(t==r&&e==n)return 0;var a=Math.PI*t/180,i=Math.PI*r/180,o=e-n,c=Math.PI*o/180,l=Math.sin(a)*Math.sin(i)+Math.cos(a)*Math.cos(i)*Math.cos(c);return l>1&&(l=1),l=60*(l=180*(l=Math.acos(l))/Math.PI)*1.1515}(n,a,t,e);9999!=a|9999!=n&&(r.innerHTML=Math.ceil(i)+" miles"),r.setAttribute("distance",i)}})}(e,r),function(){document.getElementById("waitTimes");var t,e=document.createDocumentFragment(),r=document.querySelector(".waitTimesList"),n=_createForOfIteratorHelper(_toConsumableArray(document.querySelectorAll(".waiting-times-card")).sort(function(t,e){var r=t.querySelector(".distanceFromVisitor"),n=r.getAttribute("distance"),a=e.querySelector(".distanceFromVisitor"),i=a.getAttribute("distance");return n<i?-1:n>i?1:0}));try{for(n.s();!(t=n.n()).done;){var a=t.value;e.appendChild(a)}}catch(t){n.e(t)}finally{n.f()}r.appendChild(e)}())})}var u=document.querySelector(".waiting-times__btns:nth-child(1)"),d=document.querySelector(".waiting-times__btns:nth-child(2)"),y=document.querySelectorAll(".waiting-times-card");
44function f(t){y.forEach(function(e){e.classList.contains(t)?(e.classList.remove("hidden"),e.classList.add("active")):(e.classList.add("hidden"),e.classList.remove("active"))}),l()}d&&d.addEventListener("click",function(){f("emergency-dpt"),d.classList.add("selected"),u.classList.remove("selected"),l()}),u&&u.addEventListener("click",function(){f("urgent-care"),u.classList.add("selected"),d.classList.remove("selected"),l()}),f("urgent-care");var m=document.querySelector(".toggle-switch input"),v=document.querySelector(".waitTimesList");if(m&&v){var b=Array.from(v.querySelectorAll(".waiting-times-card"));m.checked=!1;var h=new MutationObserver(function(){_(),h.disconnect()});h.observe(v,{childList:!0,subtree:!0}),m.addEventListener("change",_)}else console.log("Slider or list container not found");function p(t){if((t=t.trim()).includes("in line")){var e=parseInt(t.split(" ")[0],10);return isNaN(e)?Number.MAX_SAFE_INTEGER:15*e}if(t.includes(":")){var r=_slicedToArray(t.split(":").map(Number),2),n=r[0],a=r[1];return isNaN(n)||isNaN(a)?Number.MAX_SAFE_INTEGER:60*n+a}var i=parseInt(t.replace("Min","").trim(),10);return isNaN(i)?Number.MAX_SAFE_INTEGER:i}function _(){var t=m.checked?"distance":"waitTime";b.sort(function(e,r){var n,a;return"waitTime"===t?(n=p(e.querySelector(".waiting-times-card__card-wait-time").textContent),a=p(r.querySelector(".waiting-times-card__card-wait-time").textContent)):(n=parseFloat(e.querySelector(".waiting-times-card__distance").textContent),a=parseFloat(r.querySelector(".waiting-times-card__distance").textContent)),n-a}),b.forEach(function(t){return v.appendChild(t)})}});
45"use strict";$(document).ready(function(){$(".calendar-dropdown").click(function(e){$(this).toggleClass("active")});var e=document.querySelector("#calendar-outlook");if(e){var t=$(e).data("eventid");e.addEventListener("click",function(e){e.preventDefault(),fetch("/api/sitecore/events/OutlookCalendar?ContextItemId="+t).then(function(e){return e.blob()}).then(function(e){var t=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=t,n.download="event.ics",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(t)})})}var n=document.querySelector("#calendar-apple");if(n){t=$(n).data("eventid");n.addEventListener("click",function(e){e.preventDefault(),fetch("/api/sitecore/events/AppleCalendar?ContextItemId="+t).then(function(e){return e.blob()}).then(function(e){var t=window.URL.createObjectURL(e),n=document.createElement("a");n.style.display="none",n.href=t,n.download="event.ics",document.body.appendChild(n),n.click(),window.URL.revokeObjectURL(t)})})}});
46"use strict";$(document).ready(function(){if(!($("#login-page").length<1)){var e=$("#username"),n=$("#password"),t=$("#submit"),a=$("#returnurl"),r=$("#validation");e.length<1||n.length<1||t.length<1||t.on("click",function(t){t.preventDefault(),r.hide();var l="/";a.length>0&&a[0].value&&(l=a[0].value);var s=e[0].value,o=n[0].value;makeRequest("/api/sitecore/ynhxauthentication/attemptlogin?Username="+s+"&Password="+o,"POST",null,null,function(e,n){
46n?JSON.parse(e.responseText).Success?window.location.href=l:(r.show(),r.text("Invalid username or password.")):(r.show(),r.text("Internal error, please try again later."))})})}});
47"use strict";document.addEventListener("DOMContentLoaded",function(){new MutationObserver(function(e,o){var c=document.querySelector(".coveo-facet-modal-close-button"),t=document.querySelector(".mobile-close-btn"),n=document.querySelector(".clear-all-btn"),l=document.querySelector(".coveo-breadcrumb-clear-all.coveo-accessible-button");if(c&&t&&(t.addEventListener("click",function(){c.click()}),o.disconnect()),n&&l){n.addEventListener("click",function(){l.click()});var d=document.querySelectorAll(".magic-box-input input");d&&l.addEventListener("click",function(){d.forEach(function(e){e.value="",l.click()})})}}).observe(document.body,{childList:!0,subtree:!0});var e=document.createElement("div");e.className="filter-overlay",document.body.appendChild(e),new MutationObserver(function(){var o=document.querySelector(".coveo-facet-dropdown-modal-content"),c=document.querySelector(".coveo-facet-modal-close-button");o?(console.log("Popup opened - Showing overlay"),e.style.display="block",c&&c.addEventListener("click",function(){console.log("Popup closed - Hiding overlay"),e.style.display="none"})):e.style.display="none"}).observe(document.body,{childList:!0,subtree:!0})});
48"use strict";$(document).ready(function(){$(".is-checkradio").click(function(){$(this).toggleClass("is-active")})});
49"use strict";function customDropdownInit(){if($(".custom-select-dropdown").length>0){var e,t,s,n,i,c,l,o,d;for(n=(e=document.getElementsByClassName("custom-select-dropdown")).length,t=0;t<n;t++){for(i=(c=e[t].getElementsByTagName("select")[0]).length,(l=document.createElement("DIV")).setAttribute("class","select-selected"),l.id=c.options[c.selectedIndex].id,l.innerHTML=c.options[c.selectedIndex].innerHTML,e[t].appendChild(l),(o=document.createElement("DIV")).setAttribute("class","select-items select-hide"),s=1;s<i;s++)(d=document.createElement("DIV")).innerHTML=c.options[s].innerHTML,d.id=c.options[s].id,d.addEventListener("click",function(e){var t,s,n,i,c,l,o;l=(i=this.parentNode.parentNode.getElementsByTagName("select")[0]).length,c=this.parentNode.previousSibling;var d=document.getElementById("content-"+this.id);for($(".dropdown-select-content > div").removeClass("active"),$(d).addClass("active"),s=0;s<l;s++)if(i.options[s].innerHTML==this.innerHTML){for(i.selectedIndex=s,c.innerHTML=this.innerHTML,o=(t=this.parentNode.getElementsByClassName("same-as-selected")).length,n=0;n<o;n++)t[n].removeAttribute("class");this.setAttribute("class","same-as-selected");break}c.click()}),o.appendChild(d);e[t].appendChild(o),l.addEventListener("click",function(e){e.stopPropagation(),a(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function a(e){var t,s,n,i,c,l=[];for(t=document.getElementsByClassName("select-items"),s=document.getElementsByClassName("select-selected"),i=t.length,c=s.length,n=0;n<c;n++)e==s[n]?l.push(n):s[n].classList.remove("select-arrow-active");for(n=0;n<i;n++)l.indexOf(n)&&t[n].classList.add("select-hide")}document.addEventListener("click",a)}}$(document).ready(function(){customDropdownInit()});
50"use strict";$(document).ready(function(){var e,t,s,n,i,l,c,a,r;for(n=(e=document.getElementsByClassName("custom-select")).length,t=0;t<n;t++){for(i=(l=e[t].getElementsByTagName("select")[0]).length,(c=document.createElement("DIV")).setAttribute("class","select-selected"),c.innerHTML=l.options[l.selectedIndex].innerHTML,e[t].appendChild(c),(a=document.createElement("DIV")).setAttribute("class","select-items select-hide"),s=1;s<i;s++)(r=document.createElement("DIV")).innerHTML=l.options[s].innerHTML,r.addEventListener("click",function(e){var t,s,n,i,l,c,a;for(c=(i=this.parentNode.parentNode.getElementsByTagName("select")[0]).length,l=this.parentNode.previousSibling,s=0;s<c;s++)if(i.options[s].innerHTML==this.innerHTML){for(i.selectedIndex=s,l.innerHTML=this.innerHTML,a=(t=this.parentNode.getElementsByClassName("same-as-selected")).length,n=0;n<a;n++)t[n].removeAttribute("class");this.setAttribute("class","same-as-selected");break}l.click()}),a.appendChild(r);e[t].appendChild(a),c.addEventListener("click",function(e){e.stopPropagation(),d(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function d(e){var t,s,n,i,l,c=[];for(t=document.getElementsByClassName("select-items"),s=document.getElementsByClassName("select-selected"),i=t.length,l=s.length,n=0;n<l;n++)e==s[n]?c.push(n):s[n].classList.remove("select-arrow-active");for(n=0;n<i;n++)c.indexOf(n)&&t[n].classList.add("select-hide")}document.addEventListener("click",d)});
51"use strict";function openFacebookShareModal(t,e,o){var h=screen.height/2-o/2,r=screen.width/2-e/2;window.open("https://www.facebook.com/dialog/share?app_id=554028980187489&display=popup&href="+t,"sharer","top="+h+",left="+r+",toolbar=0,status=0,width="+e+",height="+o)}function openTwitterShareModal(t,e,o,h){var r=screen.height/2-h/2,i=screen.width/2-o/2;window.open("https://twitter.com/intent/tweet?url="+t+"&text="+e,"sharer","top="+r+",left="+i+",toolbar=0,status=0,width="+o+",height="+h)}
52"use strict";$(document).ready(function(){if($(".custom-select-tabs").length>0){var e,t,s,n,i,l,c,a,d;for(n=(e=document.getElementsByClassName("custom-select-tabs")).length,t=0;t<n;t++){for(i=(l=e[t].getElementsByTagName("select")[0]).length,(c=document.createElement("DIV")).setAttribute("class","select-selected"),c.id=l.options[l.selectedIndex].id,c.innerHTML=l.options[l.selectedIndex].innerHTML,e[t].appendChild(c),(a=document.createElement("DIV")).setAttribute("class","select-items select-hide"),s=1;s<i;s++)(d=document.createElement("DIV")).innerHTML=l.options[s].innerHTML,d.id=l.options[s].id,d.addEventListener("click",function(e){var t,s,n,i,l,c,a;c=(i=this.parentNode.parentNode.getElementsByTagName("select")[0]).length,l=this.parentNode.previousSibling;
52var d=document.getElementById("content-"+this.id);for($(".tab-select-content > div").removeClass("active"),$(d).addClass("active"),s=0;s<c;s++)if(i.options[s].innerHTML==this.innerHTML){for(i.selectedIndex=s,l.innerHTML=this.innerHTML,a=(t=this.parentNode.getElementsByClassName("same-as-selected")).length,n=0;n<a;n++)t[n].removeAttribute("class");this.setAttribute("class","same-as-selected");break}l.click()}),a.appendChild(d);e[t].appendChild(a),c.addEventListener("click",function(e){e.stopPropagation(),o(this),this.nextSibling.classList.toggle("select-hide"),this.classList.toggle("select-arrow-active")})}function o(e){var t,s,n,i,l,c=[];for(t=document.getElementsByClassName("select-items"),s=document.getElementsByClassName("select-selected"),i=t.length,l=s.length,n=0;n<l;n++)e==s[n]?c.push(n):s[n].classList.remove("select-arrow-active");for(n=0;n<i;n++)c.indexOf(n)&&t[n].classList.add("select-hide")}document.addEventListener("click",o)}$("tabs-component").length>0&&(document.getElementById("tab-options").onchange=function(){for(var e=1,t=document.getElementById(e);t;)t.style.display="none",t=document.getElementById(++e);document.getElementById(this.value).style.display="block"})});
53"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ownKeys(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)}return r}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){var e=_toPrimitive(t,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}$(document).ready(function(){document.addEventListener("click",function(t){var e=t.target.closest("[data-tr-event-name]");if(t.target.matches("[data-tr-event-name]")||t.target.matches("a")||t.target.matches("button")){if(e&&e.checkVisibility({visibilityProperty:!0}))!function(t){var e={};for(var r in t)"trEventName"!=r&&r.startsWith("tr")&&(e[r.slice(2)]=t[r]);window.dataLayer&&window.dataLayer.push(_objectSpread({event:t.trEventName},e))}(e.dataset);e&&"true"==e.getAttribute("data-handles-toggle")||(e&&e.matches('[data-tr-event-name="view_all"]')?e.setAttribute("data-tr-event-name","view_less"):e&&e.matches('[data-tr-event-name="view_less"]')&&e.setAttribute("data-tr-event-name","view_all"))}})});
54"use strict";function makeRequest(n,o,t,e,a,s){if(n){t&&t.length&&(n=buildUrl(n,t));var r="loading";e&&e.classList.contains("btn")&&(r="btn__loading");var l=e&&e.classList.contains("modal"),i=new XMLHttpRequest;i.onreadystatechange=function(){var n=!0;4===this.readyState&&(n=!1),e&&(n?(e.classList.add(r),l&&$(e).modal("show")):(e.classList.remove(r),l&&$(e).modal("hide")))},i.onload=function(){var o=!0;(i.status<200||i.status>=400)&&(o=!1,console.log("Error on "+n)),a&&a(i,o)},i.onerror=function(){console.log("Connection error on "+n),s&&s(i)},i.open(o,n,!0),i.send()}}function buildUrl(n,o){if(!o||o.length<1)return n;for(var t=0;t<o.length;t++)o[t]&&o[t].key&&o[t].value&&(n+=0===t?"?":"&",n+=o[t].key+"="+encodeURIComponent(o[t].value));return n}
55//# sourceMappingURL=script.min.js.map

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.