1import{V as m,a as _,i as f,b as h,c as v,d as g,e as x,f as y,g as b,P as a,h as C}from"./4b238bd9.js";import{m as P}from"./a891574d.js";import{V as w,t as $}from"./c0b06950.js";import{L as c}from"./19dca8bb.js";import{n as i}from"./e493854b.js";import T from"./7f6f5286.js";import{E as n,N as d}from"./c017605b.js";import{bH as V}from"./6f4cd925.js";import k from"./990e8330.js";import S from"./9dab1872.js";import A from"./211fc6a8.js";import{V as E}from"./70bf625b.js";import"./b4992bb3.js";import"./d69eaae9.js";import"./54ed47cb.js";import"./4510f9b1.js";import"./d51be298.js";import"./aecf5f8e.js";import"./0b917ce0.js";import"./4170c67f.js";import"./c210e4ef.js";import"./41b1c1a1.js";import"./38162645.js";const R={name:"VetsterEditorialModuleAreYouConcerned",mixins:[c]};var L=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text-xl 2xl:text-2xl font-title font-semibold text-ocean-900"},[t._v(" Are you concerned? ")]),t._m(0),e("vetster-button",{staticClass:"mt-4",attrs:{href:t.guidedSearchUrl,variant:"white",size:"xl"}},[e("fa",{staticClass:"text-xl mr-2",attrs:{icon:["fas","search"]}}),e("span",{staticClass:"whitespace-no-wrap text-center"},[t._v(" Book an online vet ")])],1)],1)},U=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"vetster-prose text-neutral-900 mt-2"},[t("p",[s._v("Connect with a vet to get more information about your petâs health.")])])}],N=i(R,L,U,!1,null,null,null,null);const q=N.exports,O={name:"VetsterEditorialModuleConcernWith",components:{VetsterLivechatCTA:T,VetsterMobileAppButtons:w}
1,props:{mobileApps:{type:Object,required:!0},post:{type:Object,required:!0}}};var H=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"text-xl 2xl:text-2xl font-title font-semibold text-ocean-900"},[t._v(" Concerned with "+t._s(t.post.title)+"? ")]),e("hr",{staticClass:"my-4 w-full border-top border-[#CEDFF1]"}),t._m(0),e("vetster-livechat-c-t-a",{staticClass:"w-full",scopedSlots:t._u([{key:"store-icons",fn:function(){return[e("div",{staticClass:"mt-6 flex justify-center-items-center"},[e("div",{staticClass:"flex flex-1 flex-col space-y-2 w-full justify-center items-center sm:items-end pr-1"},[e("vetster-mobile-app-buttons",{staticClass:"flex flex-1 flex-col space-y-2 w-full justify-center items-center sm:items-end pr-1",attrs:{"button-size":"w-32","apple-app-store-url":t.mobileApps.apple.url,"google-play-url":t.mobileApps.google.url}})],1),e("div",{staticClass:"hidden sm:flex sm:flex-1 sm:pl-2"},[e("img",{staticClass:"size-24",attrs:{src:"https://images.vetster.com/photos/livechat_qr_code.jpeg?ik-s=81d9166c8b7f0c8b03a8536700afdd184aaf5cc0",alt:t.$t("app.mobile-app.livechat-qr-code")}})])])]},proxy:!0}])})],1)},j=[function(){var s=this,t=s._self._c;return t("div",{staticClass:"vetster-prose text-neutral-900 mt-2"},[t("p",[s._v("Chat with our licensed vet techs in the app to learn more and have your questions answered.")])])}],F=i(O,H,j,!1,null,null,null,null);const M=F.exports;class p{}p.Serious="SERIOUS";p.Moderate="MODERATE";p.Minor="MINOR";const z={name:"VetsterEditorialModule",components:{VetsterEditorialModuleAreYouConcerned:q,VetsterEditorialModuleConcernWith:M}
1,props:{mobileApps:{type:Object,required:!0},post:{type:Object,required:!0}},computed:{isMinorConcern(){return this.post.degree_of_urgency===p.Minor}}};var B=function(){var t=this,e=t._self._c;return e("div",[t.isMinorConcern?e("Vetster-editorial-module-concern-with",{attrs:{post:t.post,"mobile-apps":t.mobileApps}}):e("Vetster-editorial-module-are-you-concerned")],1)},W=[],D=i(z,B,W,!1,null,null,null,null);const I=D.exports,K={name:"VetsterBreadcrumbs",mixins:[c],props:{iconColor:{type:String,default:null},trail:{type:Array,default:()=>[]}}};var G=function(){var t=this,e=t._self._c;return e("div",{staticClass:"block"},[e("ol",{staticClass:"flex theme-text-neutral [&>*:last-child]:theme-text-main text-sm flex-wrap [&>*:last-child]:font-bold"},[e("li",[e("a",{staticClass:"hover:underline transition duration-150",attrs:{href:t.localizeGlobalUrl("/")}},[e("span",[t._v(t._s(t.$t("app.online-vets")))])])]),t._l(t.trail,function(r,o){var l;return e("li",{key:o,staticClass:"flex flex-row"},[e("svg",{staticClass:"h-5 w-auto mx-2",class:(l=t.iconColor)!=null?l:"text-bubblegum",attrs:{fill:"currentColor",viewBox:"0 0 20 20"}},[e("path",{attrs:{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"}})]),r.url?e("a",{staticClass:"hover:underline transition duration-150",attrs:{href:r.url}},[e("span",[t._v(t._s(r.name))])]):e("span",[t._v(t._s(r.name))])])})],2)])},Y=[],J=i(K,G,Y,!1,null,null,null,null);const Q=J.exports,X={name:"VetsterEditorialTopCenterTitle",props:{description:{type:String,default:""},title:{type:String,default:""}}};var Z=function(){var t=this,e=t._self._c;return e("div",{staticClass:"max-w-3xl"},[t.title?e("h1",{staticClass:"theme-text-main font-bold font-title text-4xl lg:text-5xl text-left tracking-tight"},[t._v(" "+t._s(t.title)+" ")]):t._e(),t.description?e("div",{staticClass:"theme-text-neutral text-lg lg:text-xl mt-2 max-w-prose"},[t._v(" "+t._s(t.description)+" ")]):t._e()])},tt=[],et=i(X,Z,tt,!1,null,null,null,null);const st=et.exports,rt={name:"VetsterEditorialTopCenterContent",components:{VetsterAuthorGroup:m,VetsterBreadcrumbs:Q,VetsterEditorialTopCenterTitle:st},mixins:[c],props:{post:{type:Object,required:!0},postType:{type:String,required:!0}},computed:{petHealthSlug(){return{[n.Condition]:"/conditions",[n.Symptom]:"/symptoms"}[this.postType]},petHealthTitle(){return{[n.Condition]:"Pet health conditions",[n.Symptom]:"Pet health symptoms"}[this.postType]},trail(){var s,t;return[{name:this.petHealthTitle,url:this.localizeLanguageUrl(this.petHealthSlug)},{name:(s=this.post.species_type)==null?void 0:s.name,url:this.localizeLanguageUrl((t=this.post.species_type)==null?void 0:t.slug)}]}}};var at=function(){var t=this,e=t._self._c;return e("div",[e("vetster-breadcrumbs",{staticClass:"block mb-8 lg:mb-14",attrs:{trail:t.trail}}),e("vetster-editorial-top-center-title",{attrs:{description:t.post.description,title:t.post.title}}),e("div",{staticClass:"block mt-6"},[e("vetster-author-group",{attrs:{author:t.post.author,"verified-author":t.post.verified_author,"is-stacked":!1}})],1)],1)},it=[],lt=i(rt,at,it,!1,null,null,null,null);const ot=lt.exports,nt={name:"VetsterCategoryBadge",props:{title:{type:String,required:!0}}};var ct=function(){var t=this,e=t._self._c;return e("span",{staticClass:"block rounded-full px-4 py-1.5 text-sm bg-ocean-800 text-ocean-300 uppercase tracking-wide"},[t._v(" "+t._s(t.title)+" ")])},pt=[],dt=i(nt,ct,pt,!1,null,null,null,null);const ut=dt.exports,mt={name:"VetsterEditorialTopRightContent",components:{VetsterCategoryBadge:ut,VetsterPublishDate:_},props:{post:{type:Object,required:!0},postType:{type:String,required:!0}}};var _t=function(){var r;var t=this,e=t._self._c;return e("div",{staticClass:"hidden lg:flex flex-col h-full"},[e("div",{staticClass:"flex-1"}),e("div",{staticClass:"flex items-start mt-8"},[e("div",{staticClass:"flex items-center justify-start flex-wrap *:my-0.5 -my-0.5 *:mx-0.5 -mx-0.5"},[e("vetster-category-badge",{attrs:{title:t.postType,"is-large":""}}),e("vetster-category-badge",{attrs:{title:(r=t.post.species_type)==null?void 0:r.name,"is-large":""}})],1)]),e("vetster-publish-date",{attrs:{post:t.post,"is-stacked":""}}
1)],1)},ft=[],ht=i(mt,_t,ft,!1,null,null,null,null);const vt=ht.exports,gt={name:"VetsterEditorialCommitteeTeam",components:{VetsterCircleAvatar:f},mixins:[c],props:{editorialTeam:{type:Array,default:()=>[]},hasWebView:{type:Boolean,default:!1}},methods:{getAuthorUrl(s){return s.is_partner?s.url_website:this.localizeLanguageUrl("/author/".concat(s.slug))}}};var xt=function(){var t=this,e=t._self._c;return t.editorialTeam&&t.editorialTeam.length?e("div",{staticClass:"relative rounded-lg overflow-hidden mt-4 sm:mt-8"},[e("div",{staticClass:"rounded-lg border border-neutral-200 bg-neutral-50"},[e("div",{staticClass:"p-6 grid grid-cols-1 sm:grid-cols-2 gap-4",class:{"pointer-events-none":t.hasWebView}},t._l(t.editorialTeam,function(r,o){return e("div",{key:r.id||o,staticClass:"flex items-center justify-start text-sm space-x-2 lg:space-x-3"},[e("vetster-circle-avatar",{staticClass:"!size-20",attrs:{author:r}}),e("div",[e("div",{staticClass:"flex flex-row items-center space-x-1"},[e("a",{staticClass:"font-semibold hover:underline transition text-ocean-950 leading-4 sm:leading-5 lg:text-base shrink-0",attrs:{href:t.getAuthorUrl(r)}},[t._v(" "+t._s(r.name)+" ")]),r.is_editorial_team?e("fa",{staticClass:"text-base text-bubblegum inline-flex items-center",attrs:{icon:["fas","badge-check"]}}):t._e()],1),e("div",{staticClass:"text-xs lg:text-sm mt-1 sm:mt-0"},[t._v(" "+t._s(r.title)+" ")])])],1)}),0)])]):t._e()},yt=[],bt=i(gt,xt,yt,!1,null,null,null,null);const Ct=bt.exports,Pt={name:"VetsterReference",props:{articleUrl:{type:String,default:""},articleName:{type:String,default:""},authorCredit:{type:String,default:""},articleAgency:{type:String,default:""},articlePublication:{type:String,default:""},description:{type:String,default:""}},computed:{hasExternalUrl(){return this.articleUrl&&!V(this.articleUrl)}}};var wt=function(){var t=this,e=t._self._c;return e("div",{staticClass:"mt-6 vetster-prose"},[t.articleUrl?[e("a",{attrs:{href:t.articleUrl,"aria-label":t.articleName,rel:t.hasExternalUrl?"noopener noreferrer nofollow":null,target:t.hasExternalUrl?"_blank":null}},[t._v(" "+t._s(t.articleName)+" ")])]:[e("span",[t._v(t._s(t.articleName))])],e("div",{staticClass:"text-neutral-600 text-base"},[e("span",[t._v(t._s(t.authorCredit))]),e("span",[t._v("-")]),e("span",{staticClass:"italic"},[t.articleAgency?[e("span",[t._v("From "+t._s(t.articleAgency))]),e("span",[t._v("Writing for "+t._s(t.articlePublication))])]:[e("span",[t._v("Writing For "+t._s(t.articlePublication))])]],2)]),t.description?e("div",{staticClass:"mt-4 lg:mt-2 text-base text-neutral-900"},[t._v(" "+t._s(t.description)+" ")]):t._e()],2)},$t=[],Tt=i(Pt,wt,$t,!1,null,null,null,null);const Vt=Tt.exports,kt={name:"VetsterTable",components:{VetsterSymptomTable:k},props:{items:{type:Array,default:()=>[]},title:{type:String,default:""}}};var St=function(){var t=this,e=t._self._c;return e("vetster-symptom-table",{attrs:{title:t.title,items:t.items}})},At=[],Et=i(kt,St,At,!1,null,null,null,null);const Rt=Et.exports,Lt={name:"VetsterVetPartner",components:{VetsterDynamicGeoVetList:S},props:{searchType:{type:String,default:null},speciesType:{type:Array,default:null}}};var Ut=function(){var t=this,e=t._self._c;return e("vetster-dynamic-geo-vet-list",{attrs:{"search-type":t.searchType,"species-types":t.speciesType}})},Nt=[],qt=i(Lt,Ut,Nt,!1,null,null,null,null);const Ot=qt.exports,Ht={name:"VetsterPetHealthPost",components:{VetsterDynamicStickyNav:A,VetsterEditorialCommitteeTeam:Ct,VetsterEditorialModule:
1I,VetsterEditorialTopCenterContent:ot,VetsterEditorialTopRightContent:vt,VetsterLeftStickyCollapsableContent:h,VetsterPostContent:v,VetsterPostCover:g,VetsterPostEducation:x,VetsterPostNavHeader:y,VetsterReference:Vt,VetsterShoutout:b,VetsterTable:Rt,VetsterVetPartner:Ot},mixins:[d],props:{collapseTopRight:{type:Boolean,default:!1},editorialTeam:{type:Array,default:()=>[]},hasWebview:{type:Boolean,default:!1},hideTopLeft:{type:Boolean,default:!1},hideTopRight:{type:Boolean,default:!1},mobileApps:{type:Object,required:!0},post:{type:Object,default:()=>({})},postType:{type:String,required:!0},species:{type:String,required:!0}},computed:{navHeaders(){var e;const s=this.post.nav_headers||[];return(e=this.post.key_takeaway)!=null&&e.html&&s.unshift({id:Math.random().toString(36).substring(2,15),component:a.PostNavHeader,nav_title:"Key takeaways",title:"Key takeaways",title_description:null}),s.some(r=>r.nav_title==="Editorial committee")||s.push({id:Math.random().toString(36).substring(2,15),component:a.PostNavHeader,nav_title:"Editorial committee",title:"Our editorial committee",title_description:"Our medical review team is responsible for validating and maintaining the quality of our medical information."}),s.map(r=>({...r,slug:"".concat(r.slug,"-").concat(this.post.id)}))}},watch:{shouldRender(){this.postObserver&&(this.postObserver.disconnect(),this.observePost(this.$refs.post,this.post))}},mounted(){this.observePost(this.$refs.post,this.post)},methods:{resolveComponentName(s){switch(s){case a.PostContent:case a.PostVideo:return"vetster-post-content";case a.PostEducation:return"vetster-post-education";case a.PostNavHeader:return"vetster-post-nav-header";case a.PostShoutout:return"vetster-shoutout";case a.PostTable:return"vetster-table";case a.PostReference:return"vetster-reference";case a.PostVetPartner:return"vetster-vet-partner";default:return null}},resolveComponentPadding(s,t){return t===0&&this.post.cover?"":s===a.PostNavHeader?"mt-14 xl:mt-16":"mt-6"},resolveComponentProps(s){var t,e;switch(s.component){case a.PostContent:case a.PostVideo:return{html:s.html};case a.PostEducation:return{concern:s.concern,concernLabel:s.concern_label,mobileApps:this.mobileApps,title:s.title};case a.PostNavHeader:return{navTitle:s.nav_title,appendId:"-".concat((t=this.post)==null?void 0:t.id),title:s.title,titleDescription:s.title_description};case a.PostShoutout:return{description:s.description,title:s.title,url:s.url};case a.PostTable:return{items:s.table,title:s.table_title};case a.PostReference:return{articleAgency:s.article_agency,articleName:s.article_name,articlePublication:s.article_publication,articleUrl:s.article_url,authorCredit:s.author_credit,description:s.description};case a.PostVetPartner:return{searchType:this.postType.toUpperCase(),species:[(e=this.post)==null?void 0:e.species_type].filter(Boolean)};default:return{component:s}}}}};var jt=function(){var r,o;var t=this,e=t._self._c;return e("div",{ref:"post",staticClass:"theme-bg-light",style:"min-height: ".concat(t.renderHeight,"px")},[t.post&&t.post.id&&t.shouldRender?e("div",[e("div",{staticClass:"group/theme w-full theme-darker border-2",attrs:{id:"top-section"}},[e("div",{staticClass:"theme-bg-darker theme-text-main relative"},[e("div",{staticClass:"relative mx-auto flex flex-col lg:flex-row 2xl:justify-end min-[1700px]:max-w-screen-2xl"},[t.hideTopLeft?t._e():e("div",{staticClass:"relative hidden min-h-[200px] w-64 2xl:w-80 flex-col items-center justify-between gap-16 pl-standard pr-thin text-gray-200 xl:max-w-xs xl:flex"},[e("div",{staticClass:"flex h-full items-end overflow-hidden"},[e("fa",{staticClass:"text-[12rem] theme-text-icon -mb-6 mr-5 2xl:mr-0",attrs:{icon:["fal",t.species.toLowerCase()]}})],1)]),e("div",{staticClass:"theme-bg-dark flex w-full flex-1 flex-col py-standard px-standard 2xl:pb-10",class:{"group/theme-[:not(.theme-light)]:2xl:px-16":t.hideTopLeft}},[e("vetster-editorial-top-center-content",{attrs:{post:t.post,"post-type":t.postType}})],1),t.hideTopRight?t._e():e("div",{staticClass:"relative w-full lg:max-w-xs py-standard px-standard lg:pl-4",class:t.collapseTopRight?"flex":"hidden lg:flex"},[e("vetster-editorial-top-right-content",{attrs:{post:t.post,"post-type":t.postType}})],1)])])]),e("section",{staticClass:"sticky z-30 top-16 block lg:hidden shadow-lg min-h-[3.5rem]"},[e("transition",{attrs:{name:"fade",appear:""}},[e("vetster-dynamic-sticky-nav",{attrs:{id:t.post.id,categories:t.navHeaders,"title-key":"nav_title",position:"top","is-web-view":!1}})],1)],1),e("div",{staticClass:"relative mx-auto flex flex-1 min-[1700px]:max-w-screen-2xl",attrs:{id:"bottom-section"}},[e("div",{staticClass:"sticky top-16 z-30 hidden h-full shrink-0 lg:block overflow-hidden"},[e("vetster-left-sticky-collapsable-content",{staticClass:"py-standard",attrs:{categories:t.navHeaders,post:t.post}})],1),e("div",{staticClass:"bg-white flex-1 min-w-0"},[e("div",{staticClass:"py-thick px-standard group/theme-[:not(.theme-light)]:2xl:px-16"},[t.post.cover?e("vetster-post-cover",{attrs:{post:t.post}}):t._e(),(o=(r=t.post)==null?void 0:r.key_takeaway)!=null&&o.html?e("div",[e("vetster-post-nav-header",{attrs:{"nav-title":"Key takeaways",title:"Key takeaways","append-id":"-".concat(t.post.id)}}),e("vetster-post-content",{staticClass:"mt-4 lg:mt-6 mb-1",attrs:{html:t.post.key_takeaway.html}})],1):t._e(),t._l(t.post.components,function(l,u){return e(t.resolve
1ComponentName(l.component),t._b({key:l.id+Math.random(),tag:"component",class:t.resolveComponentPadding(l.component,u)},"component",t.resolveComponentProps(l),!1))}),e("vetster-post-nav-header",{staticClass:"mt-14 xl:mt-16",attrs:{"nav-title":"Editorial committee",title:"Our editorial committee","title-description":"Our medical review team is responsible for validating and maintaining the quality of our medical information.","append-id":"-".concat(t.post.id)}}),e("vetster-editorial-committee-team",{attrs:{"editorial-team":t.editorialTeam,"has-webview":t.hasWebview}}),e("div",{staticClass:"lg:hidden flex flex-col items-start mt-12"},[e("vetster-editorial-module",{attrs:{post:t.post,"mobile-apps":t.mobileApps}})],1)],2)]),e("div",{staticClass:"sticky top-16 z-30 hidden h-full max-w-xs shrink-0 overflow-y-auto overflow-x-hidden lg:block"},[e("div",{staticClass:"w-80 py-standard pr-standard pl-thin group/theme-[:not(.theme-light)]:border-l-2 group/theme-[:not(.theme-light)]:border-ocean-100 min-h-[450px]"},[e("vetster-editorial-module",{attrs:{post:t.post,"mobile-apps":t.mobileApps}})],1)])])]):t._e()])},Ft=[],Mt=i(Ht,jt,Ft,!1,null,null,null,null);
1const zt=Mt.exports,Bt={name:"VetsterPetHealthPostLoader",components:{VetsterLoading:E,VetsterPetHealthPost:zt},mixins:[d],props:{concerns:{type:Array,default:null},editorialTeam:{type:Array,default:()=>[]},hasWebview:{type:Boolean,default:!1},mobileApps:{type:Object,required:!0},postTitle:{type:String,required:!0},postType:{type:String,required:!0},species:{type:String,required:!0},startingSlug:{type:String,default:""}},data(){return{currentPost:null,isLoading:!1,lastPage:null,page:1,posts:[],upcomingPosts:[]}},computed:{isLast(){return this.currentPost&&this.indexOfSlug(this.currentPost)===this.posts.length-1},nextPost(){return C(this.upcomingPosts)},relatedPosts(){return $(this.upcomingPosts,3)}},watch:{scrollPercentage(s){s>70&&!this.isLoading&&this.isLast&&this.fetchNextPost()}},async created(){this.isLoading=!0,await this.fetchUpcomingPosts(),await this.fetchNextPost(),this.isLoading=!1},mounted(){this.observeScrollHeight(),this.observePost(document.getElementById("bottom-section"),{title:this.postTitle,type:this.postType,slug:this.startingSlug})},methods:{async fetchNextPage(){this.isLoading=!0,this.nextPost||(this.page+=1,this.page<=this.lastPage&&await this.fetchUpcomingPosts()),await this.fetchNextPost(),this.isLoading=!1},async fetchNextPost(){const{nextPost:s}=this;if(s)try{const t=await this.$api.get("p/posts/".concat(this.postType,"/").concat(s.slug),{params:{species_type:this.species}});this.posts.push(t.data.data.data),this.upcomingPosts.shift()}catch(t){}},async fetchUpcomingPosts(){try{const s=await this.$api.get("p/pet-health-post",{params:{"health-concerns":this.concerns,page:this.page,"slugs-excluded":[this.startingSlug,...P(this.posts,"slug")],species:this.species,type:this.postType}});this.upcomingPosts=s.data.data,this.lastPage=s.data.meta.last_page}catch(s){}},indexOfSlug(s){return this.posts.findIndex(t=>t.slug===s)},setCurrentPost(s){this.currentPost=s}}};var Wt=function(){var t=this,e=t._self._c;return e("div",[t._l(t.posts,function(r){return e("vetster-pet-health-post",{key:r.id,attrs:{"editorial-team":t.editorialTeam,"has-webview":t.hasWebview,"mobile-apps":t.mobileApps,post:r,"post-type":t.postType,"related-posts":t.relatedPosts,species:t.species},on:{render:t.setCurrentPost}})}),t.isLoading?e("div",{staticClass:"py-standard justify-items-center"},[e("vetster-loading",{staticClass:"[&>svg]:w-full [&>svg]:h-full",attrs:{"is-loading":t.isLoading,size:"size-16"}})],1):t._e()],2)},Dt=[],It=i(Bt,Wt,Dt,!1,null,null,null,null);const he=It.exports;export{he as default};
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.