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

//# sourceMappingURL=src_components_app-layout_AppFooter_tsx_1wx0ql1._.js.map