PageSourceSearch

https://butfordorganics.co.uk/_next/static/chunks/app/page-c21147c…?dpl=dpl_ESUjxZgnkrd3bKLCWubJ4NowTQCo

js butfordorganics.co.uk collected 2026-10-07 01:51:30 UTC 11,766 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8974],{1538:(e,t,r)=>{Promise.resolve().then(r.bind(r,32194)),Promise.resolve().then(r.bind(r,99790)),Promise.resolve().then(r.bind(r,53649)),Promise.resolve().then(r.t.bind(r,52619,23)),Promise.resolve().then(r.t.bind(r,81356,23))},12407:(e,t,r)=>{"use strict";r.d(t,{S:()=>s,u:()=>n});let a="Something went wrong. Please try again, or email [email protected].";async function s(e){if(429===e.status)return"You've made too many requests. Please wait a moment and try again.";if(e.status>=500)return a;try{var t,r;let a=await e.json(),s=null==(t=a.details)?void 0:t.fieldErrors;if(s){let e=Object.values(s).filter(e=>Array.isArray(e)&&e.length>0).map(e=>e[0]);if(e.length>0)return e.join(". ")}let n=null==(r=a.details)?void 0:r.formErrors;if(n&&n.length>0)return n.join(". ");if(a.error&&"Invalid form data"!==a.error)return a.error;return"Please check the form for errors and try again."}catch(e){return a}}function n(){return"Couldn't reach our server. Please check your connection and try again."}},32194:(e,t,r)=>{"use strict";r.d(t,{CourseVideoEmbed:()=>n});var a=r(95155),s=r(12115);function n(e){let{videoUrl:t,aspectRatio:r="aspect-[5/4] sm:aspect-square lg:aspect-[5/4]",className:n=""}=e,[i,l]=(0,s.useState)(!1),[o,d]=(0,s.useState)(!1),c=(0,s.useRef)(null),m=(e=>{let t=e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/);return t&&11===t[2].length?t[2]:null})(t),u=m?"https://www.youtube.com/embed/".concat(m,"?rel=0&modestbranding=1&autoplay=0"):null;return((0,s.useEffect)(()=>{if(!c.current||o)return;let e=new IntersectionObserver(t=>{t.forEach(t=>{t.isIntersecting&&(d(!0),e.disconnect())})},{rootMargin:"200px"});return e.observe(c.current),()=>{e.disconnect()}},[o]),u)?(0,a.jsx)("div",{ref:c,className:"relative ".concat(r," overflow-hidden ").concat(n),children:o?(0,a.jsx)("iframe",{src:u,title:"Cider making course video",className:"absolute inset-0 w-full h-full",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,loading:"lazy",onLoad:()=>l(!0)}):(0,a.jsxs)("div",{className:"absolute inset-0 bg-gradient-to-br from-green-50 via-green-100/80 to-amber-50",children:[(0,a.jsx)("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"url(\"data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E\")"}}),(0,a.jsx)("div",{className:"absolute inset-0 flex items-center justify-center",children:(0,a.jsxs)("div",{className:"relative",children:[(0,a.jsx)("div",{className:"absolute inset-0 -m-2 rounded-full bg-primary/10 animate-ping",style:{animationDuration:"3s"}}),(0,a.jsx)("div",{className:"relative bg-white rounded-full p-5 shadow-premium-lg transition-transform duration-300",children:(0,a.jsx)("svg",{className:"h-10 w-10 text-primary ml-1",fill:"currentColor",viewBox:"0 0 24 24",children:(0,a.jsx)("path",{d:"M8 5v14l11-7z"})})})]})}),(0,a.jsx)("div",{className:"absolute bottom-0 left-0 right-0 p-6 bg-gradient-to-t from-black/50 to-transparent",children:(0,a.jsx)("p",{className:"text-white text-sm font-medium drop-shadow-md",children:"Watch: A day at the cidermaking course"})})]})}):null}},43564:(e,t,r)=>{"use strict";r.d(t,{cn:()=>n});var a=r(2821),s=r(75889);function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.QP)((0,a.$)(t))}},53649:(e,t,r)=>{"use strict";r.d(t,{NewsletterCTA:()=>f});var a=r(95155),s=r(12115),n=r(22544),i=r(66942),l=r(54879),o=r(23664),d=r(5917);let c=(0,r(71847).A)("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);var m=r(76128),u=r(70667),h=r(77428),g=r(12407);let x=l.Ik({email:l.Yj().email("Please enter a valid email address"),website:l.Yj().optional()});
1function f(){let[e,t]=(0,s.useState)(!1),[r,l]=(0,s.useState)(null),{register:f,handleSubmit:p,formState:{errors:v,isSubmitting:b}}=(0,n.mN)({resolver:(0,i.u)(x)}),y=async e=>{l(null),(0,h.u)("newsletter","email_subscribe");try{let r=await fetch("/api/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(r.ok)t(!0);else{let e=await (0,g.S)(r);l(e)}}catch(e){l((0,g.u)())}};return(0,a.jsxs)(m.w,{background:"secondary",className:"py-16 md:py-24 lg:py-28 relative overflow-hidden",children:[(0,a.jsxs)("div",{className:"absolute inset-0 pointer-events-none","aria-hidden":"true",children:[(0,a.jsx)("div",{className:"absolute -top-24 -right-24 w-64 h-64 rounded-full bg-primary/[0.03] blur-3xl"}),(0,a.jsx)("div",{className:"absolute -bottom-32 -left-32 w-96 h-96 rounded-full bg-accent/[0.04] blur-3xl"})]}),(0,a.jsxs)("div",{className:"max-w-2xl mx-auto text-center relative",children:[(0,a.jsx)("div",{className:"mx-auto mb-6 w-14 h-14 rounded-full bg-primary/10 flex items-center justify-center shadow-sm",children:(0,a.jsx)(o.A,{className:"w-6 h-6 text-primary"})}),(0,a.jsx)("p",{className:"text-sm font-medium uppercase tracking-widest text-primary mb-3",children:"Stay updated"}),(0,a.jsx)("h2",{className:"font-heading text-h2 mb-4",children:"New releases & tasting guidelines"}),(0,a.jsx)("p",{className:"text-muted-foreground mb-8 max-w-prose mx-auto",children:"Be first to know about new cider releases, seasonal tour dates, and tasting guidelines. Plus, get our free tasting notes PDF when you subscribe."}),e?(0,a.jsxs)("div",{className:"inline-flex items-center gap-3 px-6 py-4 rounded-lg bg-success/10 text-success",children:[(0,a.jsx)(d.A,{className:"w-5 h-5"}),(0,a.jsx)("span",{className:"font-medium",children:"Thanks! Check your inbox for the tasting notes PDF."})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("form",{onSubmit:p(y),className:"flex flex-col sm:flex-row gap-3 max-w-md mx-auto",children:[(0,a.jsx)("input",{type:"text",...f("website"),className:"absolute -left-[9999px]",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),(0,a.jsx)("input",{type:"email",placeholder:"[email protected]",...f("email"),className:"flex-1 h-12 px-4 rounded-lg border border-border bg-background text-foreground placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 focus:border-primary transition-all duration-200 shadow-sm hover:shadow-md"}),(0,a.jsx)(u.$,{type:"submit",disabled:b,size:"lg",children:b?"Subscribing...":"Subscribe"})]}),v.email&&(0,a.jsx)("p",{className:"mt-3 text-sm text-destructive",children:v.email.message}),r&&(0,a.jsx)("p",{className:"mt-3 text-sm text-destructive",children:r}),(0,a.jsxs)("div",{className:"mt-6 flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-sm text-muted-foreground",children:[(0,a.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,a.jsx)(c,{className:"w-4 h-4 text-primary"}),"Free tasting notes PDF"]}),(0,a.jsx)("span",{children:"No spam, unsubscribe anytime"})]})]})]})]})}},70667:(e,t,r)=>{"use strict";r.d(t,{$:()=>o});var a=r(95155),s=r(12115),n=r(43564),i=r(52619),l=r.n(i);let o=s.forwardRef((e,t)=>{let{className:r,variant:s="primary",size:i="default",href:o,children:d,...c}=e,m=(0,n.cn)("inline-flex items-center justify-center whitespace-nowrap font-medium transition-all duration-base","rounded-md","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2","disabled:pointer-events-none disabled:opacity-50","select-none"),u={primary:(0,n.cn)("bg-primary text-primary-foreground shadow-premium","hover:bg-primary/90 hover:shadow-premium-lg hover:-translate-y-0.5","active:bg-primary/95 active:scale-[0.98] active:translate-y-0"),secondary:(0,n.cn)("bg-background border-2 border-primary text-primary shadow-sm","hover:bg-secondary hover:border-primary hover:shadow-md hover:-translate-y-0.5","active:bg-secondary/80 active:translate-y-0"),tertiary:(0,n.cn)("text-foreground underline-offset-4","hover:text-primary hover:underline","active:text-primary/80"),ghost:(0,n.cn)("text-foreground","hover:bg-muted hover:text-primary","active:bg-muted/80")},h=(0,n.cn)(m,u[s],{default:"h-12 px-6 py-3 text-sm",sm:"h-10 px-4 py-2 text-sm",lg:"h-14 px-8 py-4 text-base"}[i],r);return o?(0,a.jsx)(l(),{href:o,className:h,children:d}):(0,a.jsx)("button",{className:h,ref:t,...c,children:d})});o.displayName="Button"},76128:(e,t,r)=>{"use strict";r.d(t,{w:()=>d});var a=r(95155),s=r(12115),n=r(43564);let i={none:"",sm:"py-8 md:py-12",default:"py-10 md:py-16",lg:"py-12 md:py-20"},l={default:"max-w-[80rem]",narrow:"max-w-4xl",wide:"max-w-7xl",full:"max-w-none"},o={default:"bg-background",muted:"bg-muted",secondary:"bg-secondary",card:"bg-card","primary-subtle":"bg-primary/[0.03]","accent-subtle":"bg-accent/[0.04]"},d=s.forwardRef((e,t)=>
1{let{className:r,as:s="section",spacing:d="default",container:c=!0,containerSize:m="default",background:u="default",children:h,...g}=e,x=c?(0,a.jsx)("div",{className:(0,n.cn)("mx-auto w-full px-4 sm:px-6 lg:px-8",l[m]),children:h}):h;return(0,a.jsx)(s,{ref:t,className:(0,n.cn)(i[d],o[u],r),...g,children:x})});d.displayName="Section"},77154:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>a,Of:()=>n,TJ:()=>s,sc:()=>i});let a=18;function s(e){let t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(r,"-").concat(a)}let n=["2026-04-17","2026-04-18","2026-04-19","2026-04-20","2026-04-21","2026-04-22","2026-04-23","2026-04-24","2026-04-25"],i=[{value:"morning",label:"Morning"},{value:"afternoon",label:"Afternoon"}]},77428:(e,t,r)=>{"use strict";function a(e,t){window.gtag&&window.gtag("event","click",{event_category:e,event_label:t})}function s(e,t){window.gtag&&window.gtag("event","submit",{event_category:e,event_label:t})}r.d(t,{s:()=>a,u:()=>s})},99790:(e,t,r)=>{"use strict";r.d(t,{MobileStickyBooking:()=>d});var a=r(95155),s=r(12115),n=r(70667);let i=(0,r(71847).A)("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);var l=r(77428),o=r(77154);function d(e){let{nextAvailableText:t}
1=e,[r,d]=(0,s.useState)(!1);return((0,s.useEffect)(()=>{let e=()=>{d(window.scrollY>700)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),r)?(0,a.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-card border-t border-border shadow-premium-lg md:hidden animate-fade-in",children:(0,a.jsx)("div",{className:"mx-auto max-w-[80rem] px-4 py-3",children:(0,a.jsxs)("div",{className:"flex items-center justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[(0,a.jsx)(i,{className:"h-5 w-5 text-primary flex-shrink-0"}),(0,a.jsxs)("div",{className:"min-w-0",children:[(0,a.jsxs)("p",{className:"text-sm font-medium text-foreground truncate",children:["\xa3",o.Ag," pp"]}),t&&(0,a.jsxs)("p",{className:"text-xs text-muted-foreground truncate",children:["Next: ",t]})]})]}),(0,a.jsx)(n.$,{onClick:()=>{(0,l.s)("booking","request_tour_sticky");let e=document.getElementById("booking");e&&e.scrollIntoView({behavior:"smooth",block:"start"})},size:"sm",className:"flex-shrink-0",children:"Request a tour"})]})})}):null}}},e=>{e.O(0,[2619,4909,1356,3923,8441,1255,7358],()=>e(e.s=1538)),_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.