1"use strict";(self.webpackChunkcloud4feed_react=self.webpackChunkcloud4feed_react||[]).push([[6016],{6016:(e,s,a)=>{a.r(s),a.d(s,{default:()=>p});var t=a(5043),c=a(7696),l=a(3026),n=a(5475),r=a(2485),i=a(7007),o=a(579);const d=r.F.blogs.blogList,h=(e,s)=>{const a=e.replace(/<\/?[^>]+(>|$)/g,"");return a.length>s?a.substring(0,s)+"...":a};function m(){const[e,s]=(0,t.useState)([]),[a,r]=(0,t.useState)(4),[m,g]=(0,t.useState)(!0),[u,x]=(0,t.useState)("");if((0,t.useEffect)((()=>{(async()=>{try{const e=await(0,c.A)("GET",d);s(e.blogs)}catch(e){console.error("Error fetching blog data:",e)}})()}),[]),!e)return null;const j=e.filter((e=>e.title.toLowerCase().includes(u))),p=e=>{const s=new Date(e),a=["Jan","Feb","March","April","May","June","July","Aug","Sep","Oct","Nov","Dec"][s.getMonth()],t=s.getDate(),c=s.getFullYear();return"".concat(a," ").concat(t,", ").concat(c)};return(0,o.jsx)(o.Fragment,{children:(0,o.jsxs)("section",{className:"blog-cards-area header-gap",children:[(0,o.jsxs)("div",{className:"container",children:[(0,o.jsxs)("div",{className:"row",children:[(0,o.jsx)("div",{className:"col-lg-12",children:(0,o.jsxs)("div",{className:"blog-page-head",children:[(0,o.jsx)("span",{className:"purple-gradiant",children:"The Latest blogs"}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h1",{className:"heading",children:"Deep Dive Insights"}),(0,o.jsxs)("form",{children:[(0,o.jsx)("input",{value:u,onChange:e=>{x(e.target.value.toLowerCase())},type:"text",placeholder:"Search Blog Title"}),(0,o.jsx)("label",{children:(0,o.jsx)(l.A,{name:"search"})})]})]})]})}),j.slice(0,a).map(((e,s)=>{const a=Math.floor(s/2)%2===0,t=s%2===0?a?"col-lg-7 col-md-7":"col-lg-5 col-md-5":a?"col-lg-5 col-md-5":"col-lg-7 col-md-7";return(0,o.jsx)("div",{className:"".concat(t),children:(0,o.jsx)("div",{className:"blog-card-wrap",children:(0,o.jsxs)(n.N_,{to:"/blogs/".concat(e.slug),children:[(0,o.jsx)("div",{children:(0,o.jsx)("img",{src:"".concat(i.B).concat(e.thumbnail),alt:"blog",className:"img-responsive"})}),(0,o.jsx)("span",{children:p(e.createdAt)}),(0,o.jsx)("h2",{children:e.title}),(0,o.jsx)("p",{children:h(e.description1,110)}),(0,o.jsxs)("label",{children:["Read More ",(0,o.jsx)(l.A,{name:"arrowRight"})]})]})})},s)}))]}),!u&&(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-lg-12",children:(0,o.jsx)("div",{className:"blogcards-loadmore",children:(0,o.jsxs)(n.N_,{onClick:()=>{m?(r((s=>Math.min(s+2,e.length))),a+2>=e.length&&g(!1)):(r(4),g(!0))},className:"default-btn",children:[m?"Load More":"Load Less",(0,o.jsx)("span",{})]})})})})]}),(0,o.jsx)("img",{src:"./assets/blog-card-vec.webp",alt:"vector",className:"img-responsive blog-card-vec"})]})})}var g=a(9379),u=a(3216);const x=r.F.contact.contactCreate;function j(){const e=(0,u.Zp)(),[s,a]=(0,t.useState)({first_name:"",email:"",form_type:"newsletter"}),[l,n]=(0,t.useState)(!1),[r,i]=(0,t.useState)(""),d=(0,t.useCallback)((e=>{const{name:s,value:t}=e.target;a((e=>(0,g.A)((0,g.A)({},e),{},{[s]:t})))}),[]),h=(0,t.useCallback)((async a=>{if(a.preventDefault(),l)try{await(0,c.A)("POST",x,s),e("/thankyou")}catch(r){console.error("There was an error creating the tag!",r),alert("There was an error creating the tag!")}else i("You must agree to the privacy statement before submitting.")}),[e,s,l]);return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)("section",{className:"blog-newsletter-area animate__animated wow animate__slideInUp","data-wow-duration":"1.1s","data-wow-delay":"0.1s",children:(0,o.jsx)("div",{className:"container",children:(0,o.jsx)("div",{className:"row",children:(0,o.jsx)("div",{className:"col-lg-12",children:(0,o.jsx)("div",{className:"blog-newsletter-box",children:(0,o.jsxs)("div",{className:"row justify-content-center",children:[(0,o.jsxs)("div",{className:"col-lg-8 col-md-9",children:[(0,o.jsx)("img",{src:"./assets/newsletter-vec.png",alt:"vec",className:"img-responsive"}),(0,o.jsxs)("h3",{className:"heading center-heading",children:["Let us keep you posted. ",(0,o.jsx)("br",{}),"Sign up for our newsletter"]})]}),(0,o.jsx)("div",{className:"col-lg-5 col-md-6",children:(0,o.jsxs)("form",{onSubmit:h,className:"newsletter-form",children:[(0,o.jsx)("label",{children:"Full Name*"}),(0,o.jsx)("input",{required:!0,name:"first_name",type:"text",className:"form-control",onChange:d}),(0,o.jsx)("label",{children:"Enter Email Address*"}),(0,o.jsx)("input",{required:!0,name:"email",type:"email",className:"form-control",onChange:d}),(0,o.jsxs)("div",{className:"newsletter-checkbox",children:[(0,o.jsx)("input",{checked:l,type:"checkbox",onChange:e=>{n(e.target.checked),e.target.checked&&i("")}}),(0,o.jsx)("span",{children:"* I agree with the privacy statement"})]}),r&&(0,o.jsx)("p",{style:{color:"#fff",fontSize:"10px",marginTop:"-15px"},children:r}),(0,o.jsx)("div",{className:"newsletter-btn",children:(0,o.jsxs)("button",{type:"submit",className:"default-btn",children:["sign me up",(0,o.jsx)("span",{})]})})]})})]})})})})})})})}function p(){return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m,{}),(0,o.jsx)(j,{})]})}}}]); 2//# sourceMappingURL=6016.872b2c46.chunk.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.