1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5397],{35397:(e,a,s)=>{s.r(a),s.d(a,{default:()=>x});var n=s(37876),t=s(14232),l=s(21163);let i=e=>{let{data:a}=e,[s,l]=(0,t.useState)(!0);return(0,t.useEffect)(()=>{let e=a.ctaBar.find(e=>"Forms"===e.name&&e.enabled&&e.link.includes("vetstoria"));if(e)try{let a=new URL(e.link),s=a.hostname,n=a.pathname.split("/")[2],t=document.createElement("div");t.id="oabp-widget",t.dataset.mode="html5",t.dataset.domain=s,t.dataset.siteHash=n,t.dataset.mobileMessage="Touch Here to Make an Appointment",t.dataset.autoMobileRedirection="false",t.dataset.forceDesktopView="true",t.dataset.offset="0",t.dataset.themeCustomisation="807AA0,95CDC7,807AA0,ffffff,95CDC7,95CDC7,807AA0,807AA0,807AA0,95CDC7",document.getElementById("vestoria-widget-container")?.appendChild(t);let i=document.createElement("script");i.src=`https://${s}/js/oabp-widget-require.min.js`,i.async=!0,i.onload=()=>l(!1),document.body.appendChild(i)}catch(e){console.error("Error setting up Vestoria widget:",e),l(!1)}},[a.ctaBar]),(0,n.jsxs)("div",{className:"h-[80vh] overflow-auto",children:[s&&(0,n.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,n.jsxs)("div",{className:"space-y-4 w-full max-w-lg",children:[(0,n.jsx)("div",{className:"h-4 bg-black-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:s?"hidden":""})]})};var r=s(65734),c=s(71731),d=s(48230),o=s.n(d),m=s(68202),h=s(51930),u=s(19909),p=s(38928);function x(e){let{data:a,websiteData:s,displayInMenu:d=!1}=e,[x,f]=(0,t.useState)(!1),{TriggerEvents:j}=(0,h.useCarterAnalytics)(),g=(e,a,s,n)=>{j?.CTA_CLICK({type:e,name:a,url:s,position:n})},b=e=>{let a=l.Lt[e.iconId-1],s=a?.image;return(0,n.jsx)("span",{className:"icon-wrpr card-icon mx-auto cursor-pointer",children:s?(0,n.jsx)(s,{}):""})},C=()=>(0,n.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{d:"M6.97578 6.00312C6.97578 6.13646 6.95495 6.26146 6.91328 6.37812C6.87161 6.49479 6.80078 6.60312 6.70078 6.70312L2.10078 11.3031C1.91745 11.4865 1.68411 11.5781 1.40078 11.5781C1.11745 11.5781 0.884115 11.4865 0.700781 11.3031C0.517448 11.1198 0.425781 10.8865 0.425781 10.6031C0.425781 10.3198 0.517448 10.0865 0.700781 9.90312L4.60078 6.00312L0.700781 2.10312C0.517447 1.91979 0.425781 1.68646 0.425781 1.40312C0.425781 1.11979 0.517447 0.886458 0.700781 0.703125C0.884114 0.519792 1.11745 0.428124 1.40078 0.428124C1.68411 0.428124 1.91745 0.519792 2.10078 0.703125L6.70078 5.30312C6.80078 5.40312 6.87161 5.51146 6.91328 5.62812C6.95495 5.74479 6.97578 5.86979 6.97578 6.00312Z",fill:"currentColor"})}),[w,v]=(0,t.useState)(null),N=()=>{v(null)},k=e=>(0,n.jsxs)(n.Fragment,{children:[b(e),(0,n.jsxs)("span",{className:"card-label",children:[(0,n.jsx)("span",{children:e.name||""}),(0,n.jsx)("span",{className:"w-6 h-6 aspect-square min-w-6 max-w-6 inline-flex items-center justify-center icon",children:C()})]})]}),A=(e,a)=>e.enabled&&e.multiple?(0,n.jsx)(c.G,{buttonLabel:(0,n.jsxs)("span",{className:"cta-bar-item-link",children:[b(e),(0,n.jsxs)("span",{className:"card-label",children:[(0,n.jsx)("span",{children:e.name||""}),(0,n.jsx)("span",{className:"w-6 h-6 aspect-square min-w-6 max-w-6 inline-flex items-center justify-center icon",children:C()})]})]}),options:e?.multipleLinks.map(e=>({label:(0,n.jsx)(o(),{href:"string"==typeof e.link?e?.link:"/",onClick:()=>{g("custom_url",e?.buttonName||"",e?.link||"","header")},target:"_blank",className:"dropdown-item-link",children:e.buttonName})})),isOpen:w===a,onToggle:()=>{v(e=>e===a?null:a)},onClose:N}):e?.enabled?(0,n.jsx)("div",{className:"ban-card-item text-center",children:((e,a)=>{let t={"Client Forms":"forms","Download App":"download-app"};return t[e?.name]?(0,n.jsx)(o(),{href:m.W.enrichRoute(s,t[e?.name]),onClick:()=>
1{g("custom_url",e?.name||"",m.W.enrichRoute(s,t[e?.name]),"header")},className:"cta-bar-item-link",children:k(e)}):(0,n.jsx)(o(),{href:"string"==typeof e.link?e?.link:"/",target:"_blank",rel:"noopener noreferrer",className:"ban-card-item text-center cta-bar-item-link",onClick:a=>{"Forms"===e.name&&e.enabled&&e.link.includes("vetstoria")&&(a.preventDefault(),f(!0)),g("custom_url",e?.name||"",e?.link,"header")},"aria-label":"cta-bar-button-link",children:k(e)},a)})(e,a)},a):(0,n.jsx)(n.Fragment,{}),y=a?.ctaBar?.filter(e=>e.enabled)||[],L=s?.category===u.WJ.SPEC,_=(0,p.Dn)();return(0,n.jsxs)(n.Fragment,{children:[d?(0,n.jsx)("div",{className:"flex flex-col gap-4 menu-cta-list",children:y?.length>0&&y.map((e,a)=>(0,n.jsxs)("div",{children:[" ",A(e,a)]},a))}):y?.length>0&&(0,n.jsx)("section",{className:`banner-card-sections ${L||_?"spec-cta-section":""}`,children:(0,n.jsx)("div",{className:"container mx-auto px-4",children:(0,n.jsx)("div",{className:`banner-card ${L?"spec-cta":""}`,children:(0,n.jsx)("div",{className:"cta-bar-row gap-4 sm:gap-5 md:gap-8 lg:gap-[42px]",children:y?.length>0&&y.map((e,a)=>(0,n.jsxs)("div",{className:"cta-bar-wrap",children:[" ",A(e,a)]},a))})})})}),(0,n.jsx)(r.lG,{open:x,onOpenChange:f,children:(0,n.jsxs)(r.Cf,{className:"max-w-4xl h-[90vh] bg-[var(--white)]",children:[(0,n.jsxs)(r.c7,{children:[(0,n.jsx)(r.L3,{className:"p-2",children:"Book an Appointment"}),(0,n.jsx)(r.rr,{})]}),x&&(0,n.jsx)(i,{data:a})]})})]})}}}]);
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.