(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3341],{25393:function(e,t,l){Promise.resolve().then(l.bind(l,46065))},28525:function(e,t,l){"use strict";var a=l(57437),s=l(88131);t.Z=function(e){let{title:t="Oops! No Results Found",message:l="It seems there are no data found."}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-col items-center justify-center gap-2",children:[(0,a.jsx)("div",{className:"w-3/5",children:(0,a.jsx)(s.Z,{})}),(0,a.jsx)("div",{className:"text-xl md:text-[28px] lg:text-3xl text-black font-semibold",children:t}),(0,a.jsx)("div",{className:"text-base md:text-xl lg:text-2xl text-secondary font-normal",children:l})]})}},78702:function(e,t,l){"use strict";var a=l(57437),s=l(2265),n=l(5941),i=l(49385);t.Z=function(e){let{items:t,pageSize:l,currentPage:r,onPageChange:o}=e,d=Math.ceil(t/l),c=Array.from({length:d},(e,t)=>t+1),{activePage:x,range:m,setPage:u,onNext:g,onPrevious:h}=(0,n.h)({total:d,showControls:!0,siblings:1,boundaries:1});return(0,s.useEffect)(()=>{o(x)},[x]),(0,a.jsx)("div",{className:"pt-5 pb-3",children:(0,a.jsx)("ul",{className:"flex items-center justify-center gap-4",children:m.map((e,t)=>e===i.m.NEXT?(0,a.jsx)("li",{"aria-label":"next page",className:"flex items-center justify-center w-10 h-10 not-italic font-semibold text-base text-black rounded-lg border border-[#E8E8E8] ".concat(c.length>r?"cursor-pointer":"cursor-not-allowed"),onClick:g,children:(0,a.jsx)("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M1.675 0L0.5 1.175L4.31667 5L0.5 8.825L1.675 10L6.675 5L1.675 0Z",fill:"black"})})},e+t+Math.random()):e===i.m.PREV?(0,a.jsx)("li",{"aria-label":"previous page",className:"flex items-center justify-center  w-10 h-10 not-italic font-semibold text-base text-black rounded-lg border border-[#E8E8E8] ".concat(r>1?"cursor-pointer":"cursor-not-allowed"),onClick:h,children:(0,a.jsx)("svg",{width:"7",height:"10",viewBox:"0 0 7 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M5.575 10L6.75 8.825L2.93333 5L6.75 1.175L5.575 1.02722e-07L0.575 5L5.575 10Z",fill:"black"})})},e+t+Math.random()):e===i.m.DOTS?(0,a.jsx)("li",{className:"flex items-center justify-center  w-10 h-10 not-italic font-semibold text-base cursor-not-allowed text-black",children:"..."},e+t+Math.random()):(0,a.jsx)("li",{"aria-label":"page ".concat(e),className:"flex items-center justify-center rounded-lg w-10 h-10 not-italic font-semibold text-base cursor-pointer border border-[#E8E8E8] text-decoration-none ".concat(x===e?"bg-primary text-white":"text-black"),onClick:()=>u(e),children:e},e+t+Math.random()))})})}},39500:function(e,t,l){"use strict";var a=l(57437);l(66648),l(2265),t.Z=()=>(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid  items-center w-full",children:(0,a.jsx)("div",{className:" place-content-center",children:(0,a.jsxs)("div",{role:"status",className:"animate-pulse",children:[(0,a.jsx)("div",{className:"h-2.5 bg-gray-200 rounded-full  w-full mb-4"}),(0,a.jsx)("div",{className:"h-2 bg-gray-200 rounded-full  max-w-[360px] mb-2.5"}),(0,a.jsx)("div",{className:"h-2 bg-gray-200 rounded-full  mb-2.5"}),(0,a.jsx)("div",{className:"h-2 bg-gray-200 rounded-full  max-w-[330px] mb-2.5"}),(0,a.jsx)("div",{className:"h-2 bg-gray-200 rounded-full  max-w-[300px] mb-2.5"}),(0,a.jsx)("div",{className:"h-2 bg-gray-200 rounded-full  max-w-[360px]"}),(0,a.jsx)("span",{className:"sr-only",children:"Loading..."})]})})})})},46065:function(e,t,l){"use strict";var a=l(57437),s=l(28525);l(78702);var n=l(39500),i=l(16656),r=l(66648),o=l(87138),d=l(2265),c=l(11444),x=l(62737),m=l.n(x);l(57818),t.default=function(){let[e,t]=(0,d.useState)({data:[],loading:!0,error:!1}),l=(0,c.v9)(e=>{var t;return(null==e?void 0:null===(t=e.blog)||void 0===t?void 0:t.blogs)||[]}),[x,u]=(0,d.useState)(0),g=(0,c.I0)();return(0,d.useEffect)(()=>{l.data.length||g((0,i.De)())},[]),(0,d.useEffect)(()=>{t({...e,loading:l.loading,data:[...l.data].splice((x-1)*6,6)})},[l,x]),(0,a.jsx)("div",{className:"pt-10 lg:pt-16",children:(0,a.jsxs)("div",{className:"container px-4 md:px-0 md:mx-auto",children:[(0,a.jsx)("div",{className:"text-3xl lg:text-4xl font-bold text-black",children:"From the Ventify Staff and Guest Writers"}),(0,a.jsx)("div",{className:"my-10 lg:my-16",children:e.loading?(0,a.jsx)(n.Z,{}):(0,a.jsx)(a.Fragment,{children:e.data.length?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.data.map((e,t)=>(0,a.jsx)("div",{className:"col-span-1 sm:col-span-1 lg:col-span-1 h-auto md:h-full flex flex-col",children:(0,a.jsxs)("div",{className:"w-fit",children:[(0,a.jsx)("div",{className:"object-cover rounded-2xl overflow-hidden",children:(0,a.jsx)(r.default,{className:"w-full rounded-2xl hover:scale-125 transition-all duration-700",sizes:"100vw",src:e.image,width:0,height:0,alt:e.title})}),(0,a.jsx)("div",{className:"mt-4",children:(0,a.jsxs)("div",{className:"mt-6 flex flex-col gap-6",children:[(0,a.jsxs)("div",{children:[(0,a.jsx)("div",{className:"flex gap-2 items-center",children:(0,a.jsx)("div",{className:"text-base lg:text-base text-secondary italic",children:m()(e.createdAt).format("MM/DD/YYYY")})}),(0,a.jsx)("div",{className:"text-2xl lg:text-2xl font-bold text-black mt-2 line-clamp-1",children:e.title})]}),(0,a.jsx)("div",{className:"text-base lg:text-base font-normal text-secondary line-clamp-3 [&>*]:!text-base",dangerouslySetInnerHTML:{__html:e.body}}),(0,a.jsx)("div",{className:" ",children:(0,a.jsxs)(o.default,{href:"/blogs/".concat(e.slug),className:"text-lg lg:text-lg font-medium text-primary flex items-center gap-2 w-fit",children:[(0,a.jsx)("span",{children:"Read More"}),(0,a.jsx)("svg",{width:"9",height:"14",viewBox:"0 0 9 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M1.645 0L0 1.645L5.34333 7L0 12.355L1.645 14L8.645 7L1.645 0Z",fill:"#9C9C8A"})})]})})]})})]})},t))})}):(0,a.jsx)(s.Z,{title:"Oops! No Results Found",message:"It seems there are no available blogs."})})})]})})}},16656:function(e,t,l){"use strict";l.d(t,{De:function(){return i},lV:function(){return n}});var a=l(63623);let s=(0,l(66862).oM)({name:"blog",initialState:{latestBlogs:{loading:!1,error:null,data:[]},blogs:{loading:!1,error:null,data:[]}},reducers:{setLatestBlogList:(e,t)=>{e.latestBlogs=t.payload},setBlogList:(e,t)=>{e.blogs=t.payload}}}),n=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],async(e,t)=>{e(s.actions.setLatestBlogList({loading:!0,error:null,data:[]})),await (0,a.Z)({url:"/v1/blog",method:"GET"}).then(t=>{var l;e(s.actions.setLatestBlogList({loading:!1,error:null,data:null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.data}))}).catch(t=>{e(s.actions.setLatestBlogList({loading:!1,error:t.message,data:[]}))})}},i=function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0],async(e,t)=>{e(s.actions.setBlogList({loading:!0,error:null,data:[]})),await (0,a.Z)({url:"/v1/blog",method:"GET"}).then(t=>{var l;e(s.actions.setBlogList({loading:!1,error:null,data:null==t?void 0:null===(l=t.data)||void 0===l?void 0:l.data}))}).catch(t=>{e(s.actions.setBlogList({loading:!1,error:t.message,data:[]}))})}};t.ZP=s.reducer},63623:function(e,t,l){"use strict";let a=l(38472).Z.create({baseURL:"https://backend.ventify.com"});t.Z=a}},function(e){e.O(0,[6980,8173,231,4282,1444,5941,1786,8131,2971,7023,1744],function(){return e(e.s=25393)}),_N_E=e.O()}]);