PageSourceSearch

https://storybites.co.nz/_next/static/chunks/app/(website)/layout-2c607f49e4ff2a40.js

js storybites.co.nz collected 2026-10-06 20:13:36 UTC 14,054 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2806],{36553:(e,l,t)=>{"use strict";t.d(l,{A:()=>s});var a=t(95155),r=t(41715);function s(e){let{q:l,handleChange:t,placeholder:s}=e;return(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("input",{type:"text",defaultValue:l,onChange:t,placeholder:s,name:"q",id:"q",className:"w-full px-3 py-2 border rounded-md outline-none focus:border-gray-300 focus:shadow-sm dark:bg-gray-900 dark:border-gray-600 dark:focus:border-white"}),(0,a.jsx)("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3 pointer-events-none",children:(0,a.jsx)(r.A,{className:"w-4 h-4 text-gray-400"})})]})}},41040:(e,l,t)=>{"use strict";t.d(l,{Providers:()=>s});var a=t(95155),r=t(5379);function s(e){let{children:l}=e;return(0,a.jsx)(r.N,{attribute:"class",defaultTheme:"light",children:l})}},41432:(e,l,t)=>{"use strict";t.d(l,{A:()=>s});var a=t(95155);let r=function(){for(var e=arguments.length,l=Array(e),t=0;t<e;t++)l[t]=arguments[t];return l.filter(Boolean).join(" ")};function s(e){return(0,a.jsx)("div",{className:r("container px-4 mx-auto",e.large?" max-w-(--breakpoint-xl)":" max-w-(--breakpoint-lg)",!e.alt&&"py-5 lg:py-8",e.className),children:e.children})}},62057:(e,l,t)=>{"use strict";t.d(l,{default:()=>A});var a=t(95155),r=t(20063),s=t(12115),n=t(57816),i=t(81675),o=t(6690),c=t(41432),d=t(52619),h=t.n(d),m=t(15239),x=t(39781),g=t.n(x),u=t(83784);let f=g()({projectId:u.Lg,dataset:u.RT}),p=e=>{var l;if(!e||!e.asset)return;let t=null==e||null==(l=e.asset)?void 0:l._ref.split("-")[2],[a,r]=null==t?void 0:t.split("x").map(e=>parseInt(e,10));return{src:f.image(e).auto("format").width(Math.min(a,"2000")).url(),width:a,height:r}};var y=t(2821),j=t(64034);function v(e){let l=[{label:"Home",href:"/"},{label:"About",href:"/about"},{label:"Recipes",href:"/category/recipes"}],t=[{label:"Our Chefs",href:"/chefs"},{label:"Contact",href:"/contact"}],r=[...l,...t];return(0,a.jsx)(c.A,{children:(0,a.jsx)("nav",{children:(0,a.jsx)(n.EN,{as:"div",children:i=>{let{open:o}=i;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-wrap justify-between md:flex-nowrap md:gap-10",children:[(0,a.jsx)("div",{className:"order-1 hidden w-full flex-col items-center justify-start md:order-0 md:flex md:w-auto md:flex-1 md:flex-row md:justify-end",children:l.map((e,l)=>(0,a.jsx)(s.Fragment,{children:e.children&&e.children.length>0?(0,a.jsx)(b,{menu:e,items:e.children},"".concat(e.label).concat(l)):(0,a.jsx)(h(),{href:e.href,className:"px-5 py-2 text-sm font-medium text-gray-600 hover:text-yellow-500 dark:text-gray-400",target:e.external?"_blank":"",rel:e.external?"noopener":"",children:e.label},"".concat(e.label).concat(l))},"".concat(e.label).concat(l)))}),(0,a.jsxs)("div",{className:"flex w-full items-center justify-between md:w-auto",children:[(0,a.jsx)(h(),{href:"/",className:"w-28 dark:hidden",children:e.logo?(0,a.jsx)(m.default,{...p(e.logo),alt:"Logo",priority:!0,sizes:"(max-width: 640px) 100vw, 200px"}):(0,a.jsx)("span",{className:"block text-center",children:"StoryBites"})}),(0,a.jsx)(h(),{href:"/",className:"hidden w-28 dark:block",children:e.logoalt?(0,a.jsx)(m.default,{...p(e.logoalt),alt:"Logo",priority:!0,sizes:"(max-width: 640px) 100vw, 200px"}):(0,a.jsx)("span",{className:"block text-center",children:"StoryBites"})}),(0,a.jsx)(n._q,{"aria-label":"Toggle Menu",className:"ml-auto rounded-md px-2 py-1 text-gray-500 focus:text-yellow-500 focus:outline-none dark:text-gray-300 md:hidden ",as:"div",children:(0,a.jsxs)("svg",{className:"h-6 w-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[o&&(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1 1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828z"}),!o&&(0,a.jsx)("path",{fillRule:"evenodd",d:"M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"})]})})]}),(0,a.jsx)("div",{className:"order-2 hidden w-full flex-col items-center justify-start md:order-0 md:flex md:w-auto md:flex-1 md:flex-row",children:t.map((e,l)=>(0,a.jsx)(s.Fragment,{children:e.children&&e.children.length>0?(0,a.jsx)(b,{menu:e,items:e.children},"".concat(e.label).concat(l)):(0,a.jsx)(h(),{href:e.href,className:"px-5 py-2 text-sm font-medium text-gray-600 hover:text-yellow-500 dark:text-gray-400",target:e.external?"_blank":"",rel:e.external?"noopener":"",children:e.label},"".concat(e.label).concat(l))},"".concat(e.label).concat(l)))})]}),(0,a.jsx)(n.kS,{children:(0,a.jsx)("div",{className:"order-2 -ml-4 mt-4 flex w-full flex-col items-center justify-start md:hidden",children:r.map((e,l)=>(0,a.jsx)(s.Fragment,{children:e.children&&e.children.length>0?(0,a.jsx)(b,{menu:e,items:e.children,mobile:!0},"".concat(e.label).concat(l)):(0,a.jsx)(h(),{href:e.href,className:"w-full px-5 py-2 text-sm font-medium text-gray-600 hover:text-yellow-500 dark:text-gray-400",target:e.external?"_blank":"",rel:e.external?"noopener":"",children:e.label},"".concat(e.label).concat(l))},"".concat(e.label).concat(l)))})})]})}})})})}let b=e=>{let{menu:l,items:t,mobile:r}=e;return(0,a.jsx)(i.W1,{as:"div",className:(0,y.A)("relative text-left",r&&"w-full"),children:e=>{let{open:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.IU,{className:(0,y.A)("flex items-center gap-x-1 rounded-md px-5 py-2 text-sm font-medium  outline-none transition-all focus:outline-none focus-visible:text-indigo-500 focus-visible:ring-1 dark:focus-visible:bg-gray-800",n?"text-yellow-500 hover:text-yellow-500":" text-gray-600 dark:text-gray-400 ",r?"w-full px-4 py-2 ":"inline-block px-4 py-2"),children:[(0,a.jsx)("span",{children:l.label}),(0,a.jsx)(j.A,{className:"mt-0.5 h-4 w-4"})]}),(0,a.jsx)(o.e,{as:s.Fragment,enter:"lg:transition lg:ease-out lg:duration-100",enterFrom:"lg:transform lg:opacity-0 lg:scale-95",enterTo:"lg:transform lg:opacity-100 lg:scale-100",leave:"lg:transition lg:ease-in lg:duration-75",leaveFrom:"lg:transform lg:opacity-100 lg:scale-100",leaveTo:"lg:transform lg:opacity-0 lg:scale-95",children:(0,a.jsx)(i.c,{className:(0,y.A)("z-20 origin-top-left rounded-md  focus:outline-none  lg:absolute lg:left-0  lg:w-56",!r&&"bg-white shadow-lg  dark:bg-gray-800"),children:(0,a.jsx)("div",{className:(0,y.A)(!r&&"py-3"),children:t.map((e,l)=>(0,a.jsx)(i.Dr,{as:"div",children:l=>{let{active:t}=l;return(0,a.jsx)(h(),{href:(null==e?void 0:e.path)?e.path:"#",className:(0,y.A)("flex items-center space-x-2 px-5 py-2 text-sm lg:space-x-4",t?"text-yellow-500":"text-gray-700 hover:text-yellow-500 focus:text-yellow-500 dark:text-gray-300"),children:(0,a.jsxs)("span",{children:[" ",e.title]})})}},"".concat(e.title).concat(l)))})})})]})}})};var w=t(36553);function N(e){let l=[{label:"Home",href:"#",children:[{title:"Home Default",path:"/"},{title:"Home Alternate",path:"/home/alt"},{title:"Home Minimal",path:"/home/minimal"},{title:"Home Lifestyle",path:"/home/lifestyle"},{title:"Home Two Column",path:"/home/2-col"}]},{label:"About",href:"/about"},{label:"Contact",href:"/contact"},{label:"Pages",href:"#",children:[{title:"Category Page",path:"/category/personal-growth"},{title:"Author Page",path:"/author/mario-sanchez"},{title:"Search Page",path:"/search?q=life"},{title:"Archive - Pagination",path:"/archive"},{title:"Single Post - Default",path:"/post/10-simple-practices-that-will-help-you-get
1-1-better-every-day"},{title:"Single Post - Minimal",path:"/post/minimal/architectural-engineering-wonders-of-the-modern-era-for-your-inspiration"},{title:"Single Post - Lifestyle",path:"/post/lifestyle/there-s-nothing-new-about-undermining-women-s-autonomy"},{title:"Single Post - Sidebar",path:"/post/sidebar/lessons-of-happiness-i-learned-from-a-mountain-village"}]},{label:"Purchase",href:"https://web3templates.com/templates/stablo-minimal-blog-website-template",external:!0}];return(0,a.jsx)(c.A,{className:"py-0!",children:(0,a.jsx)("nav",{className:"my-4",children:(0,a.jsx)(n.EN,{as:"div",children:t=>{let{open:r}=t;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"flex flex-wrap justify-between md:gap-10 lg:flex-nowrap",children:[(0,a.jsxs)("div",{className:"flex w-full items-center justify-between lg:w-auto",children:[(0,a.jsx)(h(),{href:"/",className:"w-28 dark:hidden",children:e.logo?(0,a.jsx)(m.default,{src:p(e.logo),alt:"Logo",priority:!0,sizes:"(max-width: 640px) 100vw, 200px"}):(0,a.jsx)("span",{className:"block text-center",children:"Stablo"})}),(0,a.jsx)(h(),{href:"/",className:"hidden w-28 dark:block",children:e.logoalt?(0,a.jsx)(m.default,{src:p(e.logoalt),alt:"Logo",priority:!0,sizes:"(max-width: 640px) 100vw, 200px"}):(0,a.jsx)("span",{className:"block text-center",children:"Stablo"})}),(0,a.jsx)(n.EN.Button,{"aria-label":"Toggle Menu",className:"ml-auto rounded-md px-2 py-1 text-gray-500 focus:text-yellow-500 focus:outline-none dark:text-gray-300 lg:hidden ",children:(0,a.jsxs)("svg",{className:"h-6 w-6 fill-current",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",children:[r&&(0,a.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.278 16.864a1 1 0 0 1-1.414 1.414l-4.829-4.828-4.828 4.828a1 1 0 0 1-1.414-1.414l4.828-4.829-4.828-4.828a1 1 0 0 1 1.414-1.414l4.829 4.828 4.828-4.828a1 1 0 1 1 1.414 1.414l-4.828 4.829 4.828 4.828z"}),!r&&(0,a.jsx)("path",{fillRule:"evenodd",d:"M4 5h16a1 1 0 0 1 0 2H4a1 1 0 1 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2zm0 6h16a1 1 0 0 1 0 2H4a1 1 0 0 1 0-2z"})]})})]}),(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)("div",{className:"hidden w-full flex-col items-center lg:flex lg:w-auto lg:flex-row ",children:l.map((l,t)=>(0,a.jsx)(a.Fragment,{children:l.children&&l.children.length>0?(0,a.jsx)(k,{menu:l,items:l.children,mobile:e.mobile},t+l.label):(0,a.jsx)(h(),{href:l.href,className:"rounded-full px-5 py-2 font-medium text-gray-600 outline-none ring-yellow-100 hover:text-yellow-500 focus-visible:text-yellow-500 focus-visible:ring-2 dark:text-gray-400",target:l.external?"_blank":"",rel:l.external?"noopener":"",children:l.label},t+l.label)}))}),(0,a.jsx)("div",{className:"hidden lg:block",children:(0,a.jsx)("form",{action:"/search",method:"GET",children:(0,a.jsx)(w.A,{placeholder:"Search Blog"})})})]})]}),(0,a.jsx)(n.EN.Panel,{children:(0,a.jsxs)("div",{className:"order-2 -ml-5 mt-5 flex w-full flex-col items-start justify-start lg:hidden",children:[l.map((e,l)=>(0,a.jsx)(a.Fragment,{children:e.children&&e.children.length>0?(0,a.jsx)(k,{menu:e,items:e.children,mobile:!0},l+e.label):(0,a.jsx)(h(),{href:e.href,className:"rounded-full px-5 py-2 text-sm font-medium text-gray-600 outline-none ring-yellow-100 hover:text-yellow-500 focus-visible:text-yellow-500 focus-visible:ring-2 dark:text-gray-400",target:e.external?"_blank":"",rel:e.external?"noopener":"",children:e.label},l+e.label)})),(0,a.jsx)("div",{className:"mt-2 px-5",children:(0,a.jsx)("form",{action:"/search",method:"GET",children:(0,a.jsx)(w.A,{placeholder:"Search Blog"})})})]})})]})}})})})}let k=e=>{let{menu:l,items:t,mobile:r}=e;return(0,a.jsx)(i.W1,{as:"div",className:"relative text-left",children:e=>{let{open:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(i.W1.Button,{className:(0,y.A)("flex items-center gap-x-1 rounded-full px-5 py-2  font-medium outline-none ring-yellow-100 transition-all focus-visible:text-yellow-500 focus-visible:ring-2",n?"text-yellow-500 hover:text-yellow-500":" text-gray-600 dark:text-gray-400 ",r?"w-full px-4 py-2 text-sm":"inline-block px-4 py-2"),children:[(0,a.jsx)("span",{children:l.label}),(0,a.jsx)(j.A,{className:"mt-0.5 h-4 w-4"})]}),(0,a.jsx)(o.e,{as:s.Fragment,enter:"lg:transition lg:ease-out lg:duration-100",enterFrom:"lg:transform lg:opacity-0 lg:scale-95",enterTo:"lg:transform lg:opacity-100 lg:scale-100",leave:"lg:transition lg:ease-in lg:duration-75",leaveFrom:"lg:transform lg:opacity-100 lg:scale-100",leaveTo:"lg:transform lg:opacity-0 lg:scale-95",children:(0,a.jsx)(i.W1.Items,{className:(0,y.A)("z-20 origin-top-left rounded-md  focus:outline-none  lg:absolute lg:left-0  lg:w-56",!r&&"bg-white shadow-lg  dark:bg-gray-800"),children:(0,a.jsx)("div",{className:(0,y.A)(!r&&"py-3"),children:t.map((e,l)=>(0,a.jsx)(i.W1.Item,{as:"div",children:l=>{let{active:t}=l;return(0,a.jsx)(h(),{href:(null==e?void 0:e.path)?e.path:"#",className:(0,y.A)("flex items-center space-x-2 px-5 py-2 text-sm lg:space-x-4",t?"text-yellow-500":"text-gray-700 hover:text-yellow-500 focus:text-yellow-500 dark:text-gray-300"),children:(0,a.jsxs)("span",{children:[" ",e.title]})})}},l))})})})]})}})};function A(e){let l=(0,r.usePathname)();return(0,a.jsx)(a.Fragment,{children:"/home/minimal"===l?(0,a.jsx)(N,{...e}):(0,a.jsx)(v,{...e})})}},80007:(e,l,t)=>{"use strict";t.d(l,{default:()=>n});var a=t(95155),r=t(5379),s=t(89182);let n=()=>{let{theme:e,setTheme:l}=(0,r.D)();return(0,a.jsxs)("div",{className:"inline-flex items-center",children:[(0,a.jsx)(s.A,{className:"w-4 h-4 mr-2"}
1),(0,a.jsxs)("select",{name:"themeSwitch",value:e,onChange:e=>l(e.target.value),children:[(0,a.jsx)("option",{value:"system",children:"System"}),(0,a.jsx)("option",{value:"dark",children:"Dark"}),(0,a.jsx)("option",{value:"light",children:"Light"})]})]})}},82723:()=>{},83784:(e,l,t)=>{"use strict";t.d(l,{Lg:()=>r,RT:()=>s});var a=t(87358);let r="520b6ope",s="production";a.env.NEXT_PUBLIC_SANITY_API_VERSION,a.env.SANITY_REVALIDATE_SECRET},87912:(e,l,t)=>{Promise.resolve().then(t.bind(t,41040)),Promise.resolve().then(t.bind(t,62057)),Promise.resolve().then(t.bind(t,80007)),Promise.resolve().then(t.bind(t,68332)),Promise.resolve().then(t.bind(t,98202)),Promise.resolve().then(t.bind(t,57445)),Promise.resolve().then(t.bind(t,48854)),Promise.resolve().then(t.t.bind(t,41402,23)),Promise.resolve().then(t.t.bind(t,82723,23)),Promise.resolve().then(t.t.bind(t,74522,23)),Promise.resolve().then(t.t.bind(t,91501,23))}},e=>{e.O(0,[6539,2545,2619,1356,3879,8927,8441,1255,7358],()=>e(e.s=87912)),_N_E=e.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.