1!function(){let n="";function e(){return new URL(document.currentScript?.src||n||"")}function t(){const{token:n,orgName:t}=function(){const n=document.querySelectorAll(".hcp-button[data-orgname][data-token]")[0],t=e(),o=t.searchParams.get("token"),a=t.searchParams.get("orgName");return n||o?{token:n&&n.getAttribute("data-token")||o,orgName:n&&n.getAttribute("data-orgname")||a}:{token:null,orgName:null}}();if(n)return`https://book.housecallpro.com/book/${t}/${n}?v2=true`}function o(){if(n||(n=document.currentScript?.src),document.getElementsByClassName("hcp-widget").length>0)return void console.warn("HCP widget is already initialized.");const o=t(),a="true"===e()?.searchParams?.get("disableLazy");if(!o)return;const i=document.createElement("iframe");i.src=o,i.className="hcp-iframe",i.width="100%",a||(i.loading="lazy"),i.height="100%";const r=document.createElement("div");r.className="hcp-widget",function(n){const e=document.createElement("style");e.textContent="\n .hcp-no-scroll {\n overflow: hidden !important;\n }\n\n @media (max-width: 599.95px) {\n body.hcp-no-scroll {\n position: fixed !important;\n top: 0 !important;\n left: 0 !important;\n right: 0 !important;\n width: 100% !important;\n }\n\n html.hcp-gray-background {\n background: #fafafa !important;\n }\n }\n\n iframe.hcp-iframe {\n display: block;\n visibility: visible;\n opacity: 1;\n border: none;\n background: transparent;\n }\n\n div.hcp-widget {\n display: none;\n position: fixed;\n z-index: 2147483647;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n justify-content: center;\n align-items: center;\n }\n\n div.hcp-widget.hcp-widget--visible {\n display: flex;\n }\n\n button.hcp-button {\n font-weight: 600;\n line-height: 1.14;\n padding: 12px 24px;\n box-shadow: none;\n border-radius: 100px;\n color: #fff;\n background-color: #0f77cc;\n text-transform: uppercase;\n position: relative;\n border: 0;\n cursor: pointer;\n margin: 0;\n display: inline-flex;\n outline: 0;\n text-decoration: none;\n user-select: none;\n -webkit-appearance: none;\n -webkit-tap-highlight-color: transparent;\n text-indent: 0px;\n text-shadow: none;\n font-weight: normal;\n align-items: center;\n transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,box-shadow 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,border 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;\n overflow: auto;\n }\n button.hcp-button:hover {\n background-color: #1565c0;\n box-shadow: 0px 2px 4px -1px rgb(0 0 0 / 20%), 0px 4px 5px 0px rgb(0 0 0 / 14%), 0px 1px 10px 0px rgb(0 0 0 / 12%);\n }\n button.hcp-button:active {\n box-shadow: 0px 5px 5px -3px rgb(0 0 0 / 20%), 0px 8px 10px 1px rgb(0 0 0 / 14%), 0px 3px 14px 2px rgb(0 0 0 / 12%); background-color: rgba(15, 119, 204, 0.7)\n }\n ",document.head.append(e)}(),r.appendChild(i),document.body.appendChild(r);var c=null;function d(){c&&(i?.contentWindow?i?.contentWindow?.postMessage(c,"*"):setTimeout((()=>{i?.contentWindow?.postMessage(c,"*")}),1e3))}var s=0;function p(n){"hcp:close"===n.data&&(r.classList.remove("hcp-widget--visible"),document.body.classList.remove("hcp-no-scroll"),document.documentElement.classList.remove("hcp-gray-background"),window.scrollTo(0,s),window.removeEventListener("message",p)),"hcp:iframe-loaded"===n.data&&r.classList.contains("hcp-widget--visible")&&d(),n.data.type&&"hcp:redirect"===n.data.type&&"string"==typeof n.data.url&&(window.location.href=n.data.url)}function l(){r.classList.add("hcp-widget--visible"),s=window.scrollY,document.body.classList.add("hcp-no-scroll"),document.documentElement.classList.add("hcp-gray-background"),window.addEventListener("message",p)}window.HCPWidget={openModal:function(){l(),c="hcp:open",d()},openModalWithParams:function(n){l(),c={type:"hcp:open",params:n},d()}}}function a(){const n=t();document.querySelector(`iframe[src="${n}"]`)||o()}o(),null!==new URLSearchParams(window.location.search).get("booking")&&HCPWidget.openModal(),window.addEventListener("load",(()=>{a(),setTimeout(a,2e3)}))}(),window.addEventListener("load",(function n(){const e=document.getElementById("hcp-lead-iframe");e?window.addEventListener("message",(function(n){"hcp:lead-capture-size"===n.data.type?e.style.height=n.data.value:n.data.type&&"hcp:redirect"===n.data.type&&"string"==typeof n.data.url&&(window.location.href=n.data.url)})):setTimeout(n,100)}))
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.