module.exports=[32170,a=>{"use strict";var b=a.i(48204),c=a.i(87430),d=a.i(35341),e=a.i(28499),f=a.i(15435);let g=c.forwardRef(({bsPrefix:a,active:c=!1,children:g,className:h,as:i="li",linkAs:j=f.default,linkProps:k={},href:l,title:m,target:n,...o},p)=>{let q=(0,e.useBootstrapPrefix)(a,"breadcrumb-item");return(0,b.jsx)(i,{ref:p,...o,className:(0,d.default)(q,h,{active:c}),"aria-current":c?"page":void 0,children:c?g:(0,b.jsx)(j,{...k,href:l,title:m,target:n,children:g})})});g.displayName="BreadcrumbItem";let h=c.forwardRef(({bsPrefix:a,className:c,listProps:f={},children:g,label:h="breadcrumb",as:i="nav",...j},k)=>{let l=(0,e.useBootstrapPrefix)(a,"breadcrumb");return(0,b.jsx)(i,{"aria-label":h,className:c,ref:k,...j,children:(0,b.jsx)("ol",{...f,className:(0,d.default)(l,null==f?void 0:f.className),children:g})})});h.displayName="Breadcrumb";let i=Object.assign(h,{Item:g});var j=a.i(67616),k=a.i(98436),l=a.i(65675);a.s(["default",0,({breadcrumbs:a,additionalClass:c})=>{let d=(0,l.useRouter)();return(0,b.jsx)("div",{className:"container",children:(0,b.jsx)("div",{className:"Breadcrumb_comp",children:(0,b.jsx)(i,{children:a.map((a,e)=>(0,b.jsxs)(i.Item,{href:a.link,active:a.isActive,className:a.isActive?`para_text ${c||""}`:"",onClick:b=>{var c;b.preventDefault(),a.isActive||(c=a.link,d.push(c))},children:[e>0&&(0,b.jsx)(j.FontAwesomeIcon,{className:"nextfafa",icon:k.faChevronRight}),a.label]},e))})})})}],32170)},62742,a=>{"use strict";var b=a.i(48204),c=a.i(87430),d=a.i(32170),e=a.i(68457),f=a.i(76163);let g=function({baseLink:a,blogData:c}){return(0,b.jsx)(b.Fragment,{children:(0,b.jsx)(f.default,{href:a,style:{textDecoration:"none"},children:(0,b.jsx)("section",{className:"Blog_card",children:(0,b.jsxs)("div",{className:"main_content_holder",children:[(0,b.jsx)("div",{className:"img_holder",children:(0,b.jsx)("img",{className:"Blog_img",src:"https://amartnode.profcymadev.com:2045"+c.image,alt:"Blog_img"})}),(0,b.jsxs)("div",{className:"text_holder",children:[(0,b.jsx)("p",{className:"title_text heading_text",children:c.name}),(0,b.jsx)("p",{className:"descn para_text",children:c.subname}),(0,b.jsx)("p",{className:"para_text",children:(0,e.default)("string"==typeof c?.description?c.description:"")})]})]})})})})};var h=a.i(79435),i=a.i(94964);a.s(["default",0,function(){let[a,e]=(0,c.useState)(1),f=(0,h.useSelector)(a=>a.blog.blog),j=(0,h.useDispatch)();(0,c.useEffect)(()=>{j((0,i.getblog)())},[j]);let k=Math.ceil(f?.data?.length/8),l=a=>{a>=1&&a<=k&&e(a)},m=f?.data?.slice((a-1)*8,8*a);return(0,b.jsx)("section",{className:"Blog",children:(0,b.jsxs)("div",{className:"container",children:[(0,b.jsx)(d.default,{breadcrumbs:[{label:"Home",link:"/",isActive:!1},{label:"Blog",link:"",isActive:!0}]}),(0,b.jsxs)("div",{className:"blog_card_holder",children:[(0,b.jsx)("div",{className:"row",children:m&&m.length>0?m.map((a,c)=>(0,b.jsx)("div",{className:"col-xl-3 col-lg-4 col-md-4 col-sm-6 col-6 mb-4",children:(0,b.jsx)(g,{baseLink:`/blog/${a.id}`,blogData:a})},c)):(0,b.jsx)("div",{className:"no_product_available_holder",children:(0,b.jsx)("h3",{children:"No blogs available yet"})})}),(0,b.jsxs)("div",{className:"pagination pagination_holder mt-4 d-flex justify-content-center align-items-center gap-2",children:[(0,b.jsx)("button",{onClick:()=>l(1),disabled:1===a,children:"«"}),(0,b.jsx)("button",{onClick:()=>l(a-1),disabled:1===a,children:"‹"}),[a].map(c=>(0,b.jsx)("button",{onClick:()=>l(c),className:c===a?"active":"",children:c},c)),k>3&&(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:"..."}),(0,b.jsx)("button",{onClick:()=>l(k),className:a===k?"active":"",children:k})]}),(0,b.jsx)("button",{onClick:()=>l(a+1),disabled:a===k,children:"›"}),(0,b.jsx)("button",{onClick:()=>l(k),disabled:a===k,children:"»"})]})]})]})})}],62742)}];

//# sourceMappingURL=a-mart-web_src_components_e791a52e._.js.map