PageSourceSearch

https://goodnature.co.nz/assets/6c5c09ed.js

js goodnature.co.nz collected 2026-09-24 11:29:45 UTC 2,940 bytes, 2 lines download raw bytes

1import{u as v}from"./85061358.js";import{r as u,l as a,F as w,q as n,j as e,I as g,m as b}from"./index.00a2eaef.js";import{u as N}from"./75b47dc2.js";import{V as y}from"./d3293c47.js";import{g as V,i as j,c}from"./bf7fd197.js";import{s as I}from"./f9f44efa.js";import{A as C}from"./ccbd9071.js";import{P as k}from"./8d80052b.js";import"./73dae7f4.js";import"./600ef406.js";import"./f1d3de0d.js";import"./9e48c47e.js";import"./18dd4d52.js";import"./310e7f54.js";import"./4f3bdfeb.js";import"./bd6b6beb.js";import"./fc68d023.js";import"./32edb8cb.js";const F=({cta:s,children:r,url:l,setIsOpen:o,ctaLink:t})=>{switch(s){case!0:return e(n.div,{variants:c,className:"relative z-10 mr-12 w-full max-w-[410px] cursor-pointer overflow-hidden rounded-xl",style:{flex:"0 0 auto"},children:e(b,{to:t.slug,children:r})});default:return e(n.div,{variants:c,onClick:()=>o(l),className:"relative z-10 mr-12 w-full max-w-[410px] cursor-pointer overflow-hidden rounded-xl",style:{flex:"0 0 auto"},children:r})}},H=({heading:s,url:r,thumbnail:l,setIsOpen:o,cta:t,ctaLink:i})=>a(F,{cta:t,url:r,setIsOpen:o,ctaLink:i,children:[a("div",{className:"aspect-h-6 aspect-w-4 relative w-full",children:[e(g,{width:"inherit",height:"inherit",data:l,alt:s,className:"transition-standard absolute left-0 top-0 h-full w-full object-cover hover:scale-105"}),e("div",{className:"pointer-events-none absolute left-0 top-0 h-full w-full bg-black bg-opacity-50 object-cover"})]}),a("div",{className:"w-fulln pointer-events-none absolute bottom-0 p-8",children:[e("h6",{className:"blockH6 text-white",children:s}),a("div",{className:"mt-3 flex items-center gap-x-5",children:[!t&&e("div",{className:"flex h-6 w-6 items-center justify-center rounded-full bg-orange bg-opacity-30",children:e(k,{className:"h-3 w-3 text-orange"})}),e("span",{className:"blockH7 text-orange underline",children:t?i==null?void 0:i.title:"Watch now"})]})]})]});function U({module:s}){const{videos:r,heading:l}=s,[o,t]=v({align:"start",dragFree:!1,loop:!0}),i=u.exports.useCallback(()=>t&&t.scrollNext(),[t]),[m,d]=u.exports.useState(!1),{ref:p,inView:f}=N({threshold:.5,triggerOnce:!0});return a(w,{children:[a(n.div,{ref:p,variants:V,animate:!j&&(f?"animate":"initial"),className:"overflow-hidden bg-light-blue px-gutter py-space-s",children:[a("div",{className:"flex items-center justify-between",children:[e(n.h1,{variants:c,className:"richH1 font-medium","data-testid":`section-${I(l,{lower:!0,trim:!0})}`,children:l}),e("div",{className:"flex items-center gap-x-8",children:e(n.button,{variants:c,onClick:()=>i(),className:"transition-standard","aria-label":"Next",children:e(C,{className:"h-10 w-10 text-dark-grey"})})})]}),e("div",{ref:o,className:"mt-space-s",children:e("div",{className:"flex flex-row items-center",children:r==null?void 0:r.map((h,x)=>e(H,{...h,setIsOpen:d},x))})})]}),e(y,{open:Boolean(m),url:m,setIsOpen:d})]})}export{U as default};
2//# sourceMappingURL=6c5c09ed.js.map

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.