1import{l as qe}from"./BOWamIpe.js";import{_ as Ve}from"./Ds3xBzGt.js";import{B as O,f as N,m as F,q as de,c as G,b as L,x as M,D as Ye,y as _e,z as ue,E as Qe,h as Ue,g as We,s as oe,a as X,w as J,G as Ke,p as ge,e as me,A as Ge,X as Xe,d as Je,o as Ze,u as et,Z as tt}from"./DFiTElg1.js";import{_ as pe}from"./DQmqgI-q.js";import{d as C,a3 as S,aa as q,o as t,h as m,u as s,c,i as l,b as o,a0 as x,w as a,q as k,t as f,a1 as P,e as I,k as _,n as H,j as Q,ap as W,aS as R,b6 as nt,a as fe,aE as ot,aF as st,aQ as Z,b5 as he,bJ as j,bK as E,P as V,bw as at,bL as it,aR as ct,bM as be,af as K,f as ye,bN as ce,bO as rt,bP as lt,bQ as dt,bR as _t,p as ut,a7 as gt,ag as ee,_ as mt,bb as ne,m as se,l as pt,Y as ve,bS as we,bT as ft,bF as ht,a2 as bt,aj as re,bU as yt,bV as vt}from"./CcC3R_JF.js";import{u as U,d as wt}from"./BqwKbpQ0.js";import{P as kt,_ as $t}from"./DGRKC6Pg.js";import{_ as ke,a as Lt}from"./xz6F2Oiy.js";import{c as Ct,d as Tt,e as xt}from"./D4egOwVo.js";import{_ as At,a as ae}from"./CHJ5v691.js";import{c as St,e as Ot,q as Ft,_ as Dt,r as It}from"./Dh7sbqG_.js";import{_ as Rt}from"./CbU1ruL9.js";import{u as Bt}from"./D8T1Wu20.js";const ma={key:e=>qe(e),routeCmsPage:e=>e.path},Pt=C({__name:"Default",props:{page:{}},setup(e){const i=S(),n=q();return U(n),(g,h)=>{const d=pe,p=O;return e.page.content.content_slots?.a?.sections?.length?(t(),m(x,{key:0},[e.page?.content?.showBuyAgain&&s(i).isAuthenticated?(t(),c(d,{key:0,"padding-top":"sm","padding-bottom":"sm",constrained:"l"})):l("",!0),o(p,{sections:e.page.content.content_slots.a.sections},null,8,["sections"])],64)):l("",!0)}}}),Nt=Object.assign(Pt,{__name:"FnDefault"}),jt={class:"page-category"},Et=["id"],zt=C({__name:"Category",props:{page:{},nodes:{}},setup(e){const i=e,n=S(),g=I(()=>{if(!i.nodes?.nodes?.length)return[];const d=[];return i.nodes.nodes.forEach(p=>{d.push(p),p.nodes?.length&&p.nodes.forEach(r=>{d.push(r)})}),d}),h=q();return U(h),(d,p)=>{const r=O,b=pe,y=N,w=F,$=G,u=de;return t(),m("div",jt,[e.page?.content?.content_slots?.a?.sections?.length?(t(),m(x,{key:0},[o(r,{sections:e.page.content.content_slots.a.sections.slice(0,2)},null,8,["sections"]),e.page?.content?.showBuyAgain&&s(n).isAuthenticated?(t(),c(b,{key:0,constrained:"l","padding-top":"sm","padding-bottom":"sm"})):l("",!0),e.page.content.content_slots.a.sections.length>2?(t(),c(r,{key:1,sections:e.page.content.content_slots.a.sections.slice(2)},null,8,["sections"])):l("",!0)],64)):l("",!0),e.page?.content?.content_slots?.b?.sections?(t(),c(r,{key:1,sections:e.page.content.content_slots.b.sections},null,8,["sections"])):l("",!0),s(g)?.length?(t(),m(x,{key:2},[o(w,{constrained:"l","padding-top":"m","padding-bottom":"s"},{default:a(()=>[o(y,{type:"h2",size:"h3"},{default:a(()=>[k(f(d.$t("category.nodes.headline")),1)]),_:1})]),_:1}),o(w,{constrained:"l","padding-bottom":"m"},{default:a(()=>[o(u,{class:"category-links-container",unstyled:"",horizontal:""},{default:a(()=>[(t(!0),m(x,null,P(s(g),v=>(t(),m("li",{id:`category-link-${v.id}`,key:v.id,class:"category-link-item"},[o($,{to:v.url},{default:a(()=>[k(f(v.title),1)]),_:2},1032,["to"])],8,Et))),128))]),_:1})]),_:1})],64)):l("",!0)])}}}),Ht=Object.assign(L(zt,[["__scopeId","data-v-dce0aa9e"]]),{__name:"FnCategory"}),Mt={class:"advice-article-page"},qt=C({__name:"AdviceArticle",props:{page:{}},setup(e){const i=q();return U(i),(n,g)=>{const h=M,d=F,p=O;return t(),m("div",Mt,[o(d,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(h,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1}),e.page.content?.content_slots?.a?.sections?(t(),c(p,{key:0,sections:e.page.content.content_slots.a.sections,"page-metrics":{dateModified:e.page?.content?.dateModified,readingDuration:e.page?.readingDuration}},null,8,["sections","page-metrics"])):l("",!0)])}}}),Vt=Object.assign(L(qt,[["__scopeId","data-v-81825a77"]]),{__name:"FnAdviceArticle"}),Yt={class:"advice-overview-page"},Qt=C({__name:"AdviceOverview",props:{page:{},nodes:{default:()=>({})}},setup(e){const i=q();return U(i),(n,g)=>{const h=M,d=F,p=Ye,r=Qe,b=O,y=ue,w=_e;return t(),m("div",Yt,[o(d,{class:"show-m",constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(h,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1}),o(d,{class:"hide-m","background-color":"sand-light","padding-top":"xxs","padding-bottom":"xxs","sub-section":""},{default:a(()=>[e.nodes&&e.nodes.nodes?(t(),c(p,{key:0,nodes:e.nodes.nodes},null,8,["nodes"])):l("",!0)]),_:1}),o(d,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(w,null,{default:a(()=>[o(y,{class:"sidebar show-m",columns:"12","columns-m":"3"},{default:a(()=>[e.nodes&&e.nodes.nodes?(t(),c(r,{key:0,nodes:e.nodes.nodes},null,8,["nodes"])):l("",!0),e.page.content.content_slots.a&&e.page.content.content_slots.a.sections?(t
1(),c(b,{key:1,sections:e.page.content.content_slots.a.sections,"sub-sections":!0},null,8,["sections"])):l("",!0)]),_:1}),o(y,{columns:"12","columns-m":"9"},{default:a(()=>[o(d,{"padding-bottom":"xs","no-padding-x":""},{default:a(()=>[e.page.content.content_slots&&e.page.content.content_slots.b&&e.page.content.content_slots.b.sections?(t(),c(b,{key:0,sections:e.page.content.content_slots.b.sections},null,8,["sections"])):l("",!0)]),_:1})]),_:1})]),_:1})]),_:1}),o(d,{"no-padding":""},{default:a(()=>[o(w,null,{default:a(()=>[o(y,{columns:"12","columns-m":"12"},{default:a(()=>[o(d,{"padding-bottom":"xs","no-padding-x":""},{default:a(()=>[e.page.content.content_slots&&e.page.content.content_slots.c&&e.page.content.content_slots.c.sections?(t(),c(b,{key:0,sections:e.page.content.content_slots.c.sections},null,8,["sections"])):l("",!0)]),_:1})]),_:1})]),_:1})]),_:1})])}}}),Ut=Object.assign(L(Qt,[["__scopeId","data-v-0b2b96bd"]]),{__name:"FnAdviceOverview"}),Wt=C({props:{items:{type:Object,required:!0},activeItemName:{type:String,default:""},showAll:{type:Boolean,default:!0}},emits:["filterBrands","resetFilter"]}),Kt=["onClick"];function Gt(e,i,n,g,h,d){const p=Ue,r=We;return t(),c(r,{class:"brand-alpha-index-slider",options:{slidesPerView:"auto",spaceBetween:10,pagination:!1,navigation:!0}},{default:a(()=>[o(p,null,{default:a(()=>[_("div",{class:H(["bais-item",{"bais-item--active":e.showAll}]),onClick:i[0]||(i[0]=b=>e.$emit("resetFilter"))},f(e.$t("buttons.showAll")),3)]),_:1}),(t(!0),m(x,null,P(e.items,(b,y,w)=>Q((t(),c(p,{key:w},{default:a(()=>[_("div",{class:H(["bais-item",{"bais-item--active":!e.showAll&&e.activeItemName===y}]),onClick:$=>e.$emit("filterBrands",y)},f(y==="other"?"#":y.toUpperCase()),11,Kt)]),_:2},1024)),[[W,b.length>0]])),128))]),_:1})}const Xt=Object.assign(L(Wt,[["render",Gt],["__scopeId","data-v-83a83a80"]]),{__name:"FnAlphaIndexSlider"}),Jt={mounted(){if(this.$route.hash)try{const e=document.querySelector(this.$route.hash);e&&window.scrollTo({top:e.getBoundingClientRect().top+window.pageYOffset})}catch{}}},Zt=C({mixins:[kt,Jt],props:{page:{type:Object,required:!0},brands:{type:Object,default:()=>({})}},data:()=>({filter:null,showAll:!0}),computed:{filteredBrands(){if(this.filter&&this.brands[this.filter]&&this.brands[this.filter].length>0){const e={};return e[this.filter]=this.brands[this.filter],e}return this.sortedBrands},sortedBrands(){const e={};return this.sortedLetters.forEach(i=>{e[i]=this.brands[i]}),e},sortedLetters(){if(!this.brands)return[];const e=Object.keys(this.brands).sort(),i=e.indexOf("other");return i>-1&&(e.splice(i,1),e.unshift("other")),e}},methods:{filterBrands(e){setTimeout(()=>{this.scrollToTop()},0),this.showAll=!1,this.filter=e},resetFilter(){this.showAll=!0,this.filter=null}}}),en={class:"brand-overview-page"},tn={class:"brands"};function nn(e,i,n,g,h,d){const p=M,r=F,b=O,y=Xt,w=N,$=G,u=ue,v=_e;return t(),m("div",en,[o(r,{class:"show-m",constrained:"l","padding-top":"xs","padding-bottom":"xs","background-color":"sand-light"},{default:a(()=>[o(p,{nodes:e.page.content.breadcrumbs,"no-underline":""},null,8,["nodes"])]),_:1}),e.page.content.content_slots.a&&e.page.content.content_slots.a.sections?(t(),c(b,{key:0,sections:e.page.content.content_slots.a.sections},null,8,["sections"])):l("",!0),o(r,{constrained:"l","padding-top":"s","padding-bottom":"s","background-color":"sand-light"},{default:a(()=>[o(y,{items:e.sortedBrands,"active-item-name":Object.keys(e.filteredBrands)[0],"show-all":e.showAll,onResetFilter:e.resetFilter,onFilterBrands:e.filterBrands},null,8,["items","active-item-name","show-all","onResetFilter","onFilterBrands"])]),_:1}),o(r,{constrained:"l","padding-bottom":"s","background-color":"sand-light"},{default:a(()=>[_("div",tn,[(t(!0),m(x,null,P(e.filteredBrands,(D,T,A)=>Q((t(),m("div",{key:A,class:"brand-group"},[o(w,{id:"brand-group-headline-"+A,class:"bg-title",type:"h2"},{default:a(()=>[k(f(T==="other"?"#":T.toUpperCase()),1)]),_:2},1032,["id"]),o(v,{class:"bg-items"},{default:a(()=>[(t(!0),m(x,null,P(D,(B,z)=>(t(),c(u,{key:z,static:"",columns:"6","columns-s":"4","columns-m":"3",class:"bg-item"},{default:a(()=>[o($,{id:"brand-item-"+z,"no-arrow":"",to:{path:B.url}},{default:a(()=>[k(f(B.title),1)]),_:2},1032,["id","to"])]),_:2},1024))),128))]),_:2},1024)])),[[W,D.length>0]])),128))])]),_:1}),e.showAll?(t(),c(r,{key:1,constrained:"l","padding-top":"s","padding-bottom":"s","background-color":"sand-light"},{default:a(()=>[o(y,{items:e.sortedBrands,"active-item-name":Object.keys(e.filteredBrands)[0],"show-all":e.showAll,onResetFilter:e.resetFilter,onFilterBrands:e.filterBrands},null,8,["items","active-item-name","show-all","onResetFilter","onFilterBrands"])]),_:1})):l("",!0),e.page.content.content_slots.b&&e.page.content.content_slots.b.sections?(t
1(),c(b,{key:2,sections:e.page.content.content_slots.b.sections},null,8,["sections"])):l("",!0)])}const on=Object.assign(L(Zt,[["render",nn],["__scopeId","data-v-5a4b966c"]]),{__name:"FnBrandOverview"}),sn={props:{page:{type:Object,required:!0}},computed:{...R(S,{user:"user",isAuthenticated:"isAuthenticated"}),redirectTo(){return(this._.provides[nt]||this.$route).path},firstName(){return this.user?.defaultAddress?.firstName},email(){return this.user?.displayUid},customerId(){return this.user?.sapCode}}},an={class:"contact-page"},cn={class:"greeting-block"},rn={key:2,class:"customer-data"},ln={class:"customer-data"};function dn(e,i,n,g,h,d){const p=N,r=F,b=O,y=ke;return t(),m("div",an,[e.isAuthenticated?(t(),c(r,{key:0,constrained:"l","padding-top":"s"},{default:a(()=>[d.firstName?(t(),c(p,{key:0,type:"h2"},{default:a(()=>[k(f(e.$t("forms.contact.authenticated.greeting",{name:d.firstName}))+" ",1),_("span",cn,f(e.$t("forms.contact.authenticated.greetingText")),1)]),_:1})):(t(),c(p,{key:1,type:"h2"},{default:a(()=>[k(f(e.$t("forms.contact.anonymous")),1)]),_:1})),d.customerId?(t(),m("div",rn,[_("span",null,f(e.$t("forms.contact.customerId")),1),_("span",null,f(d.customerId),1)])):l("",!0),_("div",ln,[_("span",null,f(e.$t("forms.contact.email")),1),_("span",null,f(d.email),1)])]),_:1})):l("",!0),n.page.content.content_slots.a&&n.page.content.content_slots.a.sections?(t(),c(b,{key:1,sections:n.page.content.content_slots.a.sections},null,8,["sections"])):l("",!0),e.isAuthenticated?l("",!0):(t(),c(r,{key:2,constrained:"l",class:"cp-section"},{default:a(()=>[o(y,{class:"cp-login-button",secondary:"","redirect-to":e.$router.currentRoute},{default:a(()=>[k(f(e.$t("forms.login.buttons.submitNow")),1)]),_:1},8,["redirect-to"])]),_:1})),n.page.content.content_slots.b&&n.page.content.content_slots.b.sections?(t(),c(b,{key:3,sections:n.page.content.content_slots.b.sections},null,8,["sections"])):l("",!0)])}const _n=Object.assign(L(sn,[["render",dn],["__scopeId","data-v-77b735f6"]]),{__name:"FnContact"}),un={class:"content-page"},gn=C({__name:"Content",props:{page:{}},setup(e){const i=q();return U(i),(n,g)=>{const h=M,d=F,p=O;return t(),m("div",un,[o(d,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(h,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1}),e.page.content?.content_slots?.a?.sections?(t(),c(p,{key:0,sections:e.page.content.content_slots.a.sections},null,8,["sections"])):l("",!0)])}}}),mn=Object.assign(L(gn,[["__scopeId","data-v-b71fa2e1"]]),{__name:"FnContent"}),pn={props:{image:{type:Object,required:!0,default:()=>({src:void 0,width:void 0,height:void 0})},newsletter:{type:Object,default:()=>{}},showRaffleText:{type:Boolean}},computed:{recipientName(){return this.newsletter?.recipient?.lastname?`, ${this.newsletter.recipient.firstname} ${this.newsletter.recipient.lastname}`:this.$t("newsletter.registerConfirmation.fallback")}}},fn={key:0},hn=["innerHTML"],bn={key:1},yn=["innerHTML"];function vn(e,i,n,g,h,d){const p=J,r=N,b=oe,y=X,w=de,$=Ct,u=F;return t(),c(u,{constrained:"l","background-color":"sand-light","padding-top":"xs","padding-bottom":"m",class:"newsletter-confirmation-section"},{default:a(()=>[o($,{"image-hide-mobile":"","column-size":"6"},fe({default:a(()=>[o(r,{type:"h2"},{default:a(()=>[k(f(e.$t("newsletter.registerConfirmation.headline",{salutation:d.recipientName})),1)]),_:1}),o(b,{innerHTML:e.$t("newsletter.registerConfirmation.confirmationText")},null,8,["innerHTML"]),o(w,{"background-color":"orange","foreground-color":"white",unstyled:"",icons:"",colored:""},{default:a(()=>[n.newsletter?.address?(t(),m("li",fn,[o(y,{icon:"mail",size:"xs"}),_("span",null,f(n.newsletter.address.emailAddress),1)])):l("",!0),_("li",null,[o(y,{icon:"paw",size:"xs"}),_("span",{innerHTML:e.$t("newsletter.registerConfirmation.activationText")},null,8,hn)]),n.showRaffleText?(t(),m("li",bn,[o(y,{icon:"check",size:"xs"}),_("span",{innerHTML:e.$t("newsletter.registerConfirmation.raffleText")},null,8,yn)])):l("",!0)]),_:1})]),_:2},[n.image?{name:"image",fn:a(()=>[o(p,ot(st(n.image)),null,16)]),key:"0"}:void 0]),1024)]),_:1})}const wn=Object.assign(L(pn,[["render",vn]]),{__name:"FnNewsletterConfirmationSection"}),kn={key:0,class:"newsletter-register-confirmation"},$n={key:1},Ln=C({__name:"NewsletterRegisterConfirmation",props:{page:{},newsletter:{},image:{}},setup(e){return(i,n)=>{const g=M,h=F,d=wn,p=O,r=Ke,b=Z("fn-error");return t(),m("div",null,[e.newsletter?(t(),m("div",kn,[o(h,{constrained:"l","background-color":"sand-light","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(g,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1}),o(d,{newsletter:e.newsletter,image:e.image},null,8,["newsletter","image"]),e.page.content.content_slots.a&&e.page.content.content_slots.a.sections?(t
1(),c(p,{key:0,sections:e.page.content.content_slots.a.sections},null,8,["sections"])):l("",!0),e.page.content.content_slots.b&&e.page.content.content_slots.b.sections?(t(),c(p,{key:1,sections:e.page.content.content_slots.b.sections},null,8,["sections"])):l("",!0),o(r,{id:"newsletter_unreg_promotSlot_1"}),o(r,{id:"newsletter_unreg_promotSlot_2"}),o(r,{id:"newsletter_unreg_promotSlot_3"})])):(t(),m("div",$n,[o(b,{image:"/img/error-img.jpg"})]))])}}}),Cn=Object.assign(Ln,{__name:"FnNewsletterRegisterConfirmation"}),Tn=C({__name:"DefaultWithBreadcrumbs",props:{page:{},backgroundColor:{}},setup(e){const i=q();return U(i),(n,g)=>{const h=M,d=F,p=O;return t(),m("div",null,[o(d,{constrained:"l","padding-top":"s","padding-bottom":"s","background-color":e.backgroundColor},{default:a(()=>[o(h,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1},8,["background-color"]),e.page.content.content_slots.a&&e.page.content.content_slots.a.sections?(t(),c(p,{key:0,sections:e.page.content.content_slots.a.sections},null,8,["sections"])):l("",!0)])}}}),xn=Object.assign(Tn,{__name:"FnDefaultWithBreadcrumbs"}),An=j(()=>E(()=>import("./DQyMYTiH.js"),[],import.meta.url).then(e=>e.default||e)),Sn=j(()=>E(()=>import("./D2fxZtUa.js"),[],import.meta.url).then(e=>e.default||e)),On=j(()=>E(()=>import("./CGkOtJIL.js"),[],import.meta.url).then(e=>e.default||e)),Fn=j(()=>E(()=>import("./qaMJ2sGi.js"),[],import.meta.url).then(e=>e.default||e)),Dn=j(()=>E(()=>import("./2b4usRg8.js"),[],import.meta.url).then(e=>e.default||e)),In=j(()=>E(()=>import("./B0ToPtSL.js"),[],import.meta.url).then(e=>e.default||e)),Rn=j(()=>E(()=>import("./BBU1F6CC.js"),[],import.meta.url).then(e=>e.default||e)),Bn=j(()=>E(()=>import("./BAqfVJuZ.js"),[],import.meta.url).then(e=>e.default||e)),Pn=j(()=>E(()=>import("./DFiTElg1.js").then(function(e){return e.aA}),[],import.meta.url).then(e=>e.default||e)),Nn=C({__name:"FlexibleLayoutLoader",props:{type:{},data:{},page:{}},setup(e){return(i,n)=>{const g=An,h=Sn,d=On,p=Fn,r=Dn,b=In,y=Rn,w=Bn,$=Pn;return t(),c(he,null,{default:a(()=>[_("div",null,[e.type==="flexible_content"?(t(),c(g,{key:0,page:e.page,data:e.data},null,8,["page","data"])):e.type==="goldener_fressnapf"?(t(),c(h,{key:1,page:e.page,data:e.data},null,8,["page","data"])):e.type==="pet_salon"?(t(),c(d,{key:2,page:e.page,data:e.data},null,8,["page","data"])):e.type==="pet_salon_career"?(t(),c(p,{key:3,page:e.page,data:e.data},null,8,["page","data"])):e.type==="pet_salon_flexible"?(t(),c(r,{key:4,page:e.page,data:e.data},null,8,["page","data"])):e.type==="pet_funeral"?(t(),c(b,{key:5,page:e.page,data:e.data},null,8,["page","data"])):e.type==="pet_funeral_booking"?(t(),c(y,{key:6,page:e.page,data:e.data},null,8,["page","data"])):e.type==="wishpet_advisory"?(t(),c(w,{key:7,page:e.page,data:e.data},null,8,["page","data"])):(t(),c($,{key:8,page:e.page,data:e.data},null,8,["page","data"]))])]),_:1})}}}),jn=Object.assign(Nn,{__name:"FnCmsFlexibleLayoutLoader"}),En=C({props:{page:{type:Object,required:!0}},computed:{...R(S,{isAuthenticated:"isAuthenticated",hasFriendsBenefit:"getHasFriendsBenefit"})}}),zn={id:"friends-landing-page",class:"friends-page"};function Hn(e,i,n,g,h,d){const p=Z("fn-friends-intro"),r=O;return t(),m("div",zn,[e.page?.content?.section_options?(t(),c(p,{key:0,logo:e.page.content.section_options.friends_logo,content:e.page.content.section_options.content,section:e.page.content.section_options.friends_intro_options},null,8,["logo","content","section"])):l("",!0),e.isAuthenticated?l("",!0):(t(),m(x,{key:1},[e.page?.content?.content_slots?.b?.sections?(t(),c(r,{key:0,sections:e.page.content.content_slots.b.sections},null,8,["sections"])):l("",!0)],64)),e.isAuthenticated&&!e.hasFriendsBenefit?(t(),m(x,{key:2},[e.page?.content?.content_slots?.c?.sections?(t(),c(r,{key:0,sections:e.page.content.content_slots.c.sections},null,8,["sections"])):l("",!0)],64)):e.isAuthenticated&&e.hasFriendsBenefit?(t(),m(x,{key:3},[e.page?.content?.content_slots?.d?.sections?(t(),c(r,{key:0,sections:e.page.content.content_slots.d.sections},null,8,["sections"])):l("",!0)],64)):l("",!0)])}const Mn=Object.assign(L(En,[["render",Hn]]),{__name:"FnFriends"}),qn={props:{show:{type:Boolean},closeAfterMs:{type:Number,default:null},type:{type:String,default:"success",options:["success","warning","error"]},header:{type:String,default:""},text:{type:String,default:""}},emits:["close"],data:()=>({visible:!1}),computed:{toastVisible(){return this.show&&this.visible}},watch:{show(e){e&&(this.visible=!0),e&&this.closeAfterMs&&setTimeout(()=>{this.close()},this.closeAfterMs),e||(this.visible=!1)}},methods:{close(){this.visible=!1,this.$emit("close")}}},Vn={class:"toast-content"},Yn={class:"toast-heading"},Qn={class:"header"},Un={class:"toast-text"};function Wn(e,i,n,g,h,d){const p=X;return d.toastVisible?(t(),m("div",{key:0,class:H(["toast",{"toast--success":n.type==="success","toast--warning":n.type==="warning","toast--error":n.type==="error"}])},[_("div",Vn,[_("div",Yn,[_("div",Qn,[_("b",null,f(n.header),1)]),_("div",{class:"close",onClick:i[0]||(i[0]=(...r)=>d.close&&d.close(...r))},[o(p,{icon:"close",bold:""})])]),_("div",Un,f(n.text),1)])],2)):l("",!0)}const $e=Object.assign(L(qn,[["render",Wn],["__scopeId","data-v-c55956c8"]]),{__name:"FnToast"}),Kn={props:{qrCodeOptions:{type:Object,required:!0},logoData:{type:Object,required:!0}},data:()=>({isToastVisible:!1,toast:{type:"success",header:"",text:""}}
1),computed:{...R(V,{defaultCountry:"defaultCountry"}),...R(S,{user:"user",qrCode:"getFriendsLightQrCode"}),displayUid(){return this.user?.displayUid},countryIconSrc(){switch(this.defaultCountry){case"AT":return"/img/icon-flag-austria.svg";case"DE":return"/img/icon-flag-germany.svg";case"FR":return"/img/icon-flag-france.svg";default:return""}}},mounted(){this.$nextTick(()=>{this.isToastVisible=!0})}},Gn={class:"fl-qr-code"},Xn={class:"header"},Jn={class:"country-data"},Zn={class:"country-icon"},eo={class:"country-code"},to={class:"qr-code-wrapper"},no={class:"user-email"};function oo(e,i,n,g,h,d){const p=J,r=$e,b=At;return t(),m("div",Gn,[_("div",Xn,[o(p,{class:"fl-logo",src:n.logoData.intro_friends_image.url,alt:n.logoData.intro_friends_image.alt,title:n.logoData.intro_friends_image.title,width:n.logoData.intro_friends_image.width,height:n.logoData.intro_friends_image.height,"ai-usage-type":n.logoData.intro_friends_image.aiUsageType},null,8,["src","alt","title","width","height","ai-usage-type"]),_("div",Jn,[_("div",Zn,[o(p,{class:"fl-logo",src:d.countryIconSrc,alt:e.$t("friendsLight.flagIcon.alt"),title:e.$t("friendsLight.flagIcon.title"),width:16,height:16},null,8,["src","alt","title"])]),_("div",eo,f(e.qrCode),1)])]),o(r,{show:e.isToastVisible,header:e.$t("friendsLight.toast.success.headline"),text:e.$t("friendsLight.toast.success.text"),type:"success"},null,8,["show","header","text"]),_("div",to,[o(b,{class:"qr-code",text:e.qrCode,size:n.qrCodeOptions.size,color:n.qrCodeOptions.color,"bg-color":n.qrCodeOptions.bgColor,"error-level":n.qrCodeOptions.errorLevel},null,8,["text","size","color","bg-color","error-level"])]),_("div",no,f(d.displayUid),1)])}const so=Object.assign(L(Kn,[["render",oo],["__scopeId","data-v-adea429a"]]),{__name:"FnFriendsLightQrCode"}),ao={props:{content:{type:Object,default:()=>({})},intro:{type:Object,default:()=>({})},appPromo:{type:Object,default:()=>({})}},data:()=>({regLogHeight:0,qrCodeOptions:{size:211,color:"#000000",bgColor:"#FFFFFF",errorLevel:"H"}}),computed:{...R(V,{isMobileView:"isMobileView"}),...R(S,{isAuthenticated:"isAuthenticated",friendsLightQrCode:"getFriendsLightQrCode"}),userLoggedInAndHasQrCode(){return this.isAuthenticated&&this.friendsLightQrCode}},beforeMount(){this.initIntroSpacerHeight()},methods:{checkViewPortWidth(e,i,n){return e>=i&&e<=n},initIntroSpacerHeight(){const e=window?.innerWidth||0,i=200,n=[{min:1,max:767,height:450},{min:768,max:1023,height:350},{min:1024,max:1439,height:300},{min:1440,max:1919,height:250}];if(e>0){for(const g of n)if(this.checkViewPortWidth(e,g.min,g.max)){this.regLogHeight=g.height;return}}this.regLogHeight=i},regLogHeightChange(e){window?.innerWidth<=768?this.regLogHeight=e+144:this.regLogHeight=(e||100)+80}}},io={class:"friends-light-intro"},co={key:0,class:"fli-intro center-flex"},ro={key:0,class:"fli-spacer fli-spacer--bottom-fixed"};function lo(e,i,n,g,h,d){const p=so,r=J,b=N,y=oe,w=F;return t(),m("div",io,[o(w,{class:"fli-intro-section",constrained:"l","padding-top":"s","display-view":n.content.display_view,"enable-smile":!e.isMobileView},{default:a(()=>[_("div",{class:H(["fli-spacer center-flex",{"fli-spacer--top":d.userLoggedInAndHasQrCode}])},[d.userLoggedInAndHasQrCode?(t(),c(p,{key:0,class:"fl-qr-code","qr-code-options":e.qrCodeOptions,"logo-data":n.content},null,8,["qr-code-options","logo-data"])):l("",!0)],2),d.userLoggedInAndHasQrCode?l("",!0):(t(),m("div",co,[o(r,{class:"fli-logo",src:n.content.intro_friends_image.url,alt:n.content.intro_friends_image.alt,title:n.content.intro_friends_image.title,width:n.content.intro_friends_image.width,height:n.content.intro_friends_image.height,lazy:!1,"ai-usage-type":n.content.intro_friends_image.aiUsageType},null,8,["src","alt","title","width","height","ai-usage-type"]),o(b,{class:"fli-headline",type:"h1",size:"h2",color:"green-dark"},{default:a(()=>[k(f(n.content.intro_title),1)]),_:1}),o(y,{class:"fli-paragraph","align-center":""},{default:a(()=>[k(f(n.content.intro_text),1)]),_:1}),o(r,{class:"fli-discount",src:n.content.intro_discount_image.url,width:n.content.intro_discount_image.width,height:n.content.intro_discount_image.height,alt:n.content.intro_discount_image.alt,title:n.content.intro_discount_image.title,lazy:!1,"ai-usage-type":n.content.intro_discount_image.aiUsageType},null,8,["src","width","height","alt","title","ai-usage-type"])]))]),_:1},8,["display-view","enable-smile"]),d.userLoggedInAndHasQrCode?(t(),m("div",ro)):l("",!0)])}const _o=Object.assign(L(ao,[["render",lo],["__scopeId","data-v-3d5fa323"]]),{__name:"FnFriendsLightIntro"}),uo={class:"icon-text-list-item"},go={key:0},mo=C({__name:"IconTextListItem",props:{icon:{},text:{},title:{}},setup(e){return(i,n)=>{const g=X;return t(),m("li",uo,[o(g,{icon:e.icon},null,8,["icon"]),_("div",null,[e.title?(t(),m("strong",go,f(e.title),
11)):l("",!0),e.text?(t(),m(x,{key:1},[k(f(e.text),1)],64)):l("",!0)])])}}}),po=Object.assign(L(mo,[["__scopeId","data-v-a19c806f"]]),{__name:"FnIconTextListItem"}),fo={class:"icon-text-list"},ho=C({__name:"IconTextList",props:{items:{default:()=>[]}},setup(e){return(i,n)=>{const g=po;return t(),m("ul",fo,[(t(!0),m(x,null,P(e.items,(h,d)=>(t(),c(g,{key:d,icon:h.icon,text:h.text,title:h.title},null,8,["icon","text","title"]))),128))])}}}),bo=Object.assign(L(ho,[["__scopeId","data-v-60cd7abf"]]),{__name:"FnIconTextList"}),yo={props:{headline:{type:String,default:""},imageData:{type:Object,default:()=>({})},listData:{type:Object,default:()=>({})},ctaData:{type:[Object,Array],default:()=>[]}},computed:{ctaItems(){return Array.isArray(this.ctaData)?this.ctaData:Object.keys(this.ctaData).map(e=>e>0?this.ctaData[e].components[0]:null).filter(e=>!!e)},isPropDataValid:()=>e=>Array.isArray(e)?e.length:Object.keys(e||{}).length}},vo={class:"app-promotion"},wo={class:"section section--header-and-image"},ko={key:0},$o={class:"section section--list-and-cta"},Lo={key:0},Co={key:1,class:"app-promotion--cta"};function To(e,i,n,g,h,d){const p=N,r=J,b=bo,y=G;return t(),m("div",vo,[_("div",wo,[_("div",null,[o(p,{type:"h2",size:"h3"},{default:a(()=>[k(f(n.headline),1)]),_:1})]),n.imageData?.url?(t(),m("div",ko,[o(r,{src:n.imageData.url,alt:n.imageData.alt,title:n.imageData.title,width:n.imageData.width,height:n.imageData.height,lazy:!1,"ai-usage-type":n.imageData.aiUsageType},null,8,["src","alt","title","width","height","ai-usage-type"])])):l("",!0)]),_("div",$o,[d.isPropDataValid(n.listData)?(t(),m("div",Lo,[o(b,{items:n.listData.items},null,8,["items"])])):l("",!0),d.isPropDataValid(n.ctaData)?(t(),m("div",Co,[(t(!0),m(x,null,P(d.ctaItems,(w,$)=>(t(),c(y,{key:`${w.link.url}-${$}`,href:w.link.url,"no-arrow":""},{default:a(()=>[o(r,{src:w.image.url,alt:w.image.alt,title:w.image.title,width:148,height:44,"ai-usage-type":w.image.aiUsageType},null,8,["src","alt","title","ai-usage-type"])]),_:2},1032,["href"]))),128))])):l("",!0)])])}const xo=Object.assign(L(yo,[["render",To],["__scopeId","data-v-ab95c723"]]),{__name:"FnAppPromotion"}),Ao=C({props:{errors:{type:Object,default:()=>({})},buttonDisabled:{type:Boolean},requiredNotice:{type:Boolean},legalHidden:{type:Boolean},loading:{type:Boolean},fullWidthInputs:{type:Boolean},friendsLight:{type:Boolean}},emits:["submit"],setup(){const{showNewsletterRecaptcha:e,showNewsletterCheckbox:i}=ae();return{showNewsletterRecaptcha:e,showNewsletterCheckbox:i}},data:()=>({fields:{newsletterRecaptchaResponse:null},forms:{friends:{registration:{consent:!1}},newsletter:{privacyNotice:{consent:!1}}}}),computed:{...R(V,{newsletterRecaptchaEnabled:"getNewsletterRecaptchaEnabled"}),...R(S,{termsOfServiceAccepted:"termsOfServiceAccepted",friendsLightQrCode:"getFriendsLightQrCode",hasFriendsBenefit:"getHasFriendsBenefit"})},methods:{async onSubmit(e){this.showNewsletterRecaptcha&&await this.$refs.newsletterRecaptcha.execute(It.newsletter),!this.hasFriendsBenefit&&e.newsletterConsent&&(this.fields.friendsTos=!0),e.newsletterConsent&&(this.fields.newsletterConsent=!0),this.$emit("submit",this.fields)},onRecaptchaVerify(e={}){this.fields.newsletterRecaptchaResponse=e.recaptchaResponse}}}),So={class:"welcome-back"},Oo={class:"welcome-back-text"};function Fo(e,i,n,g,h,d){const p=ge,r=N,b=G,y=Z("i18n-t"),w=wt,$=Ot,u=St,v=me,D=Ft,T=at,A=Dt;return t(),c(A,{"hide-errors":"",onSubmit:e.onSubmit},{default:a(()=>[e.loading?(t(),c(p,{key:0})):l("",!0),_("div",So,[_("div",Oo,[o(r,{type:"h2",size:"h4",color:"black"},{default:a(()=>[k(f(e.$t("friendsLight.login.headline")),1)]),_:1})])]),o(u,{class:"consents"},{default:a(()=>[o($,null,{default:a(()=>[e.hasFriendsBenefit?l("",!0):(t(),c(w,{key:0,id:"fld-friends-doi",value:e.forms.friends.registration.consent,name:"friendsTos",type:"checkbox",rules:"required"},{afterLabel:a(()=>[o(y,{keypath:"forms.friends.registration.consent",tag:"p",class:"checkbox-label-after--privacynotice"},{terms:a(()=>[o(b,{inline:"",target:"_blank",to:e.$t("forms.friends.registration.tosUrl")},{default:a(()=>[k(f(e.$t("forms.friends.registration.terms")),1)]),_:1},8,["to"])]),_:1})]),_:1},8,["value"]))]),_:1}),o($,null,{default:a(()=>[e.showNewsletterCheckbox?(t(),c(w,{key:0,id:"fld-newsletter-doi",value:e.forms.newsletter.privacyNotice.consent,name:"newsletterConsent",type:"checkbox"},{afterLabel:a(()=>[o(y,{keypath:"forms.newsletter.privacyNotice.text",tag:"p",class:"checkbox-label-after--privacynotice"},{privacyNotice:a(()=>[o(b,{inline:"",target:"_blank",to:e.$t("forms.newsletter.privacyNotice.privacyUrl")},{default:a(()=>[k(f(e.$t("forms.newsletter.privacyNotice.privacyNotice")),1)]),_:1},8,["to"])]),_:1})]),_:1},8,["value"])):l("",!0)]),_:1})]),_:1}),e.buttonDisabled?l("",!0):(t(),c(u,{key:1},{default:a(()=>[o($,null,{default:a(()=>[o(v,{id:"fld-userData-submit",secondary:"",submit:"","full-width":""},{default:a(()=>
1[k(f(e.$t("friendsLight.login.buttonQrCode")),1)]),_:1})]),_:1})]),_:1})),o(T,null,{default:a(()=>[e.showNewsletterRecaptcha?(t(),c(u,{key:0},{default:a(()=>[o($,null,{default:a(()=>[o(D,{ref:"newsletterRecaptcha",onVerify:e.onRecaptchaVerify},null,8,["onVerify"])]),_:1})]),_:1})):l("",!0)]),_:1})]),_:1},8,["onSubmit"])}const Do=Object.assign(L(Ao,[["render",Fo],["__scopeId","data-v-e006fea6"]]),{__name:"FnFormFriendsLightDiscount"}),Io=C({props:{buttonDisabled:{type:Boolean},requiredNotice:{type:Boolean},legalHidden:{type:Boolean},redirectDisabled:{type:Boolean},friendsLight:{type:Boolean},fullWidthInputs:{type:Boolean}},setup(){const{registerToNewsletter:e}=ae();return{registerToNewsletter:e}},data:()=>({errors:null,loading:!1}),computed:{...R(S,{termsOfServiceAccepted:"termsOfServiceAccepted",friendsLightQrCode:"getFriendsLightQrCode",hasFriendsBenefit:"getHasFriendsBenefit"}),allChecksPassed(){return(this.termsOfServiceAccepted||this.hasFriendsBenefit)&&this.hasNewsletterSubscription&&!this.friendsLightQrCode}},watch:{allChecksPassed(){this.allChecksPassed&&this.handleSubmit({})}},beforeMount(){this.allChecksPassed&&this.handleSubmit({})},methods:{...ct(S,{activateFriends:"activateFriends",getFriendsLightQrCode:"retrieveFriendsLightQrCode"}),async handleSubmit({newsletterConsent:e=!1,newsletterRecaptchaResponse:i=null}){this.loading=!0;const n={loyaltyType:it.FRIENDS_LIGHT};try{await this.activateFriends(n),await this.getFriendsLightQrCode(),e&&this.registerToNewsletter(i)}catch(g){this.$log.error(g)}finally{this.loading=!1}}}});function Ro(e,i,n,g,h,d){const p=Do;return e.allChecksPassed?l("",!0):(t(),c(p,{key:0,errors:e.errors,loading:e.loading,"button-disabled":e.buttonDisabled,"required-notice":e.requiredNotice,"legal-hidden":"","full-width-inputs":"","redirect-disabled":"",onSubmit:e.handleSubmit},null,8,["errors","loading","button-disabled","required-notice","onSubmit"]))}const Bo=Object.assign(L(Io,[["render",Ro]]),{__name:"FnVuexFormFriendsLightDiscount"}),Po={key:0,class:"fl-reg-cta"},No={key:0,class:"fl-reg-log-hr"},jo={key:1,class:"fl-log-cta"},Eo=C({__name:"FriendsLightRegLog",async setup(e){let i,n;const g=S(),{useAsyncDataCheckNewsletterStatus:h,checkNewsletterStatus:d}=ae(),p=be(),r=ye(!1),b=I(()=>g.isAuthenticated&&g.getUid!==ce),y=I(()=>g.termsOfServiceAccepted&&p.hasNewsletterSubscription&&!g.getFriendsLightQrCode),w=I(()=>![ce,lt,dt].includes(g.getUid)),$=I(()=>s(w)?g.getUid:rt("uid").value);function u(){p.hasNewsletterSubscription||(p.hasNewsletterSubscription=!0),r.value=!1}return[i,n]=K(()=>h()),await i,n(),(v,D)=>{const T=Bo,A=N,B=Lt,z=ke;return t(),m("div",{class:H(["fl-reg-log-wrapper",{"fl-reg-log-wrapper--registering":s(y)}])},[_("div",null,[Q(o(T,null,null,512),[[W,!s(r)&&s(b)&&!v.friendsLightQrCode]]),s(b)?l("",!0):(t(),m("div",Po,[o(A,{type:"h2",size:"h3",color:"black"},{default:a(()=>[k(f(v.$t("forms.register.newUser")),1)]),_:1}),Q(o(B,{"redirect-to":v.$t("url.friendsLight"),onAuthSuccess:u},null,8,["redirect-to"]),[[W,!s(b)]]),s(r)?l("",!0):(t(),m("hr",No))])),s(y)?l("",!0):(t(),m("div",jo,[o(A,{type:"h2",size:"h3",color:"black"},{default:a(()=>[k(f(v.$t("forms.login.headings.alreadyRegistered")),1)]),_:1}),Q(o(z,{"redirect-to":v.$t("url.friendsLight"),email:s($),onAuthSuccess:s(d)},null,8,["redirect-to","email","onAuthSuccess"]),[[W,!s(b)]])]))])],2)}}}),zo=Object.assign(L(Eo,[["__scopeId","data-v-65f0de6c"]]),{__name:"FnFriendsLightRegLog"}),Ho={},Mo={class:"fl-general-terms"},qo={class:"fl-gt-text-wrapper"};function Vo(e,i){const n=G,g=Z("i18n-t");return t(),m("div",Mo,[_("div",qo,[o(g,{keypath:"friendsLight.generalTerms.text",tag:"p",class:"fl-gt-text"},fe({lineBreak:a(()=>[i[0]||(i[0]=_("br",null,null,-1)),i[1]||(i[1]=_("br",null,null,-1))]),_:2},[e.$te("friendsLight.generalTerms.storefinder")?{name:"storefinder",fn:a(()=>[o(n,{inline:"",target:"_blank",to:e.$t("friendsLight.generalTerms.storefinder.url")},{default:a(()=>[k(f(e.$t("friendsLight.generalTerms.storefinder.text")),1)]),_:1},8,["to"])]),key:"0"}:void 0,e.$te("friendsLight.generalTerms.friendsExceptions")?{name:"friendsExceptions",fn:a(()=>[o(n,{inline:"",target:"_blank",to:e.$t("friendsLight.generalTerms.friendsExceptions.url")},{default:a(()=>[k(f(e.$t("friendsLight.generalTerms.friendsExceptions.text")),1)]),_:1},8,["to"])]),key:"1"}:void 0,e.$te("friendsLight.generalTerms.friendsTerms")?{name:"friendsTerms",fn:a(()=>[o(n,{inline:"",target:"_blank",to:e.$t("friendsLight.generalTerms.friendsTerms.url")},{default:a(()=>[k(f(e.$t("friendsLight.generalTerms.friendsTerms.text")),1)]),_:1},8,["to"])]),key:"2"}:void 0,e.$te("friendsLight.generalTerms.appTerms")?{name:"appTerms",fn:a(()=>[o(n,{inline:"",target:"_blank",to:e.$t("friendsLight.generalTerms.appTerms.url")},{default:a(()=>[k(f(e.$t("friendsLight.generalTerms.appTerms.text")),1)]),_:1},8,["to"])]),key:"3"}:void 0,e.$te("friendsLight.generalTerms.cgv")?{name:"cgv",fn:a(()=>[o(n,{inline:"",target:"_blank",to:e.$t("friendsLight.generalTerms.cgv.url")},{default:a(()=>[k(f(e.$t("friendsLight.generalTerms.cgv.text")),1)]),_:1},8,["to"])]),key:"4"}:void 0]),1024)])])}const Yo=Object.assign(L(Ho,[["render",Vo],["__scopeId","data-v-a6f8c193"]]),{__name:"FnFriendsLightGeneralTerms"}),Qo={props:{page:{type:Object,required:!0}},data:()=>({isRegistering:!1}),computed:{...R(V,{isMobileView:"isMobileView",sectionSmileHeight:"sectionSmileHeight"}),...R(S,{isAuthenticated:"isAuthenticated"}),..._t(S,{friendsLightError:"friendsLightError",friendsLightQrCode:"friendsLightQrCode",friendsLightActivated:"friendsLightActivated"}),userLoggedInWithQrCode(){return this.isAuthenticated&&this.friendsLightQrCode},additionalHeight(){return this.isMobileView?72:80},flContainerTranslateY(){return this.userLoggedInWithQrCode?"0px":`-${this.sectionSmileHeight+this.additionalHeight}px`}},created(){this.closeToast(),this.friendsLightActivated=!1,this.friendsLightQrCode=null},methods:{onRegisterBtnClick(){this.isRegistering=!0},closeToast(){this.friendsLightError=!1}}},Uo={class:"friends-light-page"};function Wo(e,i,n,g,h,d){const p=_o,r=$e,b=O,y=xo,w=zo,$=Yo;return t(),m("div",Uo,[n.page?.content?.content_slots?.b?(t(),c(p,{key:0,class:"fl-intro",content:n.page.content.content_slots.b},null,8,["content"])):l("",!0),o(r,{show:e.friendsLightError,class:"fl-error-toast",type:"error",header:e.$t("friendsLight.toast.error.headline"),text:e.$t("friendsLight.toast.error.text"),onClose:d.closeToast},null,8,["show","header","text","onClose"]),d.userLoggedInWithQrCode&&n.page?.content?.content_slots?.a?.sections?(t
1(),c(b,{key:1,sections:n.page.content.content_slots.a.sections,"sub-sections":""},null,8,["sections"])):l("",!0),d.userLoggedInWithQrCode&&n.page?.content?.content_slots?.c?(t(),c(y,{key:2,class:"fl-app-promotion",headline:n.page?.content.content_slots?.c?.header_text||"","image-data":n.page?.content.content_slots?.c?.promotion_image||{},"list-data":n.page?.content.content_slots?.c?.promotion_icon_text_list?.sections[0]?.["1"]?.components?.[0]||[],"cta-data":n.page?.content.content_slots?.c?.app_download_image_links?.sections?.[0]||[]},null,8,["headline","image-data","list-data","cta-data"])):l("",!0),_("div",{class:"fl-container",style:ut({transform:`translateY(${d.flContainerTranslateY})`})},[d.userLoggedInWithQrCode?l("",!0):(t(),c(w,{key:0})),o($)],4)])}const Ko=Object.assign(L(Qo,[["render",Wo],["__scopeId","data-v-4022dc4d"]]),{__name:"FnFriendsLight"}),Go=["id"],Xo={class:"sl-header"},Jo={key:1},Zo={class:"sl-list"},es={class:"s-image"},ts={class:"s-content"},ns=C({__name:"SheltersList",props:{title:{},shelters:{},currentPage:{},totalPageCount:{},id:{default:"shelters-list"},isLoading:{type:Boolean}},emits:["pageChange"],setup(e,{emit:i}){const n=i,g=h=>{n("pageChange",h)};return(h,d)=>{const p=ge,r=N,b=oe,y=Ge,w=me,$=$t;return t(),m("div",{id:e.id,class:"shelters-list"},[e.isLoading?(t(),c(p,{key:0}
1)):l("",!0),_("div",Xo,[e.title?(t(),c(r,{key:0,type:"h2","no-margin-bottom":""},{default:a(()=>[k(f(e.title),1)]),_:1})):l("",!0)]),!e.shelters?.length&&!e.isLoading?(t(),m("div",Jo,[o(b,null,{default:a(()=>[k(f(h.$t("shelters.overview.noShelters")),1)]),_:1})])):l("",!0),_("div",Zo,[(t(!0),m(x,null,P(e.shelters,u=>(t(),m("div",{key:u.wishListLink,class:"shelter"},[_("div",es,[o(y,{src:u.media?.url||"/img/shelter_placeholder.png",alt:u.media?.altText,fit:"contain","ai-usage-type":u.media?.aiUsageType},null,8,["src","alt","ai-usage-type"])]),_("div",ts,[u.name?(t(),c(r,{key:0,type:"h2",size:"h3","no-margin-bottom":""},{default:a(()=>[k(f(u.name),1)]),_:2},1024)):l("",!0),u.address?(t(),c(r,{key:1,type:"div","no-margin-bottom":""},{default:a(()=>[k(f(u.address.formattedAddress),1)]),_:2},1024)):l("",!0),o(b,{class:"c-text trim"},{default:a(()=>[k(f(u.description||h.$t("shelters.overview.noDescription")),1)]),_:2},1024),u.detailPagePath?(t(),c(w,{key:2,class:"c-wishlist-button",to:u.detailPagePath+"#shelter-wishlist","quaternary-alt":""},{default:a(()=>[k(f(h.$t("shelters.overview.buttons.viewWishlist")),1)]),_:1},8,["to"])):l("",!0)])]))),128)),e.totalPageCount>1?(t(),c($,{key:0,"current-page":e.currentPage,"total-pages":e.totalPageCount,"query-parameter-key":"page",onGoToPage:g},null,8,["current-page","total-pages"])):l("",!0)])],8,Go)}}}),os=Object.assign(L(ns,[["__scopeId","data-v-956e4417"]]),{__name:"FnSheltersList"}),ss={class:"shelters-overview"},as=2,is=C({__name:"SheltersOverview",props:{page:{}},async setup(e){let i,n;const g=e,{getSheltersList:h}=V(),d=q(),p=gt("shelters-section"),r=g.page?.content?.content_slots?.a?.sections?.[0]?.constrained||g.page?.content?.content_slots?.b?.sections?.[0]?.constrained||"m",b=ye(Number(d.query.page)||1),{data:y,status:w}=([i,n]=K(()=>ee(()=>`shelters-overview-page-${b.value}`,()=>h({currentPage:b.value-1,pageSize:as}),{watch:[b]})),i=await i,n(),i),$=I(()=>w.value==="pending"),u=I(()=>y.value.shelters||[]),v=I(()=>y.value.totalPageCount||1);async function D(T){b.value=T;const A=new URL(location.href);T>1?A.searchParams.set("page",String(T)):A.searchParams.delete("page"),history.pushState("","",A.toString()),p.value?.$el.scrollIntoView({behavior:"smooth"})}return(T,A)=>{const B=O,z=os,te=F;return t(),m("div",ss,[e.page?.content?.content_slots?.a?.sections?(t(),c(B,{key:0,sections:e.page.content.content_slots.a.sections,"sub-sections":""},null,8,["sections"])):l("",!0),o(te,{ref:"shelters-section",constrained:s(r),"padding-top":"s","padding-bottom":"s"},{default:a(()=>[o(z,{id:"shelters-list",title:e.page?.content?.content_slots?.shelters_list_title,shelters:s(u),"total-page-count":s(v),"current-page":s(b)-1,"is-loading":s($),onPageChange:D},null,8,["title","shelters","total-page-count","current-page","is-loading"])]),_:1},8,["constrained"]),e.page?.content?.content_slots?.b?.sections?(t(),c(B,{key:1,sections:e.page.content.content_slots.b.sections,"sub-sections":""},null,8,["sections"])):l("",!0)])}}}),cs=Object.assign(L(is,[["__scopeId","data-v-a6c9fc0f"]]),{__name:"FnSheltersOverview"}),le=e=>e.replace(/(?:\r\n|\r|\n)/g,"<br/>"),rs={class:"product-recalls-page"},ls={class:"e-title"},ds={class:"e-product-name"},_s={class:"e-details"},us={class:"d-column"},gs={class:"c-heading"},ms={key:0,class:"d-column"},ps={class:"c-heading"},fs={key:1,class:"d-column"},hs={class:"c-heading"},bs=["fetchpriority","loading","src","alt"],ys=["innerHTML"],vs={class:"e-contact"},ws=["innerHTML"],ks=C({__name:"ProductRecalls",props:{page:{}},setup(e){const{getProductRecalls:i}=mt(V());return(n,g)=>{const h=M,d=F,p=X;return t(),m("div",rs,[o(d,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(h,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1}),o(d,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[(t(!0),m(x,null,P(s(i),(r,b)=>(t(),m("div",{key:r.article_number,class:"prp-entry"},[_("span",null,f(("formatDateStringToDDMMYYYY"in n?n.formatDateStringToDDMMYYYY:s(ne))(new Date(r.date).toString())),1),_("div",ls,[o(p,{icon:"circle_information","token-color":"color-action-icons-error-default-base",size:"s"}),k(" "+f(n.$t("productRecalls.title")),1)]),_("span",ds,f(r.title),
11),_("div",_s,[_("div",us,[_("span",gs,f(n.$t("productRecalls.articleNumber")),1),_("span",null,f(r.article_number),1)]),r.batch_number?(t(),m("div",ms,[_("span",ps,f(n.$t("productRecalls.batchNumber")),1),_("span",null,f(r.batch_number),1)])):l("",!0),r.best_before_date?(t(),m("div",fs,[_("span",hs,f(n.$t("productRecalls.bestBeforeDate")),1),_("span",null,f(("formatDateStringToDDMMYYYY"in n?n.formatDateStringToDDMMYYYY:s(ne))(new Date(r.best_before_date).toString())),1)])):l("",!0)]),_("img",{class:"e-image",fetchpriority:b===0?"high":"auto",loading:b===0?"eager":"lazy",src:r.image.url,alt:r.image.alt},null,8,bs),_("p",{class:"e-additional-info",innerHTML:("convertLineBreaksToHtml"in n?n.convertLineBreaksToHtml:s(le))(r.text)},null,8,ys),_("div",vs,[_("span",null,f(n.$t("productRecalls.contact")),1),_("span",{innerHTML:("convertLineBreaksToHtml"in n?n.convertLineBreaksToHtml:s(le))(r.contact)},null,8,ws)])]))),128))]),_:1})])}}}),$s=Object.assign(L(ks,[["__scopeId","data-v-aeba893d"]]),{__name:"FnProductRecalls"}),Ls={},Cs={class:"coupons-empty"},Ts={class:"ce-title"},xs={class:"ce-subtitle"};function As(e,i){return t(),m("div",Cs,[_("div",Ts,f(e.$t("coupon.emptyState.title")),1),_("div",xs,f(e.$t("coupon.emptyState.subtitle")),1)])}const Ss=Object.assign(L(Ls,[["render",As],["__scopeId","data-v-f5b9da4d"]]),{__name:"FnCouponsEmpty"}),Os=["href","aria-label"],Fs=["src","alt","role"],Ds={class:"cs-content"},Is={class:"cs-top-content"},Rs={class:"cs-badges"},Bs={key:0,class:"cs-validity"},Ps={class:"cs-bottom-content"},Ns={class:"cs-description"},js={class:"cs-title"},Es={class:"cs-subtitle"},zs=C({__name:"Coupon",props:{coupon:{}},setup(e){const i=e,{$i18n:n}=se(),{appLinkCoupon:g}=Xe(),h=V(),d=I(()=>{switch(i.coupon.redemptionChannel){case"STORE_ONLINE":return"storeOnline";case"STORE":return"store";case"ONLINE":return"online"}}),p=I(()=>{switch(i.coupon.type){case"f1":return"friends";case"pb":return"payback"}}),r=I(()=>{if(h.isAppview)return g(i.coupon);switch(i.coupon.type){case"f1":return n.t("url.friends");case"pb":return n.t("url.payback");case"fn":return n.t("url.application");default:return}});function b(y){if(!(y instanceof MouseEvent&&(y.ctrlKey||y.metaKey))&&(y.preventDefault(),!!s(r)))return ve(s(r),{external:h.isAppview})}return(y,w)=>{const $=X,u=Je,v=pt("click-a11y");return Q((t(),m("a",{class:"cs-coupon",href:s(r),"aria-label":y.$t("accessibility.coupon.details",{title:e.coupon.title})},[e.coupon.incentive?.formattedValue?(t(),m("div",{key:0,class:H(["cs-promotion-label",`cs-promotion-label--${e.coupon.type}`,{"cs-promotion-label--blurred":e.coupon.showAsReadOnly}])},[_("span",null,f(e.coupon.incentive.formattedValue),1),e.coupon.showAsReadOnly?(t(),c($,{key:0,class:"cs-lock",icon:"lock_closed"})):l("",!0)],2)):l("",!0),_("img",{class:H(["cs-image",{"cs-image--fallback":!e.coupon.image}]),src:e.coupon.image||"/img/order-history-product-placeholder.svg",alt:e.coupon.imageAltText,role:e.coupon.imageAltText?void 0:"presentation"},null,10,Fs),_("div",Ds,[_("div",Is,[_("div",Rs,[e.coupon.type&&!["fn","sp"].includes(e.coupon.type)?(t(),c(u,{key:0,class:H(["cs-badge",`cs-badge--${e.coupon.type}`]),coupon:""},{default:a(()=>[k(f(y.$t(`coupon.type.${s(p)}`)),1)]),_:1},8,["class"])):l("",!0),e.coupon.redemptionChannel?(t(),c(u,{key:1,class:"cs-badge cs-badge--redemption-channel",coupon:""},{default:a(()=>[k(f(y.$t(`coupon.redemptionChannel.${s(d)}`)),1)]),_:1})):l("",!0)]),e.coupon.validity?.to?(t(),m("div",Bs,f(y.$t("coupon.validity",{date:("formatDateStringToDDMMYYYY"in y?y.formatDateStringToDDMMYYYY:s(ne))(e.coupon.validity.to)})),1)):l("",!0)]),_("div",Ps,[_("div",Ns,[_("div",js,f(e.coupon.title),1),_("div",Es,f(e.coupon.subtitle),1)])])])],8,Os)),[[v,b]])}}}),Hs=Object.assign(L(zs,[["__scopeId","data-v-8d917335"]]),{__name:"FnCoupon"}),Ms={class:"coupons-page"},qs={key:1,class:"cp-coupons"},Vs=C({__name:"Coupons",props:{page:{}},async setup(e){let i,n;const g=S();return[i,n]=K(()=>ee("user-coupons",async()=>g.loadCoupons())),await i,n(),(h,d)=>{const p=M,r=F,b=O,y=Ss,w=Hs;return t(),m("div",Ms,[o(r,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[o(p,{nodes:e.page.content.breadcrumbs},null,8,["nodes"])]),_:1}
1),e.page.content?.coupons?.top_content?.sections?(t(),c(b,{key:0,sections:e.page.content.coupons.top_content.sections},null,8,["sections"])):l("",!0),o(r,{constrained:"l","padding-top":"xs","padding-bottom":"xs"},{default:a(()=>[s(g).coupons?.length?(t(),m("div",qs,[(t(!0),m(x,null,P(s(g).coupons,$=>(t(),c(w,{key:$.id,coupon:$},null,8,["coupon"]))),128))])):(t(),c(y,{key:0}))]),_:1}),e.page.content?.coupons?.bottom_content?.sections?(t(),c(b,{key:1,sections:e.page.content.coupons.bottom_content.sections},null,8,["sections"])):l("",!0)])}}}),Ys=Object.assign(L(Vs,[["__scopeId","data-v-6827327f"]]),{__name:"FnCoupons"}),Qs=""+new URL("newsletter-confirmation.Dgwueg8A.jpg",import.meta.url).href,Us=540,Ws=453,Ks={src:Qs,width:Us,height:Ws},Gs=async()=>{const e=se(),i=we({encode:!0}),n={},{data:g,error:h}=await ee(()=>`category-nodes-${s(i)}`,()=>e.$api.getNodes(s(i)),"$6NoOwBzl5Q");return n.nodes=s(g),s(h)&&(n.nodes=null),n.nodes&&(n.breadcrumbs=[{id:n.nodes.id,title:n.nodes.title,url:n.nodes.url}]),n},Xs=e=>{if(!e)return null;const i={other:[]};for(let n=0;n<e.length;n+=1){const g=e[n],h=g.title.charAt(0).toLowerCase();/[a-z]/.test(h)?((!i[h]||!Array.isArray(i[h]))&&(i[h]=[]),i[h].push(g)):i.other.push(g)}return i},Js=async({$api:e})=>{const i=we({encode:!0}),{data:n}=await ee(()=>`brand-overview-nodes-${s(i)}`,()=>e.getNodes(s(i),!0),"$YBcmHgF6tg");return{brands:Xs(s(n).nodes)}},Zs=C({__name:"[...slug]",async setup(e){let i,n;const g=se(),{$api:h,$log:d,$isocodes:p,runWithContext:r}=g,b=q(),y=V(),w=S(),$=be();let u=y.loadedPage,v,D={},T={},A=!1,B;async function z(){if(!u){vt()?u=await y.loadCmsErrorPage():await Bt();return}if(v=u?.template,u?.content?.should_redirect)return d.debug("Should redirect page to: ",u.content.should_redirect),ve(u.content.should_redirect);await y.setProductRecalls(g,u),await te()}async function te(){const Y=u?.content?.content?.[0]?.acf_fc_layout;A=v===tt&&Y!=="new_pet",D=await r(async()=>{switch(v){case"category":case"advice-overview":return Gs();case"brand-overview":return Js({$api:h});default:return{}}}),v==="product-listing"&&(T=await yt(g,u),T?.page&&(u=T.page,delete T.page))}function Le(){["category","advice","advice-overview","brand-overview","content","default-with-breadcrumbs","default-with-breadcrumbs-sandlight","default",""].includes(v??"")&&(B=ht(b.fullPath,u,{tealiumAudiences:w.tealiumAudiences,template:v}))}return[i,n]=K(()=>z()),await i,n(),Le(),[i,n]=K(()=>et({...T||{},page:u})),await i,n(),ft(()=>{g.callHook("scroll:content:loaded")}),(Y,ea)=>{const Ce=Ve,Te=Ht,xe=Vt,Ae=Ut,Se=on,Oe=_n,Fe=mn,De=Cn,Ie=Tt,ie=xn,Re=jn,Be=Mn,Pe=Ko,Ne=cs,je=$s,Ee=Ys,ze=Nt,He=Rt,Me=Ze;return t(),c(Me,null,{default:a(()=>[s(u)&&s(v)==="product-listing"?(t(),c(he,{key:0},{default:a(()=>[o(Ce,{"corrected-search-term":s(b)?.query?.correctedText?.toString(),"product-listing-template":("toRef"in Y?Y.toRef:s(bt))(s(T)),page:s(u)},null,8,["corrected-search-term","product-listing-template","page"])]),_:1})):s(u)&&s(v)!=="product-listing"?(t(),c(He,{key:1,"cache-key":s(B)},{default:a(()=>[_("div",null,[s(u)&&s(v)==="category"?(t(),c(Te,{key:0,nodes:s(D).nodes,page:s(u)},null,8,["nodes","page"])):s(u)&&s(v)==="advice"?(t(),c(xe,{key:1,page:s(u)},null,8,["page"])):s(v)==="advice-overview"?(t(),c(Ae,{key:2,nodes:s(D).nodes,page:s(u)},null,8,["nodes","page"])):s(u)&&s(v)==="brand-overview"?(t(),c(Se,{key:3,brands:s(D).brands,page:s(u)},null,8,["brands","page"])):s(v)==="contact"?(t(),c(Oe,{key:4,page:s(u)},null,8,["page"])):s(v)==="content"?(t(),c(Fe,{key:5,page:s(u)},null,8,["page"])):s(v)==="newsletter-confirmation"?(t(),c(De,re({key:6},s(Ks),{newsletter:s($).newsletterSubscription,page:s(u)}),null,16,["newsletter","page"])):s(v)==="contact-confirmation"?(t(),c(Ie,re({key:7},s(xt),{page:s(u)}),null,16,["page"])):s(v)==="default-with-breadcrumbs-sandlight"?(t(),c(ie,{key:8,page:s(u),"background-color":"sand-light"},null,8,["page"])):s(v)==="default-with-breadcrumbs"?(t(),c(ie,{key:9,page:s(u)},null,8,["page"])):s(A)?(t(),c(Re,{key:s(u)?.content.content[0].acf_fc_layout,data:s(u)?.content.content[0],page:s(u),type:s(u)?.content.content[0].acf_fc_layout},null,8,["data","page","type"])):s(v)==="friends"?(t(),c(Be,{key:11,page:s(u)},null,8,["page"])):s(v)==="friends-light"?(t(),c(Pe,{key:12,page:s(u)},null,8,["page"])):s(v)==="shelters-overview"?(t(),c(Ne,{key:13,page:s(u)},null,8,["page"])):s(v)==="product-recall"?(t(),c(je,{key:14,page:s(u)},null,8,["page"])):s(v)==="coupons"?(t(),c(Ee,{key:15,page:s(u)},null,8,["page"])):s(u)?.content?(t(),c(ze,{key:16,page:s(u)},null,8,["page"])):l("",!0)])]),_:1},8,["cache-key"])):l("",!0)]),_:1})}}}),pa=Object.freeze({__proto__:null,default:Zs});export{bo as _,Hs as a,Ss as b,ma as c,Nt as d,pa as e};
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.