PageSourceSearch

https://konnectify.co/_next/static/chunks/app/blogs/page-7abd9ad9466bdb98.js

js konnectify.co collected 2026-09-29 11:43:47 UTC 23,474 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8156],{2925:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("youtube",[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]])},13052:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]])},18138:(e,t,r)=>{"use strict";r.d(t,{default:()=>b});var a=r(95155),n=r(93866),o=r(12115),i=r(20543),s=r(60039),l=r.n(s);let c=e=>{let{blogs:t}=e,[r,n]=(0,o.useState)(null),[i,s]=(0,o.useState)(null);return(0,o.useEffect)(()=>{(null==t?void 0:t.length)>0&&n(null==t?void 0:t.filter(e=>e.published_date?e.published_date:e.created_date).reduce((e,t)=>new Date(t.published_date?t.published_date:t.created_date)>new Date(e.published_date?e.published_date:e.created_date)?t:e))},[t]),(0,o.useEffect)(()=>{if(!t||0===t.length)return;let e=t.filter(e=>void 0!==e.view_count&&!isNaN(e.view_count)&&null!==e.view_count);console.log("view_count",t.view_count);let r=e.sort((e,t)=>Number(t.view_count)-Number(e.view_count)).slice(0,3);r.length<3||r.every(e=>0===e.view_count||"0"===e.view_count||void 0===e.view_count||null===e.view_count||isNaN(e.view_count))?s([...t].sort((e,t)=>{let r=new Date(e.published_date||e.created_date).getTime();return new Date(t.published_date||t.created_date).getTime()-r}).slice(0,3)):s(r)},[t]),(null==t?void 0:t.length)>0&&(0,a.jsx)("div",{className:l().wrapper,children:(0,a.jsxs)("div",{className:l().container,children:[(0,a.jsx)("h1",{className:l().title,children:"Blogs & Resources"}),(0,a.jsxs)("div",{className:l().cardsWrapper,children:[(0,a.jsxs)("div",{className:l().recentBlogsWrapper,children:[(0,a.jsx)("h2",{className:l().cardWrapperTitle,children:"Recent Blog"}),r&&(0,a.jsx)("div",{className:l().recentCardWrapper,onClick:()=>{window.location.href="/blogs/".concat(r.slug)},children:(0,a.jsxs)("div",{className:l().recentCardContainer,children:[(0,a.jsx)("div",{className:l().recentImageContainer,children:(0,a.jsx)("img",{src:p(null==r?void 0:r.blog_image_url),alt:"Image for ".concat(r.title),className:l().image,width:10,height:10})}),(0,a.jsxs)("div",{className:l().recentContentWrapper,children:[(0,a.jsxs)("div",{className:l().recentContentContainer,children:[(0,a.jsxs)("div",{className:l().recentTagsWrapper,children:[(null==r?void 0:r.category_name)&&(0,a.jsx)("div",{className:l().recentTagsContainer,children:(0,a.jsx)("span",{className:l().recentTagContainer,children:null==r?void 0:r.category_name})}),(0,a.jsxs)("span",{className:l().recentReadTime,children:[r&&Math.ceil((null==r?void 0:r.content).replace(/<[^>]+>/g," ").trim().split(/\s+/).length/200)," ","min read"]})]}),(0,a.jsxs)("div",{className:l().recentInnerContent,children:[(0,a.jsx)("h3",{className:l().recentTitle,children:d(null==r?void 0:r.title)}),(0,a.jsx)("p",{className:l().recentDescription,children:d(null==r?void 0:r.card_description)})]})]}),(0,a.jsxs)("div",{className:l().recentAuthorWrapper,children:[(0,a.jsx)("img",{src:(null==r?void 0:r.author_image_url)||"/konnectify-next/authorprofile.avif",alt:"Image for ".concat(r.title),width:1,height:1,className:l().recentAuthorImage}),(0,a.jsxs)("div",{className:l().recentAuthorDetails,children:[(0,a.jsx)("p",{className:l().recentAuthorName,children:null==r?void 0:r.author_name}),(0,a.jsxs)("p",{className:l().recentAuthorDescription,children:["Published on"," ",new Date(r.published_date?r.published_date:r.published_dat).toLocaleString("en-IN",{year:"numeric",month:"long",day:"numeric"})," "]})]})]})]})]})})]}),(0,a.jsxs)("div",{className:l().popularBlogsWrapper,children:[(0,a.jsx)("h2",{className:l().cardWrapperTitle,children:"Popular Blogs"}),(0,a.jsx)("div",{className:l().popularBlogsContainer,children:i&&i.slice(0,3).map((e,t)=>(0,a.jsxs)("div",{className:l().popularCardWrapper,onClick:()=>{window.location.href="/blogs/".concat(e.slug)},children:[(0,a.jsx)("div",{className:l().popularCardImageContainer,children:(0,a.jsx)("img",{src:p(null==e?void 0:e.blog_image_url),alt:"Image for ".concat(e.title),className:l().image,width:10,height:10})}),(0,a.jsxs)("div",{className:l().popularCardContentWrapper,children:[(0,a.jsx)("div",{style:{display:"flex",gap:"10px"},children:(0,a.jsx)("div",{children:(null==e?void 0:e.category_name)!="Uncategorized"&&(0,a.jsx)("span",{className:l().recentTag
1Container,children:null==e?void 0:e.category_name})})}),(0,a.jsx)("h3",{className:l().popularCardTitle,children:d(e.title)})]})]},t))})]})]})]})})};function d(e){return"string"!=typeof e?(console.log("stripHtmlTags error: input is not a string",e),""):e.replace(/<[^>]+>/g," ")}function p(e){return e?e.startsWith("https://i0.wp.com/")?decodeURIComponent(e.replace(/^https:\/\/i0\.wp\.com\//,"https://").split("?")[0]):e.split("?")[0]:""}var g=r(45699),u=r.n(g),h=r(42355),_=r(13052);let m=async()=>{try{let e=await fetch("/api/blogs/categories");if(!e.ok)throw Error("Failed to fetch categories");let t=(await e.json()).filter(e=>"uncategorized"!==e.category_name.toLowerCase()).map(e=>e.category_name);return console.log("Fetched ordered categories:",t),["All",...t]}catch(e){return console.error("Error fetching ordered categories:",e),["All"]}},v=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:9;try{let a=new URLSearchParams({page:e.toString(),limit:r.toString(),...t&&"All"!==t&&{category_name:t}}),n=await fetch("/api/blogs/list?".concat(a));if(!n.ok)throw Error("Failed to fetch blogs");return await n.json()}catch(e){throw console.error("Error fetching blogs:",e),e}},y=e=>{let{initialBlogs:t=[]}=e,[r,n]=(0,o.useState)("All"),[i,s]=(0,o.useState)([]),[l,c]=(0,o.useState)(!1),[d,p]=(0,o.useState)(["All"]),[g,y]=(0,o.useState)(!1),[f,w]=(0,o.useState)(!1),[x,C]=(0,o.useState)(1),[b,j]=(0,o.useState)(!1),[A,N]=(0,o.useState)(!1),[L,S]=(0,o.useState)(!1),W=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=()=>{c(window.innerWidth<767)};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let P=()=>{if(W.current){let{scrollLeft:e,scrollWidth:t,clientWidth:r}=W.current;N(e>0),S(e<t-r-1)}},T=e=>{if(W.current){let t=W.current.scrollLeft;W.current.scrollTo({left:"left"===e?t-200:t+200,behavior:"smooth"})}},k=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];try{r?w(!0):y(!0);let a=await v(t,e,9);a.success&&(r?s(e=>[...e,...a.blogs]):s(a.blogs),C(a.pagination.currentPage),j(a.pagination.hasNextPage))}catch(e){console.error("Failed to load blogs:",e)}finally{y(!1),w(!1)}},D=async e=>{e!==r&&(n(e),C(1),await k(e,1,!1))},B=async()=>{b&&!f&&await k(r,x+1,!0)};(0,o.useEffect)(()=>{k("All",1,!1)},[]),(0,o.useEffect)(()=>{(async()=>{try{let e=await m();p(e)}catch(e){console.error("Failed to fetch categories:",e),p(["All"])}})()},[]),(0,o.useEffect)(()=>{setTimeout(P,100)},[d]);let R=e=>e?new Date(e).toLocaleString("en-IN",{year:"numeric",month:"long",day:"numeric"}):"";return(0,a.jsx)("div",{className:u().wrapper,children:(0,a.jsxs)("div",{className:u().container,children:[(0,a.jsx)("div",{className:u().headerWrapper,children:(0,a.jsxs)("div",{className:u().header,children:[(0,a.jsx)("h2",{className:u().title,children:"Blogs Collection"}),(0,a.jsxs)("div",{className:u().categoryExtWrapper,children:[A&&!l&&(0,a.jsx)(h.A,{className:"".concat(u().arrow," ").concat(u().arrowLeft),onClick:()=>T("left")}),(0,a.jsx)("div",{ref:W,className:u().categoryWrapper,onScroll:P,children:d.map((e,t)=>(0,a.jsx)("div",{className:"".concat(u().categoryCell," ").concat(r===e?u().selected:""),onClick:()=>D(e),children:(0,a.jsx)("span",{children:e})},t))}),L&&!l&&(0,a.jsx)(_.A,{className:"".concat(u().arrow," ").concat(u().arrowRight),onClick:()=>T("right")})]})]})}),(0,a.jsx)("div",{className:u().blogsListWrapper,children:g&&0===i.length?(0,a.jsx)("div",{className:u().loadingWrapper,children:(0,a.jsx)("p",{children:"Loading blogs..."})}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(i.length>0?u().blogsList:""),children:i.length>0?i.map((e,t)=>(0,a.jsxs)("div",{className:u().blogCard,onClick:()=>{window.location.href="/blogs/".concat(e.slug)},children:[(0,a.jsx)("div",{className:u().imageContainer,children:(null==e?void 0:e.blog_image_url)&&(0,a.jsx)("img",{src:function(e){return e?e.startsWith("https://i0.wp.com/")?decode
1URIComponent(e.replace(/^https:\/\/i0\.wp\.com\//,"https://").split("?")[0]):e.split("?")[0]:""}(e.blog_image_url),alt:e.title||"Blog image",className:u().image,width:300,height:200,onError:e=>{e.currentTarget.style.display="none"}})}),(0,a.jsxs)("div",{className:u().contentContainer,children:[(0,a.jsxs)("div",{className:u().headerContentContainer,children:[(0,a.jsxs)("div",{className:u().recentTagsWrapper,children:[(null==e?void 0:e.category_name)&&(null==e?void 0:e.category_name)!="Uncategorized"&&(0,a.jsx)("div",{className:u().recentTagsContainer,children:(0,a.jsx)("span",{className:u().recentTagContainer,children:e.category_name})}),(0,a.jsxs)("span",{className:u().recentReadTime,children:[function(e){return e?Math.ceil(e.replace(/<[^>]+>/g," ").trim().split(/\s+/).length/200):1}(null==e?void 0:e.content)," min read"]})]}),(0,a.jsx)("h3",{className:u().cardTitle,children:(null==e?void 0:e.title)&&function(e){if(!e)return"";let t=e.replace(/<[^>]*>/g,"");return new DOMParser().parseFromString(t,"text/html").documentElement.textContent||""}(e.title)})]}),(0,a.jsxs)("div",{className:u().recentAuthorWrapper,children:[(0,a.jsx)("img",{src:(null==e?void 0:e.author_image_url)||"/konnectify-next/authorprofile.avif",alt:(null==e?void 0:e.author_name)||"Author Image ",width:40,height:40,className:u().recentAuthorImage}),(0,a.jsxs)("div",{className:u().recentAuthorDetails,children:[(0,a.jsx)("p",{className:u().recentAuthorName,children:null==e?void 0:e.author_name}),(0,a.jsxs)("p",{className:u().recentAuthorDescription,children:["Published on"," ",R(e.published_date||e.created_date)]})]})]})]})]},e.blog_id||t)):!g&&(0,a.jsx)("div",{className:u().noBlogsWrapper,children:(0,a.jsx)("p",{className:u().cardTitle,children:"No blogs under this category"})})}),b&&(0,a.jsx)("button",{className:u().loadMoreBtn,onClick:B,disabled:f,children:f?"Loading...":"Load More"})]})})]})})};var f=r(46719),w=r(70338),x=r.n(w);let C=e=>{let{children:t}=e;return(0,a.jsx)(i.default,{delay:.2,children:t})},b=()=>{let{blogs:e}=(0,n.W)(),[t,r]=(0,o.useState)([]);return(0,o.useEffect)(()=>{if(!(null==e?void 0:e.length))return;let t=e.filter(e=>("string"==typeof e.published_date&&""!==e.published_date.trim()?e.published_date:"string"==typeof e.created_date&&""!==e.created_date.trim()?e.created_date:"string"==typeof e.created_date&&""!==e.created_date.trim()?e.created_date:null)?e.slug?"publish"!==e.status?(console.log("Rejected Blog:",e.slug,"Reason: Status not 'publish' (status:",e.status,")"),!1):"sample-blog"!==e.slug||(console.log("Rejected Blog:",e.slug,"Reason: sample-blog slug"),!1):(console.log("Rejected Blog:",e,"Reason: Missing slug"),!1):(console.log("Rejected Blog:",e.slug,"Reason: No valid published date ( date_gmt, date)"),!1)).sort((e,t)=>{let r=e=>"string"==typeof e.published_date&&""!==e.published_date.trim()?e.published_date:"string"==typeof e.created_date&&""!==e.created_date.trim()?e.created_date:e.published_date,a=new Date(r(e));return new Date(r(t)).getTime()-a.getTime()});console.log("Filtered ".concat(t.length," blogs from ").concat(e.length," total")),r(t)},[e]),(null==t?void 0:t.length)>0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(C,{children:(0,a.jsx)(c,{blogs:t})}),(0,a.jsx)(C,{children:(0,a.jsx)(y,{initialBlogs:t})}),(0,a.jsx)(C,{children:(0,a.jsx)(f.default,{solutionType:"blogs"})})]}):(0,a.jsxs)("div",{className:x().bouncingLoader,children:[(0,a.jsx)("div",{}),(0,a.jsx)("div",{}),(0,a.jsx)("div",{})]})}},19946:(e,t,r)=>{"use strict";r.d(t,{A:()=>d});var a=r(12115);let n=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),o=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase()),i=e=>{let t=o(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim()};var l={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let c=(0,a.forwardRef)((e,t)=>{let{color:r="currentColor",size:n=24,strokeWidth:o=2,absoluteStrokeWidth:i,className:c="",children:d,iconNode:p,...g}=e;return(0,a.createElement)("svg",{ref:t,...l,width:n,height:n,stroke:r,strokeWidth:i?24*Number(o)/Number(n):o,className:s("lucide",c),...g},[...p.map(e=>{let[t,r]=e;return(0,a.createElement)(t,r)}),...Array.isArray(d)?d:[d]])}),d=(e,t)=>{let r=(0,a.forwardRef)((r,o)=>{let{className:l,...d}=r;return(0,a.createElement)(c,{ref:o,iconNode:t,className:s("lucide-".concat(n(i(e))),"lucide-".concat(e),l),...d})});return r.displayName=i(e),r}},40383:(e,t,r)=>{Promise.resolve().then(r.bind(r,83341)),Promise.resolve().then(r.bind(r,18138)),Promise.resolve().then(r.bind(r,47594)),Promise.resolve().then(r.bind(r,50658)),Promise.resolve().then(r.bind(r,93866))},42355:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]])},45699:e=>{e.exports={wrapper:"ListPage_wrapper__hr3Dq",container:"ListPage_container__sI961",header:"ListPage_header__mzZkO",headerWrapper:"ListPage_headerWrapper__vKrD_",blogsListWrapper:"ListPage_blogsListWrapper__OL8RY",blogsList:"ListPage_blogsList__ZNzze",title:"ListPage_title__Tv_90",categoryExtWrapper:"ListPage_categoryExtWrapper__RnIZq",categoryWrapper:"ListPage_categoryWrapper__v6RK4",categoryCell:"ListPage_categoryCell__4h5No",selected:"ListPage_selected__PLWn_",arrow:"ListPage_arrow__BvY3X",arrowLeft:"ListPage_arrowLeft__C6nPx",arrowRight:"ListPage_arrowRight__WqbCl",blogCard:"ListPage_blogCard__0q7Vy",imageContainer:"ListPage_imageContainer__V5Rdq",image:"ListPage_image__n23a6",contentContainer:"ListPage_contentContainer__KwBOu",headerContentContainer:"ListPage_headerContentContainer__dol2R",cardTitle:"ListPage_cardTitle__TjMLz",recentTagsWrapper:"ListPage_recentTagsWrapper___AfK9",recentTagsContainer:"ListPage_recentTagsContainer__qi5u_",recentTag
1Container:"ListPage_recentTagContainer__kc_SE",recentReadTime:"ListPage_recentReadTime__Il6zM",recentAuthorWrapper:"ListPage_recentAuthorWrapper__zV_yX",recentAuthorImage:"ListPage_recentAuthorImage__Bsy3Y",recentAuthorDetails:"ListPage_recentAuthorDetails__OVSYJ",recentAuthorName:"ListPage_recentAuthorName__DLkqq",recentAuthorDescription:"ListPage_recentAuthorDescription__CN_7M",loadMoreBtn:"ListPage_loadMoreBtn__fqLoy",noBlogsWrapper:"ListPage_noBlogsWrapper__fliJh"}},54416:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]])},60039:e=>{e.exports={wrapper:"HeroSection_wrapper__IhcBO",container:"HeroSection_container__91NYY",title:"HeroSection_title__O3bzc",cardsWrapper:"HeroSection_cardsWrapper__sXA64",recentBlogsWrapper:"HeroSection_recentBlogsWrapper__f8H7o",cardWrapperTitle:"HeroSection_cardWrapperTitle__co0My",recentCardContainer:"HeroSection_recentCardContainer___nLB7",recentCardWrapper:"HeroSection_recentCardWrapper__63Bqg",recentImageContainer:"HeroSection_recentImageContainer__9fkRU",image:"HeroSection_image__qlgkr",recentContentWrapper:"HeroSection_recentContentWrapper___Hkup",recentContentContainer:"HeroSection_recentContentContainer__F9g0D",recentTagsWrapper:"HeroSection_recentTagsWrapper__8hMg0",recentTagsContainer:"HeroSection_recentTagsContainer__fQ_RT",recentInnerContent:"HeroSection_recentInnerContent__paans",recentTitle:"HeroSection_recentTitle__NK9c3",recentDescription:"HeroSection_recentDescription__0dQUE",recentAuthorWrapper:"HeroSection_recentAuthorWrapper__gd4cP",recentAuthorImage:"HeroSection_recentAuthorImage__dQlFZ",recentAuthorDetails:"HeroSection_recentAuthorDetails__7_8el",recentAuthorName:"HeroSection_recentAuthorName__p_G8P",recentAuthorDescription:"HeroSection_recentAuthorDescription__ng3Zz",recentReadTime:"HeroSection_recentReadTime__crQpD",popularBlogsWrapper:"HeroSection_popularBlogsWrapper__PNeZS",popularBlogsContainer:"HeroSection_popularBlogsContainer__cHJ0H",popularCardWrapper:"HeroSection_popularCardWrapper__K_w0r",popularCardImageContainer:"HeroSection_popularCardImageContainer__ntcnM",popularCardContentWrapper:"HeroSection_popularCardContentWrapper__71XIQ",popularCardTitle:"HeroSection_popularCardTitle__OIwUm",recentTagContainer:"HeroSection_recentTagContainer__efpfc"}},66474:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},66766:(e,t,r)=>{"use strict";r.d(t,{default:()=>n.a});var a=r(71469),n=r.n(a)},70306:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("log-in",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]])},70338:e=>{e.exports={bouncingLoader:"styles_bouncingLoader__JOah7",bounce:"styles_bounce__6BS32"}},71469:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let a=r(88229),n=r(38883),o=r(33063),i=a._(r(51193));function s(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:i.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=o.Image},72894:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("linkedin",[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]])},74783:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]])},83341:(e,t,r)=>{"use strict";r.d(t,{Providers:()=>s});var a=r(95155),n=r(432),o=r(26715),i=r(12115);function s(e){let{children:t}=e,[r]=(0,i.useState)(()=>new n.E({defaultOptions:{queries:{staleTime:6e4,refetchOnWindowFocus:!1}}}));return(0,a.jsx)(o.Ht,{client:r,children:t})}},90672:(e,t,r)=>{"use strict";r.d(t,{A:()=>c});var a=r(23464);let n=a.A.create({baseURL:"/api/templates/",headers:{"Content-Type":"application/json"}}),o=a.A.create({baseURL:"/api/templates/listApps/",headers:{"Content-Type":"application/json"}}),i=a.A.create({baseURL:"/api/apps/",headers:{"Content-Type":"application/json"}}),s=a.A.create({baseURL:"/api/queryaplusb/",headers:{"Content-Type":"application/json"}}),l=a.A.create({baseURL:"/api/blogs",headers:{"Content-Type":"application/json"}}),c={getPost:async e=>{try{return{data:(await n.get(e)).data[0]}}catch(e){throw console.error("getPost error \uD83D\uDE21:",e),e}},getRecommended:async(e,t)=>{try{let r="?source=".concat(e);return t&&(r+="&target=".concat(t)),(await o.get(r)).data.map(e=>({id:e.name,data:e}))}catch(e){throw console.error("getRecommended error \uD83D\uDE21:",e),e}},getAppsBySlug:async e=>{try{var t;let r,a;let n=await i.get(e),o=null===(t=n.data)||void 0===t?void 0:t[0];o&&o["Four apps in image"]&&(r=o["Four apps in image"].split(/[,;]/).map(e=>e.trim()).filter(e=>e.length>0)),r&&r.length>0&&(a=await Promise.all(r.map(e=>i.get(e))));let s=null==a?void 0:a.map(e=>e.data[0]);return{data:o,four_apps:s}}catch(t){throw console.error('Error fetching app with slug "'.concat(e,'" \uD83D\uDE21:'),t),t}},getAllApps:async e=>
1{try{return{data:(await i.get("/allApps")).data}}catch(e){throw console.error('Error fetching apps" \uD83D\uDE21:',e),e}},getAplusBSuggestion:async e=>{try{return(await s.get(e)).data}catch(e){throw console.error("Error fetching app with slug \uD83D\uDE21:",e),e}},blogsData:async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;try{let r=await l.get("/",{headers:{"Content-Type":"application/json"},params:{per_page:t,page:e},maxBodyLength:1/0}),a=parseInt(r.headers["x-wp-total"],10),n=parseInt(r.headers["x-wp-totalpages"],10);return{items:r.data,pagination:{total:a,totalPages:n,perPage:t,currentPage:e}}}catch(e){throw console.error("blogsData error \uD83D\uDE21:",e),e}},loadMoreBlogs:async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;try{return(await l.get("/",{params:{offset:e,limit:t}})).data}catch(e){throw console.error("loadMoreBlogs error \uD83D\uDE21:",e),e}}}},92138:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});let a=(0,r(19946).A)("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]])},93866:(e,t,r)=>{"use strict";r.d(t,{AppsDataProvider:()=>l,W:()=>c});var a=r(95155),n=r(12115),o=r(32960),i=r(90672);let s=(0,n.createContext)(void 0),l=(0,n.memo)(e=>{var t,r,l;let{children:c,slug:d,initialBlogs:p}=e,g=d.split("-to-"),u=g[0],h=g.length>1?g[1]:void 0,_=!!h,[m,v]=(0,n.useState)(p||[]),[y,f]=(0,n.useState)(!1),{data:w,isLoading:x,isError:C}=(0,o.I)({queryKey:["app",u],queryFn:()=>i.A.getAppsBySlug("/".concat(u)),placeholderData:{data:{},four_apps:[]},enabled:!!u}),{data:b,isLoading:j,isError:A}=(0,o.I)({queryKey:["app",h],queryFn:()=>i.A.getAppsBySlug("/".concat(h)),placeholderData:{data:{},four_apps:[]},enabled:_&&!!h}),{data:N,isLoading:L,isError:S}=(0,o.I)({queryKey:["app",null],queryFn:()=>i.A.getAllApps(""),placeholderData:{data:[]}}),{data:W,isLoading:P,isError:T}=(0,o.I)({queryKey:["recommendApps",u,h||null],queryFn:()=>h?i.A.getRecommended(u,h):i.A.getRecommended(u),placeholderData:{data:[]},enabled:!!u}),{data:k,isLoading:D,isSuccess:B}=(0,o.I)({queryKey:["initialBlogData"],queryFn:()=>i.A.blogsData(0,100),enabled:!p,staleTime:36e5});(0,n.useEffect)(()=>{!p&&k&&B&&(async()=>{f(!0);try{let e=[],t=await i.A.blogsData(1,100);e=[t],f(!0);let{totalPages:r,perPage:a}=t.pagination;for(let t=2;t<=r;t++){let r=await i.A.blogsData(t,a);if(r.items.length>0)e=[...e,...r.items];else break}v(e)}catch(e){console.error("Error loading all blog pages:",e)}finally{f(!1)}})()},[k,B,p]);let R=null!==(t=null==w?void 0:w.data)&&void 0!==t?t:{},E=null!==(r=null==w?void 0:w.four_apps)&&void 0!==r?r:[],I=null!==(l=null==b?void 0:b.data)&&void 0!==l?l:{},H=m.length>0?m:k||[],q=x||_&&j||_&&P||D||y,M={primaryApp:R,fourApps:E,secondaryApp:_?I:void 0,isConnectedMode:_,loading:q,blogs:H,relevantWorkflows:Array.isArray(W)?W:[],appData:N};return(0,a.jsxs)(s.Provider,{value:M,children:[c,!1]})}),c=()=>{let e=(0,n.useContext)(s);if(void 0===e)throw Error("useIntegrationData must be used within AppsDataProvider");return e}}},e=>{var t=t=>e(e.s=t);e.O(0,[1847,569,3063,6874,9641,9558,658,7594,5549,8441,1684,7358],()=>t(40383)),_N_E=e.O()}]);

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.