PageSourceSearch

https://www.doctoranytime.ec/dist/vite/ts-search-page.DPU0ciLu.js

js doctoranytime.ec collected 2026-10-08 08:58:38 UTC 22,389 bytes, 1 lines download raw bytes

1var V=(e,r,t)=>new Promise((o,n)=>{var i=c=>{try{a(t.next(c))}catch(l){n(l)}},s=c=>{try{a(t.throw(c))}catch(l){n(l)}},a=c=>c.done?o(c.value):Promise.resolve(c.value).then(i,s);a((t=t.apply(e,r)).next())});import{d as de}from"./dat-banner.DBdBnK1K.js";import{s as x,d as ue,g as fe}from"./index.BO7D84OS.js";import{d as u,s as pe,o as j}from"./dom.Bd7vMslA.js";import{u as me}from"./index.BNbfGqHq.js";import{g as Y,l as he}from"./dat.DYt1eiG5.js";import{g}from"./universalAnalyticsEvents.CQ4L-0gf.js";import{e as X,a as Z,i as ge}from"./index.DGTd79Ru.js";import{m as be,p as ve,b as ye,A as we,g as Le}from"./index.CHq7QqpC.js";import{a as Se}from"./post.DOgaW2Jh.js";import{p as T,m as ke,a as qe}from"./index.DJV2eCfY.js";import{i as Ee}from"./index.CbaF-dKZ.js";import{f as Ae}from"./index.raJ2yjgu.js";import{e as Ie}from"./url.CjUT5m8i.js";import{g as N}from"./url.Du5z6NUU.js";import{c as Pe}from"./localizerHelper.BapUfS6Z.js";import{d as Ce}from"./get.Bb_EoKQZ.js";import{r as W}from"./index.NTVkUyRO.js";import{u as Re}from"./index.DAd6JZmK.js";import{o as Be}from"./helpers.GQ2h_mzj.js";import{g as ee}from"./svg-icons.CididQa3.js";import{i as Ve}from"./index.DvVlOLlZ.js";import{u as Me}from"./dat-button.B-0hLQA3.js";import{S as Oe}from"./splide-core.min.BS8hXb_1.js";import{clearWaitingListSessionSubscriptions as _e,isSubscribedToWaitingList as De,initWaitingList as xe,enJoinWLfromSource as Te,checkPendingWaitingListAction as We}from"./index.BS5f3NM8.js";import{c as Ue}from"./methods.Ckh_6cCE.js";import{s as $e}from"./index.DSjbyy9u.js";import{i as Fe}from"./index.Pn0dorr7.js";import"./random.VyRJav-e.js";import"./index.DsH8gfJS.js";import"./tokens.CC2qV2Bh.js";import"./types.BWdXMtgP.js";import"./transitions.Chb054bN.js";import"./customEventStore.Di2snKOi.js";import"./mobileAppBridge.B4WE9REV.js";import"./index.DVr7pHH2.js";import"./elementInDOM.B9xo19b1.js";import"./elementInViewport.xe4FPB9B.js";import"./autocomplete.es.CDc26xOw.js";import"./googleMapsAPI.C0HM6Suz.js";import"./index.f65a6q88.js";import"./googleGeocoder.DNICUTUb.js";var y=(e=>(e.closeBtn="data-search-page-banner-close-btn",e.locationBtn="data-search-page-banner-location-btn",e.addressBtn="data-search-page-banner-address-btn",e.banner="data-search-page-banner",e))(y||{}),U=(e=>(e.banner="da-custom-search-address",e.openBanner="da-custom-search-address__open",e.animateBanner="da-custom-search-address__animate",e))(U||{});const Ne=()=>{Y.get("EnableCookiesConsent")?document.addEventListener("consentProcessed",()=>{H()}):H()};function H(){setTimeout(()=>{if(u(`[${y.banner}]`)[0]){const e=u(`[${y.banner}]`)[0];e.classList.add(U.openBanner),setTimeout(()=>{e.classList.add(U.animateBanner),g("geoPromptBannerSeen","geoPromptBannerSeen")},200)}window.EventBus.emit("OverlaysManager::Push",{id:"geoSearchBanner",type:Z.BANNER,status:X.OPENED})},1e4)}const M=u(`[${y.addressBtn}]`)[0];M==null||M.addEventListener("click",e=>{e.preventDefault();const r=u("#citiesSearchInput")[0],t=u("#citiesSearchInput ~ .select-arrow--trigger")[0];if(window.innerWidth<1024){const n=u("[data-mobile-header-find-doctor]")[0];n&&n.click()}setTimeout(()=>{t&&r&&(t.click(),r.focus())},100);const o=u(`[${y.banner}]`)[0];return o&&o.remove(),window.EventBus.emit("OverlaysManager::Push",{id:"geoSearchBanner",type:Z.BANNER,status:X.CLOSED}),!1});const O=u(`[${y.locationBtn}]`)[0];O==null||O.addEventListener("click",e=>{var t;return e.preventDefault(),(t=window.EventBus)==null||t.emit("GeolocatonNewBanner::Success"),u(`[${y.locationBtn}]`)[0].classList.add("dat-button--loading"),setTimeout(()=>{const o=document.querySelector("#find-doctor-button");o&&o.click()},5e3),!1});const Qe={init:Ne},I={questionnaireResultsView:"data-questionnaire-results-view",seeAllMatchesCta:"data-see-all-questionnaire-matches",seeAllMatchesCtaWrapper:"data-see-all-cta-wrapper",redoQuestionnaireCta:"data-redo-questionnaire"},te={bodyWithResultsOpened:"body-with-questionnaire-results-opened"};function je({onSuccess:e}={}){const r="/SearchQ/SaveQuestionnaireResults",t={url:window.location.href};Se({url:r,body:t,success:e})}function He(){var n;Ge();const e=document.querySelector(`[${I.questionnaireResultsView}]`);if(!e)return;g("questionnaireResultsPageViewed","questionnaireResultsPage"),(n=document.querySelector("body"))==null||n.classList.add(te.bodyWithResultsOpened);const r=document.querySelectorAll(`[${I.seeAllMatchesCta}]`);r.forEach(i=>
1{i.addEventListener("click",function(s){G(e),g("seeAllMatchesCtaClicked","questionnaireResultsPage")})}),document.querySelector(`[${I.redoQuestionnaireCta}]`).addEventListener("click",function(i){G(e),g("restartQuestionnaireCtaClicked","questionnaireResultsPage")}),new IntersectionObserver(function(i,s){var a;for(const c of i)(a=document.querySelector(`[${I.seeAllMatchesCtaWrapper}="sticky"]`))==null||a.classList.toggle("hidden",c.isIntersecting)},{root:e,threshold:1}).observe(r[0])}function Ge(){if(window.shouldSaveQuestionnaireResults){x("DA.UserInitialAction","MindTimeQFinished",2),Y.get("EnableGuidedFlow")||x("DA.QuestionnaireResultsUrl",window.location.href,2);const{isUserPatient:e}=me();e&&je({onSuccess:()=>{ue("DA.QuestionnaireResultsUrl")}})}}function G(e){var r;e.remove(),(r=document.querySelector("body"))==null||r.classList.remove(te.bodyWithResultsOpened)}const ze={init:He};function Ke(){const e=u(".pills-outer-container"),r=(o,n,i)=>{const s=i.clientHeight||24,a=o.querySelector(".js-search-filter-pills");a&&a.clientHeight>s&&n.classList.remove("hide-show-more-pills")},t=(o,n)=>{o.classList.add("hide-show-more-pills"),n.classList.remove("hide-more-pills")};e.forEach(o=>{const n=o.querySelector(".js-more-pills"),i=o.querySelector(".search-single-pill");if(n==null||o==null||i==null)return;r(o,n,i);const s=new ResizeObserver(()=>{r(o,n,i)});s.observe(o),n.addEventListener("click",a=>{a.preventDefault(),s.unobserve(o),t(n,o)},{once:!0})})}const Q=()=>Re("sPageModelData");function oe(e,[r,t]){const o=new URL(e);let n=o.searchParams.get(r);if(n===t)return e;if(!n)return o.searchParams.set(r,t),o.toString();let i=n.split("_and_");return i.includes(t)?e:(i.push(t),o.searchParams.set(r,i.join("_and_")),o.toString())}function re(e,[r,t]){const o=new URL(e);let n=o.searchParams.get(r);if(!n||!n.includes(t))return e;let i=n.split("_and_").filter(s=>s!==t).join("_and_");return i?o.searchParams.set(r,i):o.searchParams.delete(r),o.toString()}const R="filters-modal",P=e=>{const r=e.closest(`[data-datmodal="${R}"]`);if(!r)throw new Error("Modal could not be queried from descendant");return r},_=e=>{const r=e.getAttribute("data-filters-modal-form");if(!r)throw new Error("Url not found");return new URL(N(r)).toString()},Je=e=>{var t;const r=(t=e.closest("[data-filters-url]"))==null?void 0:t.getAttribute("data-filters-url");if(!r)throw new Error("Url not found");return r},D=(e,r,t)=>{const o=e.querySelector("[data-filters-modal-loading]");o&&(o.classList.toggle("hidden",!t),e.style.overflowY=t?"hidden":"auto",r.style.overflowY=t?"hidden":"auto")},Ye=e=>{const r=u(`#filters-modal-${e}`)[0];r==null||r.scrollIntoView({behavior:"smooth",block:"nearest"})},Xe=()=>{var t;const e=u(`[data-datmodal="${R}"]`)[0],r=((t=e.querySelector(".da-modal__header"))==null?void 0:t.clientHeight)||null;e.style.setProperty("--da-modal-scroll-padding-top",r?`${r}px`:"auto")};function Ze(){document.addEventListener("DatModalAfterOpen",function(t){t.detail.id===R&&(W(),T(),Xe())},{once:!0}),document.addEventListener("dat-filter-chip:open",function(t){const{id:o}=t.detail;Be(R),o&&Ye(o)});const e=(t,o,n=!1)=>V(null,null,function*(){const i=o.querySelector("[data-filters-modal-form]");if(!i)throw new Error("No form found in modal");D(o,i,!0);const s=yield Ce({url:t,params:{},headers:{"X-FilterDataOnly":"true"}});if(s.Success!==Ie.Success||!s.HtmlResult)throw new Error("Filters request failed");const a=pe(s.HtmlResult);if(!a.hasAttribute("data-filters-modal-form"))throw new Error("Form fetched is not valid");const c=i.scrollTop;i.replaceWith(a),a.scrollTop=c;const l=a.querySelector("[data-filters-search-btn]");return l==null||l.classList.remove("hidden"),r(),D(o,i,!1),!0}),r=()=>{u("[data-filters-modal-form]").forEach(t=>{t.addEventListener("submit",function(o){o.preventDefault(),D(P(this),this,!0),window.location.href=N(_(this))})}),u("[data-filters-url] input").forEach(t=>{t.addEventListener("change",function(o){return V(this,null,function*(){if(o.preventDefault(),ne(t))return;const n=Je(t);yield e(n,P(t))})})}),u("[data-filters-clear-all-btn]").forEach(t=>{t.addEventListener("click",function(o){o.preventDefault();const n=new Set,i=t.closest("[data-filters-modal-form]");if(!i)throw new Error("There is no form in modal");for(const a of u("[data-filter-option-query-key]",i)){const c=!!a.querySelector("input:checked"),l=a.getAttribute("data-filter-option-query-key");c&&l&&n.add(l)}const s=new URL(_(i));for(const a of n.values())s.searchParams.delete(a);e(s.toString(),P(i))})}),u("[data-filters-group-toggle-all] input").forEach(t=>{t.addEventListener("change",function(o){const n=t.closest("[data-filters-modal-form]");if(!n)throw new Error("There is no form in modal");const i=t.closest("[data-filters-group]");if(!i)throw new Error("No filters group element found for toggle");let s=_(n);i.querySelectorAll("[data-filter-option-query-key]").forEach(a=>{const c=a.getAttribute("data-filter-option-query-key"),l=a.getAttribute("data-filter-option-query-value");!c||!l||(t.checked?s=oe(s,[c,l]):s=re(s,[c,l]))}),e(s,P(n))})}),W(),T()};r()}const ne=e=>{if(!e.closest("[data-is-rapid-response-filter]"))return!1;const{isRapidResponseActive:t,rapidSearchLink:o,rapidNotAvailDoctor:n,specId:i,currentLocationId:s,currentLocationEntityType:a}=Q(),l=Pe(t?o:n),f=`?specId=${i}`,d=a==="City"?`&cityId=${s}`:"",h=`${l}${f}${d}`;return window.location.href=h,!0},C=e=>{const r=e.closest('[data-js-filter-chip="wrapper"]');if(!r)throw new Error("No wrapper found");return r},B=e=>{var r;return(r=e.getAttribute("data-js-filter-chip-id"))!=null?r:""},et=e=>{const t=!ie(e);
1Ve("lg")?(t&&it(e),e.classList.toggle("dat-filter-chip--pressed")):nt(e,t),e.classList.remove("with-border-animation")},z=e=>{ie(e)&&e.classList.remove("dat-filter-chip--pressed")},ie=e=>e.classList.contains("dat-filter-chip--pressed"),tt=e=>!!e.closest('[data-js-filter-chip="clear"]'),ot=e=>{var t;const r=(t=e.closest("[data-quick-filters-url]"))==null?void 0:t.getAttribute("data-quick-filters-url");if(!r)throw new Error("Url not found");return r},rt=e=>{const r=u("[data-quick-filters-url]",e);let t=null;const o=[];r.forEach(s=>{const a=s.getAttribute("data-filters-query-string-key");a&&(t||(t=s.getAttribute("data-quick-filters-url")),o.push(a))});const n=Array.from(new Set(o));if(!t)throw new Error("Clear url not found");const i=new URL(N(t));for(const s of n)i.searchParams.delete(s);return i},nt=(e,r)=>{const t=r?"dat-filter-chip:open":"dat-filter-chip:close",o=B(e);document.dispatchEvent(new CustomEvent(t,{detail:{id:o}}))},it=e=>{const r=e.getBoundingClientRect().left,t=e.closest('[data-quick-filters="wrapper"]');if(!t)throw new Error("No positioned ancestor found");const o=t.getBoundingClientRect().left;let n=r-o;const{xOffscreen:i,firstTenItemsHeight:s}=st(e);i>0&&(n-=i+16),e.style.setProperty("--dat-filter-left",`${n}px`),e.style.setProperty("--dat-filter-popover-height",s?`${s+10}px`:"none")},st=e=>{const r=e.querySelector('[data-js-filter-chip="popover"]');if(!r)throw new Error("No popover found");const t=r.hasAttribute("style");r.style.setProperty("visibility","hidden"),e.classList.add("dat-filter-chip--pressed");const o=r.offsetWidth,n=u("[data-quick-filters-url]",r);let i=null;n.length>10&&(i=u("[data-quick-filters-url]",e).slice(0,10).reduce((f,d)=>(f+=d.offsetHeight,f),0)),e.classList.remove("dat-filter-chip--pressed"),r.style.removeProperty("visibility"),t||r.removeAttribute("style");const s=window.innerWidth;return{xOffscreen:e.getBoundingClientRect().left+o-s,firstTenItemsHeight:i}},p=[],k=document.querySelector('[data-quick-filters="next"]'),q=document.querySelector('[data-quick-filters="previous"]'),$=document.querySelector('[data-quick-filters="wrapper"]'),v=document.querySelector('[data-quick-filters="list"]'),se=()=>!!k&&!!q&&!!$&&!!v,at=()=>{if(!se())return;const e=u('[data-js-filter-chip="btn"]');e.forEach((t,o)=>{const n=C(t);t.addEventListener("click",function(i){const s=tt(i.target),a=B(n).toLocaleLowerCase();s?(g("filters_quickfilter_clear",a),window.location.href=rt(n).toString()):(g("filters_quickfilter_click",a),et(n))}),j(C(t),()=>{z(n)},{eventName:"mousedown"}),j(C(t),()=>{z(n)},{eventName:"touchstart",containerElement:v}),p.push(dt({name:B(n),isVisible:!1,element:n})),ct(n)}),setTimeout(()=>{e.forEach((t,o)=>{C(t).classList.remove("with-border-animation")})},6e3),u('[data-js-filter-chip="popover"] [data-quick-filters-option] input').forEach(t=>{t.addEventListener("change",function(o){o.preventDefault(),!ne(t)&&(window.location.href=ot(t))})}),u("[data-quick-filters-group-toggle-all] input").forEach(t=>{t.addEventListener("change",function(o){const n=t.closest("[data-quick-filter-group]");if(!n)return;let i=window.location.href;n.querySelectorAll("[data-quick-filters-option]").forEach(s=>{const a=s.getAttribute("data-filters-query-string-key"),c=s.getAttribute("data-filters-query-string-value");!a||!c||(t.checked?i=oe(i,[a,c]):i=re(i,[a,c]))}),window.location.href=i})}),u("[data-do-plus-banner-cta]").forEach(t=>{t.addEventListener("click",o=>{o.preventDefault();const n=document.querySelector("[data-quick-filters-group-toggle-all] input");!n||n.checked||n.click()})})},ct=e=>{new IntersectionObserver(t=>{t.forEach(o=>{const n=o.target,i=B(n),s=o.intersectionRatio>.95;p.find(a=>a.name===i).isVisible=s})},{root:v,rootMargin:"0px",threshold:ee(100)}).observe(e)};se()&&lt();function lt(){k==null||k.addEventListener("click",function(){const r=p.findIndex((i,s)=>!i.isVisible&&s>=1&&p[s-1].isVisible);if(r===-1)return;const t=$.getBoundingClientRect().left,n=p[r].element.getBoundingClientRect().left-t;v==null||v.scrollBy({left:n-48,behavior:"smooth"})}),q==null||q.addEventListener("click",function(){const r=p.findIndex((i,s)=>!i.isVisible&&s+1<=p.length-1&&p[s+1].isVisible);if(r===-1)return;const t=p[r].element.getBoundingClientRect().right,o=$.getBoundingClientRect().right,n=t-o;v.scrollBy({left:n+48,behavior:"smooth"})})}const dt=e=>new Proxy(e,{set(t,o,n){if(o==="isVisible"){const s=t[o]!==n;if(Reflect.set(t,o,n),!s)return!0;const a=t.name,c=p[0],l=p[p.length-1];return a!==c.name&&a!==l.name||(q.classList.toggle("hidden",c.isVisible),k.classList.toggle("hidden",l.isVisible)),!0}else return Reflect.set(t,o,n)}});function ut(){const e=document.querySelector("[data-search-q-entry-point]");e&&e.addEventListener("click",function(r){var t;(t=this.querySelector("[data-search-q-entry-point-action]"))==null||t.click()})}const m=[],E=document.querySelector('[data-location-chips="next"]'),A=document.querySelector('[data-location-chips="previous"]'),F=document.querySelector('[data-location-chips="wrapper"]'),b=document.querySelector('[data-location-chips="list"]'),K=b?u('[data-location-chips="item"]',b):[],ft=()=>!!E&&!!A&&!!F&&!!b,pt=()=>{if(!ft())return;mt();const e=new IntersectionObserver(r=>{r.forEach(t=>{const o=K.indexOf(t.target),n=t.intersectionRatio>.95;m.find(i=>i.id===o).isVisible=n})},{root:b,rootMargin:"0px",threshold:ee(100)});
1K.forEach((r,t)=>{m.push(ht({id:t,isVisible:!1,element:r})),e.observe(r)})};function mt(){E==null||E.addEventListener("click",function(){const r=m.findIndex((i,s)=>!i.isVisible&&s>=1&&m[s-1].isVisible);if(r===-1)return;const t=F.getBoundingClientRect().left,n=m[r].element.getBoundingClientRect().left-t;b==null||b.scrollBy({left:n-36,behavior:"smooth"})}),A==null||A.addEventListener("click",function(){const r=m.findIndex((i,s)=>!i.isVisible&&s+1<=m.length-1&&m[s+1].isVisible);if(r===-1)return;const t=m[r].element.getBoundingClientRect().right,o=F.getBoundingClientRect().right,n=t-o;b.scrollBy({left:n+36,behavior:"smooth"})})}const ht=e=>new Proxy(e,{set(t,o,n){if(o==="isVisible"){const s=t[o]!==n;if(Reflect.set(t,o,n),!s)return!0;const a=t.id,c=m[0],l=m[m.length-1];return a!==c.id&&a!==l.id||(A.classList.toggle("hidden",c.isVisible),E.classList.toggle("hidden",l.isVisible)),!0}else return Reflect.set(t,o,n)}});function gt(){const e="[data-recently-viewed-doctors-carousel]";if(document.querySelector(e)){var r=new Oe(e,{arrows:!0,perPage:3,perMove:1,breakpoints:{1024:{destroy:!0,arrows:!1}}});r.mount(),bt()}}function bt(){const e=document.querySelector(".recently-viewed-doctors .lg\\:hidden[data-read-more-status]");if(!e)return;const r=e.querySelector("[data-read-more-content]"),t=e.querySelector('[data-read-more-btn="more"]'),o=e.querySelector('[data-read-more-btn="less"]');if(!r||!t||!o)return;const n=r.querySelectorAll(".doctor-card-item");if(n.length<=3){t.classList.add("!hidden"),o.classList.add("!hidden");return}e.setAttribute("data-read-more-enabled","");for(let i=3;i<n.length;i++)n[i].classList.add("hidden");t.addEventListener("click",()=>{e.setAttribute("data-read-more-status","visible");for(let i=3;i<n.length;i++)n[i].classList.remove("hidden")}),o.addEventListener("click",()=>{e.setAttribute("data-read-more-status","hidden");for(let i=3;i<n.length;i++)n[i].classList.add("hidden")})}const vt=()=>{const{pageType:e,specId:r,currentLocationEntityType:t,currentLocationId:o,specialty_en:n,specialty_fr:i,specialty_nl:s,specialty_es:a,specialty_el:c}=Q();if(e!=="s_page"||t!=="City"||!r||!o)return;const l={spec_id:r,city_id:o};Object.entries({specialty_en:n,specialty_fr:i,specialty_nl:s,specialty_es:a,specialty_el:c}).forEach(([d,h])=>{h&&(l[d]=h)}),Ue("visited_s_page",l)};window.addEventListener("beforeunload",()=>{_e()});ge();Ee();Fe();Ke();ze.init();be.init({postFetchCallback:le});Qe.init();de.init();Ze();ut();pt();const{hasPsychologistQuestionnare:po,hasIntroVideo:yt,doctorsWithIntroVideoIds:w}=Q();u("[ data-related-accordion]").forEach(e=>{var r;(r=e.querySelector("[data-related-accordion-title]"))==null||r.addEventListener("click",function(){var t,o,n;(t=e.querySelector("[data-related-accordion-content]"))==null||t.classList.toggle("accordion__content--hidden"),(o=e.querySelector('[data-related-accordion-arrow="expand"]'))==null||o.classList.toggle("hidden"),(n=e.querySelector('[data-related-accordion-arrow="collapse"]'))==null||n.classList.toggle("hidden")})});ke.init();window.addEventListener("DOMContentLoaded",()=>{gt()});const wt=fe("homepageInstantVcBtnHidden"),ae=document.querySelectorAll("[data-instant-vc-container]"),Lt=document.querySelectorAll("[data-instant-vc-close]");function St(){ae.forEach(e=>e.classList.add("has-been-visible"))}function ce(){ae.forEach(e=>e.classList.remove("has-been-visible"))}function kt(){x("homepageInstantVcBtnHidden","True",1),ce(),Ae.info({title:window.LocalizedResources.Get("HomePage.FlashMessage.InstantVC.ButtonClose"),hasIcon:!1})}wt?ce():(St(),Lt.forEach(e=>e.addEventListener("click",kt)));at();ve.init();W();T();qe();function le(e,r,t,o){const n=t.closest("[data-book-area]");if(!n)return;const i=t.closest("article"),s=parseInt((i==null?void 0:i.getAttribute("data-doctor-id"))||"0"),a=n.querySelectorAll("[data-view-all-availability-cta]"),c=n.querySelectorAll("[data-contact-practitioner-cta]"),l=n.querySelectorAll('[data-js-waitinglist="openJoinModal"]');if(!(!a.length||!c.length))if(e){let f=t.getAttribute("data-ga-label-extention");f?f="*"+f:f="",a.forEach(d=>{Me(d),d.addEventListener("click",function(h){const L=this.getAttribute("data-booking-flow")=="true";let S="";L&&(S="*bookingflow"),g("bookAppointment",{eventLabel:"viewAllAvailability"+f+S,eventDoctorId:s.toString()}),L?(h.preventDefault(),h.stopImmediatePropagation(),window.location.href=ye(o.doctorPracticeId,{doctorServiceIds:o.doctorServiceIds,isDoPlusAutoSelect:o.isDoPlusAutoSelect,insuranceId:o.insuranceId})):window.EventBus.emit("MiniAvailabilityItemClicked",o)})})}else if(!e&&r){const f=De(s);a.forEach(d=>d.classList.add("!hidden")),t.classList.add("hidden","lg:block"),f?(l.forEach(d=>
1d.classList.add("hidden")),c.forEach(d=>{if(d.hasAttribute("data-wl-manage-btn"))return;d.classList.remove("hidden"),d.classList.remove("js-mdl-book-phone"),d.removeAttribute("data-mdlbookapp_context"),d.removeAttribute("data-mdlbookapp_doctorcode"),d.removeAttribute("data-mdlbookapp_showbookbtn"),d.setAttribute("data-wl-manage-btn","true");const h=d.querySelector(".dat-button__text"),L=window.LocalizedResources.Get("DPage.BookingArea.NoSlotsAvailable.PatientManageWaitinglist");h?h.textContent=L:d.textContent=L,d.addEventListener("click",S=>{S.preventDefault(),S.stopImmediatePropagation(),window.location.href=he.createLocalizedUrl("/profile/appointments")},!0)})):(l.forEach(d=>{d.classList.remove("hidden"),d.addEventListener("click",()=>g("JoinWaitingListCtaClicked","miniProfileAvailabilityArea"))}),xe({doctorId:o.doctorId,appointmentGuid:"",doctorPracticeId:o.doctorPracticeId,container:n,joinedwlFromSource:Te.SpageWeb}))}else a.forEach(f=>f.classList.add("!hidden")),t.classList.add("hidden","lg:block"),c.forEach(f=>{f.classList.remove("hidden"),f.addEventListener("click",()=>g("ContactPractitionerCtaClicked","miniProfileAvailabilityArea"))})}const J=()=>{localStorage.getItem("waitingListPendingParams")&&We()};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",()=>{setTimeout(J,500)}):setTimeout(J,500);document.addEventListener("DOMContentLoaded",function(){$e(),vt()});window.EventBus&&window.EventBus.on("WaitingListSubscribed",e=>{try{if(!document.querySelector(`article[data-doctor-id="${e.doctorId}"]`))return;const t=document.querySelectorAll(`[data-availability-area][data-doctor-id="${e.doctorId}"]`);if(!t.length)return;t.forEach(o=>{if(!o.closest("[data-book-area]")||!o.dataset.processed)return;var i=o.querySelectorAll('[data-availability-cta="day"]').length>0;const s=o.getAttribute("data-mini-availability-doctor-practice-id"),a=s?parseInt(s,10):0,c=new we({doctorId:e.doctorId,doctorPracticeId:a}),l=o.querySelector("[data-mini-availability-placeholder-area]");l&&(l.innerHTML=Le("DPage.BookingArea.NoSlotsAvailable.PatientAlreadyWaitlistSubscribed")),le(i,!0,o,c)})}catch(r){console.error("Error updating UI after waiting list subscription:",r)}});yt&&g("page_has_intro_video",{eventLabel:w==null?void 0:w.toString(),eventDoctorId:w==null?void 0:w.toString()});

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.