1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2742],{42742:(e,t,i)=>{i.r(t),i.d(t,{default:()=>l});var n=i(37876),s=i(55128),a=i(12540),r=i(14232),d=i(48230),c=i.n(d),o=i(50600);function l(e){let{data:t,websiteData:i}=e,[d,l]=(0,r.useState)(!0),m=(0,r.useRef)(!1),p=(0,r.useRef)(!1),u=i?.bookAppointmentScript||{},h=t?.appointment?.type||"",f=t?.appointment?.link||"",g=u?.results?.scripts?.[0]?.scriptContent||"",w=!!(t?.appointment?.heading||t?.appointment?.description||"cta"===h);return(0,r.useEffect)(()=>{m.current=!1,p.current=!1,l(!0)},[]),(0,r.useEffect)(()=>{if(!f||"cta"===h)return void l(!1);l(!0);let e="us.vetstoria.com",t=()=>{if(document.getElementById("oabp-widget")?.remove(),document.getElementById("vestoria-widget-script")?.remove(),void 0!==window.requirejs){try{let e=window.requirejs?.s?.contexts?._?.defined||{};Object.keys(e).forEach(e=>{try{window.requirejs.undef(e)}catch{}})}catch{}delete window.requirejs,delete window.require,delete window.define}},i=setTimeout(()=>{try{t();let i=document.createElement("div");i.id="oabp-widget",i.dataset.mode="html5",i.dataset.domain=e,i.dataset.siteHash=f,i.dataset.mobileMessage="Touch Here to Make an Appointment",i.dataset.autoMobileRedirection="false",i.dataset.forceDesktopView="true",i.dataset.offset="0",i.dataset.themeCustomisation="807AA0,95CDC7,807AA0,ffffff,95CDC7,95CDC7,807AA0,807AA0,807AA0,95CDC7";let n=document.getElementById("vestoria-widget-container");n&&n.appendChild(i);let s=document.createElement("script");s.id="vestoria-widget-script",s.src=`https://${e}/js/oabp-widget-require.min.js?v=${Date.now()}`,s.async=!0,s.onload=()=>{l(!1),m.current=!0},s.onerror=()=>{console.error("Failed to load widget script"),l(!1)},document.body.appendChild(s)}catch(e){console.error("Error setting up Vestoria widget:",e),l(!1)}},100);return()=>{clearTimeout(i),p.current||(t(),m.current=!1,p.current=!0)}},[f,h]),(0,r.useEffect)(()=>()=>{document.getElementById("oabp-widget")?.remove(),document.getElementById("vestoria-widget-script")?.remove(),m.current=!1},[]),(0,n.jsx)("section",{className:"inner-banner py-[50px] lg:py-[60px] xl:py-20",children:(0,n.jsxs)("div",{className:"container",children:[w&&(0,n.jsxs)("div",{className:`${"cta"!==h?"inner_page-head":"inner_page-head min-h-[25vh]"}`,children:[(0,n.jsx)("h1",{className:"page-heading",children:(0,a.EJ)(t?.appointment?.heading||"",s.N8?.COMMON_PAGE_SECTION?.TITLE)}),(0,n.jsx)("p",{className:"page-desc",children:(0,a.EJ)(t?.appointment?.description||"",s.N8?.COMMON_PAGE_SECTION?.DESC)}),"cta"===h&&(0,n.jsx)("div",{className:"flex justify-center items-center mt-3",children:(0,n.jsx)(c(),{href:f,target:"_blank",className:"btn primary-btn",children:"Book Appointment Here"})})]}),"cta"!==h&&f&&(0,n.jsxs)("div",{className:"w-full",children:[d&&(0,n.jsx)("div",{className:"flex items-center justify-center min-h-[400px]",children:(0,n.jsxs)("div",{className:"space-y-4 w-full max-w-lg",children:[(0,n.jsx)("div",{className:"h-4 bg-gray-200 rounded-full animate-pulse"}),(0,n.jsx)("div",{className:"h-4 bg-gray-200 rounded-full animate-pulse w-3/4"}),(0,n.jsx)("div",{className:"h-4 bg-gray-200 rounded-full animate-pulse w-1/2"})]})}),(0,n.jsx)("div",{id:"vestoria-widget-container",className:d?"hidden":""})]}),"cta"!==h&&!f&&g&&(0,n.jsx)("div",{className:"w-full min-h-[400px]",children:(0,n.jsx)(o.A,{scriptContent:g})})]})})}}}]);
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.