(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,37573,e=>{"use strict";var l=e.i(43476),s=e.i(859),r=e.i(71645),o=e.i(22016);let t=null,i=null,n=null,c=null,a=r.default.memo(()=>{let[e,a]=(0,r.useState)([]),[d,x]=(0,r.useState)({}),[h,f]=(0,r.useState)(null),[u,m]=(0,r.useState)(null),[j,g]=(0,r.useState)(!1),p=e=>{m(l=>l===e?null:e)};(0,r.useEffect)(()=>{let e=()=>{g(window.innerWidth<=767)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]),(0,r.useEffect)(()=>{let e=localStorage.getItem("Generalsettings")||localStorage.getItem("general-settings");if(e)try{f(JSON.parse(e))}catch(e){console.error("Invalid general settings JSON",e)}},[]);let w=async()=>{try{if(t)return void a(t);i||(i=(0,s.apiCall)("/clientapi/home").then(e=>{let l=e.data?.footerCategories||[];return t=l,l}));let e=await i;a(e)}catch(e){console.error("Category fetch error",e)}},v=async()=>{try{if(n)return void x(n);c||(c=(0,s.apiCall)("/api/general-settings").then(e=>{let l=e.data?.data||{};return n=l,l}));let e=await c;x(e)}catch(e){console.error("General settings fetch error",e)}};return(0,r.useEffect)(()=>{w(),v()},[]),(0,l.jsxs)("footer",{className:"footercontainer",children:[(0,l.jsx)("div",{className:"footertp",children:(0,l.jsx)("div",{className:"container-xxl container px-3",children:(0,l.jsxs)("div",{className:"-mx-2 flex flex-wrap justify-between xl:-mx-6",children:[(0,l.jsx)("div",{className:"xxl:w-1/3 footercolumnone w-full px-2 sm:w-full md:w-1/3 lg:w-1/3 xl:w-1/3 xl:px-6",children:(0,l.jsxs)("div",{className:"footerlogoouter",children:[(0,l.jsx)("div",{className:"footerlogo",children:(0,l.jsx)(o.default,{href:"/",children:(0,l.jsx)("img",{alt:"Footer Logo",src:h?.footerLogo||d?.footerLogo||"/assets/images/logo.png"})})}),(0,l.jsx)("div",{className:"footeraddres p-0",children:(0,l.jsx)("p",{children:"A store that provides you an extensive collection of men’s clothing for every occasion"})})]})}),(0,l.jsx)("div",{className:"xxl:w-7/12 w-full px-2 sm:w-full md:w-7/12 lg:w-7/12 xl:w-7/12 xl:px-6",children:(0,l.jsxs)("div",{className:"-mx-2 flex flex-wrap xl:-mx-6",children:[(0,l.jsx)("div",{className:"xxl:w-6/12 sm:md-0 footercolumntwo mb-2 w-full px-2 sm:w-6/12 md:w-1/6 lg:w-6/12 xl:w-6/12 xl:px-6",children:(0,l.jsxs)("div",{className:`footernav footerAccordionItem ${"categories"===u?"active":""}`,children:[(0,l.jsxs)("button",{type:"button",className:"footerAccordionButton footerheading",onClick:()=>p("categories"),children:[(0,l.jsx)("span",{children:"Categories"}),(0,l.jsx)("span",{className:"footerAccordionIcon",children:"categories"===u?"−":"+"})]}),(0,l.jsx)("ul",{className:"footerAccordionList",children:e?.length>0?e.map(e=>(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:`/products?category=${e.slug}`,children:e.name})},e._id||e.id)):(0,l.jsx)("li",{children:"No categories found"})})]})}),(0,l.jsx)("div",{className:"xxl:w-6/12 sm:md-0 footercolumntwo mb-2 w-full px-2 sm:w-6/12 md:w-1/6 lg:w-6/12 xl:w-6/12 xl:px-6",children:(0,l.jsxs)("div",{className:`footernav footernavbx footerAccordionItem ${"links"===u?"active":""}`,children:[(0,l.jsxs)("button",{type:"button",className:"footerAccordionButton footerheading",onClick:()=>p("links"),children:[(0,l.jsx)("span",{children:"Quick Links"}),(0,l.jsx)("span",{className:"footerAccordionIcon",children:"links"===u?"−":"+"})]}),(0,l.jsxs)("ul",{className:"footerAccordionList",children:[(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/",children:"Home"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/about",children:"About Us"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/blog",children:"Blog"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/contact-us",children:"Contact Us"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/privacy-policy",children:"Privacy & Policy"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/terms-and-conditions",children:"Terms & Conditions"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/disclaimer",children:"Disclaimer"})}),(0,l.jsx)("li",{children:(0,l.jsx)(o.default,{href:"/cookie-policy",children:"Cookie Policy"})})]})]})})]})})]})})}),(0,l.jsx)("div",{className:"footerbtm",children:(0,l.jsx)("div",{className:"container-xxl container px-3",children:(0,l.jsxs)("p",{children:["Copyright © 2026 ",(0,l.jsx)(o.default,{href:"/",children:"Dulhe Sahab"}),". All Rights Reserved"]})})})]})});e.s(["default",0,a])},1915,e=>{e.n(e.i(37573))}]);