PageSourceSearch

https://www.petlabco.co.uk/_next/static/chunks/7459-9696f8e7bb5c2099.js

js petlabco.co.uk collected 2026-10-04 21:53:57 UTC 35,179 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7459],{17731:(e,t,l)=>{l.d(t,{R:()=>i});var a=l(17942),s=l(24152),r=l(11500);let i=()=>{let{isModalOpen:e,modalHeight:t,modalTitle:l,modalDescription:i,modalContent:n,modalHistory:d,modalPagination:o,removeModalSpacing:c,modalCtaComponent:m,onModalClose:x,actions:h,contentClassName:u,headerClassName:p,ButtonDockBackground:g,skipTransition:b}=(0,s.uD)(),{setModalPagination:f,setIsModalOpen:j,resetModalState:v}=h;return(0,a.jsx)(r.c,{testId:"global_modal",onBackButtonClick:d?()=>{if(d){if(b)return void h?.popModalHistory();j(!1),setTimeout(()=>{h?.popModalHistory()},600)}}:void 0,open:e,height:t,title:l,description:i,removeSpacing:c,onOpenChange:e=>{j(e),e||(x?.(),d?setTimeout(()=>{h?.popModalHistory()},600):v())},pagination:o&&{...o,onPageChange:e=>{o?.totalPages&&f({currentPage:e,totalPages:o.totalPages})}},CtaComponent:m,contentClassName:u,headerClassName:p,ButtonDockBackground:g,children:n})}},26238:(e,t,l)=>{l.d(t,{R$:()=>n,vO:()=>m,Ex:()=>x,k2:()=>h,Hk:()=>p});var a=l(17942),s=l(53275),r=l(79381),i=l(83210);let n=e=>{let{navItem:t,imageWidth:l,isMobile:n=!1,imagePosition:d="top",aspectRatio:o="0.8",className:c=""}=e;if(!t||!t.url||!t.label)return null;let{label:m,url:x,shortDescription:h,image:u,mobileImage:p}=t,g="top"===d,b=n?p:u,f="number"==typeof l?`${l}px`:l;return(0,a.jsxs)(r.N_,{href:x,className:(0,i.cn)("group flex flex-col items-center gap-4",g?"flex-col":"flex-row",c),children:[b?(0,a.jsx)("div",{style:{aspectRatio:o,width:g?"100%":l},className:"relative flex-shrink-0",children:(0,a.jsx)(s.A,{alt:b?.alternativeText||"",fill:!0,sizes:f,src:b?.url||"",elementID:`product-image-${m}`,className:"rounded-2xl object-cover"})}):null,(0,a.jsxs)("div",{className:g?"space-y-1.5":"space-y-1",children:[(0,a.jsx)("p",{className:(0,i.cn)("text-primary text-center font-bold leading-[21.6px] group-hover:underline",g?"small-desktop:text-lg text-center text-base":"text-left text-base"),children:m}),h?(0,a.jsx)("p",{className:(0,i.cn)("text-primary-80 text-sm leading-normal",g?"text-center":"text-left"),children:h}):null]})]},m)};var d=l(84627),o=l(14845),c=l.n(o);let m=e=>{let{navItem:t,className:l="",iconClassName:s=""}=e;return t&&t.label?(0,a.jsxs)("div",{className:(0,i.cn)("flex w-full items-center justify-between gap-2",l),children:[(0,a.jsx)("span",{className:"text-primary inline-block py-0.5 text-left text-lg leading-[25.2px]",children:t.label}),(0,a.jsx)(c(),{alt:"",src:d.A,width:22,height:22,className:s})]}):null},x=e=>{let{navItem:t,className:l=""}=e;if(!t||!t.label||!t.url)return null;let{url:s,label:i,navigationId:n}=t;return(0,a.jsx)(r.N_,{href:s,className:l,children:(0,a.jsx)(m,{navItem:t,iconClassName:"flex-shrink-0 -rotate-90 duration-700 ease-in-out"})},n||i)},h=e=>{let{navItem:t,className:l,linkClassName:s}=e;if(!t||!t.label||!t.urlOrAnchor)return null;let{label:n,urlOrAnchor:d,navigationId:o}=t;return(0,a.jsx)(r.q7,{"data-element-id":o,className:l,children:(0,a.jsx)(r.N_,{href:d,className:(0,i.cn)("text-primary text-base leading-6 hover:underline",s),children:n})},n)};var u=l(23100);let p=e=>{let{navItem:t,customLabel:l,showCount:s=!0,itemsThreshold:n,className:d=""}=e,{t:o}=(0,u.Bd)();if(!t||!t.url||!t.childItems||s&&t.childItems.length<=n)return null;let{label:c,url:m,childItems:x}=t;return(0,a.jsx)(r.N_,{href:m,className:(0,i.cn)("text-primary text-base font-bold leading-6 underline",d),children:s?`${o("view_all")} (${l||x.length})`:`${o("view_all")} ${l??c}`})}},30027:(e,t,l)=>{l.d(t,{C:()=>i});var a=l(97427),s=l(36437),r=l(47606);let i=e=>{let{locale:t}=(0,a.A)(),l=(0,r.useRef)({}),[i,n]=(0,r.useState)(!1),[d,o]=(0,r.useState)(!1),[c,m]=(0,r.useState)({pages:[]});return(0,r.useEffect)(()=>{if(!e||l.current[t])return;let a=new AbortController;return n(!0),o(!1),(async()=>{let e=await fetch(`/api/search?locale=${t}`,{signal:a.signal,credentials:s.K?"same-origin":"omit"});if(!e.ok)throw Error("Failed to fetch search data");return await e.json()})().then(e=>{m(e),n(!1),l.current[t]=!0}).catch(e=>{e instanceof Error&&"AbortError"!==e.name&&(s.K||console.error(e.message),o(!0),n(!1),l.current[t]=!0)}),()=>{a.abort()}},[t,e]),{isLoading:i,isError:d,searchData:c}}},33974:(e,t,l)=>{l.d(t,{y:()=>a});let a=(e,t)=>e.filter(e=>(e.title||e.products[0].name||"")?.toLowerCase().includes(t.trim().replace(/\s+/g," ").toLowerCase()))},38170:(e,t,l)=>{l.d(t,{U:()=>o});var a=l(17942),s=l(23841),r=l(8716),i=l(95425);let n=(e,t,l)=>"string"==typeof e?(0,a.jsx)("div",{"data-testid":l,className:t,dangerouslySetInnerHTML:{__html:e.replace(/&amp;/g,"&")}}):(0,a.jsxs)(a.Fragment,{children:[e.mobile&&(0,a.jsx)("div",{"data-testid":`${l}
1_mobile`,className:(0,i.cn)(t,"rb-sm:hidden block"),dangerouslySetInnerHTML:{__html:e.mobile.replace(/&amp;/g,"&")}}),e.desktop&&(0,a.jsx)("div",{"data-testid":`${l}_desktop`,className:(0,i.cn)(t,"rb-sm:block hidden"),dangerouslySetInnerHTML:{__html:e.desktop.replace(/&amp;/g,"&")}})]}),d=e=>{let{autoplay:t,items:l,children:s,testId:n,wrapperClassName:d,trackId:c}=e;if(!s&&!l?.length)return null;let m=!l||l.length>1;return(0,a.jsx)("div",{"data-testid":n,"data-trackid":c,className:(0,i.cn)("bg-bold-bg rb-xs:px-0 px-2 py-3",d),children:(0,a.jsx)("div",{className:"mx-auto max-w-[583px]",children:(0,a.jsxs)(r.FN,{testId:`${n}-carousel`,trackId:c?`${c}-carousel`:void 0,options:{loop:!0,watchDrag:m},plugins:t?[(0,r.L6)({delay:4e3,stopOnInteraction:!1})]:void 0,children:[(0,a.jsx)(r.FN.Content,{wrapperClassName:"",trackId:c?`${c}-carousel`:void 0,children:l?.length?l.map((e,t)=>(0,a.jsx)(o.Slide,{testId:n,index:t,label:e.label,Icon:e.Icon,description:e.description,showIcon:e.showIcon},t)):s}),m&&(0,a.jsx)(o.Nav,{direction:"prev"}),m&&(0,a.jsx)(o.Nav,{direction:"next"})]})})})};d.displayName="UspScrolling",d.displayName="UspScrolling.Root";let o=Object.assign(d,{Slide:e=>{let{label:t,description:l,testId:s,index:i,Icon:d,showIcon:o}=e,c=`${s}_slide-${i}`;return(0,a.jsx)(r.FN.Slide,{testId:c,wrapperClassName:"basis-full flex px-6",children:(0,a.jsxs)("div",{className:"flex w-full flex-col items-center justify-center",children:[(0,a.jsxs)("div",{className:"flex items-center justify-center gap-2",children:[n(t,"text-header-text-16-sans rb-xs:text-header-text-18-sans text-center text-white",`${c}_label`),d&&(0,a.jsx)("div",{className:(e=>{if(void 0===e||!0===e)return"flex-shrink-0";if(!1===e)return"hidden";let t=["flex-shrink-0"];return!0===e.mobile&&!1===e.desktop?t.push("block rb-sm:hidden"):!1===e.mobile&&!0===e.desktop?t.push("hidden rb-sm:block"):!1===e.mobile&&!1===e.desktop&&t.push("hidden"),t.join(" ")})(o),children:d})]}),l&&n(l,"text-body-text-14 text-center text-white",`${c}_description`)]})},i)},Nav:e=>{let{direction:t}=e;return(0,a.jsx)(r.FN.Nav,{direction:t,wrapperClassName:(0,i.cn)("absolute top-1/2 -translate-y-1/2","prev"===t?"left-0":"right-0"),children:(0,a.jsx)(s.A,{className:(0,i.cn)("h-6 w-6 text-white","prev"===t?"rotate-90":"-rotate-90")})})}})},47878:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"/_next/static/media/petlab-logo.f6806a84.svg",height:24,width:136,blurWidth:0,blurHeight:0}},64290:(e,t,l)=>{l.d(t,{P:()=>j});var a=l(17942),s=l(53275),r=l(38637),i=l(64264),n=l(69221),d=l(38170),o=l(91176),c=l(21961),m=l(97388);let x=e=>{let{label:t,description:l,backgroundHex:s,testId:r}=e;return(0,a.jsxs)("div",{id:"pdp-banner","data-testid":r,className:"rb-sm:gap-4 rb-sm:p-4 rb-sm:flex-row flex flex-col items-center justify-center gap-1 p-2",style:{backgroundColor:s},children:[(0,a.jsx)("div",{className:"text-body-text-14-semibold text-primary-text rb-sm:text-header-text-18-sans inline-flex items-center text-center",dangerouslySetInnerHTML:{__html:(0,m.n)(t).toString().replace(/&amp;/g,"&")}}),l?(0,a.jsx)("div",{className:"text-body-text-14 text-primary-text rb-sm:text-header-text-18-sans rb-sm:font-normal inline-flex text-center",dangerouslySetInnerHTML:{__html:(0,m.n)(l).toString().replace(/&amp;/g,"&")}}):null]})};var h=l(90311),u=l(83210),p=l(23100);let g=e=>{let{items:t,testId:l,wrapperClassName:s}=e,{label:r,description:i}=t?.[0]||{},d=(0,h.q2)(),o=(0,n.N5)(),c=o?.isAddon,{t:m}=(0,p.Bd)();return r?(0,a.jsx)("div",{id:"pdp-banner","data-testid":l,className:(0,u.cn)("bg-primary-text rb-xs:px-0 rb-xs:py-4 px-4 py-2",s),children:(0,a.jsxs)("div",{className:"rb-xs:min-h-[36px] mx-auto flex min-h-[63px] w-full flex-col items-center justify-center gap-2",children:[(0,a.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 md:flex-row md:gap-4",children:[c&&(0,a.jsx)("div",{className:"text-primar-text text-body-text-14-semibold mx-auto rounded-lg bg-[#ffffffe6] bg-white p-2",children:m("addon_banner.greetings",{name:d?.name})}),(0,a.jsx)("div",{"data-testid":`${l}_label`,className:"text-header-text-16-sans text-center font-normal text-white",dangerouslySetInnerHTML:{__html:r}}
1)]}),i&&(0,a.jsx)("div",{"data-testid":`${l}_description`,className:"text-body-text-14 text-center text-white",dangerouslySetInnerHTML:{__html:i}})]})}):null};var b=l(97672);let f=e=>{let{testId:t,wrapperClassName:l,label:s}=e,r=(0,n.N5)();if(!r?.promo||s?.includes("BAU"))return null;let i=!!r?.promo?.promoMessageV2,d={dateTime:r?.promo?.endDateTime,label:s?.trim()||"Special Promotion",testId:t,wrapperClassName:l,showCountdown:r?.promo?.showTimer};if(i){let e=r?.promo?.promoMessageV2?.promoMessageTheme,t=r?.promo?.promoMessageV2?.promoMessageColours?[r.promo.promoMessageV2.promoMessageColours]:void 0;d={...d,dateTime:r?.promo?.endDateTime,label:r?.promo?.promoMessageV2?.promoMessageText||"",...e&&{theme:e},...t&&{backgroundHex:t},showCountdown:r?.promo?.showTimer}}return(0,a.jsx)(b.g,{...d})},j=()=>{let{banners:e}=(0,n.N5)(),t=(0,i.A)(),{asPath:l}=(0,c.useRouter)(),m=l=>{if(e&&e.length)return l?.bannerItems?.map(e=>{let l=e?.image;return{label:t(e?.label??""),description:t(e?.description??""),Icon:l?.url?(0,a.jsx)(s.A,{src:l.url,width:(e=>{if(!e.width||!e.height)throw Error("getResizedWidth(): Image Width & Height must be defined");return Math.round(18/e.height*e.width)})(l),height:18,alt:l.alternativeText??""}):void 0}}).filter(Boolean)};return e?.map((e,t)=>{switch(e.type){case r.wV.Scrollable:return(0,a.jsx)(d.U,{testId:`funnel_banner_${e.label?.toLowerCase()}`,trackId:`${(0,o.R)(l)}-nav-usp-banner`,autoplay:!0,items:m(e)},`${e.label}_${t}`);case r.wV.Personalised:if(e.label&&e.label.startsWith("EXTRA-DISCOUNT__"))return(0,a.jsx)(x,{testId:"extra-discount-banner",backgroundHex:"#FFD67A",label:e.bannerItems?.[0]?.label??"",description:e.bannerItems?.[0]?.description??""});return(0,a.jsx)(g,{testId:`funnel_banner_${e.label?.toLowerCase()}`,items:m(e)},`${e.label}_${t}`);case r.wV.Promo:return(0,a.jsx)(f,{testId:`funnel_banner_${e.label?.toLowerCase()}`,label:e.label},`${e.label}_${t}`);default:return null}})}},84627:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"/_next/static/media/chevron-dropdown.a9bffe89.svg",height:24,width:24,blurWidth:0,blurHeight:0}},90078:(e,t,l)=>{l.d(t,{y:()=>r});var a=l(17942),s=l(83210);let r=e=>{let{pathClassName:t,width:l="24",height:r="24",...i}=e;return(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",width:l,height:r,...i,children:(0,a.jsx)("path",{className:(0,s.cn)("fill-primary-text",t),d:"M16.59 8.29498L12 12.875L7.41 8.29498L6 9.70498L12 15.705L18 9.70498L16.59 8.29498Z"})})}},91150:(e,t,l)=>{l.d(t,{A:()=>a});let a={src:"/_next/static/media/close.cde0350b.svg",height:24,width:24,blurWidth:0,blurHeight:0}},95315:(e,t,l)=>{l.d(t,{A:()=>en});var a=l(17942),s=l(30027),r=l(50804),i=l(13656),n=l(16969),d=l(83210),o=l(21961),c=l(47606),m=l(41195),x=l(75505),h=l(7033);let u={src:"/_next/static/media/purchase.c33fdff3.svg",height:24,width:24,blurWidth:0,blurHeight:0};var p=l(23756),g=l(14845),b=l.n(g);let f=()=>{let e=(0,x.a)(),t=(0,h.d0)(),{setIsMobileMenuOpen:l,clearSearchTerm:s}=(0,i.GG)(),{setIsMiniCartModalOpen:r}=(0,p.xS)(),n=async()=>{r(!0),s(),l(!1)};return(0,a.jsxs)("button",{type:"button",onClick:n,"data-element-id":"header__cart-icon",className:(0,d.cn)("rb-sm:ml-2 rb-sm:mr-4 relative"),"aria-label":"Cart",children:[(0,a.jsx)(b(),{src:u,alt:"Cart icon",width:24,height:24}),(0,a.jsx)("div",{className:(0,d.cn)("bg-positive font-inter absolute right-[-8px] top-[-8px] grid h-4 w-4 !place-items-center rounded-full text-[10px] font-normal leading-[1.4] text-white"),children:(0,a.jsx)("span",{className:"inline-block leading-none",children:e?t:""})})]})},j=()=>{let e=(0,i.FW)(),{setIsMobileMenuOpen:t,setIsSearchOpen:l,clearSearchTerm:s}=(0,i.GG)();return(0,a.jsx)("div",{children:(0,a.jsx)("button",{type:"button",onClick:()=>{t(!e),l(!1),s()},"aria-label":e?"Close mobile menu":"Open mobile menu","aria-controls":"mobile-menu-nav","aria-expanded":e,"data-element-id":"mobile-menu-icon",className:"flex items-center gap-1",children:(0,a.jsxs)("div",{className:"space-y-1 px-[3px] py-[5px]","aria-hidden":"true",children:[(0,a.jsx)("div",{className:(0,d.cn)("bg-primary-text relative h-0.5 w-[18px] transition-all duration-300 ease-in-out",e&&"translate-y-1.5 rotate-45 rounded-full")}),(0,a.jsx)("div",{className:(0,d.cn)("bg-primary-text h-0.5 w-[18px] transition-all duration-150 ease-in-out",e?"opacity-0":"opacity-100")}),(0,a.jsx)("div",{className:(0,d.cn)("bg-primary-text h-0.5 w-[18px] transition-all duration-300 ease-in-out",e&&"-translate-y-1.5 -rotate-45 rounded-full")})]})})})},v={src:"/_next/static/media/search.7db825ea.svg",height:24,width:24,blurWidth:0,blurHeight:0},w=()=>{let e=(0,i.GS)(),t=(0,i.FW)(),{setIsSearchOpen:l,setIsMobileMenuOpen:s}=(0,i.GG)(),{width:n}=(0,m.lW)(),d=0===n?null:n>=parseInt(r.mb["rb-sm"]);return(0,a.jsx)("button",{type:"button",onClick:()=>{d?l(!e):(l(!e),s(!t))},"aria-label":"Search","data-element-id":"header__search-icon",className:"relative",children:(0,a.jsx)(b(),{src:v,width:24,height:24,alt:"Search Icon","aria-hidden":"true"})})};var N=l(26238),y=l(51574),k=l(38637),I=l(79381),A=l(942),_=l(52060),C=l(23100),$=l(53275);let S={src:"/_next/static/media/background.b37853da.png",height:622,width:496,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAMAAADtGH4KAAAACVBMVEUEIFQFIVYCHFA88QiAAAAAAXRSTlPw/VsqegAAAAlwSFlzAAALEwAACxMBAJqcGAAAACVJREFUeJw1ysEJACAAw8Ak+w8tVXyFKwVFUK2lDX29jFe2a3EABggAOSCBu7oAAAAASUVORK5CYII=",blurWidth:6,blurHeight:8},L=e=>{let{navItem:t,imageWidth:l,isMobile:s=!1,imagePosition:r="top",aspectRatio:i="0.8",className:n=""}=e;if(!t||!t.url||!t.label)return null;let{label:o,url:c,shortDescription:m,image:x,mobileImage:h}=t,u="top"===r,p=s?h:x,g="number"==typeof l?`${l}px`:l;return(0,a.jsxs)(I.N_,{href:c,className:(0,d.cn)("group flex flex-col items-center gap-4",u?"flex-col":"flex-row",n),children:[(0,a.jsx)("div",{style:{aspectRatio:i,width:u?"100%":l},className:"relative flex-shrink-0",children:(0,a.jsx)($.A,{alt:p?.alternativeText||o,fill:!0,sizes:g,src:p?.url||S,elementID:`product-image-${o}`,className:"rounded-2xl object-cover"})}),(0,a.jsxs)("div",{className:(0,d.cn)("flex w-full flex-col items-start"),children:[(0,a.jsx)("p",{className:(0,d.cn)("text-primary text-body-text-16-semibold rb-sm
1:text-body-text-18-semibold mb-1 text-left font-bold leading-[21.6px] group-hover:underline group-hover:underline-offset-4"),children:o}),m?(0,a.jsx)("p",{className:(0,d.cn)("text-secondary text-body-text-14 text-left leading-[140%]"),children:m}):null]})]},o)},M={src:"/_next/static/media/chevron-down.02c5f6ea.svg",height:24,width:24,blurWidth:0,blurHeight:0},T=e=>{let{navItem:t,className:l="",iconClassName:s=""}=e;return t&&t.label?(0,a.jsxs)("div",{className:(0,d.cn)("flex w-full items-center justify-between gap-2",l),children:[(0,a.jsx)("span",{className:"text-primary text-header-text-16-sans inline-block py-0.5 text-left transition hover:underline",children:t.label}),(0,a.jsx)(b(),{alt:"",src:M,width:22,height:22,className:s})]}):null},H=e=>{let{navItem:t,className:l=""}=e;if(!t||!t.label||!t.url)return null;let{url:s,label:r,navigationId:i}=t;return(0,a.jsx)(I.N_,{href:s,className:l,children:(0,a.jsx)(T,{navItem:t,iconClassName:"flex-shrink-0 hidden"})},i||r)},E=e=>{let{navItem:t}=e,{t:l}=(0,C.Bd)();if(!t||!t.childItems?.length)return null;let{childItems:s,navigationId:r,columnsPerRow:i}=t,d=i||n.DB;return(0,a.jsxs)(_.AccordionItem,{value:r||"",children:[(0,a.jsx)(_.AccordionTrigger,{className:"group w-full",children:(0,a.jsx)(T,{navItem:t,iconClassName:"transition-rotate group-data-rx-open:rotate-180 flex-shrink-0 duration-700 ease-in-out"})}),(0,a.jsx)(_.AccordionContent,{className:"data-rx-open:animate-slide-in-radix animate-slide-out-radix mx-auto max-w-[480px] overflow-hidden",children:(0,a.jsxs)("div",{className:"grid grid-cols-1 place-items-center gap-6 pt-5",children:[(0,a.jsx)("div",{className:"grid w-full grid-cols-2 gap-4",children:s?.slice(0,d).map(e=>(0,a.jsx)(L,{isMobile:!0,navItem:e,aspectRatio:"1.25",imageWidth:"45vw"},e.navigationId))}),r!==n.jq&&(0,a.jsx)(N.Hk,{className:"text-body-text-14-semibold underline-offset-2",navItem:t,itemsThreshold:d}),r===n.Ow&&(0,a.jsx)(N.Hk,{navItem:t,customLabel:l("articles"),showCount:!1,itemsThreshold:d,className:"text-body-text-14-semibold underline-offset-2"})]})})]},r)};var B=l(90078);let F={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5"},D=e=>{let{label:t,childLinks:l,navigationId:s,className:r,triggerClassName:i}=e;if(!t||!l?.length)return null;let n=Math.min(l.length,5);return(0,a.jsxs)(I.q7,{className:(0,d.cn)("inline-flex h-full self-center",r),"data-element-id":s,children:[(0,a.jsxs)(I.l9,{className:(0,d.cn)("group inline-flex items-center gap-1",i),children:[(0,a.jsx)("span",{className:"text-primary group-data-rx-open:font-bold text-body-text-18-semibold absolute leading-6 group-hover:font-bold",children:t}),(0,a.jsx)("span",{"aria-hidden":"true",className:"text-primary text-body-text-18 invisible font-bold leading-6 text-transparent",children:t}),(0,a.jsx)(B.y,{className:"transform-rotate duration-300 group-hover:rotate-180 group-data-[state=open]:rotate-180"})]}),(0,a.jsx)(I.UC,{className:"bg-white px-4 py-10",children:(0,a.jsx)("div",{className:(0,d.cn)(`max-w-screen-desktop mx-auto grid ${F[n]}`),children:l.map(e=>e&&e.label&&e.url?(0,a.jsx)("div",{className:"flex",children:(0,a.jsxs)(I.N_,{href:e.url,"data-element-id":e.navigationId,className:(0,d.cn)("group mr-4 block flex w-full items-center border-b border-transparent py-3 hover:border-black"),children:[(0,a.jsx)($.A,{elementID:`nav-icon-${e.navigationId}`,src:e.image?.url||"",alt:e.image?.alternativeText||"",width:24,height:24,loader:e=>{let{src:t,width:l}=e;return`${t}?width=${l}`}}),(0,a.jsx)("span",{className:"text-primary text-body-text-16-semibold ml-2 text-base leading-[22.4px] first:ml-0",children:e.label})]})},e.label):null)})})]},t)};var R=l(47510),P=l(77638),U=l(24693);let G={src:"/_next/static/media/chevron.c0ebef3b.svg",height:14,width:22,blurWidth:0,blurHeight:0},V=e=>{let{children:t}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("span",{className:"text-primary text-body-text-16-semibold text-base leading-6",children:t}),(0,a.jsx)(b(),{alt:"",src:G,width:12,height:8,loader:e=>{let{src:t,width:l}=e;return`${t}?width=${l}`},className:"origin-center rotate-90"})]})},W={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5"},q=e=>
1{let{label:t,childLinks:l,navigationId:s,className:r,triggerClassName:i,hasParentLink:o=!1}=e,{t:m}=(0,C.Bd)(),[x,h]=(0,c.useState)(""),u=!0===y.A.get(A.UE.NAME);return(0,a.jsxs)(I.q7,{className:(0,d.cn)("inline-flex h-full self-center",r),"data-element-id":s,children:[(0,a.jsxs)(I.l9,{className:(0,d.cn)("group relative inline-flex items-center gap-1",i),children:[(0,a.jsx)("span",{className:"text-primary group-data-rx-open:font-bold text-body-text-18-semibold absolute inline leading-6 group-hover:font-bold",children:t}),(0,a.jsx)("span",{"aria-hidden":"true",className:"text-primary text-body-text-18 invisible font-bold leading-6 text-transparent",children:t}),(0,a.jsx)(B.y,{className:"transform-rotate duration-300 group-hover:rotate-180 group-data-[state=open]:rotate-180"})]}),(0,a.jsx)(I.UC,{children:(0,a.jsxs)(R.bL,{value:(x||l?.at(0)?.navigationId)??"",onValueChange:e=>h(e),orientation:"vertical",className:"flex items-stretch rounded-b-2xl bg-white",children:[(0,a.jsxs)(R.B8,{className:"bg-neutral-bg flex min-w-[320px] max-w-[320px] flex-shrink-0 flex-col px-10 py-6",children:[l?.map(e=>e&&e.label&&e.navigationId?(0,a.jsx)(R.l9,{asChild:!0,onMouseEnter:()=>h(e.navigationId),value:e.navigationId,"data-element-id":`trigger-${e.navigationId}`,className:"border-b-1 data-rx-active:border-black group my-1 flex w-full cursor-pointer items-center justify-between gap-4 border-transparent py-3",children:o&&e.url?(0,a.jsx)("a",{href:e.url,children:(0,a.jsx)(V,{children:e.label})}):(0,a.jsx)("div",{children:(0,a.jsx)(V,{children:e.label})})},e.label):null),s===n.VG&&(0,a.jsx)("div",{className:"py-4",children:(0,a.jsx)(P.Q.Button,{size:"sm",testId:"shop-all-products-cta",theme:"default",variant:"primary",width:"fill",as:"a",href:`/${u?U.S2:U.cj}`,children:m("shop_all_products")})})]}),l?.map(e=>{if(!e||!e.label||!e.navigationId||!e.childItems?.length)return null;let t=e.columnsPerRow||n.DB;return(0,a.jsx)(R.UC,{value:e.navigationId,"data-element-id":`content-${e.navigationId}`,className:"data-rx-active:flex hidden w-full flex-col items-start gap-6 p-10 transition-all duration-150",children:(0,a.jsx)("div",{className:"w-full max-w-[1040px]",children:e.navigationId===n.GB?(0,a.jsxs)("div",{className:"grid grid-cols-[30%_1fr] gap-20",children:[(0,a.jsx)(L,{navItem:e.childItems[0],imageWidth:300}),(0,a.jsxs)("div",{className:"flex flex-col justify-center gap-6",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-1",children:[(0,a.jsx)("h3",{className:"text-primary text-header-text-20-sans text-2xl font-bold leading-7",children:m("explore_the_range")}),(0,a.jsx)(N.Hk,{className:"text-body-text-14-semibold underline-offset-2",navItem:e,itemsThreshold:t})]}),(0,a.jsx)("div",{className:"grid grid-cols-[repeat(auto-fill,minmax(250px,1fr))] gap-x-10 gap-y-4",children:e.childItems.slice(1,7).map((e,t)=>(0,a.jsx)(L,{navItem:e,imagePosition:"left",imageWidth:88,aspectRatio:"1",className:"[&>div>img]:!rounded-lg"},t))})]})]}):(0,a.jsxs)("div",{className:"grid grid-cols-1 place-items-center gap-6",children:[(0,a.jsxs)("div",{className:(0,d.cn)("flex w-full flex-row items-center",e?.shortDe
1scription?"justify-between":"justify-end"),children:[e?.shortDescription&&(0,a.jsx)("h3",{className:"text-header-text-20-sans",children:e.shortDescription}),s!==n.jq&&(0,a.jsx)(N.Hk,{className:"!text-body-text-14-semibold underline-offset-2",navItem:e,itemsThreshold:t}),e.navigationId===n.Ow&&(0,a.jsx)(N.Hk,{navItem:e,customLabel:m("articles"),showCount:!1,itemsThreshold:t,className:"!text-body-text-14-semibold underline-offset-2"})]}),(0,a.jsx)("div",{className:(0,d.cn)("grid w-full gap-4",t>4?"grid-cols-[repeat(auto-fill,minmax(140px,1fr))]":W[t]),children:e.childItems.slice(0,t).map((e,t)=>(0,a.jsx)(L,{navItem:e,imageWidth:250},t))})]})})},e.label)})]})})]},t)},z=e=>{let{navItems:t=[],className:l}=e,s={className:"group",triggerClassName:"px-2 group-first:pl-0 group-last:pr-0"},r=y.A.get(A.en.NAME);return(0,a.jsxs)(I.bL,{delayDuration:150,className:(0,d.cn)("flex items-stretch",l),children:[(0,a.jsx)(I.B8,{className:"flex h-full list-none items-center",children:t.map(e=>{let{label:t,childLinks:l,menuLayout:i}=e;return l?.length&&i===k.nU.Tabbed?(0,c.createElement)(q,{...e,...s,key:t,hasParentLink:r&&e.navigationId===n.VG}):l?.length?(0,c.createElement)(D,{...e,key:t,className:"group",triggerClassName:"px-2 group-first:pl-0 group-last:pr-0"}):(0,a.jsx)(N.k2,{navItem:e,...s},e.label)})}),(0,a.jsxs)("div",{className:"absolute left-0 top-full flex w-full justify-center",children:[(0,a.jsx)(I.LM,{className:"relative z-[60] h-[var(--radix-navigation-menu-viewport-height)] w-full origin-[top_center] overflow-hidden rounded-b-3xl border-t border-t-white bg-white shadow-md transition-[height] duration-300"}),(0,a.jsx)("div",{className:(0,d.cn)("transition-background-filter transition-background-color duration-400 small-desktop:block backdrop-filter-safari absolute left-0 z-[1] hidden h-screen w-full bg-black/60 opacity-100 backdrop-blur-md transition-opacity first:hidden")})]})]})};var O=l(86362),K=l(10365),X=l(97427),Q=l(76007),J=l(45474);let Y=e=>{let{searchPages:t,isMobileMenu:l}=e,{t:s}=(0,C.Bd)(),{locale:r,defaultLocale:i,isDefaultLocale:n}=(0,X.A)(),[o,m]=(0,c.useState)(-1),x=(0,c.useRef)([]);return(0,c.useEffect)(()=>{let e=e=>{"ArrowDown"===e.key?(e.preventDefault(),m(e=>{let l=Math.min(e+1,t.length-1);return x.current[l]?.focus(),l})):"ArrowUp"===e.key&&(e.preventDefault(),m(e=>{let t=Math.max(e-1,0);return x.current[t]?.focus(),t}))};return window.addEventListener("keydown",e),()=>{window.removeEventListener("keydown",e)}},[t]),(0,a.jsx)("ul",{children:t?.slice(0,l?3:4).map((e,t)=>{let l=e.products[0].prices.sub.length>0?e.products[0].prices.sub[0]:e.products[0].prices.otp[0],s=`/${U.G8}${e.urlPath}`;return(0,a.jsx)("li",{children:(0,a.jsx)("a",{className:(0,d.cn)(t===o&&"bg-primary/10","hover:bg-hover-bg flex w-full items-center p-4"),href:n?s:`/${r}${s}`,"aria-label":`Product: ${(0,J.K)(e.title??"")}. Price: ${(0,Q.v)({locale:r||i,amount:l.discounted_price})}. Original Price: ${(0,Q.v)({locale:r||i,amount:l.perceived_rrp})}.`,ref:e=>{x.current[t]=e},tabIndex:0,children:(0,a.jsxs)("div",{className:(0,d.cn)("flex min-h-[72px] w-full"),children:[e.products[0].image?.url?(0,a.jsx)("div",{className:"bg-neutral-bg mr-4 h-[72px] w-[72px] rounded-lg",children:(0,a.jsx)(K.A,{elementID:"search-"+(0,J.K)(e.title??""),src:e.products[0].image.url,alt:(0,J.K)(e.title??""),width:70,height:78,className:"h-full min-w-[72px] rounded-lg object-cover p-1"})}):null,(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-body-text-16-semibold tracking-normal",dangerouslySetInnerHTML:{__html:e.title||e.products[0].name||""}}),(0,a.jsxs)("div",{className:"mt-2 flex items-start",children:[(0,a.jsx)("span",{className:"text-body-text-14 pr-1 line-through",children:(0,Q.v)({amount:l.perceived_rrp,locale:r||i})}),(0,a.jsx)("span",{className:"text-body-text-16-semibold mr-2 tracking-normal",children:(0,Q.v)({locale:r||i,amount:l.discounted_price})})]})]})]})})},e.id)})})};var Z=l(91150),ee=l(33974);let et=e=>{let{pages:t,autoFocus:l,placeholder:s,isMobileMenu:r,className:n}=e,{t:o}=(0,C.Bd)(),{setIsSearchOpen:m}=(0,i.GG)(),x=(0,i.GS)(),[h,u]=(0,c.useState)(""),p=(0,c.useMemo)(()=>(0,ee.y)(t,h),[t,h]),g=(0,c.useRef)(null);return(0,a.jsxs)("div",{className:"small-desktop:relative",children:[(0,a.jsxs)("div",{className:(0,d.cn)("bg-active-bg flex h-10 w-[308px] items-center gap-2 rounded-full px-4 outline outline-1 outline-black focus-within:outline-2 focus-within:outline-black hover:outline-2 hover:outline-black",n),children:[(0,a.jsx)(b(),{src:v,width:24,height:24,alt:"Search Icon","aria-hidden":"true"}),(0,a.jsx)("input",{ref:g,value:h,autoFocus:l,placeholder:s,"aria-label":"Type search term",className:"text-primary placeholder:text-secondary-text text-body-text-14 h-10 flex-1 bg-transparent outline-none",onChange:e=>{u(e.target.value||"");let t=new URL(window.location.href);t.searchParams.set("q",e.target.value),window.history.pushState({},"",t.toString())},"data-element-id":"search__input"}),(0,a.jsx)("button",{"aria-label":"Clear search term",onClick:()=>{m?.(!x),u("");let e=new URL(window.location.href);e.searchParams.delete("q"),window.history.pushState({},"",e.toString())},className:"small-desktop:block hidden",children:(0,a.jsx)(b(),{src:Z.A,alt:"Close Icon",width:24,height:24})})]}),h&&h.length>2&&(0,a.jsxs)("span",{className:"absolute right-[10000%]",tabIndex:-1,
1children:[p?.length," ",o("matches_found")]}),(0,a.jsxs)("section",{className:(0,d.cn)((!h||h.length<=2)&&"hidden","small-desktop:top-[42px] small-desktop:h-auto text-primary small-desktop:p-0 small-desktop:w-[308px] small-desktop:absolute small-desktop:left-0 small-desktop:shadow-lg z-10 mx-auto w-full rounded-b-2xl bg-white pt-2"),children:[p?.length?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(Y,{searchPages:p,isMobileMenu:r}),p&&p?.length>=5&&(0,a.jsx)("a",{href:`/collections?q=${h}`,children:(0,a.jsxs)("button",{style:{textUnderlinePosition:"from-font"},className:"text-primary text-body-text-14-semibold w-full py-2 underline",children:[o("view_all")," (",p?.length,")"]})})]}):(0,a.jsx)("p",{className:"text-primary text-header-text-16-sans pl-4 pt-4 text-lg italic",children:"No results found."}),(0,a.jsx)("div",{className:"rb-sm:shadow-lg h-4 rounded-b-2xl"})]})]})},el=e=>{let{searchData:t,navItems:l}=e,{t:s}=(0,C.Bd)(),r=(0,i.GS)();return(0,a.jsxs)("div",{className:"space-y-6",children:[t?(0,a.jsx)("div",{className:"mt-1 w-full rounded-2xl bg-white px-4 py-4",children:(0,a.jsx)(et,{autoFocus:r,pages:t.pages,placeholder:"Start typing",className:"!w-full"})}):null,(0,a.jsx)(I.bL,{delayDuration:150,className:"!m-0",children:(0,a.jsx)(I.B8,{className:"flex w-full flex-col",children:l?.map(e=>{let{label:t,childLinks:l,navigationId:r}=e,i=l?.some(e=>e.childItems?.length);return(0,a.jsxs)(I.q7,{className:"border-primary-20 mt-1 space-y-5 rounded-2xl bg-white px-6 py-5",children:[(0,a.jsx)("h3",{className:"text-primary text-header-text-20-sans font-bold",children:t}),i?(0,a.jsxs)(_.Root,{collapsible:!0,type:"single",className:"space-y-6",children:[l?.map(e=>(0,a.jsx)(E,{navItem:e},e.navigationId)),r===n.VG&&(0,a.jsx)(O.A,{size:"sm",testId:"shop-all-products-cta",theme:"default",variant:"primary",width:"fill",as:"a",href:`/${"true"===y.A.get(A.UE.NAME)?U.S2:U.cj}`,children:s("shop_all_products")})]}):l?.map(e=>(0,a.jsx)(H,{navItem:e,className:"block"},e.navigationId))]},r||t)})})})]})};var ea=l(47878);let es=e=>{let{locale:t,isDefaultLocale:l}=(0,X.A)();return(0,a.jsx)("div",{"data-element-id":"header__petlab-logo",className:"flex items-center justify-center",children:(0,a.jsx)("a",{href:l?"/":`/${t}`,children:(0,a.jsx)(b(),{src:ea.A,alt:"PetLabCo Logo",...e,"data-element-id":"petlab-logo"})})})},er=e=>{let{label:t,urlOrAnchor:l,navigationId:s,className:r=""}=e;return l&&t?(0,a.jsx)(I.q7,{"data-element-id":s,className:r,children:(0,a.jsx)(I.N_,{asChild:!0,children:(0,a.jsx)("a",{href:l,children:(0,a.jsx)("div",{className:"flex items-center gap-1",children:(0,a.jsx)("span",{className:"text-positive-text text-body-text-18-semibold leading-4 underline underline-offset-4",children:t})})})})}):null},ei=e=>{let{navItems:t,searchData:l,showSearch:s,className:r=""}=e,{t:o}=(0,C.Bd)(),m=(0,i.GS)();return(0,a.jsx)("div",{className:(0,d.cn)("flex items-stretch justify-end gap-4",r),children:s&&l?(0,a.jsx)("div",{className:"flex items-center",children:(0,a.jsx)(et,{autoFocus:m,pages:l.pages,placeholder:"Start typing"})}):(0,a.jsxs)(I.bL,{delayDuration:150,className:(0,d.cn)("flex items-stretch",r),children:[(0,a.jsxs)(I.B8,{className:"flex h-full list-none items-center justify-end gap-4",children:[t?.map(e=>{if(!e)return null;switch(e.navigationId){case n.PX:return(0,a.jsx)(er,{className:(0,d.cn)("py-1"),...e},n.PX);case"account":case"help":return(0,c.createElement)(D,{...e,key:e.label});default:return null}}),(0,a.jsx)(er,{}),(0,a.jsx)(I.q7,{"data-element-id":"navigation-search",className:"flex",children:(0,a.jsx)(w,{})}),(0,a.jsx)(I.q7,{"data-element-id":"navigation-cart",className:"flex",children:(0,a.jsx)(f,{})})]}),(0,a.jsxs)("div",{className:"absolute left-0 top-full flex w-full justify-center",children:[(0,a.jsx)(I.LM,{className:(0,d.cn)("relative z-[60] h-[var(--radix-navigation-menu-viewport-height)] w-full origin-[top_center] overflow-hidden rounded-b-3xl border-t border-t-white shadow-md transition-[height] duration-300")}),(0,a.jsx)("div",{className:"transition-background-filter transition-background-color duration-400 small-desktop:block backdrop-filter-safari absolute left-0 z-[1] hidden h-screen w-full bg-black/60 opacity-100 backdrop-blur-md transition-opacity first:hidden"})]})]})})},en=e=>{var t;let l,x,{isSticky:h,navigationCollectionsData:u}=e,p=(0,i.GS)(),g=(0,i.FW)(),b=(0,c.useRef)(null),{width:v}=(0,m.lW)(),N=0===v?null:v>=parseInt(r.mb["rb-sm"]),[y,k]=(0,c.useState)(0);(0,c.useEffect)(()=>
1{if(g){let e=setTimeout(()=>{k((b.current?.offsetHeight??0)+(b.current?.getBoundingClientRect().top??0))},50);return()=>clearTimeout(e)}},[g]);let{searchData:I}=(0,s.C)(p||g),{leftNav:A,rightNav:_,mobileNav:C}=(t=n.hp-1,l=structuredClone(u).filter(e=>e.name?.includes("Rebrand")),x=l.find(e=>"desktop"===e.device)?.items?.slice(0,t),{leftNav:x,rightNav:l.find(e=>"desktop"===e.device)?.items?.slice(t).filter(Boolean),mobileNav:l.find(e=>"mobile"===e.device)?.items});return(0,o.useRouter)(),(0,c.useEffect)(()=>{g&&!N?document.body.classList.add("no-scroll"):document.body.classList.remove("no-scroll")},[g,N]),(0,a.jsxs)(c.Fragment,{children:[(0,a.jsx)("div",{className:(0,d.cn)("rb-sm:flex relative z-[60] hidden min-h-[64px] w-full bg-white px-10",h&&"sticky top-0"),id:"ecom-header",children:(0,a.jsxs)("div",{className:"mx-auto grid w-full max-w-[1360px] grid-cols-[minmax(0,1fr)_160px_minmax(0,1fr)] items-stretch",children:[(0,a.jsx)(z,{navItems:A}),(0,a.jsx)(es,{width:136,height:24}),(0,a.jsx)(ei,{navItems:_,showSearch:(p&&N)??!0,searchData:I,className:"gap-4"})]})}),(0,a.jsx)("div",{ref:b,className:(0,d.cn)("rb-sm:hidden rb-xs:px-6 z-[60] bg-white p-3",h&&"sticky top-0"),children:(0,a.jsxs)("div",{className:(0,d.cn)("relative grid w-full grid-cols-[114px_minmax(0,1fr)]",g&&"grid-cols-1"),children:[g||p?(0,a.jsx)("div",{className:"text-body-text-16-semibold flex justify-center",children:p?"Search":"Menu"}):(0,a.jsx)(es,{width:114,height:24}),(0,a.jsxs)("div",{className:(0,d.cn)("flex items-center justify-end gap-4",g&&"absolute right-0"),children:[g?null:(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w,{}),(0,a.jsx)(f,{})]}),(0,a.jsx)(j,{})]})]})}),(0,a.jsx)("div",{id:"mobile-menu-nav","aria-hidden":!g,style:{to
1p:`${y}px`},className:(0,d.cn)("rb-sm:hidden ease fixed z-50 h-screen w-full overflow-hidden bg-white transition-transform duration-300",g?"translate-x-0":"-translate-x-full"),children:g&&(0,a.jsx)("div",{className:"bg-neutral-bg h-screen overflow-y-auto overflow-x-hidden",style:{maxHeight:`${(window?.innerHeight??0)-y}px`},children:(0,a.jsx)(el,{searchData:I,navItems:C})})})]})}},95944:(e,t,l)=>{l.d(t,{NQ:()=>h,Qg:()=>u,W2:()=>r,XR:()=>o,fL:()=>d,hs:()=>a,j$:()=>x,jB:()=>m,m3:()=>s,ov:()=>i,qF:()=>c,s$:()=>n});let a="all-products",s="cat-probiotics",r="Cat Products",i="new-products",n="whatsnew",d="limitedtimeoffer",o="newformula",c="/collections",m=c,x=c,h=c,u=`/fr${c}`},97388:(e,t,l)=>{l.d(t,{n:()=>s});var a=l(14928);let s=e=>{let t;if(!e||""===e)return"";let l=Object.keys(a.Hb).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),r=RegExp(`\\[(${l})((?:\\s+[^\\]]*)?)\\](?:([\\s\\S]*?)\\[/\\1\\])?`,"gi"),i=[],n=0;for(;null!==(t=r.exec(e));){let[l,r,d,o]=t,c=t.index,m=a.Hb[r.toLowerCase()];if(!m)continue;n<c&&i.push(e.slice(n,c));let x=m.isSelfClosing?null:s(o||""),h=(0,a.vF)(d);i.push(m.toString?.(x,h)||""),n=c+l.length}return n<e.length&&i.push(e.slice(n)),i.join("")}}}]);

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.