1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[335],{3038:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/contact",function(){return n(5865)}])},214:function(e,t,n){"use strict";n.d(t,{v:function(){return u}});var r=n(5893),a=n(5675),l=n.n(a),s=n(1664),i=n.n(s),o=function(e){return e.split("http://admin.sarahs-shoes.co.uk")[1]},c=function(e){var t=e.url,n=e.title;return(0,r.jsx)(i(),{href:o(t),children:(0,r.jsx)("a",{className:"border-2 border-black py-2 px-10 text-center text-lg hover:bg-black hover:text-white transition-colors ease-in-out duration-300",children:n.toUpperCase()})})},d=n(575),u=function(e){var t=e.banner_image,n=e.banner_title,a=e.banner_colour,s=e.button_link;return(0,r.jsxs)("div",{className:"flex flex-col md:flex-row",children:[(0,r.jsx)("div",{className:"w-full h-[390px] md:w-7/12 lg:w-2/3 md:h-[650px] relative",children:(0,r.jsx)(l(),{layout:"fill",objectFit:"cover",alt:t.alt,src:t.url})}),(0,r.jsx)("div",{className:"flex items-center justify-center md:justify-start md:items-end md:w-5/12 lg:w-1/3 h-[11rem] md:h-[40.625rem] md:p-8 lg:p-12",style:{backgroundColor:(0,d.m)(a)},children:(0,r.jsxs)("div",{className:"text-center md:text-left",children:[(0,r.jsx)("h1",{className:"mb-6 md:mb-12 text-xl md:text-3xl xl:text-5xl",children:n.toUpperCase()}),s.title?(0,r.jsx)(c,{url:s.url,title:s.title}):null]})})]})}},5865:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return f},default:function(){return b}});var r=n(5893),a=n(2175),l=n(7294),s=n(214),i=n(7703),o=function(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7 8h10M7 12h4m1 8l-4-4H5a2 2 0 01-2-2V6a2 2 0 012-2h14a2 2 0 012 2v8a2 2 0 01-2 2h-3l-4 4z"})})},c=function(){return(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"2",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"})})},d=n(8074),u=n(9841);function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){m(e,t,n[t])}))}return e}var h=function(e){return Object.keys(e).map((function(t){var n=t;return encodeURIComponent(t)+"="+encodeURIComponent(e[n])})).join("&")},f=!0,b=function(e){var t,n=e.data,m=null===(t=n[0])||void 0===t?void 0:t.acf.banner_content[0],f=m.banner_title,b=m.banner_colour,p=m.banner_image,j=m.button_link,g=(0,l.useState)(!1),v=g[0],w=g[1];return(0,r.jsxs)(r.Fragment,{children:[n?(0,r.jsx)("section",{id:"hero-header",children:(0,r.jsx)(s.v,{banner_colour:b,banner_image:p,banner_title:f,button_link:j})}):null,v?(0,r.jsxs)("div",{className:"flex gap-4 mx-5 md:mx-0",children:[(0,r.jsx)(u.d,{}),(0,r.jsx)("h3",{children:"Form sent successfully!"})]}):(0,r.jsx)(a.J9,{initialValues:{name:"",email:"",telephone:"",details:""},onSubmit:function(e,t){t.setSubmitting;fetch("/",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:h(x({"form-name":"contact"},e))}).then((function(){return w(!0)})).catch((function(e){return alert(e)}))},validate:function(e){var t={};return e.name||(t.name="Name is required"),e.email||(t.email="Email is required"),e.email||(t.details="Detail is required"),t},children:function(e){e.values;var t=e.errors,n=e.touched,l=e.isSubmitting;return(0,r.jsx)(a.l0,{className:"mx-5 md:mx-0",name:"contact",method:"POST","data-netlify":"true","data-netlify-honeypot":"bot-field",children:(0,r.jsxs)("fieldset",{className:"flex flex-col gap-8",children:[(0,r.jsx)("input",{type:"hidden",name:"form-name",value:"contact"}),(0,r.jsx)("p",{hidden:!0,children:(0,r.jsxs)("label",{children:["Don\u2019t fill this out: ",(0,r.jsx)("input",{name:"bot-field"})]})}),(0,r.jsx)("legend",{children:(0,r.jsx)("h1",{className:"mb-6 md:mb-10 text-xl md:text-5xl",children:"Send us a message"})}),(0,r.jsxs)("div",{className:"flex items-center gap-4 md:w-1/2",children:[(0,r.jsx)(c,{}),(0,r.jsx)(a.gN,{className:"grow p-3 border border-gray-200 rounded",type:"text",name:"name",placeholder:"Name"})]}),t.name&&n.name?(0,r.jsx)("span",{className:"text-red-500 text-sm",children:t.name}):null,(0,r.jsxs)("div",{className:"flex items-center gap-4 md:w-1/2",children:[(0,r.jsx)(i.M,{}),(0,r.jsx)(a.gN,{className:"grow p-3 border border-gray-200 rounded",type:"email",name:"email",placeholder:"Email"})]}),t.email&&n.email?(0,r.jsx)("span",{className:"text-red-500 text-sm",children:t.email}):null,(0,r.jsxs)("div",{className:"flex items-center gap-4 md:w-1/2",children:[(0,r.jsx)(d.Z,{}),(0,r.jsx)(a.gN,{className:"grow p-3 border border-gray-200 rounded",type:"text",name:"telephone",placeholder:"Telephone"})]}),(0,r.jsxs)("div",{className:"flex items-center gap-4 md:w-1/2",children:[(0,r.jsx)(o,{}),(0,r.jsx)(a.gN,{className:"grow h-[10rem] p-3 border border-gray-200 rounded",as:"textarea",
1name:"details",placeholder:"Ask us a question..."})]}),t.details&&n.details?(0,r.jsx)("span",{className:"text-red-500 text-sm",children:t.details}):null,(0,r.jsx)("div",{className:"flex justify-end gap-4 md:w-1/2",children:(0,r.jsx)("button",{className:"border disabled:border-gray-400 disabled:text-gray-400 border-black py-2 px-10 text-center text-lg hover:bg-black hover:text-white transition-colors ease-in-out duration-300",disabled:l,type:"submit",children:"SUBMIT"})})]})})}}),(0,r.jsxs)("section",{id:"other-contact",className:"mx-5 md:mx-0",children:[(0,r.jsx)("h1",{className:"mb-6 md:mb-10 text-xl md:text-5xl",children:"Visit us"}),(0,r.jsx)("p",{children:"44 High St, Tarporley Cheshire, CW6 0DX"})]})]})}},575:function(e,t,n){"use strict";n.d(t,{D:function(){return r},m:function(){return a}});var r=["pink","blue","yellow"],a=function(e){switch(e){case"pink":return"rgba(255, 133, 119, 0.6)";case"blue":return"rgba(222, 255, 252, 1)";case"yellow":return"rgba(245, 212, 145, 0.8)"}}}},function(e){e.O(0,[774,888,179],(function(){return t=3038,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.