module.exports=[50017,a=>{"use strict";var b=a.i(87924),c=a.i(72131),d=a.i(23292);a.s(["default",0,({settings:a})=>{let[e,f]=(0,c.useState)(""),[g,h]=(0,c.useState)(!1),[i,j]=(0,c.useState)({});(0,c.useEffect)(()=>{let a=localStorage.getItem("general-settings");a&&j(JSON.parse(a))},[]),(0,c.useEffect)(()=>{},[i]);let k=async()=>{let a=e.trim();if(!a)return void d.toast.error("Please enter your email address");if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}$/i.test(a))return void d.toast.error("Please enter a valid email address");try{h(!0);let b=await fetch("/clientapi/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:a})}),c=await b.json();b.ok&&(!0===c.success||c?.data?.success===!0)?(d.toast.success(c.message||c?.data?.message||"Subscribed successfully"),f("")):d.toast.error(c.message||c?.data?.message||"Failed to subscribe")}catch(a){console.error("Subscription error:",a),d.toast.error(a?.message||"Failed to subscribe. Please try again.")}finally{h(!1)}};return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:"blogbtmimg mt-10",children:(0,b.jsx)("img",{alt:"",src:"/images/blog-btm-img.png",className:"w-full"})}),(0,b.jsx)("section",{className:"newslettercontainer !pt-0",children:(0,b.jsx)("div",{className:"container container-xxl px-3",children:(0,b.jsxs)("div",{className:"-mx-3 flex flex-wrap",children:[(0,b.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,b.jsxs)("div",{className:"contactinfo text-center",children:[(0,b.jsx)("h3",{children:"Contact Us"}),(0,b.jsxs)("p",{children:["Email:"," ",(0,b.jsx)("a",{href:`mailto:${a?.email||a?.email}`,children:a?.email||i?.email})]}),(0,b.jsxs)("p",{children:["Phone:"," ",(0,b.jsx)("a",{href:`tel:${a?.phoneNumber||i?.phoneNumber}`,children:a?.phoneNumber||i?.phoneNumber})]})]})}),(0,b.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,b.jsxs)("div",{className:"newsletterbx text-center",children:[(0,b.jsx)("h3",{children:"Let's Get in Touch!"}),(0,b.jsx)("p",{children:"What's inside? Exclusive sales, new arrivals & much more."}),(0,b.jsxs)("div",{className:"mb-2 flex",children:[(0,b.jsx)("input",{className:"form-control",type:"email",placeholder:"Email Address",value:e,onChange:a=>f(a.target.value)}),(0,b.jsx)("button",{className:"subscribebtn",type:"button",disabled:g,onClick:k,children:g?"Subscribing...":"Subscribe"})]}),(0,b.jsx)("p",{className:"m-0 gray-text",children:"New styles, exclusive offers & more! Subscribe now"})]})}),(0,b.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,b.jsxs)("div",{className:"socialbx text-center",children:[(0,b.jsx)("h3",{children:"Social Media"}),(0,b.jsxs)("div",{className:"socialrow",children:[(0,b.jsxs)("a",{className:"socialbtn",href:a?.facebookLink||i?.facebookLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,b.jsx)("i",{className:"icon icon-facebook"}),(0,b.jsx)("span",{children:"Facebook"})]}),(0,b.jsxs)("a",{className:"socialbtn",href:a?.printerestLink||i?.printerestLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,b.jsx)("i",{className:"icon icon-pinterest"}),(0,b.jsx)("span",{children:"Pinterest"})]}),(0,b.jsxs)("a",{className:"socialbtn",href:a?.youtubeLink||i?.youtubeLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,b.jsx)("i",{children:(0,b.jsxs)("svg",{className:"h-6 w-6",viewBox:"0 -0.5 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,b.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,b.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,b.jsx)("span",{children:"You Tube"})]}),(0,b.jsxs)("a",{className:"socialbtn",href:a?.instagramLink||i?.instagramLink||"#",target:"_blank",rel:"noopener noreferrer",children:[(0,b.jsx)("i",{className:"icon icon-instagram"}),(0,b.jsx)("span",{children:"Instagram"})]})]})]})})]})})})]})}])},32636,a=>{"use strict";var b=a.i(35766);a.s(["default",0,function(){return(0,b.useAuthContext)()}])}];

//# sourceMappingURL=src_0udvbdj._.js.map