1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="f54ec311-53ec-72e2-2d26-356167c0a423")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,458175,e=>{"use strict";function t(e){return Number.isFinite(e)?Math.max(1,Math.floor(e)):1}function a(e){return e.find(e=>"uncategorized"!==e.slug)??null}function r(e,t){return[...function(e,t){let a=new Map(e.filter(e=>"uncategorized"!==e.slug).map(e=>[e.id,e])),r=[],l=t.parent;for(;l;){let e=a.get(l);if(!e)break;r.unshift(e),l=e.parent}return r}(e,t),t].map(e=>e.slug)}function l(e,a=1){let r=t(a),s=(Array.isArray(e)?e:[e]).filter(Boolean).join("/");return r<=1?`/blogs/${s}`:`/blogs/${s}/page/${r}`}function s(e){let a=t(e?.page??1),r=e?.categorySegments?.filter(Boolean)??[];return r.length?l(r,a):function(e=1){let a=t(e);return a<=1?"/blogs":`/blogs/page/${a}`}(a)}function i(e,t){let a=(Array.isArray(e)?e:[e]).filter(Boolean);return`/blogs/${[...a,t].join("/")}`}function n(e,a=1){let r=t(a),l=`/blogs/author/${e}`;return r<=1?l:`${l}/page/${r}`}e.s(["BLOG_POSTS_PER_PAGE",0,9,"buildAuthorPath",()=>n,"buildBlogCategoryPath",()=>l,"buildBlogListingPath",()=>s,"buildBlogPostPath",()=>i,"getCategoryPathSlugs",()=>r,"getPrimaryBlogCategory",()=>a])},754295,e=>{"use strict";var t=e.i(843476),a=e.i(522016),r=e.i(618566),l=e.i(271645),s=e.i(384364),i=e.i(284824),n=e.i(345454),o=e.i(291088),d=e.i(458175);let c={"expecting-mothers":"expecting-mothers","expecting-mother":"expecting-mothers","new-born":"new-born","new-borns":"new-born",newborn:"new-born",newborns:"new-born",infant:"infant",infants:"infant",toddler:"toddler",toddlers:"toddler",preschool:"preschool",preschools:"preschool",preschooler:"preschool",preschoolers:"preschool","growing-kid":"kids","growing-kids":"kids",kid:"kids",kids:"kids"},m={"expecting-mothers":"/img/blog-icons/expecting-mothers.webp","new-born":"/img/blog-icons/new-born.webp",infant:"/img/blog-icons/infant.webp",toddler:"/img/blog-icons/toddler.webp",preschool:"/img/blog-icons/preschool.webp","school-age":"/img/blog-icons/school-age.webp",kids:"/img/blog-icons/kids.webp"},u={"expecting-mothers":"ð¤°","new-born":"ð¶",infant:"ð¼",toddler:"ð§",preschool:"ð","school-age":"ð",kids:"ð"};function g(e){let t=e.trim().toLowerCase().replace(/[\s_]+/g,"-");return c[t]??t}function h(e){return m[g(e)]??null}function x(e){return u[g(e)]??"ð"}let f=["expecting-mothers","new-born","infant","toddler","preschool","kids"];function b({categories:e}){let c=(0,r.useRouter)(),m=(0,r.usePathname)(),[u,b]=(0,l.useState)(!1),[v,j]=(0,l.useState)(!1),N=(0,l.useRef)(null),[k,P]=(0,l.useState)(!1),[M,O]=(0,l.useState)(!1),C=[...e.filter(e=>"uncategorized"!==e.slug&&0===e.parent)].sort((e,t)=>{let a=f.indexOf(g(e.slug)),r=f.indexOf(g(t.slug));return(-1===a?Number.MAX_SAFE_INTEGER:a)-(-1===r?Number.MAX_SAFE_INTEGER:r)}).slice(0,6),B=m.split("/").filter(Boolean),A="blogs"===B[0]?B.slice(1):[],G=A.findIndex(e=>"page"===e),S=G>=0?A.slice(0,G):A,L=e.reduce((e,t)=>("uncategorized"!==t.slug&&0!==t.parent&&(e[t.parent]=[...e[t.parent]??[],t]),e),{}),E=new Set(e.map(e=>e.slug)),_=S.filter(e=>E.has(e))[0]??null,z=e.find(e=>e.slug===_&&0===e.parent)??null,$=z?.id??-1;(0,l.useEffect)(()=>(u?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[u]),(0,l.useEffect)(()=>{let e,t=()=>{cancelAnimationFrame(e),e=requestAnimationFrame(()=>{let e=window.scrollY;j(t=>!t&&e>80||(!t||!(e<10))&&t)})};return t(),window.addEventListener("scroll",t,{passive:!0}),()=>{cancelAnimationFrame(e),window.removeEventListener("scroll",t)}},[]);let R=()=>{let e=N.current;e&&(P(e.scrollLeft>0),O(e.scrollLeft+e.clientWidth<e.scrollWidth-1))};return(0,l.useEffect)(()=>{R();let e=()=>R();return window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[C.length]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"sticky top-0 z-99 flex w-full flex-col",children:(0,t.jsxs)("header",{className:"flex w-full flex-col bg-(--Primary-Mauve-200) px-4 py-4 transition-colors duration-300 md:px-6 lg:px-8 shadow-[0_2px_8px_rgba(0,0,0,0.2)]",children:[(0,t.jsxs)("div",{className:"flex w-full justify-between",children:[(0,t.jsxs)("div",{className:"grid w-full grid-cols-[auto_1fr_auto] items-center gap-2 md:hidden",children:[(0,t.jsx)("button",{onClick:()=>b(!0),"aria-label":"Open blog menu",className:"justify-self-start rounded-lg bg-(--Gray-100) p-2 transition-colors hover:bg-(--Gray-200) active:bg-(--Gray-300) shadow-sm",children:(0,t.jsx)(w,{className:"text-(--Gray-800)"})}),(0,t.jsxs)(a.default,{href:o.AppRoutes.BLOG,className:"min-w-0 justify-self-center shrink flex items-center gap-2 h-6","aria-label":"OZi Parenting Club home",children:[(0,t.jsx)("img",{src:n.default.OZI_LOGO,alt:"OZi",className:"h-6 max-w-full"}),(0,t.jsx)("span",{className:"text-(--Primary-Mauve-600) text-lg font-bold leading-none",children:"|"}),(0,t.jsx)("span",{className:"text-lg font-extrabold text-(--Primary-Mauve-600) whitespace-nowrap leading-none",children:"Parenting Club"})]}),(0,t.jsx)(a.default,{href:o.AppRoutes.HOME,className:"justify-self-end whitespace-nowrap rounded-xl bg-(--Primary-Mauve-600) px-3 py-1.5 text-xs font-bold text-white shadow-md transition-colors hover:bg-(--Primary-Mauve-700) active:bg-(--Primary-Mauve-700)","aria-label":"Back to OZi Shop",children:"Back to Shop"})]}),(0,t.jsxs)("div",{className:"hidden w-full grid-cols-[1fr_auto_1fr] items-center gap-2 md:grid",children:[(0,t.jsx)("div",{className:"flex min-w-0 items-center gap-3",children:(0,t.jsxs)(a.default,{href:o.AppRoutes.BLOG,className:"shrink-0 flex items-center gap-2","aria-label":"OZi Parenting Club home",children:[(0,t.jsx)("img",{src:n.default.OZI_LOGO,alt:"OZi",className:"h-10"}),(0,t.jsx)("span",{className:"h-8 text-(--Primary-Mauve-600) text-2xl font-bold leading-none",children:"|"}),(0,t.jsx)("span",{className:"h-10 flex items-center lg:text-3xl md:text-lg font-extrabold text-(--Primary-Mauve-600) leading-none",children:"Parenting Club"})]})}),(0,t.jsx)("div",{}),(0,t.jsx)(a.default,{href:o.AppRoutes.HOME,className:"justify-self-end rounded-xl bg-(--Primary-Mauve-600) px-5 py-2 text-sm font-bold text-white shadow-md transition-colors hover:bg-(--Primary-Mauve-700)","aria-label":"Back to OZi Shop",children:"Back to Shop"})]})]}),C.length>0&&(0,t.jsx)("div",{className:`transition-[margin] duration-[350ms] ease-[cubic-bezier(0.4,0,0.2,1)] ${v?"mt-2":"mt-4"}`,children:(0,t.jsxs)("nav",{className:"relative w-full","aria-label":"Blog categories",children:[k&&(0,t.jsx)("button",{onClick:()=>N.current?.scrollBy({left:-200,behavior:"smooth"}),"aria-label":"Scroll categories left",className:"absolute left-0 top-1/2 z-10 hidden h-7 w-7 -translate-y-1/2 items-center justify-center rounded-full border border-gray-100 bg-white shadow-md transition-all hover:bg-gray-50 lg:flex",children:(0,t.jsx)(s.ArrowLeft2,{size:16,className:"text-(--Gray-700)"})}),M&&(0,t.jsx)("button",{onClick:()=>N.current?.scrollBy({left:200,behavior:"smooth"}),"aria-label":"Scroll categories right",className:"absolute right-0 top-1/2 z-10 hidden h-7 w-7 -translate-y-1/2 items-center justify-center rounded-full border border-gray-100 bg-white shadow-md transition-all hover:bg-gray-50 lg:flex",children:(0,t.jsx)(i.ArrowRight2,{size:16,className:"text-(--Gray-700)"})}),(0,t.jsx)("div",{ref:N,onScroll:R,className:"flex w-full gap-4 overflow-auto hide-scrollbar md:py-1 lg:justify-between",children:C.map(a=>(0,t.jsx)(p,{isActive:$===a.id,iconSrc:h(a.slug),fallbackEmoji:x(a.slug),label:a.name,isScrolled:v,onClick:()=>c.push((0,d.buildBlogCategoryPath)((0,d.getCategoryPathSlugs)(e,a)))},a.id))})]})})]})}),u&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"fixed inset-0 z-[200] bg-black/40 animate-in fade-in duration-200 md:hidden",onClick:()=>b(!1),"aria-hidden":"true"}),(0,t.jsxs)("aside",{className:"fixed top-0 left-0 bottom-0 z-[201] w-[85vw] max-w-sm overflow-y-auto bg-white shadow-2xl animate-in slide-in-from-left duration-200 md:hidden",role:"dialog","aria-modal":"true","aria-label":"Blog menu",children:[(0,t.jsxs)("div",{className:"sticky top-0 z-10 flex items-center justify-between border-b border-gray-100 bg-white px-4 py-4",children:[(0,t.jsxs)(a.default,{href:o.AppRoutes.BLOG,onClick:()=>b(!1),"aria-label":"OZi Parenting Club home",className:"flex items-center gap-1.5",children:[(0,t.jsx)("img",{src:n.default.OZI_LOGO,alt:"OZi",className:"h-7"}),(0,t.jsx)("span",{className:"text-(--Primary-Mauve-600) text-lg font-bold leading-none",children:"|"}),(0,t.jsx)("span",{className:"text-lg font-extrabold text-(--Primary-Mauve-600) leading-none",children:"Parenting Club"})]}),(0,t.jsx)("button",{onClick:()=>b(!1),"aria-label":"Close menu",className:"rounded-lg p-1.5 transition-colors hover:bg-(--Gray-100) active:bg-(--Gray-200)",children:(0,t.jsx)(y,{className:"text-(--Gray-700)"})})]}),(0,t.jsx)("div",{className:"flex flex-col py-2",children:C.map(a=>{let r=h(a.slug),l=x(a.slug),s=$===a.id;return(0,t.jsx)("div",{className:"border-t border-gray-50",children:(0,t.jsxs)("button",{onClick:()=>{var t;return t=(0,d.buildBlogCategoryPath)((0,d.getCategoryPathSlugs)(e,a)),void(b(!1),c.push(t))},className:`flex w-full items-center gap-3 px-5 py-3.5 text-left transition-colors hover:bg-(--Gray-50) ${s?"bg-(--Primary-Mauve-100)":""}`,children:[r?(0,t.jsx)("img",{src:r,alt:"",className:"h-7 w-9 object-contain"}):(0,t.jsx)("span",{"aria-hidden":"true",className:"flex h-7 w-9 items-center justify-center text-xl",children:l}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col",children:[(0,t.jsx)("span",{className:`text-base font-semibold ${s?"text-(--Primary-Mauve-700)":"text-(--Gray-800)"}`,children:a.name}),L[a.id]?.length?(0,t.jsx)("span",{className:"text-xs text-(--Gray-500)",children:"Browse sub-categories on the listing page"}):null]})]})},a.id)})})]})]})]})}function p({isActive:e,iconSrc:a,fallbackEmoji:r,label:l,isScrolled:s,onClick:i}){return(0,t.jsxs)("button",{onClick:i,className:`group relative flex shrink-0 cursor-pointer items-center gap-1.5 rounded-lg text-black transition-all duration-200 after:absolute after:bottom-0 after:left-1/2 after:h-[2px] after:-translate-x-1/2 after:transition-all after:duration-200 md:gap-1 md:px-2 md:py-1 ${e?`font-semibold text-(--Primary-Mauve-600) ${!s?"bg-(--Primary-Mauve-100)":""} ${s?"after:w-4 after:bg-(--Primary-Mauve-600) md:after:w-6":"after:w-0"}`:"hover:-translate-y-1 hover:bg-(--Gray-100) after:w-0"} ${s?"max-md:flex-row max-md:px-2 max-md:py-1 max-md:text-xs":"max-md:flex-col max-md:gap-1 max-md:p-1 max-md:text-xs"}`,children:[a?(0,t.jsx)("img",{src:a,alt:"","aria-hidden":"true",className:`shrink-0 object-contain transition-all duration-[350ms] ease-[cubic-bezier(0.4,0,0.2,1)] group-hover:scale-110 md:h-8 md:w-10 ${s?"max-md:h-0 max-md:w-0 max-md:opacity-0":"max-md:h-8 max-md:w-10 max-md:opacity-100"}`}):(0,t.jsx)("span",{"aria-hidden":"true",className:`flex shrink-0 items-center justify-center text-2xl transition-all duration-[350ms] ease-[cubic-bezier(0.4,0,0.2,1)] group-hover:scale-110 md:h-8 md:w-10 ${s?"max-md:h-0 max-md:w-0 max-md:opacity-0":"max-md:h-8 max-md:w-10 max-md:opacity-100"}`,children:r}),(0,t.jsx)("span",{className:"whitespace-nowrap",children:l})]})}function w({className:e}){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M4 6h16M4 12h16M4 18h16",
2stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}function y({className:e}){return(0,t.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-hidden":"true",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6l12 12",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round"})})}e.s(["default",()=>b],754295)}]); 3 4//# debugId=f54ec311-53ec-72e2-2d26-356167c0a423
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.