(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,8409,e=>{"use strict";var s=e.i(43476),r=e.i(71645),l=e.i(46696);e.s(["default",0,({settings:e})=>{let[a,i]=(0,r.useState)(""),[n,t]=(0,r.useState)(!1),[c,o]=(0,r.useState)({});(0,r.useEffect)(()=>{let e=localStorage.getItem("general-settings");e&&o(JSON.parse(e))},[]),(0,r.useEffect)(()=>{},[c]);let d=async()=>{let e=a.trim();if(!e)return void l.toast.error("Please enter your email address");if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(e))return void l.toast.error("Please enter a valid email address");try{t(!0);let s=await fetch("/clientapi/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})}),r=await s.json();s.ok&&(!0===r.success||r?.data?.success===!0)?(l.toast.success(r.message||r?.data?.message||"Subscribed successfully"),i("")):l.toast.error(r.message||r?.data?.message||"Failed to subscribe")}catch(e){console.error("Subscription error:",e),l.toast.error(e?.message||"Failed to subscribe. Please try again.")}finally{t(!1)}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"blogbtmimg mt-10",children:(0,s.jsx)("img",{alt:"",src:"/images/blog-btm-img.png",className:"w-full"})}),(0,s.jsx)("section",{className:"newslettercontainer !pt-0",children:(0,s.jsx)("div",{className:"container container-xxl px-3",children:(0,s.jsxs)("div",{className:"-mx-3 flex flex-wrap",children:[(0,s.jsx)("div",{className:"w-full px-3 sm:w-full md:w-full lg:w-1/4 xl:w-1/4 2xl:w-1/4",children:(0,s.jsxs)("div",{className:"contactinfo text-center",children:[(0,s.jsx)("h3",{children:"Contact Us"}),(0,s.jsxs)("p",{children:["Email:"," ",(0,s.jsx)("a",{href:`mailto:${e?.email||e?.email}`,children:e?.email||c?.email})]}),(0,s.jsxs)("p",{children:["Phone:"," ",(0,s.jsx)("a",{href:`tel:${e?.phoneNumber||c?.phoneNumber}`,children:e?.phoneNumber||c?.phoneNumber})]})]})}),(0,s.jsx)("div",{className:"w-full px-3 sm:w-full md:w-full lg:w-1/2 xl:w-1/2 2xl:w-1/2",children:(0,s.jsxs)("div",{className:"newsletterbx text-center",children:[(0,s.jsx)("h3",{children:"Let's Get in Touch!"}),(0,s.jsx)("p",{children:"What's inside? Exclusive sales, new arrivals & much more."}),(0,s.jsxs)("div",{className:"mb-2 flex",children:[(0,s.jsx)("input",{className:"form-control",type:"email",placeholder:"Email Address",value:a,onChange:e=>i(e.target.value)}),(0,s.jsx)("button",{className:"subscribebtn",type:"button",disabled:n,onClick:d,children:n?"Subscribing...":"Subscribe"})]}),(0,s.jsx)("p",{className:"m-0 gray-text",children:"New styles, exclusive offers & more! Subscribe now"})]})}),(0,s.jsx)("div",{className:"w-full px-3 sm:w-full md:w-full lg:w-1/4 xl:w-1/4 2xl:w-1/4",children:(0,s.jsxs)("div",{className:"socialbx text-center",children:[(0,s.jsx)("h3",{children:"Social Media"}),(0,s.jsxs)("div",{className:"socialrow",children:[(0,s.jsxs)("a",{className:"socialbtn",href:e?.facebookLink||c?.facebookLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)("i",{className:"icon icon-facebook"}),(0,s.jsx)("span",{children:"Facebook"})]}),(0,s.jsxs)("a",{className:"socialbtn",href:e?.printerestLink||c?.printerestLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)("i",{className:"icon icon-pinterest"}),(0,s.jsx)("span",{children:"Pinterest"})]}),(0,s.jsxs)("a",{className:"socialbtn",href:e?.youtubeLink||c?.youtubeLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)("i",{children:(0,s.jsxs)("svg",{className:"h-6 w-6",viewBox:"0 -0.5 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.168 19.0028C20.4724 19.0867 22.41 17.29 22.5 14.9858V9.01982C22.41 6.71569 20.4724 4.91893 18.168 5.00282H6.832C4.52763 4.91893 2.58998 6.71569 2.5 9.01982V14.9858C2.58998 17.29 4.52763 19.0867 6.832 19.0028H18.168Z",stroke:"currentColor","stroke-width":"1",strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.008 9.17784L15.169 11.3258C15.3738 11.4454 15.4997 11.6647 15.4997 11.9018C15.4997 12.139 15.3738 12.3583 15.169 12.4778L12.008 14.8278C11.408 15.2348 10.5 14.8878 10.5 14.2518V9.75184C10.5 9.11884 11.409 8.77084 12.008 9.17784Z",stroke:"currentColor","stroke-width":"1",strokeLinecap:"round",strokeLinejoin:"round"})]})}),(0,s.jsx)("span",{children:"You Tube"})]}),(0,s.jsxs)("a",{className:"socialbtn",href:e?.instagramLink||c?.instagramLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,s.jsx)("i",{className:"icon icon-instagram"}),(0,s.jsx)("span",{children:"Instagram"})]})]})]})})]})})})]})}])},87980,e=>{e.n(e.i(8409))}]);