1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[120],{13076:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slug]]",function(){return n(37059)}])},37059:function(t,e,n){"use strict";n.r(e),n.d(e,{__N_SSG:function(){return h},default:function(){return _}});var s=n(85893),c=n(45697),o=n.n(c),r=n(67294),i=n(11163);n(32382);var u=n(87653),a=n(62423),d=n(57020),l=n(61938);let f=(0,u.X)({storeDomain:"http://theyoungvets.myshopify.com",apiVersion:"2024-01",publicAccessToken:"3107dcf8bd9b85e4de67dece3929bbdf"}),p="\n query {\n products(first: 10) {\n edges {\n node {\n ...product\n }\n }\n }\n }\n ".concat(a.Z,"\n");var h=!0;function _(t){let{title:e="Missing title",description:n,disallowRobots:c,content:o=[],config:u={},slug:a}=t,h=(0,i.useRouter)(),[_,g]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!0),[w,E]=(0,r.useState)(!1),[m,x]=(0,r.useState)("light"),[N,k]=(0,r.useState)([]);return((0,r.useEffect)(()=>{(async function(){if(o&&o.filter(t=>"productGrid"===t._type).length>0)try{let{data:t}=await f.request(p);console.log("Fetched products:",t.products),k(t.products),y(!1)}catch(t){console.error("Error fetching products:",t),y(!1)}else y(!1)})()},[o]),(0,r.useEffect)(()=>{o&&g(!0)},[o]),(0,r.useEffect)(()=>{let t=h.asPath.includes("product"),e=h.asPath.includes("community-resource-center");E(e||t),x(e||t?"dark":"light")},[h.asPath]),h.isFallback)?(0,s.jsx)("div",{}):_&&(0,s.jsx)("div",{className:a,"data-theme":m,children:(0,s.jsx)(d.Z,{id:"website-app",textWhite:w,children:(0,s.jsx)("div",{className:"".concat(a," flex flex-col"),children:o&&(0,s.jsx)(l.Z,{sections:o,products:N})})})})}_.propTypes={title:o().string,description:o().string,slug:o().string,disallowRobots:o().bool,content:o().any,config:o().any}}},function(t){t.O(0,[855,668,488,185,231,20,938,888,774,179],function(){return t(t.s=13076)}),_N_E=t.O()}]);
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.