PageSourceSearch

https://paw-champ.com/nuxt-frontend/CjAcrkmn.js

js paw-champ.com collected 2026-10-02 15:21:25 UTC 62,087 bytes, 3 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./gpyDcwZ6.js","./ae5_dySo.js","./entry.MrJ9xhq9.css","./DlXa5aIe.js","./C_DfXXXY.js","./CUlZxk6a.js","./DHnotqYQ.js","./C9zfeG-4.js","./C8zvnHQf.js","./2HK3yq-4.js","./CfVcP54B.js","./Da3NZNDu.js","./BV4eKR6c.js","./Dffay0_O.js","./D1Dx9f5x.js","./CxFFp5zC.js","./vUqVVkDb.js","./DcH-nakF.js","./B1FjbXqF.js","./3VJA7tqC.js"])))=>i.map(i=>d[i]);
2import{d as C,u as R,o as d,c as m,y as N,a as r,t as _,e as a,v as k,H as B,b as h,A as V,ak as _e,R as he,B as y,D as O,E as A,G as S,f as P,q as j,al as de,am as oe,w as M,k as ae,r as b,h as ve,an as ne,ao as be,ap as Ce,aq as xe,ar as ye,_ as U,a7 as D,z as Z,N as Me,ab as Ve,a3 as Se,K as q,T as Y,as as we,at as Ne,au as Q,g as K,m as ie,C as Ue,av as je,aw as De,U as le,ah as qe,l as Ze,ax as Ke,i as ke,J as Pe,ay as ze,az as Ge,Q as $e,s as Ee,a2 as Ye,$ as Qe,a5 as pe,j as Te,aA as se,aB as We,aC as Xe,aD as Je,aE as et,aF as tt}from"./ae5_dySo.js";import{u as z,g as nt,Q as st}from"./C9zfeG-4.js";import{I as ot}from"./2HK3yq-4.js";import{C as at,a as Re}from"./DHnotqYQ.js";import{B as it}from"./CfVcP54B.js";import{A as lt,S as G,T as X}from"./C8zvnHQf.js";import{o as rt,u as ct}from"./C_DfXXXY.js";import{B as re}from"./DlXa5aIe.js";import{I as ut}from"./Da3NZNDu.js";import{B as Be,u as dt}from"./BV4eKR6c.js";import{C as Le,a as pt}from"./Dffay0_O.js";import{c as mt}from"./CxFFp5zC.js";import{f as Ie}from"./vUqVVkDb.js";import{u as Oe}from"./DcH-nakF.js";import{p as ft}from"./B1FjbXqF.js";import{u as gt}from"./3VJA7tqC.js";const _t=["id"],ht={class:"body-r16 mt-2"},vt=C({__name:"SubscriptionStateText",props:{titleKey:{},descriptionKey:{},headlineId:{default:void 0}},setup(e){const{t}=R();return(o,n)=>(d(),m(N,null,[r("h2",{id:e.headlineId,class:"h1-b md:display-3"},_(a(t)(e.titleKey)),9,_t),r("p",ht,_(a(t)(e.descriptionKey)),1)],64))}}),ce=Object.assign(vt,{__name:"SharedSubscriptionStateText"}),bt=C({__name:"SubscriptionInlineBackendErrorState",setup(e){return(t,o)=>(d(),k(ce,{"title-key":"blog.subscriptionForm.error.title","description-key":"blog.subscriptionForm.error.description"}))}}),Ct=Object.assign(bt,{__name:"BannersStatesSubscriptionInlineBackendErrorState"}),xt=C({__name:"SubscriptionInlineDefaultState",setup(e){return(t,o)=>(d(),k(ce,{"title-key":"blog.subscriptionForm.title","description-key":"blog.subscriptionForm.description"}))}}),yt=Object.assign(xt,{__name:"BannersStatesSubscriptionInlineDefaultState"}),St={class:"caption-r12 text-gray-500"},wt={href:"/policy",class:"underline decoration-[0px] underline-offset-1",target:"_blank"},kt=C({__name:"SubscriptionDisclaimer",setup(e){const{t}=R();return(o,n)=>(d(),m("div",St,[B(_(a(t)("blog.subscriptionForm.disclaimer"))+" ",1),r("a",wt,_(a(t)("blog.subscriptionForm.disclaimerLink")),1)]))}}),Ae=Object.assign(kt,{__name:"SharedSubscriptionDisclaimer"}),Pt={"aria-live":"polite",class:"flex flex-col items-center text-center md:items-start md:text-left"},$t={class:"h1-b md:h1-eb"},Et={class:"body-r16 mt-2"},Tt=C({__name:"SubscriptionInlineSuccessState",setup(e){const{t}=R();return(o,n)=>(d(),m("div",Pt,[r("h2",$t,_(a(t)("blog.subscriptionForm.success.title")),1),r("p",Et,_(a(t)("blog.subscriptionForm.success.description")),1),h(Ae,{class:"mt-4"})]))}}),Rt=Object.assign(Tt,{__name:"BannersStatesSubscriptionInlineSuccessState"}),Bt=C({__name:"SubscriptionInlineValidationState",setup(e){return(t,o)=>(d(),k(ce,{"title-key":"blog.subscriptionForm.validationError.title","description-key":"blog.subscriptionForm.validationError.description"}))}}),Lt=Object.assign(Bt,{__name:"BannersStatesSubscriptionInlineValidationState"}),te={DEFAULT:"https://images.paw-champ.com/pc/images/common/site/subscription-banner-inline-default.png",ERROR:"https://images.paw-champ.com/pc/images/common/site/subscription-banner-inline-error.png"},It=["aria-label"],Ot=C({__name:"SubscriptionCloseButton",props:{variant:{default:"popup"}},emits:["click"],setup(e,{emit:t}){const o=t,{t:n}=R();return(s,i)=>(d(),m("button",{type:"button",class:V(["absolute top-3 right-3 z-10 flex w-7 h-7 text-gray-700 justify-center items-center gap-2 aspect-square rounded-[4px] hover:text-gray-500 cursor-pointer",e.variant==="popup"?"bg-[#F3F4F5]":"bg-transparent"]),"aria-label":a(n)("blog.subscriptionForm.closeAriaLabel"),onClick:i[0]||(i[0]=l=>o("click"))},[...i[1]||(i[1]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[r("path",{d:"M5.66599 18.3309C5.44052 18.1139 5.44887 17.7549 5.66599 17.5378L11.2025 12.0026L5.66599 6.46742C5.44887 6.25036 5.44887 5.89136 5.66599 5.66595C5.8831 5.44053 6.25054 5.44888 6.46765 5.66595L12.0042 11.2011L17.5323 5.66595C17.7495 5.44888 18.1085 5.44888 18.334 5.66595C18.5595 5.88301 18.5511 6.25036 18.334 6.46742L12.7975 12.0026L18.334 17.5378C18.5511 17.7549 18.5511 18.1139 18.334 18.3309C18.1169 18.5564 17.7495 18.5564 17.5323 18.3309L12.0042 12.8041L6.46765 18.3309C6.25054 18.5564 5.89145 18.5564 5.66599 18.3309Z",fill:"currentColor"})],-1)])],10,It))}}),At=Object.assign(Ot,{__name:"SharedSubscriptionCloseButton"}),Ht={class:"relative w-full"},Ft={key:0,class:"absolute right-4 top-3 flex items-center pointer-events-none"},Mt=C({__name:"SubscriptionFormFields",props:{email:{},emailError:{},buttonText:{},layout:{default:"stacked"},fullWidthButton:{type:Boolean,default:!1},isLoading:{type:Boolean,default:!1}},emits:["update:email","submit"],setup(e,{emit:t}){const o=t;return(n,s)=>(d(),m("form",{class:V(["flex gap-4 w-full text-left flex-col",e.layout==="inline"?"py-4 md:flex-row":"pt-6 pb-6"]),novalidate:"",onSubmit:s[1]||(s[1]=_e(i=>o("submit"),["prevent"]))},[r("div",Ht,[h(a(he),{"model-value":e.email,type:"email",placeholder:"[email protected]","error-text":e.emailError,"aria-label":"Email",autocomplete:"email",class:"h-12 -mt-1 w-full","onUpdate:modelValue":s[0]||(s[0]=i=>o("update:email",i))},null,8,["model-value","error-text"]),e.emailError?(d(),m("div",Ft,[h(ot,{class:"text-[#FF574C]"})])):y("",!0)]),h(a(O),{variant:a(A).ADDITIONAL,"is-loading":e.isLoading,class:V(["h-12 shrink-0",e.fullWidthButton?"w-full":"w-full md:w-auto"])},{default:S(()=>[B(_(e.buttonText),1)]),_:1},8,["variant","is-loading","class"])],34))}}),Vt=Object.assign(Mt,{__name:"SharedSubscriptionFormFields"});function Nt({state:e,emailError:t}){const o=P(()=>e.value==="success"),n=P(()=>e.value==="error");return{hasValidationError:P(()=>!n.value&&!o.value&&!!t.value),hasError:n,isSuccess:o}}function Ut(e){if(!(typeof window>"u"))for(const t of e){const o=new Image;o.src=t}}const jt={class:"shrink-0 px-4 pt-2 md:pt-[5px] md:pb-[14px]"},Dt=["src","alt"],qt={class:"flex flex-col p-4 w-full items-center text-center md:items-start md:text-left md:pl-0 justify-center"},Zt=C({__name:"SubscriptionInlineForm",props:{state:{},email:{},emailError:{}},emits:["update:email","submit","close"],setup(e,{emit:t}){const o=e,n=t,{t:s}=R(),{hasValidationError:i,hasError:l,isSuccess:u}=Nt({state:de(o,"state"),emailError:de(o,"emailError")}),p=P(()=>o.state==="loading"),c=P(()=>l.value||i.value?te.ERROR:te.DEFAULT),g=P(()=>l.value?s("blog.subscriptionForm.tryAgainButton"):s("blog.subscriptionForm.submitButton"));return j(()=>Ut(Object.values(te))),(v,f)=>(d(),m("div",{class:V(["relative rounded-2xl overflow-hidden bg-blue-100 border border-blue-200 flex flex-col items-center md:flex-row",a(u)?"md:max-w-[572px] md:mx-auto":""])},[a(u)?(d(),k(At,{key:0,variant:"inline",onClick:f[0]||(f[0]=$=>n("close"))})):y("",!0),r("div",jt,[r("img",{src:a(c),alt:a(s)("blog.subscriptionForm.imageAlt"),class:"shrink-0 w-[190p
2x]"},null,8,Dt)]),r("div",qt,[a(u)?(d(),k(Rt,{key:0})):(d(),m(N,{key:1},[a(l)?(d(),k(Ct,{key:0})):a(i)?(d(),k(Lt,{key:1})):(d(),k(yt,{key:2})),h(Vt,{email:e.email,"email-error":e.emailError,"button-text":a(g),"is-loading":a(p),layout:"inline","onUpdate:email":f[1]||(f[1]=$=>n("update:email",$)),onSubmit:f[2]||(f[2]=$=>n("submit"))},null,8,["email","email-error","button-text","is-loading"]),h(Ae)],64))])],2))}}),Kt=Object.assign(Zt,{__name:"BannersSubscriptionInlineForm"}),zt="subscription-subscribed";function ue(){const e=oe(zt,{maxAge:at}),t=P(()=>!!e.value);function o(){e.value="1"}return{isSubscribed:t,markSubscribed:o}}function Gt({formState:e,email:t,submit:o,tracker:n}){const{markSubscribed:s}=ue();M(e,l=>{if(l==="success"){s(),n.sendSuccess();return}l==="error"&&n.sendError({errorType:"Server error",inputValue:t.value})});async function i(){n.sendSubmit(),await o()==="invalid"&&n.sendError({errorType:"validation",inputValue:t.value})}return{handleSubmit:i}}function Yt(e){const{t}=R(),o=ae(),n=b(""),s=b("default"),i=b(void 0),l=P(()=>i.value?t(i.value):void 0),u=P(()=>it.test(n.value));M(n,()=>{i.value=void 0});function p(){i.value=u.value?void 0:"blog.subscriptionForm.emailError"}async function c(){await $fetch("/api/forms/subscription-form",{method:"POST",body:{email:n.value,source:e}})}async function g(){if(s.value==="loading")return"skipped";if(p(),!u.value)return"invalid";s.value="loading";try{return await c(),s.value="success","success"}catch(f){return o("Error submitting subscription form",f),s.value="error","error"}}function v(){n.value="",s.value="default",i.value=void 0}return{email:n,formState:s,emailError:l,isEmailValid:u,submit:g,reset:v}}function Qt({formType:e,articleSlug:t}){const{$analytics:o}=ve(),n=P(()=>({formType:e,articleSlug:ne(t)}));function s(i,l=[]){o&&o.send({name:i,properties:[{name:"form_type",value:n.value.formType},{name:"article_slug",value:n.value.articleSlug},...l],namespace:lt.BLOG})}return{sendView:()=>s(G.VIEW),sendSubmit:()=>s(G.SUBMIT),sendSuccess:()=>s(G.SUCCESS),sendError:({errorType:i,inputValue:l})=>s(G.ERROR,[{name:"error_type",value:i},{name:"input_value",value:l}]),sendClose:()=>s(G.CLOSE)}}function Wt({formType:e,articleSlug:t,isVisible:o,onClose:n}){const{email:s,formState:i,emailError:l,submit:u}=Yt(e),p=Qt({formType:e,articleSlug:t}),{handleSubmit:c}=Gt({formState:i,email:s,submit:u,tracker:p});ne(o)?p.sendView():M(()=>ne(o),v=>{v&&p.sendView()},{once:!0});function g(){p.sendClose(),n()}return{email:s,formState:i,emailError:l,handleSubmit:c,handleClose:g}}const Xt="subscription-inline-closed";function Jt(){const e=oe(Xt,{maxAge:Re}),t=P(()=>!!e.value);function o(){e.value="1"}return{isDismissed:t,dismiss:o}}const en={key:0},tn=C({__name:"SubscriptionInline",props:{articleSlug:{}},setup(e){const t=e,{getFeatureValue:o}=be(),n=P(()=>o(xe.pc_blog_subscription_form)===ye.INLINE),{isDismissed:s,dismiss:i}=Jt(),{isSubscribed:l}=ue(),u=l.value,p=P(()=>n.value&&!u&&!s.value),{email:c,formState:g,emailError:v,handleSubmit:f,handleClose:$}=Wt({formType:"inline",articleSlug:()=>t.articleSlug,isVisible:p,onClose:i});return(E,H)=>{const T=Ce;return d(),k(T,null,{default:S(()=>[a(p)?(d(),m("div",en,[h(Kt,{state:a(g),email:a(c),"email-error":a(v),"onUpdate:email":H[0]||(H[0]=x=>c.value=x),onSubmit:a(f),onClose:a($)},null,8,["state","email","email-error","onSubmit","onClose"])])):y("",!0)]),_:1})}}}),nn=Object.assign(tn,{__name:"BannersSubscriptionInline"}),sn={},on={class:"h2-b"};function an(e,t){return d(),m("h2",on,[D(e.$slots,"default")])}const ln=Object.assign(U(sn,[["render",an]]),{__name:"PagesBlogPostContentBlocksPostHeading2"}),rn={},cn={class:"h3-b"};function un(e,t){return d(),m("h3",cn,[D(e.$slots,"default")])}const me=Object.assign(U(rn,[["render",un]]),{__name:"PagesBlogPostContentBlocksPostHeading3"}),dn={},pn={class:"h4-b"};function mn(e,t){return d(),m("h4",pn,[D(e.$slots,"default")])}U(dn,[["render",mn]]);const fn={},gn={class:"body-r18 post-text-block"};function _n(e,t){return d(),m("p",gn,[D(e.$slots,"default")])}const hn=Object.assign(U(fn,[["render",_n]]),{__name:"PagesBlogPostContentBlocksPostParagraph"}),vn={},bn={class:"flex flex-col gap-4"};function Cn(e,t){return d(),m("section",bn,[D(e.$slots,"default")])}const xn=Object.assign(U(vn,[["render",Cn]]),{__name:"PagesBlogPostContentBlocksPostSection"}),yn={class:"body-r18 pl-8 flex flex-col gap-2"},Sn={class:"shrink-0"},wn=C({__name:"PostList",props:{list:{},bullet:{default:""}},setup(e){return(t,o)=>(d(),m("ul",yn,[(d(!0),m(N,null,Z(e.list,n=>(d(),m("li",{key:n,class:"leading-none relative flex items-center gap-2"},[r("span",Sn,[D(t.$slots,"bullet"),B(" "+_(e.bullet),1)]),B(" "+_(n),1
2)]))),128))]))}});Object.assign(wn,{__name:"PagesBlogPostContentBlocksPostList"});const kn={class:"flex flex-col md:flex-row gap-6 justify-center items-center w-full md:w-auto"},Pn=["src","alt","title"],$n={key:0,class:"md:text-left text-center caption-r18 uppercase"},En={key:1,class:"md:text-left text-center h1-eb"},Tn=["src","alt","title"],Rn=C({__name:"PostCallToAction",props:{postTitle:{},postAlias:{},imageSrc:{},imageAlt:{},imageTitle:{},headline:{},description:{},buttonText:{},buttonLink:{}},setup(e){const t=e,{isMdDown:o}=Me(),{sendBannerAction:n}=z();function s(){n({postName:t.postTitle,funnelName:nt(t.buttonLink),bannerName:t.headline||"No name provided",bannerLink:t.buttonLink,postAlias:t.postAlias})}return(i,l)=>(d(),k(Ve(a(o)?"a":"div"),Se({class:"flex justify-center"},a(o)?{href:e.buttonLink,target:"_blank"}:{}),{default:S(()=>[r("div",kn,[e.imageSrc?(d(),m("img",{key:0,src:e.imageSrc,alt:e.imageAlt||"",title:e.imageTitle||"",class:"hidden md:block rounded-2xl max-w-[215px]"},null,8,Pn)):y("",!0),r("div",{class:V(["flex flex-col gap-2 h-full justify-center items-center md:items-start",{"items-center":!e.imageSrc}])},[e.description?(d(),m("p",$n,_(e.description),1)):y("",!0),e.headline?(d(),m("h3",En,_(e.headline),1)):y("",!0),e.imageSrc?(d(),m("img",{key:2,src:e.imageSrc,alt:e.imageAlt||"",title:e.imageTitle||"",class:"md:hidden rounded-2xl w-full max-w-[500px] py-4"},null,8,Tn)):y("",!0),h(a(O),{variant:a(A).PRIMARY,type:a(q).LINK,href:e.buttonLink,class:"md:w-[333px] w-full max-w-[500px] md:mt-2",target:"_blank",onClick:s},{default:S(()=>[B(_(e.buttonText),1)]),_:1},8,["variant","type","href"])],2)])]),_:1},16))}}),Bn=Object.assign(Rn,{__name:"PagesBlogPostContentBlocksPostCallToAction"}),Ln={},In={class:"p-4 rounded-2xl bg-yellow-100 w-full border border-yellow-200 max-w-[572px] mx-auto flex flex-col gap-2"};function On(e,t){return d(),m("div",In,[D(e.$slots,"default")])}const An=Object.assign(U(Ln,[["render",On]]),{__name:"PagesBlogPostContentBlocksPostTip"}),Hn={},Fn={class:"p-4 rounded-2xl bg-green-100 w-full border border-green-200 flex flex-col gap-2"};function Mn(e,t){return d(),m("div",Fn,[D(e.$slots,"default")])}const Vn=Object.assign(U(Hn,[["render",Mn]]),{__name:"PagesBlogPostContentBlocksPostSummary"}),Nn={class:"relative px-4 pt-6 pb-4 rounded-xl bg-blue-100 w-full max-w-[572px] flex flex-col mx-auto"},Un={class:"body-r20 italic"},jn={key:0,class:"text-gray-700 body-b14 w-full pt-3 mt-3 border-t border-blue-200"},Dn=C({__name:"PostQuote",props:{author:{},quote:{}},setup(e){return(t,o)=>(d(),m("div",Nn,[o[0]||(o[0]=r("div",{class:"w-8 h-8 absolute -top-4 left-4 text-red-500"},[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none"},[r("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.33333 28C7.91885 28 6.56229 27.4381 5.5621 26.4379C4.5619 25.4377 4 24.0812 4 22.6667C4 20.7022 5.77778 14.48 9.33333 4H12L9.33333 17.3333C10.7478 17.3333 12.1044 17.8952 13.1046 18.8954C14.1048 19.8956 14.6667 21.2522 14.6667 22.6667C14.6667 24.0812 14.1048 25.4377 13.1046 26.4379C12.1044 27.4381 10.7478 28 9.33333 28ZM22.6667 28C21.2522 28 19.8956 27.4381 18.8954 26.4379C17.8952 25.4377 17.3333 24.0812 17.3333 22.6667C17.3333 20.7022 19.1111 14.48 22.6667 4H25.3333L22.6667 17.3333C24.0812 17.3333 25.4377 17.8952 26.4379 18.8954C27.4381 19.8956 28 21.2522 28 22.6667C28 24.0812 27.4381 25.4377 26.4379 26.4379C25.4377 27.4381 24.0812 28 22.6667 28Z",fill:"currentColor"})])],-1)),r("div",Un,_(e.quote),1),e.author?(d(),m("div",jn,_(e.author),1)):y("",!0)]))}}),qn=Object.assign(Dn,{__name:"PagesBlogPostContentBlocksPostQuote"}),Zn=["poster","autoplay","muted","controls","playsinline","preload","src"],Kn=["src"],zn=C({__name:"PostVideo",props:{src:{},poster:{},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},playsinline:{type:Boolean,default:!0},preload:{default:"metadata"}},setup(e){const t=e,o=b(null);let n=null;function s(){if(n){try{n.destroy()}catch{}n=null}}async function i(){s();const l=o.value;if(!l)return;if(/\.m3u8($|\?)/i.test(t.src))try{const{default:p}=await we(async()=>{const{default:c}=await import("./PqkoW0Po.js");return{default:c}},[],import.meta.url);if(p.isSupported()){n=new p,n.loadSource(t.src),n.attachMedia(l),n.on(p.Events.ERROR,(c,g)=>{try{typeof window<"u"&&window.Sentry?window.Sentry.captureException(new Error("HLS playback error on blog player"),{extra:{video_src:t.src,data:g}}):console.error("HLS playback error on blog player",g)}catch{}});return}if(l.canPlayType("application/vnd.apple.mpegurl")){l.src=t.src,l.load();return}}catch(p){console.error("Failed to load hls.js",p)}l.src=t.src,l.load()}return j(i),Y(s),M(()=>t.src,i),(l,u)=>(d(),m("video",{ref_key:"videoRef",ref:o,poster:e.poster,autoplay:e.autoplay,muted:e.muted,controls:e.controls,playsinline:e.playsinline,preload:e.preload,src:/\.m3u8($|\?)/i.test(e.src)?void 0:e.src,class:"md:rounded-2xl object-fill block ml-[-16px] w-[calc(100%_+_32px)] md:ml-0 md:w-full max-w-[calc(100%_+_32px)] md:max-w-[572px] bg-black"},[r("source",{src:e.src,type:"application/x-mpegURL"},null,8,Kn),u[0]||(u[0]=B(" Your browser does not support the video tag. ",-1))],8,Zn))}}),Gn=Object.assign(zn,{__name:"PagesBlogPostContentBlocksPostVideo"}),Yn={key:0,class:"flex justify-center"},Qn={class:"flex flex-col gap-1 max-w-full md:items-center w-full"},Wn=["src","alt","title"],Xn={key:2,class:"flex flex-col gap-[2px] items-start text-left w-full md:max-w-[572px]"},Jn={key:0,class:"caption-eb14"},es={key:1,class:"caption-r10 text-gray-500"},ts=C({__name:"PostMedia",props:{mediaSrc:{},mediaAlt:{},title:{},description:{},mediaType:{}},setup(e){const t={IMAGE:"MEDIA_TYPE_IMAGE",VIDEO:"MEDIA_TYPE_VIDEO"};return(o,n)=>e.mediaSrc?(d(),m("div",Yn,[r("div",Qn,[e.mediaType===t.IMAGE?(d(),m("img",{key:0,src:e.mediaSrc,alt:e.mediaAlt||"",title:e.title||"",class:"md:rounded-2xl object-fill block ml-[-16px] w-[calc(100%_+_32px)] md:ml-0 md:w-full max-w-[calc(100%_+_32px)] md:max-w-[572px]"},null,8,Wn)):y("",!0),e.mediaType===t.VIDEO?(d(),k(Gn,{key:1,src:e.mediaSrc},null,8,["src"])):y("",!0),e.title||e.description?(d(),m("div",Xn,[e.title?(d(),m("p",Jn,_(e.title),
21)):y("",!0),e.description?(d(),m("p",es,_(e.description),1)):y("",!0)])):y("",!0)])])):y("",!0)}}),ns=Object.assign(ts,{__name:"PagesBlogPostContentBlocksPostMedia"}),ss={},os={class:"flex gap-1 justify-start items-center text-gray-500 body-r14"},as={class:"leading-none mt-[1px]"};function is(e,t){return d(),m("div",os,[t[0]||(t[0]=r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[r("path",{d:"M9 16.5C4.86157 16.5 1.5 13.1384 1.5 9C1.5 4.86157 4.86157 1.5 9 1.5C13.1384 1.5 16.5 4.86157 16.5 9C16.5 13.1384 13.1384 16.5 9 16.5ZM5.32623 9.90029H8.99274C9.31946 9.90029 9.57357 9.64618 9.57357 9.32672V4.56389C9.57357 4.24443 9.31946 3.99032 8.99274 3.99032C8.67328 3.99032 8.41917 4.24443 8.41917 4.56389V8.75315H5.32623C4.99952 8.75315 4.75266 9 4.75266 9.32672C4.75266 9.64618 4.99952 9.90029 5.32623 9.90029Z",fill:"currentColor"})],-1)),r("span",as,[D(e.$slots,"default")])])}const ls=Object.assign(U(ss,[["render",is]]),{__name:"PagesBlogPostContentBlocksPostDuration"}),rs=["noopener","noreferrer"],cs=["noindex","nofollow","noopener","noreferrer"],us=["paw-champ.com","getpawchamp.com"];function ds(e){const t=e.match(/\brel=["']([^"']*)["']/i);return t?(t[1]??"").split(/\s+/).filter(Boolean):[]}function fe(e,t){const o=/\brel=["'][^"']*["']/i.test(e);if(!t.length)return o?e.replace(/\s*\brel=["'][^"']*["']/i,""):e;const n=`rel="${t.join(" ")}"`;return o?e.replace(/\brel=["'][^"']*["']/i,n):`${e} ${n}`}function ps(e,t){return t&&e.startsWith(t)?!0:us.some(o=>e.includes(o))}function ms(e,t){const o=e.replace(/&amp;/g,"&");let n;try{n=new URL(o)}catch{return e}const s={};n.searchParams.forEach((u,p)=>{s[p]=u});const i=Ne(s,{},t),l=new URLSearchParams;return Object.entries(i).forEach(([u,p])=>{typeof p=="string"&&l.set(u,p)}),n.search=l.toString(),n.toString().replace(/&/g,"&amp;")}function fs(e,t={}){const{siteOrigin:o,language:n}=t;return e?e.replace(/<a([^>]*)>/gi,(s,i)=>{const l=i.match(/href=["']([^"']*)["']/i);if(!l)return`<a${i}>`;const u=l[1]??"";if(!u.startsWith("http://")&&!u.startsWith("https://"))return`<a${i}>`;if(ps(u,o)){const c=n?ms(u,n):u,g=c===u?i:i.replace(/href=["']([^"']*)["']/i,()=>`href="${c}"`),v=ds(g).filter(f=>!cs.includes(f));return`<a${fe(g,v)}>`}const p=i.replace(/\s*\btarget=["'][^"']*["']/i,"");return`<a target="_blank"${fe(p,rs)}>`}):""}const gs={__typename:"BlogSubscriptionForm",id:"subscription-form-inject"},ge=3;function _s(e){return[...e.slice(0,ge),gs,...e.slice(ge)]}const hs={class:"post-content flex flex-col gap-14 pt-0 md:pt-14"},vs={key:0,class:"flex flex-col gap-4"},bs=["innerHTML"],Cs=["data-cta-text","data-cta-link"],xs={key:2},ys={key:3},Ss={key:4},ws={key:5},ks=["innerHTML"],Ps=C({__name:"PostContent",props:{post:{}},setup(e){const t=e,n=ie().public.siteUrl||Q().origin,{language:s}=K(),i=["BlogText","BlogTip"],l=P(()=>_s(t.post.content??[]).map(u=>i.includes(u.__typename)?{...u,text:fs(u.text,{siteOrigin:n,language:s.value})}:u));return(u,p)=>(d(),m("div",hs,[(d(!0),m(N,null,Z(a(l),c=>(d(),m(N,{key:c.id},[c.__typename==="BlogSubscriptionForm"?(d(),k(nn,{key:0,"article-slug":e.post.alias},null,8,["article-slug"])):(d(),k(a(xn),{key:1},{default:S(()=>[c.__typename==="BlogText"?(d(),m("div",vs,[c.headline?(d(),k(a(ln),{key:0,id:`anchor-${c.id}`,"data-anchor-id":`anchor-${c.id}`,"data-anchor-content":c.headline},{default:S(()=>[B(_(c.headline),1)]),_:2},1032,["id","data-anchor-id","data-anchor-content"])):y("",!0),r("div",{class:"post-text-block",innerHTML:c.text},null,8,bs)])):y("",!0),c.__typename==="BlogButton"?(d(),m("div",{key:1,"data-post-cta":"","data-cta-text":c.text,"data-cta-link":c.link},[h(a(Bn),{id:`anchor-${c.id}`,"post-title":e.post.title,"post-alias":e.post.alias,"button-text":c.text,"button-link":c.link,headline:c.headline||"",description:c.description||"","image-src":c.media||"","image-alt":c.mediaAlt||"","image-title":c.mediaTitle||"","data-anchor-id":`anchor-${c.id}`,"data-anchor-content":c.headline||""},null,8,["id","post-title","post-alias","button-text","button-link","headline","description","image-src","image-alt","image-title","data-anchor-id","data-anchor-content"])],8,Cs)):y("",!0),c.__typename==="BlogQuote"?(d(),m("div",xs,[h(a(qn),{quote:c.text,author:c.authorSource},null,8,["quote","author"])])):y("",!0),c.__typename==="BlogMedia"?(d(),m("div",ys,[h(a(ns),{"media-src":c.media,title:c.mediaTitle||"",description:c.description||"","media-alt":c.mediaAlt||"","media-type":c.type},null,8,["media-src","title","description","media-alt","media-type"])])):y("",!0),c.__typename==="BlogSummary"?(d(),m("div",Ss,[h(a(Vn),null,{default:S(()=>[h(a(me),{id:`anchor-${c.id}`,"data-anchor-id":`anchor-${c.id}`,"data-anchor-content":c.headline},{default:S(()=>[B(_(c.headline),1)]),_:2},1032,["id","data-anchor-id","data-anchor-content"]),h(a(hn),null,{default:S(()=>[B(_(c.summary),1)]),_:2},1024)]),_:2},1024)])):y("",!0),c.__typename==="BlogTip"?(d(),m("div",ws,[h(a(An),null,{default:S(()=>[h(a(me),{id:`anchor-${c.id}`,"data-anchor-id":`anchor-${c.id}`,"data-anchor-content":c.headline},{default:S(()=>[B(_(c.headline),1)]),_:2},1032,["id","data-anchor-id","data-anchor-content"]),r("div",{class:"post-text-block",innerHTML:c.text},null,8,ks)]),_:2},1024)])):y("",!0)]),_:2},1024))],64))),128))]))}}),$s=Object.assign(Ps,{__name:"PagesBlogPostContent"}),Es={class:"flex flex-col gap-6 p-4 md:p-6"},Ts={class:"flex flex-col gap-2 items-center"},Rs={class:"h3-b md:h2-b text-center pt-5"},Bs={class:"body-r16 text-center"},Ls={class:"w-full mt-2"},Is=C({__name:"FeedbackPopup",props:{open:{type:Boolean}},emits:["click:sendFeedback"],setup(e,{emit:t}){const{t:o}=R(),n=e,s=b(""),i=t,l=b(n.open),u=p=>{l.value=p};return M(()=>n.open,p=>{l.value=p,s.value=""}),(p,c)=>(d(),k(re,{open:l.value,"onUpdate:open":[c[2]||(c[2]=g=>l.value=g),u],"show-close":!0,"close-on-esc":!0,"close-on-backdrop":!0},{default:S(()=>[r("div",Es,[r("div",Ts,[r("div",Rs,_(a(o)("shared.modals.postFeedback.title")),1),r("div",Bs,_(a(o)("shared.modals.postFeedback.description")),1),r("div",Ls,[h(a(he),{modelValue:s.value,"onUpdate:modelValue":c[0]||(c[0]=g=>s.value=g),variant:a(Ue).TEXT_AREA,placeholder:a(o)("shared.modals.postFeedback.placeholder")},null,8,["modelValue","variant","placeholder"])])]),h(a(O),{variant:a(A).PRIMARY,class:"w-full",onClick:c[1]||(c[1]=g=>i("click:sendFeedback",s.value)),disabled:!s.value},{default:S(()=>[B(_(a(o)("shared.modals.postFeedback.submitButtonText")),1)]),_:1},8,["variant","disabled"])])]),_:1},8,["open"]))}}),Os=Object.assign(Is,{__name:"PopupsFeedbackPopup"}),As={class:"flex flex-col gap-4 items-center p-4 md:p-6"},Hs={class:"flex flex-col gap-2 items-center"},Fs={class:"h3-b md:h2-b text-center"},Ms={class:"body-r16 text-center"},Vs=C({__name:"FeedbackSuccessPopup",setup(e){const t=b(!1),{t:o}=R();return(n,s)=>(d(),k(re,{open:t.value,"onUpdate:open":s[0]||(s[0]=i=>t.value=i),"show-close":!0,"close-on-esc":!0,"close-on-backdrop":!0},{default:S(()=>[r("div",As,[s[1]||(s[1]=r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"49",he
2ight:"49",viewBox:"0 0 49 49",fill:"none"},[r("path",{d:"M24.4908 44.5C13.4519 44.5 4.5 35.544 4.5 24.5C4.5 13.456 13.4519 4.5 24.4908 4.5C35.5481 4.5 44.5 13.456 44.5 24.5C44.5 35.544 35.5481 44.5 24.4908 44.5ZM22.4954 33.9505C23.4657 33.9505 24.3444 33.4194 24.9302 32.6136L33.3146 20.196C33.7357 19.6099 33.8822 19.0421 33.8822 18.5293C33.8822 17.119 32.6373 16.0568 31.2277 16.0568C30.2757 16.0568 29.5618 16.5513 28.9394 17.522L22.4954 27.6502L19.8227 24.6099C19.2918 24.0055 18.6876 23.6758 17.8822 23.6758C16.4725 23.6758 15.2826 24.793 15.2826 26.2216C15.2826 26.881 15.4657 27.3938 16.0332 28.0531L20.024 32.6868C20.7014 33.456 21.5069 33.9505 22.4954 33.9505Z",fill:"#61C27D"})],-1)),r("div",Hs,[r("div",Fs,_(a(o)("shared.modals.postFeedbackSuccess.title")),1),r("div",Ms,_(a(o)("shared.modals.postFeedbackSuccess.description")),1)])])]),_:1},8,["open"]))}}),Ns=Object.assign(Vs,{__name:"PopupsFeedbackSuccessPopup"}),Us={class:"flex flex-col gap-4 md:gap-6 p-4 md:p-6"},js={class:"flex flex-col gap-2 items-center"},Ds={class:"with-gradient relative after:absolute after:content-[''] after:w-full after:h-[57px] after:bottom-0 after:left-0"},qs=["alt","title"],Zs={class:"h3-b md:h2-b text-center"},Ks={class:"body-r16"},zs={class:"grid gap-4 md:grid-cols-2 grid-cols-1"},Gs=C({__name:"ReactionPopup",props:{open:{type:Boolean}},emits:["submit","cancel"],setup(e){const{t}=R(),o=e,n=b(o.open),s=i=>{n.value=i};return M(()=>o.open,i=>{n.value=i}),(i,l)=>(d(),k(re,{open:n.value,"onUpdate:open":[l[2]||(l[2]=u=>n.value=u),s],"show-close":!1,"close-on-esc":!0,"close-on-backdrop":!0},{default:S(()=>[r("div",Us,[r("div",js,[r("div",Ds,[r("img",{src:"https://images.paw-champ.com/pc/images/common/dog-with-star-glasses.png",alt:a(t)("shared.modals.postReaction.title"),title:a(t)("shared.modals.postReaction.title"),width:"260",height:"260",class:"block w-full max-w-[260px] mx-auto"},null,8,qs)]),r("div",Zs,_(a(t)("shared.modals.postReaction.title")),1),r("div",Ks,_(a(t)("shared.modals.postReaction.description")),1)]),r("div",zs,[h(a(O),{variant:a(A).PRIMARY,type:a(q).LINK,href:"https://www.trustpilot.com/evaluate/paw-champ.com",target:"_blank",rel:"noopener noreferrer",onClick:l[0]||(l[0]=u=>i.$emit("submit"))},{default:S(()=>[B(_(a(t)("shared.modals.postReaction.submitButtonText")),1)]),_:1},8,["variant","type"]),h(a(O),{variant:a(A).SECONDARY,onClick:l[1]||(l[1]=u=>i.$emit("cancel"))},{default:S(()=>[B(_(a(t)("shared.modals.postReaction.cancelButtonText")),1)]),_:1},8,["variant"])])])]),_:1},8,["open"]))}}),Ys=Object.assign(U(Gs,[["__scopeId","data-v-3e5b6975"]]),{__name:"PopupsReactionPopup"}),Qs={class:"flex flex-col gap-4"},Ws={class:"caption-eb20 md:body-b16 text-center"},Xs=C({__name:"PostReactions",props:{postTitle:{},postAlias:{}},setup(e){const t=e,{t:o}=R(),{sendLikeAction:n,sendDislikeAction:s}=z(),i=b(""),l=b(!1),u=b(!1),p=b(!1);M(i,T=>{l.value=T==="like",u.value=T==="dislike"});function c(){i.value=""}function g(T){i.value=T}function v(){l.value=!1,i.value="",n(t.postTitle,"not_now",t.postAlias)}function f(){u.value=!1,i.value="",s(t.postTitle,"close",t.postAlias)}function $(){i.value="like",l.value=!1,n(t.postTitle,"leave_review",t.postAlias)}function E(T){u.value=!1,p.value=!0,s(t.postTitle,"submit",t.postAlias,T)}const H=P(()=>({like:o("pages.blog.post.postReactions.like"),dislike:o("pages.blog.post.postReactions.dislike")}));return(T,x)=>(d(),m(N,null,[r("div",Qs,[r("div",Ws,_(a(o)("pages.blog.post.postReactions.title")),1),h(a(je),{action:i.value,"onUpdate:action":x[0]||(x[0]=w=>i.value=w),texts:a(H),onAction:g},null,8,["action","texts"])]),r("div",null,[h(Ys,{open:l.value,"onUpdate:open":x[1]||(x[1]=w=>l.value=w),onClose:v,onCancel:v,onSubmit:$},null,8,["open"]),h(Os,{open:u.value,"onUpdate:open":x[2]||(x[2]=w=>u.value=w),onClose:f,"onClick:sendFeedback":E},null,8,["open"]),h(Ns,{open:p.value,"onUpdate:open":x[3]||(x[3]=w=>p.value=w),onClose:c},null,8,["open"])])],64))}}),He=Object.assign(Xs,{__name:"PagesBlogPostReactions"}),Js=e=>e<.5?2*e*e:-1+(4-2*e)*e;function eo(e){return e.activeTop-e.containerTop+e.scrollTop-e.containerHeight/2+e.activeHeight/2}function to(e,t,{cancel:o,duration:n=600}={}){o?.();let s=null;const i=e.scrollTop,l=t-i,u=performance.now(),p=c=>{const g=Math.min((c-u)/n,1);e.scrollTop=i+l*Js(g),g<1&&(s=requestAnimationFrame(p))};return s=requestAnimationFrame(p),()=>{s!==null&&cancelAnimationFrame(s)}}const no=["aria-expanded"],so=["href","aria-current","onClick"],oo={class:"hidden md:block pt-10 short:pt-6 md:flex-shrink-0"},ao=C({__name:"PostTableOfContent",props:{postTitle:{},postAlias:{},headingList:{},activeHeadingId:{},scrollToHeadingById:{type:Function}},setup(e){const t=e,{t:o}=R(),{sendContentAction:n}=z(),s=b(null),i=b(null),l=b(!0);let u=null;M(()=>t.activeHeadingId,g=>{if(!g||!i.value)return;const v=i.value.querySelector('[aria-current="true"]');if(!v)return;const f=i.value,$=eo({activeTop:v.getBoundingClientRect().top,containerTop:f.getBoundingClientRect().top,scrollTop:f.scrollTop,containerHeight:f.clientHeight,activeHeight:v.offsetHeight});u=to(f,$,{cancel:u})},{flush:"post"}),Y(()=>{u?.()}),rt(s,()=>{l.value||(n(t.postTitle,X.COLLAPSE,t.postAlias),l.value=!0)});function p(){n(t.postTitle,l.value?X.EXPAND:X.COLLAPSE,t.postAlias),l.value=!l.value}function c(g){n(t.postTitle,X.NAVIGATE_TO_CHAPTER,t.postAlias),t.scrollToHeadingById(g)}return(g,v)=>(d(),m("aside",{class:"w-full pt-6 md:pt-0 md:w-[266px] select-none md:flex md:flex-col",ref_key:"tableOfContentRef",ref:s},[r("div",{ref_key:"listContainerRef",ref:i,class:"md:flex-initial md:overflow-y-auto md:min-
2h-0 md:border md:border-gray-250 md:rounded-2xl"},[r("div",{class:V(["md:hidden body-r16 flex justify-between items-center px-4 py-3 border cursor-pointer",a(l)?"bg-gray-200 rounded-xl border-gray-250 text-black-900":"text-white bg-black-800 border-black-800 rounded-t-xl"]),"aria-expanded":!a(l),"aria-controls":"table-of-contents",role:"button",onClick:p},[r("span",null,_(a(o)("pages.blog.post.postTableOfContent.title")),1),h(a(De),{class:V(a(l)?"rotate-0":"rotate-180")},null,8,["class"])],10,no),r("div",{class:V(["absolute t-0 l-0 w-full bg-white md:static rounded-b-2xl",{"with-shadow":!a(l)}])},[(d(!0),m(N,null,Z(e.headingList,f=>(d(),m("div",{key:f.id,class:V(["border-x border-b border-gray-250 last:rounded-b-2xl overflow-hidden border-t-0 md:border-x-0 md:first:border-t-0 md:last:border-b-0 md:last:rounded-b-none",{"text-blue-700 bg-blue-100 body-b16":e.activeHeadingId===f.id,"body-r16":e.activeHeadingId!==f.id,"hidden md:block":a(l)}])},[r("a",{href:`#${f.id}`,"aria-current":e.activeHeadingId===f.id?"true":void 0,class:"block p-4 hover:text-blue-600 truncate whitespace-nowrap",onClick:_e($=>c(f.id),["prevent"])},_(f.text),9,so)],2))),128))],2)],512),r("div",oo,[h(He,{"post-title":e.postTitle,"post-alias":e.postAlias},null,8,["post-title","post-alias"])])],512))}}),io=Object.assign(ao,{__name:"PagesBlogPostTableOfContent"});function lo(){const e=b(""),t=b(""),o=new Set;let n=[],s=null;const i=()=>{const l=n.findLast(u=>o.has(u));l&&(e.value=l.dataset.ctaText??"",t.value=l.dataset.ctaLink??"")};return j(()=>{window.innerWidth<Be.md||(s=new IntersectionObserver(l=>{l.forEach(u=>{u.isIntersecting?o.add(u.target):o.delete(u.target)}),i()},{threshold:0}),le(()=>{n=Array.from(document.querySelectorAll("[data-post-cta]"));const l=n[0];l&&(e.value=l.dataset.ctaText??"",t.value=l.dataset.ctaLink??""),n.forEach(u=>s.observe(u))}))}),Y(()=>{s?.disconnect()}),{ctaText:e,ctaLink:t}}const ro={class:"md:sticky md:top-[76px] short:md:top-16 md:self-start md:h-[calc(100vh-76px)] short:md:h-[calc(100vh-56px)] md:max-w-[266px] md:flex md:flex-col"},co={class:"md:pt-15 md:pb-10 md:flex md:flex-col md:flex-1 md:min-h-0"},uo={key:0,class:"flex-col gap-2 items-center flex-shrink-0 hidden md:flex md:pb-10 short:md:pb-6"},po={class:"body-r16 text-red-250"},mo={class:"block truncate"},fo=C({__name:"PostDesktopSidebar",props:{postTitle:{},postAlias:{},headingList:{},activeHeadingId:{},scrollToHeadingById:{type:Function}},emits:["click:cta"],setup(e){const{t}=R(),{ctaText:o,ctaLink:n}=lo();return(s,i)=>(d(),m("div",ro,[r("div",co,[a(o)&&a(n)?(d(),m("div",uo,[h(ut,{class:"short:w-[144px] short:h-[144px]"}),r("div",po,_(a(t)("pages.home.advantagesSection.codeText")),1),h(a(O),{variant:a(A).PRIMARY,type:a(q).LINK,href:a(n),class:"max-w-full w-full mt-2 block min-h-[50px]",target:"_blank",rel:"noopener noreferrer",onClick:i[0]||(i[0]=l=>s.$emit("click:cta",a(n)))},{default:S(()=>[r("span",mo,_(a(o)),1)]),_:1},8,["variant","type","href"])])):y("",!0),h(io,{class:"md:flex-1 md:min-h-0","post-title":e.postTitle,"heading-list":e.headingList,"active-heading-id":e.activeHeadingId,"scroll-to-heading-by-id":e.scrollToHeadingById,"post-alias":e.postAlias},null,8,["post-title","heading-list","active-heading-id","scroll-to-heading-by-id","post-alias"])])]))}}),go=Object.assign(fo,{__name:"PagesBlogPostDesktopSidebar"}),_o={key:0,class:"box-small flex flex-col gap-10 !px-0"},ho={class:"flex flex-col gap-3"},vo={class:"caption-r18 uppercase"},bo={class:"display-2"},Co=C({__name:"PostFaq",props:{post:{}},setup(e){const{t}=R(),o=e,n=P(()=>o.post.faqs.map(s=>({id:s.id,title:s.question,content:s.answer})));return(s,i)=>a(n).length?(d(),m("div",_o,[r("div",ho,[r("div",vo,_(a(t)("pages.blog.post.postFaq.title")),1),r("div",bo,_(a(t)("pages.blog.post.postFaq.faqs")),1)]),h(a(qe),{items:a(n)},null,8,["items"])])):y("",!0)}}),xo=Object.assign(Co,{__name:"PagesBlogPostFaq"}),Fe="https://news.google.com",yo=`${Fe}/swg/js/v1/publisher.js`,So="google-preferred-source",wo="manual",ko="light",Po="https://www.google.com/preferences/source",$o="pages.blog.post.googleFollow.buttonText",Eo="Google Follow";function To(){const e=ae(),{language:t}=K(),o=b(!1),n=Ke(null),s=i();l(),j(u);function i(){const v=ie().public.siteUrl||Q().origin,f=new URL(Po);return f.searchParams.set("q",new URL(v).hostname),f.href}
2function l(){Ze({link:[{rel:"preconnect",href:Fe}],script:[{id:So,src:yo,async:!0,"preferred-sources-control":wo,onerror:()=>e("[PreferredSource] Script failed to load",void 0)}]})}function u(){const g=window.PREFERRED_SOURCE??[];window.PREFERRED_SOURCE=g,g.push(p)}function p(g){g.init({theme:ko,lang:t.value}),n.value=g,o.value=!0}function c(){n.value&&n.value.addPreferredSource()}return{deeplink:s,isReady:o,addPreferredSource:c}}const Ro=C({__name:"PostPreferredSource",setup(e){const{t}=R(),{deeplink:o,isReady:n,addPreferredSource:s}=To(),i=P(()=>t($o,{},Eo));function l(u){n.value&&(u.preventDefault(),s())}return(u,p)=>(d(),k(a(O),{variant:a(A).SECONDARY,type:a(q).LINK,href:a(o),rel:"noopener noreferrer",target:"_blank",class:"flex gap-2 items-center justify-center px-4 h-11 w-full md:w-auto md:self-start !body-b16",onClick:l},{default:S(()=>[p[0]||(p[0]=r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none"},[r("path",{d:"M23.52 12.27c0-.79-.07-1.54-.2-2.27H12v4.51h6.47a5.53 5.53 0 0 1-2.4 3.63v3.02h3.89c2.27-2.09 3.56-5.17 3.56-8.89Z",fill:"#4285F4"}),r("path",{d:"M12 24c3.24 0 5.96-1.08 7.95-2.91l-3.89-3.02c-1.08.72-2.45 1.15-4.06 1.15-3.13 0-5.78-2.11-6.73-4.96H1.25v3.11A11.995 11.995 0 0 0 12 24Z",fill:"#34A853"}),r("path",{d:"M5.27 14.26a7.2 7.2 0 0 1 0-4.52V6.63H1.25a12 12 0 0 0 0 10.74l4.02-3.11Z",fill:"#FBBC05"}),r("path",{d:"M12 4.77c1.76 0 3.35.61 4.6 1.8l3.44-3.44C17.95 1.19 15.24 0 12 0 7.31 0 3.26 2.69 1.25 6.63l4.02 3.11C6.22 6.88 8.87 4.77 12 4.77Z",fill:"#EA4335"})],-1)),B(" "+_(a(i)),1)]),_:1},8,["variant","type","href"]))}}),Bo=Object.assign(Ro,{__name:"PagesBlogPostPreferredSource"});function Lo(e={}){const t=b(!1),o=b(!1),n=async(s={})=>{if(!o.value)throw new Error("Web Share API not supported");const i=s.url??e.url??Q().href;await navigator.share({...e,...s,url:i})};return j(()=>{t.value=!0,o.value=typeof navigator<"u"&&!!navigator.share}),{share:n,isSupported:o}}const Io=C({__name:"ShareNative",emits:["click"],setup(e,{emit:t}
2){const o=t,n=Q(),s=ke(Le.PAGE_TITLE),{share:i,isSupported:l}=Lo({title:s.value,url:n.href});function u(){i(),o("click")}return(p,c)=>a(l)?(d(),k(a(O),{key:0,variant:a(A).ICON,onClick:u},{default:S(()=>[...c[0]||(c[0]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},[r("path",{d:"M12.7873 15.9254C12.3376 15.9254 11.9599 15.5486 11.9599 15.109V6.10103L12.0319 4.76419L11.5552 5.3384L10.2693 6.70216C10.1254 6.86365 9.90955 6.95337 9.70272 6.95337C9.28905 6.95337 8.96531 6.6573 8.96531 6.23561C8.96531 6.02028 9.05524 5.85878 9.19912 5.70626L12.1667 2.86212C12.3736 2.65576 12.5714 2.58398 12.7873 2.58398C13.0121 2.58398 13.2099 2.65576 13.4167 2.86212L16.3754 5.70626C16.5283 5.85878 16.6182 6.02028 16.6182 6.23561C16.6182 6.6573 16.2765 6.95337 15.8718 6.95337C15.665 6.95337 15.4581 6.86365 15.3142 6.70216L14.0283 5.3384L13.5516 4.76419L13.6236 6.10103V15.109C13.6236 15.5486 13.2459 15.9254 12.7873 15.9254ZM7.61639 23.1569C5.67394 23.1569 4.66675 22.161 4.66675 20.241V11.4484C4.66675 9.52835 5.67394 8.53245 7.61639 8.53245H10.2603V10.291H7.7243C6.88797 10.291 6.42934 10.7306 6.42934 11.6009V20.0885C6.42934 20.9587 6.88797 21.3984 7.7243 21.3984H17.8592C18.6865 21.3984 19.1542 20.9587 19.1542 20.0885V11.6009C19.1542 10.7306 18.6865 10.291 17.8592 10.291H15.3142V8.53245H17.9671C19.9096 8.53245 20.9167 9.53732 20.9167 11.4484V20.241C20.9167 22.152 19.9096 23.1569 17.9671 23.1569H7.61639Z",fill:"currentColor"})],-1)])]),_:1},8,["variant"])):y("",!0)}}),Oo=Object.assign(Io,{__name:"PagesBlogPostShareButtonsShareNative"}),Ao=5e3;function Ho(e={}){const t=e.activeDuration??Ao,o=b(!1),n=b(""),s=b(!1);let i=null;j(()=>{o.value=!0,n.value=window.location.href}),Pe(()=>{i&&window.clearTimeout(i)});async function l(){if(!(!o.value||!n.value))try{await mt(n.value),s.value=!0,e.onCopied?.(n.value),i&&window.clearTimeout(i),i=window.setTimeout(()=>s.value=!1,t)}catch(u){e.onError?.(u)}}return{isActive:s,handleClick:l,currentUrl:n}}const Fo=C({__name:"ShareClipboard",emits:["click"],setup(e,{emit:t}){const{isActive:o,handleClick:n}=Ho(),s=t;function i(){s("click"),n()}return(l,u)=>(d(),k(a(O),{variant:a(A).ICON,class:V({"border-blue-200 bg-blue-100 text-blue-600":a(o)}),"aria-pressed":a(o),"aria-label":"Copy page link",onClick:i},{default:S(()=>[...u[0]||(u[0]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},[r("path",{d:"M12.5154 17.3419C11.4534 17.1405 10.7301 16.7376 10.19 16.2066C7.91946 13.9361 7.93777 10.7501 10.1808 8.50705L13.3669 5.31186C15.6099 3.06882 18.7959 3.05051 21.0664 5.33017C23.3369 7.60068 23.3278 10.7867 21.0756 13.0298L18.448 15.6482C18.6037 14.9432 18.5121 14.1284 18.2191 13.4601L19.7939 11.8853C21.3319 10.3473 21.3411 8.1683 19.7847 6.60275C18.2375 5.05551 16.0493 5.05551 14.5021 6.60275L11.4626 9.6423C9.92447 11.1804 9.92447 13.3777 11.4717 14.9249C12.0393 15.4925 12.8084 15.8404 13.907 15.9411L12.5154 17.3419ZM13.3211 9.62399C14.3922 9.82541 15.1155 10.2282 15.6465 10.7684C17.917 13.0298 17.9079 16.2158 15.6557 18.468L12.4788 21.654C10.2357 23.8971 7.04971 23.9154 4.77921 21.6449C2.5087 19.3744 2.51785 16.1792 4.77005 13.9361L7.38846 11.3177C7.23282 12.0318 7.33353 12.8375 7.61734 13.5058L6.05179 15.0805C4.50455 16.6186 4.49539 18.8067 6.05179 20.3631C7.60818 21.9104 9.78714 21.9104 11.3344 20.3631L14.3739 17.3236C15.9212 15.7855 15.9212 13.5974 14.3648 12.041C13.8063 11.4825 13.0281 11.1255 11.9386 11.0247L13.3211 9.62399Z",fill:"currentColor"})],-1)])]),_:1},8,["variant","class","aria-pressed"]))}}),Mo=Object.assign(Fo,{__name:"PagesBlogPostShareButtonsShareClipboard"});function J(){const e=ie(),t=Q(),o=e.public.siteUrl||t.origin;return new URL(t.pathname+t.search,o).href}const Vo=C({__name:"ShareFacebook",emits:["click"],setup(e){const t=J(),o=`https://www.facebook.com/sharer/sharer.php?u=${encodeURIComponent(t)}`;return(n,s)=>(d(),k(a(O),{variant:a(A).ICON,type:a(q).LINK,href:o,rel:"noopener noreferrer",target:"_blank",onClick:s[0]||(s[0]=i=>n.$emit("click"))},{default:S(()=>[...s[1]||(s[1]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},[r("path",{d:"M15.0841 14.5612H17.6883L18.73 10.3945H15.0841V8.3112C15.0841 7.23828 15.0841 6.22786 17.1675 6.22786H18.73V2.72786C18.3904 2.68307 17.1081 2.58203 15.7539 2.58203C12.9258 2.58203 10.9175 4.30807 10.9175 7.47786V10.3945H7.79248V14.5612H10.9175V23.4154H15.0841V14.5612Z",fill:"currentColor"})],-1)])]),_:1},8,["variant","type"]))}}),No=Object.assign(Vo,{__name:"PagesBlogPostShareButtonsShareFacebook"}),Uo=C({__name:"ShareLinkedIn",emits:["click"],setup(e){const t=J(),o=`https://www.linkedin.com/sharing/share-offsite/?url=${encodeURIComponent(t)}`;return(n,s)=>(d(),k(a(O),{variant:a(A).ICON,type:a(q).LINK,href:o,rel:"noopener noreferrer",target:"_blank",onClick:s[0]||(s[0]=i=>n.$emit("click"))},{default:S(()=>[...s[1]||(s[1]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},[r("path",{d:"M7.72819 5.70938C7.72791 6.26191 7.50816 6.7917 7.11726 7.18221C6.72636 7.57271 6.19635 7.79194 5.64382 7.79167C5.09128 7.79139 4.56149 7.57163 4.17098 7.18074C3.78048 6.78984 3.56125 6.25983 3.56152 5.70729C3.5618 5.15476 3.78156 4.62496 4.17245 4.23446C4.56335 3.84395 5.09336 3.62472 5.6459 3.625C6.19843 3.62528 6.72823 3.84503 7.11873 4.23593C7.50924 4.62683 7.72847 5.15684 7.72819 5.70938ZM7.79069 9.33437H3.62402V22.376H7.79069V9.33437ZM14.374 9.33437H10.2282V22.376H14.3324V15.5323C14.3324 
211.7198 19.3011 11.3656 19.3011 15.5323V22.376H23.4157V14.1156C23.4157 7.68854 16.0615 7.92812 14.3324 11.0844L14.374 9.33437Z",fill:"currentColor"})],-1)])]),_:1},8,["variant","type"]))}}),jo=Object.assign(Uo,{__name:"PagesBlogPostShareButtonsShareLinkedIn"}),Do=C({__name:"ShareThreads",emits:["click"],setup(e){const o=`Check out this blog post! [${J()}]`,n=`https://threads.net/intent/post?text=${encodeURIComponent(o)}`;return(s,i)=>(d(),k(a(O),{variant:a(A).ICON,type:a(q).LINK,href:n,rel:"noopener noreferrer",target:"_blank",onClick:i[0]||(i[0]=l=>s.$emit("click"))},{default:S(()=>[...i[1]||(i[1]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},[r("path",{d:"M20.5522 9.3589C18.9095 3.24744 13.2605 3.62973 13.2605 3.62973C13.2605 3.62973 5.448 3.1089 5.448 12.9995C5.448 22.8901 13.2605 22.3704 13.2605 22.3704C13.2605 22.3704 17.9042 22.6787 20.0313 18.2891C20.7261 16.3537 20.5522 12.4839 13.7813 12.4839C13.7813 12.4839 10.6563 12.4839 10.6563 15.0881C10.6563 16.1047 11.698 17.1714 13.2605 17.1714C14.823 17.1714 16.5636 16.1016 16.9063 14.0464C17.948 7.7964 12.2188 7.27556 10.6563 9.87973",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])]),_:1},8,["variant","type"]))}}),qo=Object.assign(Do,{__name:"PagesBlogPostShareButtonsShareThreads"}),Zo=C({__name:"ShareX",emits:["click"],setup(e){const t=ke(Le.PAGE_TITLE),o=J(),n=`Check out this article from PawChamp - Dog & Puppy Training about ${t?.value??""}: ${o}`,s=`https://twitter.com/intent/tweet?text=${encodeURIComponent(n)}`;return(i,l)=>(d(),k(a(O),{variant:a(A).ICON,type:a(q).LINK,href:s,rel:"noopener noreferrer",target:"_blank",onClick:l[0]||(l[0]=u=>i.$emit("click"))},{default:S(()=>[...l[1]||(l[1]=[r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"26",height:"26",viewBox:"0 0 26 26",fill:"none"},[r("path",{d:"M18.3906 4.66602H21.2661L14.9848 11.7252L22.375 21.3327H16.5893L12.0545 15.507L6.87143 21.3327H3.9933L10.7112 13.7796L3.625 4.66733H9.55804L13.6509 9.99126L18.3906 4.66602ZM17.3795 19.6408H18.9732L8.6875 6.26989H6.97857L17.3795 19.6408Z",fill:"currentColor"})],-1)])]),_:1},8,["variant","type"]))}}),Ko=Object.assign(Zo,{__name:"PagesBlogPostShareButtonsShareX"}),zo={class:"flex items-center gap-4"},Go=C({__name:"PostShare",props:{postTitle:{},postAlias:{}},setup(e){const t=e,{sendShareAction:o}=z();function n(s){o(t.postTitle,s,t.postAlias)}return(s,i)=>(d(),m("div",zo,[h(a(Oo),{onClick:i[0]||(i[0]=l=>n("native"))}),h(a(Mo),{onClick:i[1]||(i[1]=l=>n("copy_url"))}),h(a(qo),{onClick:i[2]||(i[2]=l=>n("threads"))}),h(a(No),{onClick:i[3]||(i[3]=l=>n("facebook"))}),h(a(jo),{onClick:i[4]||(i[4]=l=>n("linkedin"))}),h(a(Ko),{onClick:i[5]||(i[5]=l=>n("x.com"))})]))}}),Yo=Object.assign(Go,{__name:"PagesBlogPostShare"}),Qo={class:"flex gap-1 justify-start items-center text-gray-500 body-r14"},Wo={class:"leading-none mt-[1px]"},Xo=C({__name:"PostUpdated",props:{date:{}},setup(e){const{t}=R(),{language:o}=K();return(n,s)=>(d(),m("div",Qo,[s[0]||(s[0]=r("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none"},[r("path",{d:"M3.86327 16.5C2.29027 16.5 1.5 15.7027 1.5 14.1005V4.64951C1.5 3.04726 2.29027 2.25 3.86327 2.25H14.1443C15.7173 2.25 16.5 3.055 16.5 4.64951V14.1005C16.5 15.695 15.7173 16.5 14.1443 16.5H3.86327ZM3.75038 15.2538H14.2421C14.9119 15.2538 15.2883 14.89 15.2883 14.1702V6.87099C15.2883 6.15888 14.9119 5.78734 14.2421 5.78734H3.75038C3.08053 5.78734 2.71174 6.15888 2.71174 6.87099V14.1702C2.71174 14.89 3.08053 15.2538 3.75038 15.2538ZM7.53613 8.56613C7.2727 8.56613 7.18239 8.48873 7.18239 8.21782V7.76114C7.18239 7.49022 7.2727 7.40508 7.53613 7.40508H7.98018C8.2436 7.40508 8.32639 7.49022 8.32639 7.76114V8.21782C8.32639 8.48873 8.2436 8.56613 7.98018 8.56613H7.53613ZM10.0349 8.56613C9.77145 8.56613 9.68113 8.48873 9.68113 8.21782V7.76114C9.68113 7.49022 9.77145 7.40508 10.0349 7.40508H10.4789C10.7423 7.40508 10.8327 7.49022 10.8327 7.76114V8.21782C10.8327 8.48873 10.7423 8.56613 10.4789 8.56613H10.0349ZM12.5336 8.56613C12.2702 8.56613 12.1874 8.48873 12.1874 8.21782V7.76114C12.1874 7.49022 12.2702 7.40508 12.5336 7.40508H12.9777C13.2411 7.40508 13.3314 7.49022 13.3314 7.76114V8.21782C13.3314 8.48873 13.2411 8.56613 12.9777 8.56613H12.5336ZM5.03738 11.0972C4.76643 11.0972 4.68364 11.0198 4.68364 10.7489V10.2922C4.68364 10.
20213 4.76643 9.94392 5.03738 9.94392H5.47391C5.74486 9.94392 5.82765 10.0213 5.82765 10.2922V10.7489C5.82765 11.0198 5.74486 11.0972 5.47391 11.0972H5.03738ZM7.53613 11.0972C7.2727 11.0972 7.18239 11.0198 7.18239 10.7489V10.2922C7.18239 10.0213 7.2727 9.94392 7.53613 9.94392H7.98018C8.2436 9.94392 8.32639 10.0213 8.32639 10.2922V10.7489C8.32639 11.0198 8.2436 11.0972 7.98018 11.0972H7.53613ZM10.0349 11.0972C9.77145 11.0972 9.68113 11.0198 9.68113 10.7489V10.2922C9.68113 10.0213 9.77145 9.94392 10.0349 9.94392H10.4789C10.7423 9.94392 10.8327 10.0213 10.8327 10.2922V10.7489C10.8327 11.0198 10.7423 11.0972 10.4789 11.0972H10.0349ZM12.5336 11.0972C12.2702 11.0972 12.1874 11.0198 12.1874 10.7489V10.2922C12.1874 10.0213 12.2702 9.94392 12.5336 9.94392H12.9777C13.2411 9.94392 13.3314 10.0213 13.3314 10.2922V10.7489C13.3314 11.0198 13.2411 11.0972 12.9777 11.0972H12.5336ZM5.03738 13.6361C4.76643 13.6361 4.68364 13.5509 4.68364 13.28V12.8233C4.68364 12.5524 4.76643 12.475 5.03738 12.475H5.47391C5.74486 12.475 5.82765 12.5524 5.82765 12.8233V13.28C5.82765 13.5509 5.74486 13.6361 5.47391 13.6361H5.03738ZM7.53613 13.6361C7.2727 13.6361 7.18239 13.5509 7.18239 13.28V12.8233C7.18239 12.5524 7.2727 12.475 7.53613 12.475H7.98018C8.2436 12.475 8.32639 12.5524 8.32639 12.8233V13.28C8.32639 13.5509 8.2436 13.6361 7.98018 13.6361H7.53613ZM10.0349 13.6361C9.77145 13.6361 9.68113 13.5509 9.68113 13.28V12.8233C9.68113 12.5524 9.77145 12.475 10.0349 12.475H10.4789C10.7423 12.475 10.8327 12.5524 10.8327 12.8233V13.28C10.8327 13.5509 10.7423 13.6361 10.4789 13.6361H10.0349Z",fill:"currentColor"})],-1)),r("span",Wo,_(a(t)("pages.blog.post.postHero.lastUpdated"))+": "+_(a(Ie)(e.date,a(o))),1)]))}}),Jo=Object.assign(Xo,{__name:"PagesBlogPostContentBlocksPostUpdated"}),ea={class:"grid grid-cols-1 md:grid-cols-2 gap-x-10 items-stretch"},ta={class:"md:col-span-1 min-h-0"},na={class:"flex justify-start items-center gap-4 text-gray-350 body-r14"},sa={class:"h1-b md:display-3 pt-2 pb-4 md:py-4"},oa={class:"relative ml-[-16px] w-[calc(100%_+_32px)] md:w-full md:ml-0 md:row-span-2 md:rounded-2xl overflow-hidden min-h-0 aspect-[16/9] md:aspect-auto"},aa=["src","alt","title"],ia={class:"md:col-span-1 flex flex-col gap-4 justify-start min-h-0 pt-4 md:pt-0"},la={key:0,class:"flex flex-col gap-[6px]"},ra={class:"caption-r12 text-gray-700"}
2,ca={class:"px-3 py-3 flex flex-col gap-4 rounded-lg bg-gray-200"},ua={class:"flex gap-2 items-center"},da=["src","alt","title"],pa={class:"body-b16 leading-none"},ma={class:"body-r16"},fa={key:1,class:"flex flex-col gap-[6px]"},ga={class:"caption-r12 text-gray-700"},_a={class:"px-3 py-3 flex flex-col gap-4 rounded-lg bg-gray-200"},ha={class:"flex gap-2 items-center"},va=["src","alt","title"],ba={class:"body-b16 leading-none"},Ca={class:"body-r16"},xa=C({__name:"PostHero",props:{post:{}},setup(e){const{t}=R();return(o,n)=>(d(),m("div",ea,[r("div",ta,[r("div",na,[h(ls,null,{default:S(()=>[B(_(e.post.duration)+" "+_(a(t)("shared.common.minutesShort")),1)]),_:1}),h(Jo,{date:e.post.publishingDate},null,8,["date"])]),r("h1",sa,_(e.post.title),1)]),r("figure",oa,[r("img",{src:e.post.cover,alt:e.post.coverAlt||"",title:e.post.coverTitle||"",class:"absolute inset-0 w-full h-full object-cover"},null,8,aa)]),r("div",ia,[e.post.authors.length?(d(),m("div",la,[r("div",ra,_(a(t)("pages.blog.post.postHero.writtenBy")),1),r("div",ca,[(d(!0),m(N,null,Z(e.post.authors,s=>(d(),m("div",{key:s.id,class:"relative flex gap-2 flex-col after:absolute after:content-[''] after:w-full after:h-[1px] after:bg-gray-250 after:-bottom-[8px] after:left-0 w-full last:after:hidden"},[r("div",ua,[r("img",{src:`${s.photo}&width=48`,alt:s.name,title:s.name,class:"w-6 h-6 rounded-full"},null,8,da),r("span",pa,_(s.name),1)]),r("div",ma,_(s.title),1)]))),128))])])):y("",!0),e.post.reviewers.length?(d(),m("div",fa,[r("div",ga,_(a(t)("pages.blog.post.postHero.reviewedBy")),1),r("div",_a,[(d(!0),m(N,null,Z(e.post.reviewers,s=>(d(),m("div",{key:s.id,class:"relative flex gap-2 flex-col after:absolute after:content-[''] after:w-full after:h-[1px] after:bg-gray-250 after:-bottom-[8px] after:left-0 w-full last:after:hidden"},[r("div",ha,[r("img",{src:`${s.photo}&width=48`,alt:s.name,title:s.name,class:"w-6 h-6 rounded-full"},null,8,va),r("span",ba,_(s.name),1)]),r("div",Ca,_(s.title),1)]))),128))])])):y("",!0),h(Yo,{"post-title":e.post.title,"post-alias":e.post.alias},null,8,["post-title","post-alias"]),h(Bo)])]))}}),ya=Object.assign(xa,{__name:"PagesBlogPostHero"}),Sa={key:0,class:"fixed bottom-0 left-0 right-0 z-50 p-4 md:hidden"},wa=C({__name:"PostStickyCta",props:{ctaText:{},ctaLink:{},isVisible:{type:Boolean}},emits:["click"],setup(e){return(t,o)=>(d(),k(ze,{name:"sticky-cta"},{default:S(()=>[e.isVisible?(d(),m("div",Sa,[h(a(O),{variant:a(A).PRIMARY,type:a(q).LINK,href:e.ctaLink,class:"w-full max-w-[500px] mx-auto",target:"_blank",rel:"noopener noreferrer",onClick:o[0]||(o[0]=n=>t.$emit("click"))},{default:S(()=>[B(_(e.ctaText),1)]),_:1},8,["variant","type","href"])])):y("",!0)]),_:1}))}}),ka=Object.assign(U(wa,[["__scopeId","data-v-ab970529"]]),{__name:"PagesBlogPostStickyCta"});async function Pa(e){const{language:t}=K(),{data:o,pending:n,error:s}=await Oe("GetRecommendedPosts",()=>Ge({categoryIds:e.value||[],language:$e[t.value]}),{server:!0,lazy:!1,watch:[e,t]});return{data:o,isLoading:n,error:s}}async function $a(e){if(!e.id)return P(()=>[]);const t=P(()=>e.categories.map(n=>n.id)),{data:o}=await Pa(t);return P(()=>{const n=e.id!=null?String(e.id):null,s=(o.value?.recommended.posts||[]).filter(p=>p&&String(p.id)!==n);if(s.length>=3)return s.slice(0,3);const i=(o.value?.blogPosts.posts||[]).filter(p=>p&&String(p.id)!==n),l=new Set(s.map(p=>String(p.id))),u=i.filter(p=>!l.has(String(p.id)));return[...s,...u].slice(0,3)})}const Ea={class:""},Ta={class:"flex flex-col gap-10 w-full"},Ra={class:"flex flex-col gap-3 w-full"},Ba={class:"caption-r18 uppercase"},La={class:"display-2"},Ia={class:"grid grid-cols-1 md:grid-cols-3 gap-12 md:gap-10"},Oa=C({__name:"SectionRecommended",props:{post:{}},async setup(e){let t,o;const{t:n}=R(),{isMdUp:s}=dt(),{createLink:i,language:l}=K(),u=f=>i("journal-slug",{slug:f},{from:"article_recommended"}),p=f=>({image:f.cover,imageAlt:f.coverAlt||f.title,imageTitle:f.coverTitle||f.title,date:Ie(f.publishingDate,l.value),readTime:`${f.duration} ${n("shared.common.minutesShort")}`,title:f.title,tags:f.categories.map($=>$.name),type:s.value?pe.BIG:pe.SMALL,link:u(f.alias)}),c=e,g=([t,o]=Ee(()=>$a(c.post)),t=await t,o(),t),v=P(()=>g.value.map(p));return(f,$)=>(d(),m("div",Ea,[r("div",Ta,[r("div",Ra,[r("p",Ba,_(a(n)("pages.blog.post.postRecommended.label")),1),r("p",La,_(a(n)("pages.blog.post.postRecommended.title")),1)]),r("div",Ia,[(d(!0),m(N,null,Z(a(v),E=>(d(),m("div",{class:"relative md:before:content-none before:absolute before:content-[''] before:w-full before:h-[1px] before:bg-gray-200 before:left-0 before:bottom-[-24px] before:z-0",key:E.title},[h(Qe,{to:E.link},{default:S(()=>[h(a(Ye),Se({ref_for:!0},E,{class:"w-full h-full"}),null,16)]),_:2},1032,["to"])]))),128))])])]))}}),Aa=Object.assign(Oa,{__name:"PagesBlogSectionRecommended"});function Ha(){const{$amplitude:e}=ve();return{sendArticleCtaEvent:({postName:o,postAlias:n,ctaLink:s,bannerType:i})=>{e&&e.track("blog_article_banner_action",{article_name:o,article_alias:n,banner_link:s,banner_type:i,funnel_name:"",banner_name:""})}}}const Fa=[["optionalHeadline","headline"],["optionalText","text"],["o
2ptionalMedia","media"],["tipHeadline","headline"],["tipText","text"]],Ma=e=>({...e,content:e.content.map(t=>{const o={...t};return Fa.forEach(([n,s])=>{n in o&&(o[s]=o[n]??"",Reflect.deleteProperty(o,n))}),o})});async function Va(){const e=Te(),{language:t}=K(),o=ae(),n=P(()=>e.params.slug);if(!n.value)return{blogPost:b(null),pending:b(!1),error:b(null)};const{data:s,pending:i,error:l}=await Oe(()=>`GetBlogPost:${n.value}:${t.value}`,()=>We({slug:n.value,language:$e[t.value]}),{server:!0,lazy:!1,watch:[t,()=>n.value]});if(l.value){const p=ft(l.value);return o("Failed to load blog post",p,{slug:n.value,language:t.value}),se({statusCode:404,statusMessage:"Page Not Found",fatal:!1})}return s.value?.blogPost?{blogPost:P(()=>s.value?.blogPost?Ma(s.value.blogPost):null),pending:i,error:l}:(o("Blog post not found",new Error("Blog post not found"),{slug:n.value,language:t.value}),se({statusCode:404,statusMessage:"Page Not Found",fatal:!1}))}const Na=40;function Ua(e,t,o){return e-t>o?"down":e-t<-o?"up":null}function ja(e){let t=null,o=null;return e.forEach(n=>{const s=n.getBoundingClientRect();s.bottom>0&&s.top<window.innerHeight&&(t=n),s.bottom<=0&&(o=n)}),{activeCta:t,lastPassedCta:o}}function Da(e){const t=b(""),o=b(""),n=b(!1),s=b(!1),i=b(!1),l=b(!1);let u=[],p=0,c=null;const g=E=>{t.value=E.dataset.ctaText??"",o.value=E.dataset.ctaLink??""},v=()=>{const E=window.scrollY,H=Ua(E,p,Na);if(H&&(p=E,l.value=H==="up"),e.value){const I=e.value.getBoundingClientRect();i.value=I.bottom>=window.innerHeight}const{activeCta:T,lastPassedCta:x}=ja(u);if(T){n.value=!0,s.value=!0,c=T,g(T);return}s.value=!1,x&&(n.value=!0);const w=c??x;w&&g(w)};j(()=>{window.innerWidth>=Be.md||(p=window.scrollY,window.addEventListener("scroll",v,{passive:!0}),le(()=>{e.value&&(u=Array.from(e.value.querySelectorAll("[data-post-cta]")));const E=u[0];E&&g(E),v()}))});const f=Te();M(()=>f.fullPath,()=>{n.value=!1}),Y(()=>{window.removeEventListener("scroll",v)});const $=P(()=>n.value&&l.value&&i.value&&!s.value&&!!t.value);return{ctaText:t,ctaLink:o,isVisible:$}}function qa(e){if(!e?.value)return;const{sendPageView:t}=z(),o=Xe(),n=Je(),s=n.query.from;if(s){t(e.value,s);const i={...n.query};delete i.from,o.replace({query:i}).catch(()=>{})}else t(e.value)}function Za(e,t=[25,50,75,100],o=0){const n=[...new Set(t)].sort((x,w)=>x-w),s=new Set;let i=0,l=null,u=null,p=[],c=null,g=0;const v=()=>typeof performance<"u"?performance.now():Date.now(),f=()=>Math.round(v()-i);function $(x){getComputedStyle(x).position==="static"&&(c=x.style.position||"",x.style.position="relative")}function E(x){const w=Math.max(x.scrollHeight,x.getBoundingClientRect().height);p.forEach(({milestone:I,el:L})=>{L.style.top=`${I/100*w}px`})}function H(){const x=e.value;x&&(i=v(),g=0,$(x),p=n.map(w=>{const I=document.createElement("div");return Object.assign(I.style,{position:"absolute",left:"0",width:"1px",height:"1px",opacity:"0",pointerEvents:"none"}),I.className="scroll-milestone-sentinel",I.dataset.milestone=String(w),x.appendChild(I),{milestone:w,el:I}}),l=new IntersectionObserver(w=>{if(g>=n.length)return;const I=w.filter(L=>L.isIntersecting).map(L=>Number(L.target.dataset.milestone)).sort((L,F)=>L-F);for(const L of I){if(g>=n.length)break;const F=n[g];if(L!==F)continue;const ee=f();s.forEach(W=>W(L,ee)),g++}g>=n.length&&T()},{root:null,threshold:0,rootMargin:`${-o}px 0px 0px 0px`}),p.forEach(w=>l.observe(w.el)),"ResizeObserver"in window&&(u=new ResizeObserver(()=>E(x)),u.observe(x)),E(x))}function T(){l?.disconnect(),l=null,u?.disconnect(),u=null,p.forEach(({el:w})=>w.remove()),p=[];const x=e.value;x&&c!==null&&(x.style.position=c,c=null)}return j(H),Y(()=>{T(),s.clear()}),function(w){return s.add(w),()=>s.delete(w)}}const Ka="subscription-popup-closed";function za(){const{getFeatureValue:e}=be(),t=oe(Ka,{maxAge:Re}),{isSubscribed:o}=ue(),n=P(()=>e(xe.pc_blog_subscription_form)===ye.POPUP),s=P(()=>n.value&&!t.value&&!o.value),i=b(!1);return M(s,l=>{l&&(i.value=!0)},{immediate:!0}),{isMountAllowed:et(i)}}function Ga(e,t=100){const o=typeof window<"u",n=P(()=>e.value?.content||[]),s=P(()=>n.value.filter(c=>c.__typename!=="BlogButton"&&c.__typename!=="BlogTip"&&typeof c.headline=="string"&&c.headline.trim()!=="").map(({id:c,headline:g})=>({id:`anchor-${c}`,text:g?.trim()}))),i=b("");let l=null;function u(){if(!o||(l?.disconnect(),!s?.value?.length))return;const c=new Set,g=v=>{for(const f of v){const $=f.target.getAttribute("data-anchor-id");f.intersectionRatio===1?c.add($):c.delete($)}if(c.size){const f=s.value.find($=>c.has($.id));f&&f.id!==i.value&&(i.value=f.id)}};l=new IntersectionObserver(g,{rootMargin:`-${t}px 0px 0px 0px`,threshold:1});for(const{id:v}of s.value){const f=document.querySelector(`[data-anchor-id="${v}"]`);f&&l.observe(f)}}function p(c,g="smooth"){if(!o)return;const v=document.querySelector(`[data-anchor-id="${c}"]`);v&&window.scrollTo({top:v.getBoundingClientRect().top+window.scrollY-t-10,behavior:g})}return j(u),Pe(()=>l?.disconnect()),M(s,()=>le(u)),{anchors:s,activeAnchorId:i,scrollToAnchor:p}}const Ya={class:"box flex flex-col gap-22 md:gap-[104px]"},Qa={class:"md:hidden -mt-8"},Wa=C({__name:"[slug]",async setup(e){let t,o;const n=tt(()=>we(()=>import("./gpyDcwZ6.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url)),s=b(null),i=b(null),{blogPost:l}=([t,o]=Ee(()=>Va()),t=await t,o(),t);
2if(!l?.value)throw se({statusCode:404,statusMessage:"Page Not Found",fatal:!1});const{sendScrollAction:u}=z(),{createQuizLink:p}=gt(),c=ct();pt(l),qa(l);const g=Za(s);c(!1),g((L,F)=>{u(l?.value?.title,L,F,l?.value?.alias)});const{anchors:v,activeAnchorId:f,scrollToAnchor:$}=Ga(l),{ctaText:E,ctaLink:H,isVisible:T}=Da(i),{isMountAllowed:x}=za(),{sendArticleCtaEvent:w}=Ha(),I=(L,F)=>{w({postName:l?.value?.title,postAlias:l?.value?.alias,ctaLink:F,bannerType:L})};return(L,F)=>{const ee=Ce;return d(),m("div",Ya,[r("div",{ref_key:"scrollTargetRef",ref:s,class:"pt-[34px] md:pt-10"},[h(ya,{post:a(l)},null,8,["post"]),r("div",{ref_key:"postContentRef",ref:i,class:"flex flex-col-reverse md:flex-row gap-6 md:gap-10 relative"},[h($s,{post:a(l),class:"w-full"},null,8,["post"]),h(go,{"post-title":a(l)?.title||"","heading-list":a(v),"active-heading-id":a(f),"scroll-to-heading-by-id":a($),"post-alias":a(l)?.alias||"","onClick:cta":F[0]||(F[0]=W=>I("desktop_sidebar",W))},null,8,["post-title","heading-list","active-heading-id","scroll-to-heading-by-id","post-alias"])],512)],512),r("div",Qa,[h(He)]),a(l)?(d(),k(xo,{key:0,post:a(l)},null,8,["post"])):y("",!0),a(l)?(d(),k(Aa,{key:1,post:a(l)},null,8,["post"])):y("",!0),h(st,{"post-title":a(l)?.title||"","banner-link":a(p)({utmSource:"blog",utmMedium:"blog_main"})},null,8,["post-title","banner-link"]),h(ka,{"is-visible":a(T),"cta-text":a(E),"cta-link":a(H),onClick:F[1]||(F[1]=W=>I("mobile_sticky",a(H)))},null,8,["is-visible","cta-text","cta-link"]),h(ee,null,{default:S(()=>[a(x)?(d(),k(a(n),{key:0})):y("",!0)]),_:1})])}}}),fi=Object.freeze(Object.defineProperty({__proto__:null,default:Wa},Symbol.toStringTag,{value:"Module"}));export{ce as S,fi as _,Ae as a,At as b,Vt as c,Ka as d,Wt as e,Ut as p,Nt as u};
3//# sourceMappingURL=CjAcrkmn.js.map

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.